Revert "尝试3相位"

This reverts commit c6aa7416fc.
This commit is contained in:
Ruige Lee
2025-08-13 17:54:39 +08:00
parent c6aa7416fc
commit 4955b7a278
2 changed files with 7 additions and 7 deletions

View File

@@ -70,21 +70,21 @@ trait CDRInMultiSample{ this: CDRInBase =>
//multiCLK 需要按照滞后相位接线即0为最先到达1次先
val multiCLK = IO(Input(Vec(3, Bool())))
val multiCLK = IO(Input(Vec(6, Bool())))
val sampleReg = Wire(Vec(5, Bool()))
val sampleReg = Wire(Vec(9, Bool()))
for( i <- 0 until 3 ) {
for( i <- 0 until 6 ) {
sampleReg(i) := withClockAndReset(multiCLK(i).asClock, reset.asBool){ ShiftRegister( io.serDat, 2 ) }
}
for( i <- 3 until 5 ){
sampleReg(i) := withClockAndReset(multiCLK(i-2).asClock, reset.asBool){ RegNext(sampleReg(i-2))}
for( i <- 6 until 9 ){
sampleReg(i) := withClockAndReset(multiCLK(i-3).asClock, reset.asBool){ RegNext(sampleReg(i-3))}
}
val asyncSerDat = PopCount(sampleReg) >= 3.U
val asyncSerDat = PopCount(sampleReg) >= 5.U
// sampleReg.count( (x: Bool) => (x === true.B) ) >= 12.U

View File

@@ -11,7 +11,7 @@ class ShinTopIO extends Bundle{
val uDatIn = Input(Bool())
val uDatOut = Output(Bool())
val multiCLK = Input(Vec(3, Bool()))
val multiCLK = Input(Vec(6, Bool()))
val iqspi = new QSPIInterfaceIO
val ospi = new SSPIInterfaceIO