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:
parent
5e528e0057
commit
2199a15c75
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user