Skip to content

Commit

Permalink
Merged PR 127057: added a missing default case to hmac_drbg_interface
Browse files Browse the repository at this point in the history
added a missing default case to hmac_drbg_interface

Related work items: #565291
  • Loading branch information
mojtaba-bisheh authored and calebofearth committed Oct 2, 2023
1 parent 2c300e0 commit e90baa9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ecc/rtl/ecc_hmac_drbg_interface.sv
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,21 @@ module ecc_hmac_drbg_interface#(
end
else
if (hmac_done_edge) begin
/* verilator lint_off CASEINCOMPLETE */
unique case (state_reg) inside
LFSR_ST: lfsr_seed_reg <= hmac_drbg_result[147 : 0];
LAMBDA_ST: lambda_reg <= hmac_drbg_result;
SCALAR_RND_ST: scalar_rnd_reg <= hmac_drbg_result;
MASKING_RND_ST: masking_rnd_reg <= hmac_drbg_result;
KEYGEN_ST: drbg_reg <= hmac_drbg_result;
SIGN_ST: drbg_reg <= hmac_drbg_result;
default: begin
lambda_reg <= '0;
scalar_rnd_reg <= '0;
masking_rnd_reg <= '0;
drbg_reg <= '0;
lfsr_seed_reg <= LFSR_INIT_SEED;
end
endcase
/* verilator lint_on CASEINCOMPLETE */
end
end //reg_update

Expand Down

0 comments on commit e90baa9

Please sign in to comment.