I have a code that contains CEIL and FLOOR usage as the design is generic, it is used as following:
CONSTANT A : natural := natural(CEIL(real(natural_parameter)/real(natural_parameter)));
Now in simulation code works fine but synthesis using dc_shell is also ok but when I try to load generated netlist to LEC tool it gives error...as real is un-synthesizable. Have you got any solution for this problem? In my code I cannot remove CEIL.
I am getting problem because of "real" construct but "real" is used in CEIL to assign value to constant. You said that if I want to signoff with LEC then I need to change the RTL. Can you suggest me which function can I use instead of CEIL or FLOOR?
Is there no other option other than changing the RTL?