提交 52d086b1 编写于 作者: Z zoujr

Ibuffer: Fix some bugs

上级 914a9c0a
......@@ -50,12 +50,13 @@ class Ibuffer extends XSModule {
// Enque
io.in.ready := enqValid
var enq_idx = WireInit(tail_ptr)
when(io.in.fire) {
var inWire = Wire(new IBufEntry)
inWire := DontCare
var enq_idx = WireInit(tail_ptr)
for(i <- 0 until PredictWidth) {
var inWire = Wire(new IBufEntry)
inWire := DontCare
ibuf_valid(enq_idx) := io.in.bits.mask(i)
inWire.inst := io.in.bits.instrs(i)
......@@ -74,9 +75,10 @@ class Ibuffer extends XSModule {
}
// Deque
var deq_idx = head_ptr
when(deqValid) {
var deq_idx = head_ptr
for(i <- 0 until DecodeWidth) {
var outWire = WireInit(ibuf(deq_idx))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册