dout16增加一个err灯

This commit is contained in:
RuigeLee
2024-06-28 14:44:04 +08:00
parent f008df4074
commit 862028dac7
2 changed files with 5 additions and 0 deletions

View File

@@ -25,8 +25,11 @@ with BackBoardSlvOut16{
val out = IO(Output(UInt(16.W)))
val flt = IO(Input(Vec(2, Bool())))
val v24Det = IO(Input(Bool()))
val LED_ERR = IO(Output(Bool()))
val outReg = RegInit(0.U(16.W))
LED_ERR := v24Det
when( isCrcPass & downRegTemp(0)(3,0) === 0.U ){
outReg := Cat(downRegTemp(3), downRegTemp(2))
}