Skip to content

Commit 9cf5b9e

Browse files
committed
pdn: remove repair_pdn_vias from python and use std::set properly
Signed-off-by: Matt Liberty <[email protected]>
1 parent 278044a commit 9cf5b9e

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/pdn/src/PdnGen-py.i

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ using namespace pdn;
6060
%include <std_vector.i>
6161
%include <std_array.i>
6262
%include <std_map.i>
63+
%include <std_set.i>
6364

6465
// this maps unsigned long to the enum ExtensionMode
6566
%include typemaps.i
@@ -83,19 +84,8 @@ namespace std {
8384
%template(viagen_list) std::vector<odb::dbTechViaGenerateRule *>;
8485
%template(techvia_list) std::vector<odb::dbTechVia *>;
8586
%template(layer_list) std::vector<odb::dbTechLayer *>;
87+
%template(net_set) std::set<odb::dbNet*>;
8688
}
8789

8890
%include "../../Exception-py.i"
8991
%include "pdn/PdnGen.hh"
90-
91-
%inline %{
92-
93-
namespace pdn {
94-
95-
// difficult to pass a set. repair_pdn_via takes a vector and then
96-
// rebuilds the set in C++, so we just borrow that here.
97-
void repair_pdn_vias(const std::vector<odb::dbNet*>& nets);
98-
99-
} // namespace
100-
101-
%} // %inline

src/pdn/test/pdn_aux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,5 +665,5 @@ def repair_pdn_vias(design, *, net=None, all=False):
665665
if net.getSigType() == "POWER" or net.getSigType() == "GROUND":
666666
nets.append(net)
667667

668-
pdn.repair_pdn_vias(nets)
668+
pdngen.repairVias(nets)
669669

0 commit comments

Comments
 (0)