bug 调整主站SM的错误控制,增加断言约束sm fifo行为

This commit is contained in:
Ruige Lee
2025-05-19 16:52:55 +08:00
parent 4849949685
commit 090a10ff17
2 changed files with 4 additions and 2 deletions

View File

@@ -150,8 +150,8 @@ abstract class MasterParserBase extends Module{
io.rxEnq := io.downOut.fire & io.downOut.bits.tlast
io.txDeq := io.upIn.fire & io.upIn.bits.tlast
io.rxEnq := io.upIn.fire & io.upIn.bits.tlast
io.txDeq := io.downOut.fire & io.downOut.bits.tlast

View File

@@ -50,10 +50,12 @@ abstract class SMUnitBase(depth: Int = 4) extends Module {
when( io.enq ){
wPtr := wPtr + 1.U
assert( ~isFull)
}
when( io.deq ){
rPtr := rPtr + 1.U
assert( ~isEmpty )
}
for( i <- 0 until depth ){