aboutsummaryrefslogtreecommitdiffstats
path: root/backends/verilog
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2021-12-11 16:07:29 +0100
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-12-12 19:56:50 +0100
commit0aad88a2fb23e5481538122e1bd4c0fac9ba5e90 (patch)
tree707e70353574c9d21e903810e6e8823727e21a15 /backends/verilog
parentbdc6ba019ca12a3f3d4cfb1a4d64652538b7c5ef (diff)
downloadyosys-0aad88a2fb23e5481538122e1bd4c0fac9ba5e90.tar.gz
yosys-0aad88a2fb23e5481538122e1bd4c0fac9ba5e90.tar.bz2
yosys-0aad88a2fb23e5481538122e1bd4c0fac9ba5e90.zip
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.
Diffstat (limited to 'backends/verilog')
-rw-r--r--backends/verilog/verilog_backend.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc
index 13c78c526..e4781ef3e 100644
--- a/backends/verilog/verilog_backend.cc
+++ b/backends/verilog/verilog_backend.cc
@@ -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);