Skip to content

Commit

Permalink
[hw,lc_ctrl,rtl] Expose Raw test RMA signal
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Schilling <[email protected]>
  • Loading branch information
Razer6 committed Dec 6, 2024
1 parent d74789f commit 0d47575
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hw/ip/lc_ctrl/data/lc_ctrl.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@
package: "kmac_pkg"
}
// Life cycle broadcast signals
{ struct: "lc_tx"
type: "uni"
name: "lc_raw_test_rma"
act: "req"
default: "lc_ctrl_pkg::Off"
package: "lc_ctrl_pkg"
}
{ struct: "lc_tx"
type: "uni"
name: "lc_dft_en"
Expand Down
1 change: 1 addition & 0 deletions hw/ip/lc_ctrl/doc/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Referring to the [Comportable guideline for peripheral device functionality](htt
| otp_lc_data | otp_ctrl_pkg::otp_lc_data | uni | rcv | 1 | |
| lc_otp_program | otp_ctrl_pkg::lc_otp_program | req_rsp | req | 1 | |
| kmac_data | kmac_pkg::app | req_rsp | req | 1 | |
| lc_raw_test_rma | lc_ctrl_pkg::lc_tx | uni | req | 1 | |
| lc_dft_en | lc_ctrl_pkg::lc_tx | uni | req | 1 | |
| lc_nvm_debug_en | lc_ctrl_pkg::lc_tx | uni | req | 1 | |
| lc_hw_debug_en | lc_ctrl_pkg::lc_tx | uni | req | 1 | |
Expand Down
3 changes: 3 additions & 0 deletions hw/ip/lc_ctrl/rtl/lc_ctrl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ module lc_ctrl
// Life cycle broadcast outputs (all of them are registered).
// SEC_CM: INTERSIG.MUBI
output lc_tx_t lc_dft_en_o,
output lc_tx_t lc_raw_test_rma_o,
output lc_tx_t lc_nvm_debug_en_o,
output lc_tx_t lc_hw_debug_en_o,
output lc_tx_t lc_cpu_en_o,
Expand Down Expand Up @@ -585,6 +586,8 @@ module lc_ctrl
.lc_en_o(lc_raw_test_rma_buf)
);

assign lc_raw_test_rma_o = lc_raw_test_rma;

assign lc_otp_vendor_test_o.ctrl = (lc_tx_test_true_strict(lc_raw_test_rma_buf[0])) ?
otp_vendor_test_ctrl_q : '0;
assign otp_vendor_test_status = (lc_tx_test_true_strict(lc_raw_test_rma_buf[1])) ?
Expand Down
22 changes: 22 additions & 0 deletions hw/top_darjeeling/data/autogen/top_darjeeling.gen.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,17 @@
top_signame: kmac_app
index: 1
}
{
name: lc_raw_test_rma
struct: lc_tx
package: lc_ctrl_pkg
type: uni
act: req
width: 1
default: lc_ctrl_pkg::Off
inst_name: lc_ctrl
index: -1
}
{
name: lc_dft_en
struct: lc_tx
Expand Down Expand Up @@ -18605,6 +18616,17 @@
top_signame: kmac_app
index: 1
}
{
name: lc_raw_test_rma
struct: lc_tx
package: lc_ctrl_pkg
type: uni
act: req
width: 1
default: lc_ctrl_pkg::Off
inst_name: lc_ctrl
index: -1
}
{
name: lc_dft_en
struct: lc_tx
Expand Down
1 change: 1 addition & 0 deletions hw/top_darjeeling/rtl/autogen/top_darjeeling.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,7 @@ module top_darjeeling #(
.lc_otp_program_i(lc_ctrl_lc_otp_program_rsp),
.kmac_data_o(kmac_app_req[1]),
.kmac_data_i(kmac_app_rsp[1]),
.lc_raw_test_rma_o(),
.lc_dft_en_o(lc_ctrl_lc_dft_en),
.lc_nvm_debug_en_o(),
.lc_hw_debug_en_o(lc_ctrl_lc_hw_debug_en),
Expand Down
22 changes: 22 additions & 0 deletions hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -2182,6 +2182,17 @@
top_signame: kmac_app
index: 1
}
{
name: lc_raw_test_rma
struct: lc_tx
package: lc_ctrl_pkg
type: uni
act: req
width: 1
default: lc_ctrl_pkg::Off
inst_name: lc_ctrl
index: -1
}
{
name: lc_dft_en
struct: lc_tx
Expand Down Expand Up @@ -17715,6 +17726,17 @@
top_signame: kmac_app
index: 1
}
{
name: lc_raw_test_rma
struct: lc_tx
package: lc_ctrl_pkg
type: uni
act: req
width: 1
default: lc_ctrl_pkg::Off
inst_name: lc_ctrl
index: -1
}
{
name: lc_dft_en
struct: lc_tx
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/rtl/autogen/top_earlgrey.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,7 @@ module top_earlgrey #(
.lc_otp_program_i(lc_ctrl_lc_otp_program_rsp),
.kmac_data_o(kmac_app_req[1]),
.kmac_data_i(kmac_app_rsp[1]),
.lc_raw_test_rma_o(),
.lc_dft_en_o(lc_ctrl_lc_dft_en),
.lc_nvm_debug_en_o(lc_ctrl_lc_nvm_debug_en),
.lc_hw_debug_en_o(lc_ctrl_lc_hw_debug_en),
Expand Down

0 comments on commit 0d47575

Please sign in to comment.