mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-23 13:27:16 -04:00
fixed typo in LZC
This commit is contained in:
parent
18333d36cb
commit
2dfbf15ff9
1 changed files with 1 additions and 1 deletions
|
@ -33,6 +33,6 @@ module lzc #(parameter WIDTH = 1) (
|
|||
always_comb begin
|
||||
i = 0;
|
||||
while (~num[WIDTH-1-i] & (i < WIDTH)) i = i+1; // search for leading one
|
||||
ZeroCnt = i[$clog2(WIDTH)-1:0];
|
||||
ZeroCnt = i[$clog2(WIDTH+1)-1:0];
|
||||
end
|
||||
endmodule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue