Skip to content

Commit

Permalink
Merge pull request #129 from flaviens/patch-1
Browse files Browse the repository at this point in the history
Symplify variable-length loop syntax in el2_exu_alu_ctl.sv
  • Loading branch information
tmichalak authored Dec 6, 2023
2 parents 4a065ab + 2e3491e commit 83adb04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions design/exu/el2_exu_alu_ctl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ import el2_pkg::*;
bitmanip_dw_lzd_enc[5:0]= 6'b0;
found = 1'b0;

for (int i=0; i<32 && found==0; i++) begin
if (bitmanip_lzd_os[31] == 1'b0) begin
for (int i=0; i<32; i++) begin
if (bitmanip_lzd_os[31] == 1'b0 && found == 0) begin
bitmanip_dw_lzd_enc[5:0]= bitmanip_dw_lzd_enc[5:0] + 6'b00_0001;
bitmanip_lzd_os[31:0] = bitmanip_lzd_os[31:0] << 1;
end
Expand Down

0 comments on commit 83adb04

Please sign in to comment.