1
0
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:
Dustin Richmond 2015-07-15 16:44:50 -07:00
parent 28fdcedfba
commit 84ebc073f1

View File

@ -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