回去调spi模块,临时提交,后续需要审查

This commit is contained in:
RuigeLee
2024-12-02 15:00:03 +08:00
parent a1e389ecdc
commit 394854cdce
6 changed files with 36 additions and 66 deletions

View File

@@ -29,7 +29,7 @@ trait CDRInOverSample{ this: CDRInBase =>
for( i <- 0 until sampleRate ){
arbShiftData(i) := Cat( arbShiftData(i)(22,0), RegNext(sampleReg(i)) )
when( arbShiftData(i) === "h555555".U & ~isArbLock ){
when( arbShiftData(i) === "h5A5A5A".U & ~isArbLock ){
isArbLock := true.B
arbSel := i.U
}
@@ -50,7 +50,7 @@ trait CDRInAxis{ this: CDRInBase =>
def HeaderByte: Int = 8
val ETH_PRE = "h55".U(8.W)
val ETH_PRE = "h5A".U(8.W)
val ETH_SFD = "hD5".U(8.W)
val STATE_IDLE = 0.U