1
0

re-merge mem resp queues

This commit is contained in:
Henry Cook 2015-03-17 12:22:57 -07:00
parent 1471d9debc
commit 9bedde9a8a

View File

@ -544,21 +544,11 @@ class MemPipeIOMemIOConverter(numRequests: Int, refillCycles: Int) extends Modul
io.mem.req_data <> io.cpu.req_data io.mem.req_data <> io.cpu.req_data
// Have separate queues to allow for different mem implementations // Have separate queues to allow for different mem implementations
val resp_dataq = Module((new HellaQueue(numEntries)) { new MemData }) val resp_data_q = Module((new HellaQueue(numEntries)) { new MemResp })
resp_dataq.io.enq.valid := io.mem.resp.valid resp_data_q.io.enq <> io.mem.resp
resp_dataq.io.enq.bits.data := io.mem.resp.bits.data io.cpu.resp <> resp_data_q.io.deq
val resp_tagq = Module((new HellaQueue(numEntries)) { new MemTag }) inc := resp_data_q.io.deq.fire()
resp_tagq.io.enq.valid := io.mem.resp.valid
resp_tagq.io.enq.bits.tag := io.mem.resp.bits.tag
io.cpu.resp.valid := resp_dataq.io.deq.valid && resp_tagq.io.deq.valid
io.cpu.resp.bits.data := resp_dataq.io.deq.bits.data
io.cpu.resp.bits.tag := resp_tagq.io.deq.bits.tag
resp_dataq.io.deq.ready := io.cpu.resp.ready
resp_tagq.io.deq.ready := io.cpu.resp.ready
inc := resp_dataq.io.deq.fire()
dec := io.mem.req_cmd.fire() && !io.mem.req_cmd.bits.rw dec := io.mem.req_cmd.fire() && !io.mem.req_cmd.bits.rw
} }