修改同步点调整逻辑
This commit is contained in:
@@ -973,7 +973,7 @@ trait InterfaceSync{ this: InterfaceBase =>
|
|||||||
val syncResetCnt = for( i <- 0 until 4 ) yield { RegInit(0.U(16.W)) } //空开第0位
|
val syncResetCnt = for( i <- 0 until 4 ) yield { RegInit(0.U(16.W)) } //空开第0位
|
||||||
|
|
||||||
|
|
||||||
when( cReg.syncPoint === cReg.recoTimeStamp ){ //时间到达sync0时间点
|
when( cReg.syncPoint >= cReg.recoTimeStamp ){ //时间到达sync0时间点
|
||||||
syncSign(0) := true.B
|
syncSign(0) := true.B
|
||||||
syncPoint := syncPoint + cReg.syncPeroid
|
syncPoint := syncPoint + cReg.syncPeroid
|
||||||
} .elsewhen( ~cReg.syncCfg(4+0) & syncResetCnt(0) === cReg.syncWidth(0) ){
|
} .elsewhen( ~cReg.syncCfg(4+0) & syncResetCnt(0) === cReg.syncWidth(0) ){
|
||||||
@@ -984,7 +984,7 @@ trait InterfaceSync{ this: InterfaceBase =>
|
|||||||
|
|
||||||
for( i <- 1 until 4 ) {
|
for( i <- 1 until 4 ) {
|
||||||
|
|
||||||
when( cReg.syncPoint === cReg.recoTimeStamp ){ //时间到达sync0时间点
|
when( cReg.syncPoint >= cReg.recoTimeStamp ){ //时间到达sync0时间点
|
||||||
syncOffsetCnt(i) := 0.U
|
syncOffsetCnt(i) := 0.U
|
||||||
} .elsewhen( syncOffsetCnt(i) < cReg.syncOffset(i) ){
|
} .elsewhen( syncOffsetCnt(i) < cReg.syncOffset(i) ){
|
||||||
syncOffsetCnt(i) := syncOffsetCnt(i) + 1.U
|
syncOffsetCnt(i) := syncOffsetCnt(i) + 1.U
|
||||||
|
|||||||
Reference in New Issue
Block a user