diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-14 10:13:29 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-01-14 10:13:29 -0800 |
commit | de969adcd8214592dfa32be5b61903fe7893d29b (patch) | |
tree | f32c28145a646a0d4371687fe278e45d754b98b2 /passes/cmds | |
parent | 00964e999d5bc1825ff664e1514efcacb6d2e23f (diff) | |
download | yosys-de969adcd8214592dfa32be5b61903fe7893d29b.tar.gz yosys-de969adcd8214592dfa32be5b61903fe7893d29b.tar.bz2 yosys-de969adcd8214592dfa32be5b61903fe7893d29b.zip |
autoname: do not autoname ports
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/autoname.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/autoname.cc b/passes/cmds/autoname.cc index 4614a8153..50632201e 100644 --- a/passes/cmds/autoname.cc +++ b/passes/cmds/autoname.cc @@ -56,7 +56,7 @@ int autoname_worker(Module *module) for (auto &conn : cell->connections()) { string suffix = stringf("_%s", log_id(conn.first)); for (auto bit : conn.second) - if (bit.wire != nullptr && bit.wire->name[0] == '$') { + if (bit.wire != nullptr && bit.wire->name[0] == '$' && !bit.wire->port_id) { IdString new_name(cell->name.str() + suffix); int score = wire_score.at(bit.wire); if (cell->output(conn.first)) score = 0; |