verilator does not allow floating point number in defparam
|Assignee:||Wilson Snyder||% Done:|
Altera's DDR3 IP contains the following line:
defparam controller_phy_inst.ALTDQDQS_INPUT_FREQ = 533.0;
verilator errors out:
ddr3/altera/rtl/ddr3_mf_0002.v:324: syntax error, unexpected FLOATING-POINT NUMBER, expecting TYPE-IDENTIFIER
modelsim compiles ok.
#1 Updated by Wilson Snyder over 2 years ago
- Status changed from New to WillNotFix
- Assignee set to Wilson Snyder
Unfortunately I don't think will be supported until floating point numbers are supported, which is tracked in bug233.
I thought about just converting any .0's to integers, but that can cause some pretty confusing problems as the Verilog rules about when a number is real or not would be mis-invoked (since the parameter would be an integer instead of a real.)