cPtr需要同步复位
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user