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))
}

View File

@@ -20,6 +20,7 @@ module do16_top(
input DCIn,
output LED_PR,
output LED_ERR,
output [15:0] out,
input flt_0,
input flt_1,
@@ -295,6 +296,7 @@ DOut16 i_dout16(
// .param_batchID(`BATCHID),
.param_serial(`SERIAL),
.LED_PR(LED_PR),
.LED_ERR(LED_ERR),
.out(out),
.flt_0(flt_0),
.flt_1(flt_1),