Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#4897 from dlmiles/dlm-upstrea…
Browse files Browse the repository at this point in the history
…m-swig-dbGroupType

swig: add missing dbGroupType::POWER_DOMAIN
  • Loading branch information
maliberty committed Apr 3, 2024
2 parents d80da7e + fdb9ba4 commit 5e60e13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/odb/src/swig/python/dbenums.i
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,8 @@
obj = PyString_FromString("PHYSICAL_CLUSTER");
} else if ($1.getValue() == odb::dbGroupType::VOLTAGE_DOMAIN) {
obj = PyString_FromString("VOLTAGE_DOMAIN");
} else if ($1.getValue() == odb::dbGroupType::POWER_DOMAIN) {
obj = PyString_FromString("POWER_DOMAIN");
} else {
SWIG_exception(SWIG_ValueError, "Unknown group type");
}
Expand All @@ -1381,6 +1383,8 @@
$1 = odb::dbGroupType::PHYSICAL_CLUSTER;
} else if (strcasecmp(str, "VOLTAGE_DOMAIN") == 0) {
$1 = odb::dbGroupType::VOLTAGE_DOMAIN;
} else if (strcasecmp(str, "POWER_DOMAIN") == 0) {
$1 = odb::dbGroupType::POWER_DOMAIN;
} else {
SWIG_exception(SWIG_ValueError, "Unknown group type");
}
Expand All @@ -1393,6 +1397,8 @@
found = true;
} else if (strcasecmp(str, "VOLTAGE_DOMAIN") == 0) {
found = true;
} else if (strcasecmp(str, "POWER_DOMAIN") == 0) {
found = true;
}
}
if (found) {
Expand Down

0 comments on commit 5e60e13

Please sign in to comment.