未验证 提交 785df9f0 编写于 作者: W William Wang 提交者: GitHub

Merge pull request #50 from RISCVERS/freelist-remove0

freelist: init freelist without preg0
......@@ -19,7 +19,7 @@ class FreeList extends XSModule {
val deallocPregs = Input(Vec(CommitWidth, UInt(PhyRegIdxWidth.W)))
})
val freeList = RegInit(VecInit(Seq.tabulate(NRPhyRegs)(i => i.U(PhyRegIdxWidth.W))))
val freeList = RegInit(VecInit(Seq.tabulate(NRPhyRegs-1)(i => (i+1).U(PhyRegIdxWidth.W))))
val headPtr = RegInit(0.U((PhyRegIdxWidth+1).W))
val tailPtr = RegInit((1 << PhyRegIdxWidth).U((PhyRegIdxWidth+1).W))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册