cPtr需要同步复位

This commit is contained in:
RuigeLee
2025-09-04 16:33:24 +08:00
parent 976a2674aa
commit 4dd1841921

View File

@@ -92,7 +92,9 @@ abstract class SMUnitBase(depth: Int = 4) extends Module with RequireAsyncReset{
io.cnt := cPtr - rPtr io.cnt := cPtr - rPtr
when( io.isComf ){ when( io.flush ){
cPtr := 0.U
} .elsewhen( io.isComf ){
cPtr := wPtr cPtr := wPtr
} }