fix bug in NastiRouter
This commit is contained in:
parent
db09f310a1
commit
34852e406d
@ -408,8 +408,8 @@ class NastiRouter(nSlaves: Int, routeSel: UInt => UInt)(implicit p: Parameters)
|
|||||||
aw_ready = aw_ready || (s.aw.ready && aw_route(i))
|
aw_ready = aw_ready || (s.aw.ready && aw_route(i))
|
||||||
|
|
||||||
val chosen = Reg(init = Bool(false))
|
val chosen = Reg(init = Bool(false))
|
||||||
when (s.aw.fire()) { chosen := Bool(true) }
|
|
||||||
when (s.w.fire() && s.w.bits.last) { chosen := Bool(false) }
|
when (s.w.fire() && s.w.bits.last) { chosen := Bool(false) }
|
||||||
|
when (s.aw.fire()) { chosen := Bool(true) }
|
||||||
|
|
||||||
s.w.valid := io.master.w.valid && chosen
|
s.w.valid := io.master.w.valid && chosen
|
||||||
s.w.bits := io.master.w.bits
|
s.w.bits := io.master.w.bits
|
||||||
|
Loading…
Reference in New Issue
Block a user