3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Add clean_zerowidth pass, use it for Verilog output.

This should remove instances of zero-width sigspecs in the netlist,
avoiding problems in the Verilog backend with emitting them.

See #3103.
This commit is contained in:
Marcelina Kościelnicka 2021-12-11 16:07:29 +01:00
parent bdc6ba019c
commit 0aad88a2fb
3 changed files with 214 additions and 1 deletions

View file

@ -2300,6 +2300,8 @@ struct VerilogBackend : public Backend {
extmem_prefix = filename.substr(0, filename.rfind('.'));
}
Pass::call(design, "clean_zerowidth");
design->sort();
*f << stringf("/* Generated by %s */\n", yosys_version_str);