sync1~3每次触发之后复位到0xffffffff,屏蔽spi的log
This commit is contained in:
@@ -453,12 +453,12 @@ trait InterfaceMCUop{ this: InterfaceBase =>
|
||||
oSpi.io.datar := Mux(cReg.spiSel === 1.U, datar, 0.U)
|
||||
oQSpi.io.datar := Mux(cReg.spiSel === 2.U, datar, 0.U)
|
||||
|
||||
when( isEnW ){
|
||||
printf(s"SPI/QSPI Write 0x%x, @0x%x\n", dataw, addrw)
|
||||
}
|
||||
when( isEnR ){
|
||||
printf(s"SPI/QSPI Readout 0x%x, @0x%x\n", datar, addrr)
|
||||
}
|
||||
// when( isEnW ){
|
||||
// printf(s"SPI/QSPI Write 0x%x, @0x%x\n", dataw, addrw)
|
||||
// }
|
||||
// when( isEnR ){
|
||||
// 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时间点
|
||||
syncOffsetCnt(i) := 0.U
|
||||
} .elsewhen( syncOffsetCnt(i) <= sReg.syncOffset(i) ){
|
||||
} .elsewhen( syncOffsetCnt(i) < sReg.syncOffset(i) ){
|
||||
syncOffsetCnt(i) := syncOffsetCnt(i) + 1.U
|
||||
} .elsewhen( syncOffsetCnt(i) === sReg.syncOffset(i) ){
|
||||
syncOffsetCnt(i) := "hFFFFFFFF".U(32.W)
|
||||
}
|
||||
|
||||
when( syncOffsetCnt(i) === sReg.syncOffset(i) ){
|
||||
|
||||
Reference in New Issue
Block a user