Skip to content

Commit

Permalink
fixing lint errors from LMS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Norris committed Mar 27, 2024
1 parent f03b9ba commit 758a8db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/sha256/rtl/sha256.sv
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ module sha256

always_comb begin
unique case(wntz_w)
8'h1: wntz_iter = 'd0; //2**w - 1 (-1) (1st iteration is considered separately)
8'h2: wntz_iter = 'd2;
8'h4: wntz_iter = 'd14;
8'h8: wntz_iter = 'd254;
4'h1: wntz_iter = 'd0; //2**w - 1 (-1) (1st iteration is considered separately)
4'h2: wntz_iter = 'd2;
4'h4: wntz_iter = 'd14;
4'h8: wntz_iter = 'd254;
default: wntz_iter = 'd0;
endcase
end
Expand Down Expand Up @@ -339,11 +339,13 @@ module sha256
ready_flag_reg <= '0;
digest_reg <= '0;
valid_flag_reg <= '0;
core_digest_valid_reg <= '0;
end
else if (zeroize_reg) begin
ready_flag_reg <= '0;
digest_reg <= '0;
valid_flag_reg <= '0;
core_digest_valid_reg <= '0;
end
else begin
ready_flag_reg <= ready_flag;
Expand Down

0 comments on commit 758a8db

Please sign in to comment.