Closed leonardt closed 4 years ago
actually we can do
#if defined(COND1) && defined(COND2)
...
#endif
same for ||
, !
. #ifdef
is just shorthand.
See https://www.cs.auckland.ac.nz/references/unix/digital/AQTLTBTE/DOCU_078.HTM for full spec.
that looks like documentation for C code, is verilog the same?
oops, for some reason I thought this was C/C++ code for verilator. yeah came to the same conclusion as you for verilog.
Allows the user to provide a list of compile guards (useful if some properties should require two defines). We can't use
&&
insideifdef
so we have to generate nestedifdef
statements.