提交 45004ac1 编写于 作者: L LinJiawei

Brq: fix ptr width bug

上级 541d085f
......@@ -32,7 +32,7 @@ class Brq extends XSModule {
val brMask = RegInit(0.U(BrqSize.W))
val wbFlags = RegInit(VecInit(Seq.fill(BrqSize)(false.B)))
val headPtr, tailPtr = RegInit(0.U((BrqSize+1).W))
val headPtr, tailPtr = RegInit(0.U((BrTagWidth+1).W))
def ptrToIndex(ptr: UInt): UInt = ptr.tail(1)
def isEmpty(ptr1: UInt, ptr2: UInt): Bool = ptr1 === ptr2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册