Skip to content

Commit

Permalink
Top: add support for fixed ram latency
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense committed Sep 15, 2023
1 parent 1f9dbb5 commit d7c2b43
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/scala/top/Top.scala
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,20 @@ trait HaveAXI4MemPort {

val mem_xbar = TLXbar()
mem_xbar :=* TLBuffer() :=* TLCacheCork() :=* bankedNode

val ram_latency = 0
val buffers = Seq.fill(ram_latency)(TLBuffer())
val delayer = buffers.foldLeft(mem_xbar){ case (up, down) =>
down := up
down
}

memAXI4SlaveNode :=
AXI4UserYanker() :=
AXI4Deinterleaver(L3BlockSize) :=
TLToAXI4() :=
TLWidthWidget(L3BusWidth / 8) :=
mem_xbar
delayer

val memory = InModuleBody {
memAXI4SlaveNode.makeIOs()
Expand Down

0 comments on commit d7c2b43

Please sign in to comment.