1
0

fix NASTI -> MemIO converter bug

This commit is contained in:
Yunsup Lee 2015-10-19 21:43:59 -07:00
parent da5fe84f53
commit cedef98045

View File

@ -213,7 +213,7 @@ class MemIONastiIOConverter(cacheBlockOffsetBits: Int)(implicit p: Parameters) e
when (io.nasti.w.fire() && io.nasti.w.bits.last) { b_ok := Bool(true) } when (io.nasti.w.fire() && io.nasti.w.bits.last) { b_ok := Bool(true) }
val id_q = Module(new Queue(UInt(width = nastiWIdBits), 2)) val id_q = Module(new Queue(UInt(width = nastiWIdBits), 2))
id_q.io.enq.valid := io.nasti.aw.valid id_q.io.enq.valid := io.nasti.aw.valid && io.mem.req_cmd.ready
id_q.io.enq.bits := io.nasti.aw.bits.id id_q.io.enq.bits := io.nasti.aw.bits.id
id_q.io.deq.ready := io.nasti.b.ready && b_ok id_q.io.deq.ready := io.nasti.b.ready && b_ok