dout增加公共端IO

This commit is contained in:
RuigeLee
2024-06-14 19:00:41 +08:00
parent 715a1e6c08
commit 7aa7ea7ec6
10 changed files with 5 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ with BackBoardSlvStatusPR
with BackBoardSlvOut16{
val out = IO(Output(UInt(16.W)))
val flt = IO(Input(Vec(2, Bool())))
val v24Det = IO(Input(Bool()))
val outReg = RegInit(0.U(16.W))
when( isCrcPass & downRegTemp(0)(3,0) === 0.U ){
@@ -40,6 +41,7 @@ with BackBoardSlvOut16{
upReg(2) := outReg(7,0)
upReg(3) := outReg(15,8)
upReg(4) := Cat( ~flt(1), ~flt(0) )
upReg(5) := Cat( ~v24Det, 0.U(7.W) )
}
when( statusPage === 1.U ){

View File

@@ -22,7 +22,8 @@ module do16_top(
output LED_PR,
output [15:0] out,
input flt_0,
input flt_1
input flt_1,
input v24Det
);
@@ -297,6 +298,7 @@ DOut16 i_dout16(
.out(out),
.flt_0(flt_0),
.flt_1(flt_1),
.v24Det(v24Det),
.io_lvdsSlv_downstream_rx_data_out(downstream_rx_data_out),
.io_lvdsSlv_downstream_rx_data_valid(downstream_rx_data_valid),