Skip to content

Commit f31ae46

Browse files
authored
Merge pull request #7992 from AcKoucher/odb-debug-group
odb: add dbGroupType for visual debug
2 parents 7f649c1 + 3fbea59 commit f31ae46

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/odb/include/odb/dbTypes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ class dbGroupType
161161
{
162162
PHYSICAL_CLUSTER,
163163
VOLTAGE_DOMAIN,
164-
POWER_DOMAIN
164+
POWER_DOMAIN,
165+
VISUAL_DEBUG
165166
};
166167

167168
///

src/odb/src/db/dbTypes.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ const char* dbGroupType::getString() const
328328
case POWER_DOMAIN:
329329
value = "POWER_DOMAIN";
330330
break;
331+
332+
case VISUAL_DEBUG:
333+
value = "VISUAL_DEBUG";
334+
break;
331335
}
332336

333337
return value;

src/odb/src/swig/tcl/dbenums.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,9 @@
16261626
case odb::dbGroupType::POWER_DOMAIN:
16271627
obj = Tcl_NewStringObj("POWER_DOMAIN", -1);
16281628
break;
1629+
case odb::dbGroupType::VISUAL_DEBUG:
1630+
obj = Tcl_NewStringObj("VISUAL_DEBUG", -1);
1631+
break;
16291632
}
16301633
Tcl_SetObjResult(interp, obj);
16311634
}
@@ -1637,6 +1640,8 @@
16371640
$1 = odb::dbGroupType::VOLTAGE_DOMAIN;
16381641
} else if (strcasecmp(str, "POWER_DOMAIN") == 0) {
16391642
$1 = odb::dbGroupType::POWER_DOMAIN;
1643+
} else if (strcasecmp(str, "VISUAL_DEBUG") == 0) {
1644+
$1 = odb::dbGroupType::VISUAL_DEBUG;
16401645
}
16411646
}
16421647
%typemap(typecheck) odb::dbGroupType, dbGroupType {
@@ -1649,6 +1654,8 @@
16491654
found = true;
16501655
} else if (strcasecmp(str, "POWER_DOMAIN") == 0) {
16511656
found = true;
1657+
} else if (strcasecmp(str, "VISUAL_DEBUG") == 0) {
1658+
found = true;
16521659
}
16531660
}
16541661
if (found) {

0 commit comments

Comments
 (0)