Skip to content

Commit 608e472

Browse files
committed
pad: dont create empty wires
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 77f1d61 commit 608e472

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/pad/src/RDLRouter.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,12 @@ void RDLRouter::writeToDb(odb::dbNet* net,
16031603
{
16041604
Utilities::makeSpecial(net);
16051605

1606-
auto* swire = odb::dbSWire::create(net, odb::dbWireType::ROUTED);
1606+
if (source == nullptr && target == nullptr && stubs.empty()) {
1607+
// Nothing to create a wire for, so return
1608+
return;
1609+
}
1610+
1611+
odb::dbSWire* swire = odb::dbSWire::create(net, odb::dbWireType::ROUTED);
16071612
for (const odb::Rect& stub : stubs) {
16081613
odb::dbSBox::create(swire,
16091614
layer_,

src/pad/test/rdl_route_assignments_overlapping_iterms.defok

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,7 +2894,6 @@ SPECIALNETS 141 ;
28942894
NEW metal10 8000 + SHAPE IOWIRE ( 1094590 530540 ) ( 1094590 730540 )
28952895
NEW metal10 8000 + SHAPE IOWIRE ( 1090590 726540 ) ( 1109000 726540 )
28962896
NEW metal10 8000 + SHAPE IOWIRE ( 1105000 722540 ) ( 1105000 795000 )
2897-
+ ROUTED
28982897
+ ROUTED metal10 8000 + SHAPE IOWIRE ( 175000 4706540 ) ( 175000 4740000 )
28992898
NEW metal10 8000 + SHAPE IOWIRE ( 171000 4710540 ) ( 202590 4710540 )
29002899
NEW metal10 8000 + SHAPE IOWIRE ( 198590 4690540 ) ( 198590 4714540 )
@@ -3728,8 +3727,7 @@ SPECIALNETS 141 ;
37283727
- p_co2_6_o ( PIN p_co2_6_o ) ( BUMP_0_15 PAD ) ( u_co2_6_o PAD ) + USE SIGNAL
37293728
+ ROUTED metal10 10000 + SHAPE IOWIRE ( 175000 5289000 ) ( 175000 5310000 ) ;
37303729
- p_co2_7_o ( PIN p_co2_7_o ) ( BUMP_1_15 PAD ) ( u_co2_7_o PAD ) + USE SIGNAL ;
3731-
- p_co2_8_o ( PIN p_co2_8_o ) ( BUMP_0_16 PAD ) ( u_co2_8_o PAD ) + USE SIGNAL
3732-
+ ROUTED ;
3730+
- p_co2_8_o ( PIN p_co2_8_o ) ( BUMP_0_16 PAD ) ( u_co2_8_o PAD ) + USE SIGNAL ;
37333731
- p_co2_clk_o ( PIN p_co2_clk_o ) ( BUMP_3_12 PAD ) ( u_co2_clk_o PAD ) + USE SIGNAL ;
37343732
- p_co2_tkn_i ( PIN p_co2_tkn_i ) ( BUMP_2_13 PAD ) ( u_co2_tkn_i PAD ) + USE SIGNAL ;
37353733
- p_co2_v_o ( PIN p_co2_v_o ) ( BUMP_0_13 PAD ) ( u_co2_v_o PAD ) + USE SIGNAL ;

0 commit comments

Comments
 (0)