You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISE has issues with code containing $clog2. For 6-series, it is not allowed in localparam, only parameter. For parts older than 6-series, it is not supported at all. Perhaps sv2v can define a clog2 macro and substitute that for uses of $clog2, perhaps this can be configurable via a command line option or similar.
The text was updated successfully, but these errors were encountered:
$clog2 was added to Verilog in IEEE 1364-2005, released nearly 19 years in April 2006. There's certainly no reason to support it in some constant expressions but not others. Would Xilinx/AMD be receptive to a bug report in this case?
Perhaps we could have a flag to replace all $clog2 with the following constant function. Can you try this substitution in your code and confirm whether this actually works in ISE? (I don't know what other restrictions it might impose.)
I wish, but ISE is currently no longer supported, so we're stuck with what we've got. I'll look into trying that out and report back. Hopefully that works, a macro is also a potential option, but would be decidedly less clean.
ISE has issues with code containing
$clog2
. For 6-series, it is not allowed inlocalparam
, onlyparameter
. For parts older than 6-series, it is not supported at all. Perhaps sv2v can define aclog2
macro and substitute that for uses of$clog2
, perhaps this can be configurable via a command line option or similar.The text was updated successfully, but these errors were encountered: