1
0

fix bug in NastiRouter

This commit is contained in:
Howard Mao 2016-03-28 12:22:43 -07:00
parent db09f310a1
commit 34852e406d

View File

@ -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