优先级mux引入了额外的一拍数据
This commit is contained in:
@@ -41,7 +41,7 @@ trait CDRInOverSample{ this: CDRInBase =>
|
||||
}
|
||||
|
||||
val syncSerDat = ShiftRegister(
|
||||
PriorityMux( (0 until sampleRate).map{ i => (( arbSel === i.U ) -> sampleReg(i)) } )
|
||||
Mux1H( (0 until sampleRate).map{ i => (( arbSel === i.U ) -> sampleReg(i)) } )
|
||||
, 2 )
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user