client/master -> inner/outer
This commit is contained in:
		| @@ -69,16 +69,16 @@ class OuterMemorySystem(htif_width: Int)(implicit conf: UncoreConfiguration) ext | ||||
|  | ||||
|   val net = Module(new ReferenceChipCrossbarNetwork) | ||||
|   net.io.clients zip (io.tiles :+ io.htif) map { case (net, end) => net <> end } | ||||
|   net.io.masters zip (masterEndpoints.map(_.io.client)) map { case (net, end) => net <> end } | ||||
|   net.io.masters zip (masterEndpoints.map(_.io.inner)) map { case (net, end) => net <> end } | ||||
|   masterEndpoints.map{ _.io.incoherent zip io.incoherent map { case (m, c) => m := c } } | ||||
|  | ||||
|   val conv = Module(new MemIOUncachedTileLinkIOConverter(2)) | ||||
|   if(ln.nMasters > 1) { | ||||
|     val arb = Module(new UncachedTileLinkIOArbiterThatAppendsArbiterId(ln.nMasters)) | ||||
|     arb.io.in zip masterEndpoints.map(_.io.master) map { case (arb, cache) => arb <> cache } | ||||
|     arb.io.in zip masterEndpoints.map(_.io.outer) map { case (arb, cache) => arb <> cache } | ||||
|     conv.io.uncached <> arb.io.out | ||||
|   } else { | ||||
|     conv.io.uncached <> masterEndpoints.head.io.master | ||||
|     conv.io.uncached <> masterEndpoints.head.io.outer | ||||
|   } | ||||
|   llc.io.cpu.req_cmd <> Queue(conv.io.mem.req_cmd) | ||||
|   llc.io.cpu.req_data <> Queue(conv.io.mem.req_data, refill_cycles) | ||||
|   | ||||
| @@ -19,11 +19,11 @@ class FPGAOuterMemorySystem(htif_width: Int)(implicit conf: FPGAUncoreConfigurat | ||||
|   val master = Module(new L2CoherenceAgent(0)) | ||||
|   val net = Module(new ReferenceChipCrossbarNetwork) | ||||
|   net.io.clients zip (io.tiles :+ io.htif) map { case (net, end) => net <> end } | ||||
|   net.io.masters.head <> master.io.client  | ||||
|   net.io.masters.head <> master.io.inner | ||||
|   master.io.incoherent zip io.incoherent map { case (m, c) => m := c } | ||||
|  | ||||
|   val conv = Module(new MemIOUncachedTileLinkIOConverter(2)) | ||||
|   conv.io.uncached <> master.io.master | ||||
|   conv.io.uncached <> master.io.outer | ||||
|   io.mem.req_cmd <> Queue(conv.io.mem.req_cmd, 2) | ||||
|   io.mem.req_data <> Queue(conv.io.mem.req_data, tl.dataBits/mif.dataBits) | ||||
|   conv.io.mem.resp <> Queue(io.mem.resp) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user