1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Force possible floating point parameter value to integer when taking clog2

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2022-11-01 23:56:27 -07:00
parent 5e528e0057
commit 2199a15c75
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ initial begin
end
end
parameter COUNT_WIDTH = $clog2(COUNT_125US);
parameter COUNT_WIDTH = $clog2($rtoi(COUNT_125US));
localparam [1:0]
SYNC_DATA = 2'b10,

View File

@ -68,7 +68,7 @@ initial begin
end
end
parameter COUNT_WIDTH = $clog2(COUNT_125US);
parameter COUNT_WIDTH = $clog2($rtoi(COUNT_125US));
localparam [1:0]
SYNC_DATA = 2'b10,