Unsupported localparam real
Summary
When triplicating a model, with do_not_touch
directives, the triplication fails if localparam real
are present.
Describe your setup
run on fastrich master
TMRG Version
REPRODUCED_111
Steps to reproduce
module test #(parameter real VCO_FREQ_MHZ = 1280.0);
localparam real OSCILLATION_PERIOD_PS = 1_000_000.0 / VCO_FREQ_MHZ;
endmodule
What is the current bug behavior?
[venv] [mlupi@lxmicp017 fastrich_rtl]$ tmrg test.sv
[ERROR ] Error in file 'test.sv' around line '8'.
[ERROR ]
[ERROR ] localparam real OSCILLATION_PERIOD_PS = 1_000_000.0 / VCO_FREQ_MHZ;
[ERROR ] ^
[ERROR ] Expected module, found 'localparam' (at char 127), (line:8, col:3)
[ERROR ] Error during parsing
What is the expected correct behavior?
No failure
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)