优先级mux引入了额外的一拍数据

This commit is contained in:
RuigeLee
2024-11-12 15:55:20 +08:00
parent 9e0d0a4177
commit 392ebf902c
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ class CDROut extends Module{
} .elsewhen( stateCurr === STATE_PAYLOAD ){
shiftData := io.axis.bits.tdata
} .elsewhen( stateCurr === STATE_FCS ){
shiftData := PriorityMux(Seq(
shiftData := Mux1H(Seq(
( byteCnt === 0.U) -> ~crcOut( 7,0),
( byteCnt === 1.U) -> ~crcOut(15,8),
( byteCnt === 2.U) -> ~crcOut(23,16),