coreplex: pretty print discontiguous ranges properly
This commit is contained in:
parent
7ff9f88ad7
commit
637bc6c3a7
@ -102,16 +102,17 @@ trait CoreplexNetworkModule extends HasCoreplexParameters {
|
|||||||
val outer: CoreplexNetwork
|
val outer: CoreplexNetwork
|
||||||
val io: CoreplexNetworkBundle
|
val io: CoreplexNetworkBundle
|
||||||
|
|
||||||
println("\nGenerated Address Map")
|
println("Generated Address Map")
|
||||||
for (manager <- outer.l1tol2.node.edgesIn(0).manager.managers) {
|
for (manager <- outer.l1tol2.node.edgesIn(0).manager.managers) {
|
||||||
val prot = (if (manager.supportsGet) "R" else "") +
|
val prot = (if (manager.supportsGet) "R" else "") +
|
||||||
(if (manager.supportsPutFull) "W" else "") +
|
(if (manager.supportsPutFull) "W" else "") +
|
||||||
(if (manager.executable) "X" else "") +
|
(if (manager.executable) "X" else "") +
|
||||||
(if (manager.supportsAcquireB) " [C]" else "")
|
(if (manager.supportsAcquireB) " [C]" else "")
|
||||||
manager.address.foreach { a =>
|
AddressRange.fromSets(manager.address).foreach { r =>
|
||||||
println(f"\t${manager.name}%s ${a.base}%x - ${a.base+a.mask+1}%x, $prot")
|
println(f"\t${manager.name}%s ${r.base}%x - ${r.base+r.size}%x, $prot")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
println("")
|
||||||
}
|
}
|
||||||
|
|
||||||
/////
|
/////
|
||||||
|
Loading…
Reference in New Issue
Block a user