Skip to content

Commit

Permalink
Merge pull request #213 from chipsalliance/dev-goog
Browse files Browse the repository at this point in the history
Fixing LEC Formality_Error_Code reported in caliptra_prim_assert_sec_…
  • Loading branch information
bharatpillilli authored Sep 13, 2023
2 parents a88ceb6 + 00d2f45 commit a333142
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
17 changes: 0 additions & 17 deletions src/caliptra_prim/rtl/caliptra_prim_assert_sec_cm.svh
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,4 @@
`CALIPTRA_ASSERT_PRIM_ONEHOT_ERROR_TRIGGER_ALERT(NAME_, \
REG_TOP_HIER_.u_caliptra_prim_reg_we_check.u_caliptra_prim_onehot_check, ALERT_, GATE_, MAX_CYCLES_)

// macros for security countermeasures that will trigger other errors
`define CALIPTRA_ASSERT_PRIM_FSM_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_ = 0, MAX_CYCLES_ = 2, CLK_ = clk_i, RST_ = !rst_ni) \
`CALIPTRA_ASSERT_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_, MAX_CYCLES_, unused_err_o, CLK_, RST_)

`define CALIPTRA_ASSERT_PRIM_COUNT_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_ = 0, MAX_CYCLES_ = 2, CLK_ = clk_i, RST_ = !rst_ni) \
`CALIPTRA_ASSERT_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_, MAX_CYCLES_, err_o, CLK_, RST_)

`define CALIPTRA_ASSERT_PRIM_DOUBLE_LFSR_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_ = 0, MAX_CYCLES_ = 2, CLK_ = clk_i, RST_ = !rst_ni) \
`CALIPTRA_ASSERT_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_, MAX_CYCLES_, err_o, CLK_, RST_)

`define CALIPTRA_ASSERT_PRIM_ONEHOT_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_ = 0, MAX_CYCLES_ = `_CALIPTRA_SEC_CM_ALERT_MAX_CYC, CLK_ = clk_i, RST_ = !rst_ni) \
`CALIPTRA_ASSERT_ERROR_TRIGGER_ERR(NAME_, PRIM_HIER_, ERR_, GATE_, MAX_CYCLES_, err_o, CLK_, RST_)

`define CALIPTRA_ASSERT_PRIM_REG_WE_ONEHOT_ERROR_TRIGGER_ERR(NAME_, REG_TOP_HIER_, ERR_, GATE_ = 0, MAX_CYCLES_ = `_CALIPTRA_SEC_CM_ALERT_MAX_CYC, CLK_ = clk_i, RST_ = !rst_ni) \
`CALIPTRA_ASSERT_PRIM_ONEHOT_ERROR_TRIGGER_ERR(NAME_, \
REG_TOP_HIER_.u_caliptra_prim_reg_we_check.u_caliptra_prim_onehot_check, ERR_, GATE_, MAX_CYCLES_, CLK_, RST_)

`endif // PRIM_ASSERT_SEC_CM_SVH
4 changes: 0 additions & 4 deletions src/csrng/rtl/csrng_reg_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -2059,10 +2059,6 @@ module csrng_reg_top #(
addr_hit[16]: begin
reg_rdata_next[7:0] = main_sm_state_qs;
end

default: begin
reg_rdata_next = '1;
end
endcase
end

Expand Down
4 changes: 0 additions & 4 deletions src/entropy_src/rtl/entropy_src_reg_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -3892,10 +3892,6 @@ module entropy_src_reg_top #(
addr_hit[56]: begin
reg_rdata_next[8:0] = main_sm_state_qs;
end

default: begin
reg_rdata_next = '1;
end
endcase
end

Expand Down

0 comments on commit a333142

Please sign in to comment.