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:
parent
bdc6ba019c
commit
0aad88a2fb
3 changed files with 214 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue