使用测试IO上跳沿替代写有效的ctrlTransmit 写入,效果很好,可以认为,当前有问题的是寄存器写入
This commit is contained in:
@@ -32,6 +32,8 @@ val reset_calib = Input(Bool())
|
||||
|
||||
val interrupt = Output(Bool())
|
||||
|
||||
val testIO = Input(Bool())
|
||||
|
||||
}
|
||||
|
||||
class BackBoardMstBase extends Module{ //10M
|
||||
@@ -170,6 +172,11 @@ trait BackBoardMstFSMC{ this: BackBoardMstBase =>
|
||||
}
|
||||
|
||||
//10M
|
||||
when(~RegNext( io.testIO, false.B ) & io.testIO){
|
||||
ctrlTransmit := true.B
|
||||
}
|
||||
|
||||
|
||||
when( isAckReady ){
|
||||
isAckReady := false.B
|
||||
}
|
||||
@@ -191,7 +198,7 @@ trait BackBoardMstFSMC{ this: BackBoardMstBase =>
|
||||
|
||||
|
||||
when( wrRegAddr === 1.U ){
|
||||
ctrlTransmit := wrRegData.extract(5)
|
||||
// ctrlTransmit := wrRegData.extract(5)
|
||||
|
||||
ctrlSynch := wrRegData.extract(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user