[Proposal] Automatic test for Yosys cell libraries?

Background:

  1. Yosys recommends linting projects with Verilator and the oss-cad-suite package includes a Verilator binary. https://github.com/YosysHQ/yosys/blob/main/README.md#additional-information
  2. Yosys standard libraries throw tons of warnings with linting a project, requiring the user to create Verilator rule suppression file.
  3. This PR synth_ecp5 and synth_nexus to synth_lattice by mmicko · Pull Request #3908 · YosysHQ/yosys · GitHub from October 2025 broke the ECP5 linting completely with a fatal error and it’s broken since then.

Desired goals

  1. Yosys projects pass Verilator lints with no errors and warnings due to the standard libraries.
  2. The standard libraries are subjects to automatic tests such that any breakage is detected before merging a PR.

Before getting into a plan proposal, is there an interest from the Yosys’s maintainer for contributions in this direction?

(I am the main maintainer of Apio and as such the one that has to deal with breakages of the ‘apio lint’ command and hacking around the standard libraries issues)

I think having the Yosys shared libraries not raise warnings is preferable, and not raising errors is desirable. But also Yosys does explicitly support non standard syntax which should be included in any such checks.

I posted here an example that shows the lint that is broken since oct 2025. With this proposal it would be flagged immediately by a test.