Skip to content

Commit d63fdf2

Browse files
Merge pull request #823 from os-fpga/task/EDA-3346/handle_dangling_wires
2 parents 14c58df + 3263f9a commit d63fdf2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set(VERSION_MINOR 0)
1717

1818

1919

20-
set(VERSION_PATCH 382)
20+
set(VERSION_PATCH 383)
2121

2222

2323

design_edit/src/rs_design_edit.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ struct DesignEditRapidSilicon : public ScriptPass {
746746

747747
void handle_dangling_outs(Module *module)
748748
{
749+
std::unordered_set<Wire *> dangling_ins;
749750
for(auto cell : module->cells())
750751
{
751752
for (auto &conn : cell->connections())
@@ -831,12 +832,9 @@ struct DesignEditRapidSilicon : public ScriptPass {
831832
for (SigBit bit : port.second){
832833
if(!used_bits.count(bit) && cell->output(portName)
833834
&& !bit.wire->port_output){
834-
RTLIL::SigSig new_conn;
835-
RTLIL::Wire *new_wire = module->addWire(NEW_ID, 1);
836-
new_wire->port_output = true;
837-
new_conn.first = new_wire;
838-
new_conn.second = bit;
839-
module->connect(new_conn);
835+
new_ins.erase(bit.wire->name.str());
836+
bit.wire->port_input = false;
837+
dangling_ins.insert(bit.wire);
840838
}
841839
}
842840
}

0 commit comments

Comments
 (0)