修改key策略

This commit is contained in:
RuigeLee
2025-09-05 17:15:04 +08:00
parent d5523eaa46
commit 4bc5e2927e
3 changed files with 25 additions and 23 deletions

View File

@@ -611,12 +611,19 @@ trait MstSlvSwitchB8B4{ this: MstSlvSwitchBase =>
}
}
trait MstSlvSwitchCDRIn{ this: MstSlvSwitchBase =>
val cdrSelB = interface.io.cReg.cdrParam(15,8) === "h60".U && interface.io.cReg.b8b4Sel(7,0) === 1.U
val cdrSelC = interface.io.cReg.cdrParam(15,8) === "h60".U && interface.io.cReg.b8b4Sel(7,0) === 2.U
val cdrSelA = ~cdrSelB & ~cdrSelC
}
class MstSlvSwitch extends MstSlvSwitchBase
with MstSlvSwitchMaster
with MstSlvSwitchSlave
with MstSlvSwitchWatchDog
with MstSlvSwitchDataPath
with MstSlvSwitchB8B4{
with MstSlvSwitchB8B4
with MstSlvSwitchCDRIn{