Skip to content

Commit

Permalink
rocketchip: don't waste too many sources on the AXI master port
Browse files Browse the repository at this point in the history
  • Loading branch information
terpstra committed Nov 23, 2016
1 parent c0b2799 commit 1e7d597
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/scala/rocketchip/Periphery.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ trait PeripheryMasterAXI4MMIOModule {

// PeripherySlaveAXI4 is an example, make your own cake pattern like this one.
trait PeripherySlaveAXI4 extends L2Crossbar {
private val idBits = 8
private val axiIdBits = 8
private val tlIdBits = 2 // at most 4 AXI requets inflight at a time

val l2_axi4 = AXI4BlindInputNode(AXI4MasterPortParameters(
masters = Seq(AXI4MasterParameters(
id = IdRange(0, 1 << idBits)))))
id = IdRange(0, 1 << axiIdBits)))))

l2.node := AXI4ToTL()(AXI4Fragmenter()(l2_axi4))
l2.node := TLSourceShrinker(1 << tlIdBits)(AXI4ToTL()(AXI4Fragmenter()(l2_axi4)))
}

trait PeripherySlaveAXI4Bundle extends L2CrossbarBundle {
Expand Down

0 comments on commit 1e7d597

Please sign in to comment.