edif: Just ignore connections to 'z

Connecting a const 'z to a net should be equivalent to not connecting it
at all, so let's just ignore such connections on output.
This commit is contained in:
Marcin Kościelnicki 2020-01-13 14:49:31 +01:00
parent 58ab9f6021
commit 55f86eda36
1 changed files with 2 additions and 0 deletions

View File

@ -404,6 +404,8 @@ struct EdifBackend : public Backend {
for (auto &ref : it.second)
log_warning("Exporting x-bit on %s as zero bit.\n", ref.c_str());
sig = RTLIL::State::S0;
} else if (sig == RTLIL::State::Sz) {
continue;
} else {
for (auto &ref : it.second)
log_error("Don't know how to handle %s on %s.\n", log_signal(sig), ref.c_str());