dout16增加一个err灯
This commit is contained in:
@@ -25,8 +25,11 @@ with BackBoardSlvOut16{
|
|||||||
val out = IO(Output(UInt(16.W)))
|
val out = IO(Output(UInt(16.W)))
|
||||||
val flt = IO(Input(Vec(2, Bool())))
|
val flt = IO(Input(Vec(2, Bool())))
|
||||||
val v24Det = IO(Input(Bool()))
|
val v24Det = IO(Input(Bool()))
|
||||||
|
val LED_ERR = IO(Output(Bool()))
|
||||||
val outReg = RegInit(0.U(16.W))
|
val outReg = RegInit(0.U(16.W))
|
||||||
|
|
||||||
|
LED_ERR := v24Det
|
||||||
|
|
||||||
when( isCrcPass & downRegTemp(0)(3,0) === 0.U ){
|
when( isCrcPass & downRegTemp(0)(3,0) === 0.U ){
|
||||||
outReg := Cat(downRegTemp(3), downRegTemp(2))
|
outReg := Cat(downRegTemp(3), downRegTemp(2))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ module do16_top(
|
|||||||
|
|
||||||
input DCIn,
|
input DCIn,
|
||||||
output LED_PR,
|
output LED_PR,
|
||||||
|
output LED_ERR,
|
||||||
output [15:0] out,
|
output [15:0] out,
|
||||||
input flt_0,
|
input flt_0,
|
||||||
input flt_1,
|
input flt_1,
|
||||||
@@ -295,6 +296,7 @@ DOut16 i_dout16(
|
|||||||
// .param_batchID(`BATCHID),
|
// .param_batchID(`BATCHID),
|
||||||
.param_serial(`SERIAL),
|
.param_serial(`SERIAL),
|
||||||
.LED_PR(LED_PR),
|
.LED_PR(LED_PR),
|
||||||
|
.LED_ERR(LED_ERR),
|
||||||
.out(out),
|
.out(out),
|
||||||
.flt_0(flt_0),
|
.flt_0(flt_0),
|
||||||
.flt_1(flt_1),
|
.flt_1(flt_1),
|
||||||
|
|||||||
Reference in New Issue
Block a user