sync1~3每次触发之后复位到0xffffffff,屏蔽spi的log

This commit is contained in:
Ruige Lee
2025-06-09 17:21:14 +08:00
parent b0003388a9
commit 9a85cfd9b4

View File

@@ -453,12 +453,12 @@ trait InterfaceMCUop{ this: InterfaceBase =>
oSpi.io.datar := Mux(cReg.spiSel === 1.U, datar, 0.U) oSpi.io.datar := Mux(cReg.spiSel === 1.U, datar, 0.U)
oQSpi.io.datar := Mux(cReg.spiSel === 2.U, datar, 0.U) oQSpi.io.datar := Mux(cReg.spiSel === 2.U, datar, 0.U)
when( isEnW ){ // when( isEnW ){
printf(s"SPI/QSPI Write 0x%x, @0x%x\n", dataw, addrw) // printf(s"SPI/QSPI Write 0x%x, @0x%x\n", dataw, addrw)
} // }
when( isEnR ){ // when( isEnR ){
printf(s"SPI/QSPI Readout 0x%x, @0x%x\n", datar, addrr) // printf(s"SPI/QSPI Readout 0x%x, @0x%x\n", datar, addrr)
} // }
@@ -756,8 +756,10 @@ trait InterfaceSync{ this: InterfaceBase =>
when( cReg.syncPoint === sReg.recoTimeStamp ){ //时间到达sync0时间点 when( cReg.syncPoint === sReg.recoTimeStamp ){ //时间到达sync0时间点
syncOffsetCnt(i) := 0.U syncOffsetCnt(i) := 0.U
} .elsewhen( syncOffsetCnt(i) <= sReg.syncOffset(i) ){ } .elsewhen( syncOffsetCnt(i) < sReg.syncOffset(i) ){
syncOffsetCnt(i) := syncOffsetCnt(i) + 1.U syncOffsetCnt(i) := syncOffsetCnt(i) + 1.U
} .elsewhen( syncOffsetCnt(i) === sReg.syncOffset(i) ){
syncOffsetCnt(i) := "hFFFFFFFF".U(32.W)
} }
when( syncOffsetCnt(i) === sReg.syncOffset(i) ){ when( syncOffsetCnt(i) === sReg.syncOffset(i) ){