coreplex: move buffers inside the coreplex
This should make hierarchical place and route easier.
This commit is contained in:
parent
5bbb75e078
commit
537274b645
@ -31,7 +31,13 @@ trait CoreplexNetwork extends HasCoreplexParameters {
|
|||||||
intBar.intnode := mmioInt
|
intBar.intnode := mmioInt
|
||||||
|
|
||||||
// Allows a variable number of inputs from outside to the Xbar
|
// Allows a variable number of inputs from outside to the Xbar
|
||||||
l1tol2.node :=* l2in
|
private val l2in_buffer = LazyModule(new TLBuffer)
|
||||||
|
l1tol2.node :=* l2in_buffer.node
|
||||||
|
l2in_buffer.node :=* l2in
|
||||||
|
|
||||||
|
private val l2out_buffer = LazyModule(new TLBuffer(BufferParams.flow, BufferParams.none))
|
||||||
|
l2out :*= l2out_buffer.node
|
||||||
|
l2out_buffer.node :*= l1tol2.node
|
||||||
|
|
||||||
cbus.node :=
|
cbus.node :=
|
||||||
TLBuffer()(
|
TLBuffer()(
|
||||||
@ -43,8 +49,6 @@ trait CoreplexNetwork extends HasCoreplexParameters {
|
|||||||
TLWidthWidget(l1tol2_beatBytes)(
|
TLWidthWidget(l1tol2_beatBytes)(
|
||||||
l1tol2.node)
|
l1tol2.node)
|
||||||
|
|
||||||
l2out :*= l1tol2.node
|
|
||||||
|
|
||||||
val root = new Device {
|
val root = new Device {
|
||||||
def describe(resources: ResourceBindings): Description = {
|
def describe(resources: ResourceBindings): Description = {
|
||||||
val width = resources("width").map(_.value)
|
val width = resources("width").map(_.value)
|
||||||
@ -134,7 +138,7 @@ trait BankedL2CoherenceManagers extends CoreplexNetwork {
|
|||||||
val node = TLOutputNode()
|
val node = TLOutputNode()
|
||||||
for (bank <- 0 until l2Config.nBanksPerChannel) {
|
for (bank <- 0 until l2Config.nBanksPerChannel) {
|
||||||
val offset = (bank * l2Config.nMemoryChannels) + channel
|
val offset = (bank * l2Config.nMemoryChannels) + channel
|
||||||
in := TLBuffer(BufferParams.flow)(l1tol2.node)
|
in := TLBuffer(BufferParams.flow, BufferParams.none)(l1tol2.node)
|
||||||
node := TLFilter(AddressSet(offset * l1tol2_lineBytes, mask))(out)
|
node := TLFilter(AddressSet(offset * l1tol2_lineBytes, mask))(out)
|
||||||
}
|
}
|
||||||
node
|
node
|
||||||
|
@ -36,8 +36,8 @@ trait HasTopLevelNetworks extends HasPeripheryParameters {
|
|||||||
val socBus = LazyModule(new TLXbar) // Wide or unordered-access slave devices (TL-UH)
|
val socBus = LazyModule(new TLXbar) // Wide or unordered-access slave devices (TL-UH)
|
||||||
val peripheryBus = LazyModule(new TLXbar) // Narrow and ordered-access slave devices (TL-UL)
|
val peripheryBus = LazyModule(new TLXbar) // Narrow and ordered-access slave devices (TL-UL)
|
||||||
val intBus = LazyModule(new IntXbar) // Interrupts
|
val intBus = LazyModule(new IntXbar) // Interrupts
|
||||||
val fsb = LazyModule(new TLBuffer) // Master devices talking to the frontside of the L2
|
val fsb = LazyModule(new TLBuffer(BufferParams.none)) // Master devices talking to the frontside of the L2
|
||||||
val bsb = LazyModule(new TLBuffer) // Slave devices talking to the backside of the L2
|
val bsb = LazyModule(new TLBuffer(BufferParams.none)) // Slave devices talking to the backside of the L2
|
||||||
val mem = Seq.fill(nMemoryChannels) { LazyModule(new TLXbar) } // Ports out to DRAM
|
val mem = Seq.fill(nMemoryChannels) { LazyModule(new TLXbar) } // Ports out to DRAM
|
||||||
|
|
||||||
// The peripheryBus hangs off of socBus;
|
// The peripheryBus hangs off of socBus;
|
||||||
|
Loading…
Reference in New Issue
Block a user