mirror of
https://github.com/KastnerRG/riffa.git
synced 2024-12-24 22:58:54 +08:00
Fixed a small bit-width related issue in counter.v.
Fixed to satisfy linter. No change in functionality.
This commit is contained in:
parent
28fdcedfba
commit
84ebc073f1
@ -64,7 +64,7 @@ module counter
|
||||
assign VALUE = rCtrValue;
|
||||
always @(posedge CLK) begin
|
||||
if(RST_IN) begin
|
||||
rCtrValue <= C_RST_VALUE;
|
||||
rCtrValue <= C_RST_VALUE[clog2s(C_MAX_VALUE+1)-1:0];
|
||||
end else if(wEnable) begin
|
||||
rCtrValue <= rCtrValue + 1;
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user