Skip to content

Commit

Permalink
Revert "Disconnecting dangling wires from fabric"
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadmehmood authored Dec 4, 2024
1 parent d63fdf2 commit 302748e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(VERSION_MINOR 0)



set(VERSION_PATCH 383)
set(VERSION_PATCH 382)



Expand Down
10 changes: 6 additions & 4 deletions design_edit/src/rs_design_edit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,6 @@ struct DesignEditRapidSilicon : public ScriptPass {

void handle_dangling_outs(Module *module)
{
std::unordered_set<Wire *> dangling_ins;
for(auto cell : module->cells())
{
for (auto &conn : cell->connections())
Expand Down Expand Up @@ -832,9 +831,12 @@ struct DesignEditRapidSilicon : public ScriptPass {
for (SigBit bit : port.second){
if(!used_bits.count(bit) && cell->output(portName)
&& !bit.wire->port_output){
new_ins.erase(bit.wire->name.str());
bit.wire->port_input = false;
dangling_ins.insert(bit.wire);
RTLIL::SigSig new_conn;
RTLIL::Wire *new_wire = module->addWire(NEW_ID, 1);
new_wire->port_output = true;
new_conn.first = new_wire;
new_conn.second = bit;
module->connect(new_conn);
}
}
}
Expand Down

0 comments on commit 302748e

Please sign in to comment.