diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-26 21:16:05 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-26 21:30:38 +0200 |
commit | d68c993ed2ea384db4d6af5161b3b36096828499 (patch) | |
tree | 4f1259436d3d8f73eb21f1a29662826a24cedf4c /passes/cmds/splice.cc | |
parent | 946ddff9cef3ea0b4dad8664319fb13074133775 (diff) |
Changed more code to the new RTLIL::Wire constructors
Diffstat (limited to 'passes/cmds/splice.cc')
-rw-r--r-- | passes/cmds/splice.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/passes/cmds/splice.cc b/passes/cmds/splice.cc index 8b7e0406..61de4406 100644 --- a/passes/cmds/splice.cc +++ b/passes/cmds/splice.cc @@ -224,14 +224,14 @@ struct SpliceWorker for (auto &it : rework_wires) { - module->wires.erase(it.first->name); - RTLIL::Wire *new_port = new RTLIL::Wire(*it.first); - it.first->name = NEW_ID; + std::string orig_name = it.first->name; + module->rename(it.first, NEW_ID); + + RTLIL::Wire *new_port = module->addWire(orig_name, it.first); it.first->port_id = 0; it.first->port_input = false; it.first->port_output = false; - module->add(it.first); - module->add(new_port); + module->connect(RTLIL::SigSig(new_port, it.second)); } } |