Rx DMA 传输正确

This commit is contained in:
RuigeLee
2023-10-20 15:49:24 +08:00
parent 0215add0d4
commit f17d405369
2 changed files with 20 additions and 23 deletions

View File

@@ -107,6 +107,8 @@ trait RxBuffEnq{ this: RxBuffBase =>
} .otherwise{
assert(false.B, "Assert Failed, Rx Under Run")
}
}.elsewhen( recCnt === 5.U ){
recCnt := 6.U
}
}
@@ -117,7 +119,7 @@ trait RxBuffDeq{ this: RxBuffBase =>
when( io.deq.header.fire ){
when( isDeqPi ) { hValid(0) := false.B }
when( isDeqPo ) { hValid(1) := false.B }
} .elsewhen( recCnt === 5.U ){
} .elsewhen( io.enq.data.fire & recCnt === 5.U ){
when( isEnqPi ) { hValid(0) := true.B }
when( isEnqPo ) { hValid(1) := true.B }
}