未验证 提交 a1b789cf 编写于 作者: Y Yinan Xu 提交者: GitHub

sbuffer: init flush counter to avoid X state (#707)

上级 5b914e39
......@@ -93,7 +93,8 @@ class NewSbuffer extends XSModule with HasSbufferConst {
val mask = Reg(Vec(StoreBufferSize, Vec(CacheLineWords, Vec(DataBytes, Bool()))))
val data = dataModule.io.dataOut
val stateVec = RegInit(VecInit(Seq.fill(StoreBufferSize)(s_invalid)))
val cohCount = Reg(Vec(StoreBufferSize, UInt(countBits.W)))
val cohCount = RegInit(VecInit(Seq.fill(StoreBufferSize)(0.U(countBits.W))))
/*
idle --[flush]--> drian_sbuffer --[buf empty]--> idle
--[buf full]--> replace --[dcache resp]--> idle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册