rdaly525 / coreir

BSD 3-Clause "New" or "Revised" License
101 stars 24 forks source link

Add verilator compatability mode for verilog code generation #957

Closed leonardt closed 4 years ago

leonardt commented 4 years ago

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.