Adds a flag to enable verilator compatibility in verilog code
generation. Currently this will just wrap certain primitives known to
trigger verilator UNUSED warnings/errors with a lint_on/lint_off
comment. This allows users to avoid having to use a catch all
-Wno-UNUSED flag since this could silence warnings from other parts of
the code.
Improved version of https://github.com/rdaly525/coreir/pull/691
Adds a flag to enable verilator compatibility in verilog code generation. Currently this will just wrap certain primitives known to trigger verilator UNUSED warnings/errors with a lint_on/lint_off comment. This allows users to avoid having to use a catch all -Wno-UNUSED flag since this could silence warnings from other parts of the code.