FPGADesignElements
FPGADesignElements copied to clipboard
`clog` function should not be idempotent
The docs state: "Since this is an included file, it must be idempotent. (defined only once globally)"
This is incorrect, since the function is included in the body of a module, whereas define CLOG2_FUNCTION is set globally.
Every module that needs this function should have it included, and therefore ifndef should not be used.
BTW, it's amazing how many simulators get this wrong. Only Verilator actually got this right.