diff options
author | Andrew Zonenberg <azonenberg@drawersteak.com> | 2017-08-11 16:47:07 -0700 |
---|---|---|
committer | Andrew Zonenberg <azonenberg@drawersteak.com> | 2017-08-14 10:28:19 -0700 |
commit | 1bb150c2318a16e8007b4cf76aa2a199f49f0f7e (patch) | |
tree | cb0921b7008d670639b3eb62e297a12b1d95abc9 /passes/opt | |
parent | 2877d5e50449dd08ebcb183218d015008c9fffcb (diff) | |
download | yosys-1bb150c2318a16e8007b4cf76aa2a199f49f0f7e.tar.gz yosys-1bb150c2318a16e8007b4cf76aa2a199f49f0f7e.tar.bz2 yosys-1bb150c2318a16e8007b4cf76aa2a199f49f0f7e.zip |
Improved handling of constant connections in opt_rmports
Diffstat (limited to 'passes/opt')
-rw-r--r-- | passes/opt/opt_rmports.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/passes/opt/opt_rmports.cc b/passes/opt/opt_rmports.cc index 5522dfa8e..a7a2df866 100644 --- a/passes/opt/opt_rmports.cc +++ b/passes/opt/opt_rmports.cc @@ -69,6 +69,8 @@ struct OptRmportsPass : public Pass { { auto w1 = s1[i].wire; auto w2 = s2[i].wire; + if( (w1 == NULL) || (w2 == NULL) ) + continue; //log(" conn %s, %s\n", w1->name.c_str(), w2->name.c_str()); |