Skip to content

Commit

Permalink
[memutil] Fix width mismatch
Browse files Browse the repository at this point in the history
The nonce isn't an int variable, assign a arbitrary-width zero instead
of an "int zero".

Signed-off-by: Philipp Wagner <[email protected]>
  • Loading branch information
imphil committed Jul 20, 2021
1 parent 92bbc7b commit e453727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ip/prim/rtl/prim_util_get_scramble_params.svh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
return 0;
end

nonce = 0;
nonce = '0;
nonce[NonceWidth-1:0] = nonce_i;
return 1;
endfunction
Expand Down

0 comments on commit e453727

Please sign in to comment.