Skip to content

Commit

Permalink
Fix the missing flow argument in TileLink/ToAXI4 (chipsalliance#3505)
Browse files Browse the repository at this point in the history
`flow` must be explicitly passed to `Queue.irrevocable` to avoid
mismatching the arguments.
  • Loading branch information
poemonsense authored and Tang-Haojin committed Oct 8, 2023
1 parent ce0dabd commit 3878f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/tilelink/ToAXI4.scala
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class TLToAXI4(val combinational: Boolean = true, val adapterName: Option[String
val depth = if (combinational) 1 else 2
val out_arw = Wire(Decoupled(new AXI4BundleARW(out.params)))
val out_w = Wire(chiselTypeOf(out.w))
out.w :<>= Queue.irrevocable(out_w, entries=depth, combinational)
val queue_arw = Queue.irrevocable(out_arw, entries=depth, combinational)
out.w :<>= Queue.irrevocable(out_w, entries=depth, flow=combinational)
val queue_arw = Queue.irrevocable(out_arw, entries=depth, flow=combinational)

// Fan out the ARW channel to AR and AW
out.ar.bits := queue_arw.bits
Expand Down

0 comments on commit 3878f0a

Please sign in to comment.