Skip to content

Commit 47af953

Browse files
author
osamahammad21
committed
odb: rename dbUnfoldedRegionInst -> dbUnfoldedChipRegionInst
Signed-off-by: osamahammad21 <osama@precisioninno.com>
1 parent 0aaebe4 commit 47af953

27 files changed

Lines changed: 275 additions & 268 deletions

src/odb/include/odb/db.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ class dbTechLayerWrongDirSpacingRule;
181181
class dbUnfoldedBumpInst;
182182
class dbUnfoldedChipInst;
183183
class dbUnfoldedChipNet;
184+
class dbUnfoldedChipRegionInst;
184185
class dbUnfoldedConn;
185-
class dbUnfoldedRegionInst;
186186
// Generator Code End ClassDeclarations
187187

188188
// Extraction Objects
@@ -7625,7 +7625,7 @@ class dbDatabase : public dbObject
76257625

76267626
dbSet<dbUnfoldedChipInst> getUnfoldedChipInsts() const;
76277627

7628-
dbSet<dbUnfoldedRegionInst> getUnfoldedRegionInsts() const;
7628+
dbSet<dbUnfoldedChipRegionInst> getUnfoldedChipRegionInsts() const;
76297629

76307630
dbSet<dbUnfoldedBumpInst> getUnfoldedBumpInsts() const;
76317631

@@ -11415,7 +11415,7 @@ class dbUnfoldedBumpInst : public dbObject
1141511415
public:
1141611416
dbChipBumpInst* getChipBumpInst() const;
1141711417

11418-
dbUnfoldedRegionInst* getParentRegion() const;
11418+
dbUnfoldedChipRegionInst* getParentRegion() const;
1141911419

1142011420
// User Code Begin dbUnfoldedBumpInst
1142111421
Point3D getGlobalPosition() const;
@@ -11432,7 +11432,7 @@ class dbUnfoldedChipInst : public dbObject
1143211432
// User Code Begin dbUnfoldedChipInst
1143311433
Cuboid getCuboid() const;
1143411434

11435-
dbSet<dbUnfoldedRegionInst> getRegions() const;
11435+
dbSet<dbUnfoldedChipRegionInst> getRegions() const;
1143611436

1143711437
///
1143811438
/// Return the chip-instance path that uniquely identifies this unfolded
@@ -11444,7 +11444,7 @@ class dbUnfoldedChipInst : public dbObject
1144411444
/// Find the unfolded region within this chip whose source region instance
1144511445
/// matches `source`. Returns nullptr if no match.
1144611446
///
11447-
dbUnfoldedRegionInst* findRegion(dbChipRegionInst* source) const;
11447+
dbUnfoldedChipRegionInst* findRegion(dbChipRegionInst* source) const;
1144811448
// User Code End dbUnfoldedChipInst
1144911449
};
1145011450

@@ -11458,17 +11458,7 @@ class dbUnfoldedChipNet : public dbObject
1145811458
// User Code End dbUnfoldedChipNet
1145911459
};
1146011460

11461-
class dbUnfoldedConn : public dbObject
11462-
{
11463-
public:
11464-
dbChipConn* getChipConn() const;
11465-
11466-
dbUnfoldedRegionInst* getTopRegion() const;
11467-
11468-
dbUnfoldedRegionInst* getBottomRegion() const;
11469-
};
11470-
11471-
class dbUnfoldedRegionInst : public dbObject
11461+
class dbUnfoldedChipRegionInst : public dbObject
1147211462
{
1147311463
public:
1147411464
enum class EffectiveSide
@@ -11483,7 +11473,7 @@ class dbUnfoldedRegionInst : public dbObject
1148311473

1148411474
dbUnfoldedChipInst* getParentChip() const;
1148511475

11486-
// User Code Begin dbUnfoldedRegionInst
11476+
// User Code Begin dbUnfoldedChipRegionInst
1148711477
Cuboid getCuboid() const;
1148811478

1148911479
EffectiveSide getEffectiveSide() const;
@@ -11497,7 +11487,17 @@ class dbUnfoldedRegionInst : public dbObject
1149711487
int getSurfaceZ() const;
1149811488

1149911489
dbSet<dbUnfoldedBumpInst> getBumps() const;
11500-
// User Code End dbUnfoldedRegionInst
11490+
// User Code End dbUnfoldedChipRegionInst
11491+
};
11492+
11493+
class dbUnfoldedConn : public dbObject
11494+
{
11495+
public:
11496+
dbChipConn* getChipConn() const;
11497+
11498+
dbUnfoldedChipRegionInst* getTopRegion() const;
11499+
11500+
dbUnfoldedChipRegionInst* getBottomRegion() const;
1150111501
};
1150211502

1150311503
// Generator Code End ClassDefinition

src/odb/include/odb/dbCompare.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -844,18 +844,18 @@ struct less<odb::dbUnfoldedChipNet*>
844844
};
845845

846846
template <>
847-
struct less<odb::dbUnfoldedConn*>
847+
struct less<odb::dbUnfoldedChipRegionInst*>
848848
{
849-
bool operator()(const odb::dbUnfoldedConn* lhs,
850-
const odb::dbUnfoldedConn* rhs) const
849+
bool operator()(const odb::dbUnfoldedChipRegionInst* lhs,
850+
const odb::dbUnfoldedChipRegionInst* rhs) const
851851
= delete;
852852
};
853853

854854
template <>
855-
struct less<odb::dbUnfoldedRegionInst*>
855+
struct less<odb::dbUnfoldedConn*>
856856
{
857-
bool operator()(const odb::dbUnfoldedRegionInst* lhs,
858-
const odb::dbUnfoldedRegionInst* rhs) const
857+
bool operator()(const odb::dbUnfoldedConn* lhs,
858+
const odb::dbUnfoldedConn* rhs) const
859859
= delete;
860860
};
861861

src/odb/include/odb/dbObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ enum dbObjectType
130130
dbUnfoldedBumpInstObj,
131131
dbUnfoldedChipInstObj,
132132
dbUnfoldedChipNetObj,
133+
dbUnfoldedChipRegionInstObj,
133134
dbUnfoldedConnObj,
134-
dbUnfoldedRegionInstObj,
135135
// Generator Code End DbObjectType
136136

137137
// Lib Objects

src/odb/src/3dblox/checker.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -167,25 +167,25 @@ void matchMarkersBetweenChips(
167167
}
168168
}
169169

170-
const char* sideToString(dbUnfoldedRegionInst::EffectiveSide side)
170+
const char* sideToString(dbUnfoldedChipRegionInst::EffectiveSide side)
171171
{
172172
switch (side) {
173-
case dbUnfoldedRegionInst::EffectiveSide::TOP:
173+
case dbUnfoldedChipRegionInst::EffectiveSide::TOP:
174174
return "TOP";
175-
case dbUnfoldedRegionInst::EffectiveSide::BOTTOM:
175+
case dbUnfoldedChipRegionInst::EffectiveSide::BOTTOM:
176176
return "BOTTOM";
177-
case dbUnfoldedRegionInst::EffectiveSide::INTERNAL:
177+
case dbUnfoldedChipRegionInst::EffectiveSide::INTERNAL:
178178
return "INTERNAL";
179-
case dbUnfoldedRegionInst::EffectiveSide::INTERNAL_EXT:
179+
case dbUnfoldedChipRegionInst::EffectiveSide::INTERNAL_EXT:
180180
return "INTERNAL_EXT";
181181
}
182182
return "UNKNOWN";
183183
}
184184

185185
MatingSurfaces getMatingSurfaces(dbUnfoldedConn* conn)
186186
{
187-
dbUnfoldedRegionInst* r1 = conn->getTopRegion();
188-
dbUnfoldedRegionInst* r2 = conn->getBottomRegion();
187+
dbUnfoldedChipRegionInst* r1 = conn->getTopRegion();
188+
dbUnfoldedChipRegionInst* r2 = conn->getBottomRegion();
189189
if (!r1 || !r2) {
190190
return {.valid = false, .top_z = 0, .bot_z = 0};
191191
}
@@ -281,9 +281,9 @@ void Checker::checkFloatingChips(dbMarkerCategory* top_cat)
281281
// Case 2: Virtual connection (one region is null) - connect chip to
282282
// ground
283283
else if (conn->getTopRegion() || conn->getBottomRegion()) {
284-
dbUnfoldedRegionInst* region = conn->getTopRegion()
285-
? conn->getTopRegion()
286-
: conn->getBottomRegion();
284+
dbUnfoldedChipRegionInst* region = conn->getTopRegion()
285+
? conn->getTopRegion()
286+
: conn->getBottomRegion();
287287
auto it = chip_map.find(region->getParentChip());
288288
if (it != chip_map.end()) {
289289
uf.unite(it->second, ground_node);
@@ -378,7 +378,7 @@ void Checker::checkInternalExtUsage(dbMarkerCategory* top_cat)
378378
{
379379
// The struct model maintained an isUsed bit on each region; in the
380380
// dbObject model we derive it here on demand by scanning connections.
381-
std::unordered_set<dbUnfoldedRegionInst*> used;
381+
std::unordered_set<dbUnfoldedChipRegionInst*> used;
382382
for (dbUnfoldedConn* conn : db_->getUnfoldedConns()) {
383383
if (auto* r = conn->getTopRegion(); r && r->isInternalExt()) {
384384
used.insert(r);
@@ -390,7 +390,7 @@ void Checker::checkInternalExtUsage(dbMarkerCategory* top_cat)
390390

391391
dbMarkerCategory* cat = nullptr;
392392
for (dbUnfoldedChipInst* chip : db_->getUnfoldedChipInsts()) {
393-
for (dbUnfoldedRegionInst* region : chip->getRegions()) {
393+
for (dbUnfoldedChipRegionInst* region : chip->getRegions()) {
394394
if (region->isInternalExt() && !used.contains(region)) {
395395
if (!cat) {
396396
cat = dbMarkerCategory::createOrReplace(top_cat,
@@ -414,7 +414,7 @@ void Checker::checkInternalExtUsage(dbMarkerCategory* top_cat)
414414

415415
void Checker::checkConnectionRegions(dbMarkerCategory* top_cat)
416416
{
417-
auto describe = [](dbUnfoldedRegionInst* r, dbMarker* marker) {
417+
auto describe = [](dbUnfoldedChipRegionInst* r, dbMarker* marker) {
418418
const Cuboid cuboid = r->getCuboid();
419419
marker->addSource(r->getChipRegionInst());
420420
marker->addShape(
@@ -454,7 +454,7 @@ void Checker::checkBumpPhysicalAlignment(dbMarkerCategory* top_cat)
454454
dbMarkerCategory* cat = nullptr;
455455
int violation_count = 0;
456456
for (dbUnfoldedChipInst* chip : db_->getUnfoldedChipInsts()) {
457-
for (dbUnfoldedRegionInst* region : chip->getRegions()) {
457+
for (dbUnfoldedChipRegionInst* region : chip->getRegions()) {
458458
for (dbUnfoldedBumpInst* bump : region->getBumps()) {
459459
const Point3D p = bump->getGlobalPosition();
460460
if (!region->getCuboid().getEnclosingRect().intersects(
@@ -554,8 +554,8 @@ void Checker::checkAlignmentMarkers(dbMarkerCategory* top_cat)
554554
if (!isValid(conn)) {
555555
continue;
556556
}
557-
dbUnfoldedRegionInst* ra = conn->getTopRegion();
558-
dbUnfoldedRegionInst* rb = conn->getBottomRegion();
557+
dbUnfoldedChipRegionInst* ra = conn->getTopRegion();
558+
dbUnfoldedChipRegionInst* rb = conn->getBottomRegion();
559559
if (!ra || !rb) {
560560
continue;
561561
}
@@ -627,8 +627,8 @@ void Checker::checkLogicalConnectivity(dbMarkerCategory* top_cat)
627627
if (!isValid(conn)) {
628628
continue;
629629
}
630-
dbUnfoldedRegionInst* top_region = conn->getTopRegion();
631-
dbUnfoldedRegionInst* bot_region = conn->getBottomRegion();
630+
dbUnfoldedChipRegionInst* top_region = conn->getTopRegion();
631+
dbUnfoldedChipRegionInst* bot_region = conn->getBottomRegion();
632632
if (!top_region || !bot_region) {
633633
continue;
634634
}

src/odb/src/codeGenerator/schema.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@
211211
"includes": ["dbChipNet.h", "dbChip.h"]
212212
},
213213
{
214-
"name": "dbUnfoldedRegionInstItr",
215-
"parentObject": "dbUnfoldedRegionInst",
216-
"tableName": "unfolded_region_inst_tbl",
214+
"name": "dbUnfoldedChipRegionInstItr",
215+
"parentObject": "dbUnfoldedChipRegionInst",
216+
"tableName": "unfolded_chip_region_inst_tbl",
217217
"reversible": "true",
218218
"orderReversed": "true",
219219
"sequential": 0,
220-
"includes": ["dbUnfoldedRegionInst.h", "dbUnfoldedChipInst.h"]
220+
"includes": ["dbUnfoldedChipRegionInst.h", "dbUnfoldedChipInst.h"]
221221
},
222222
{
223223
"name": "dbUnfoldedBumpInstItr",
@@ -226,7 +226,7 @@
226226
"reversible": "true",
227227
"orderReversed": "true",
228228
"sequential": 0,
229-
"includes": ["dbUnfoldedBumpInst.h", "dbUnfoldedRegionInst.h"]
229+
"includes": ["dbUnfoldedBumpInst.h", "dbUnfoldedChipRegionInst.h"]
230230
}
231231
],
232232
"relations":[
@@ -572,9 +572,9 @@
572572
},
573573
{
574574
"parent":"dbDatabase",
575-
"child":"dbUnfoldedRegionInst",
575+
"child":"dbUnfoldedChipRegionInst",
576576
"type":"1_n",
577-
"tbl_name":"unfolded_region_inst_tbl_",
577+
"tbl_name":"unfolded_chip_region_inst_tbl_",
578578
"flags": ["no-serial"]
579579
},
580580
{

src/odb/src/codeGenerator/schema/chip/dbUnfoldedBumpInst.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"name": "parent_region_",
13-
"type": "dbId<_dbUnfoldedRegionInst>",
13+
"type": "dbId<_dbUnfoldedChipRegionInst>",
1414
"flags": ["no-set"],
1515
"parent": "dbDatabase"
1616
},
@@ -27,7 +27,7 @@
2727
"dbChipBumpInst.h",
2828
"dbChipBump.h",
2929
"dbInst.h",
30-
"dbUnfoldedRegionInst.h",
30+
"dbUnfoldedChipRegionInst.h",
3131
"dbUnfoldedChipInst.h",
3232
"odb/geom.h"
3333
]

src/odb/src/codeGenerator/schema/chip/dbUnfoldedChipInst.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"name": "region_",
22-
"type": "dbId<_dbUnfoldedRegionInst>",
22+
"type": "dbId<_dbUnfoldedChipRegionInst>",
2323
"flags": ["private"]
2424
}
2525
],

src/odb/src/codeGenerator/schema/chip/dbUnfoldedRegionInst.json renamed to src/odb/src/codeGenerator/schema/chip/dbUnfoldedChipRegionInst.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "dbUnfoldedRegionInst",
2+
"name": "dbUnfoldedChipRegionInst",
33
"type": "dbObject",
44
"enums": [
55
{
@@ -36,7 +36,7 @@
3636
},
3737
{
3838
"name": "chip_next_",
39-
"type": "dbId<_dbUnfoldedRegionInst>",
39+
"type": "dbId<_dbUnfoldedChipRegionInst>",
4040
"flags": ["private"]
4141
},
4242
{

src/odb/src/codeGenerator/schema/chip/dbUnfoldedConn.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
},
1111
{
1212
"name": "top_region_",
13-
"type": "dbId<_dbUnfoldedRegionInst>",
13+
"type": "dbId<_dbUnfoldedChipRegionInst>",
1414
"flags": ["no-set"],
1515
"parent": "dbDatabase"
1616
},
1717
{
1818
"name": "bottom_region_",
19-
"type": "dbId<_dbUnfoldedRegionInst>",
19+
"type": "dbId<_dbUnfoldedChipRegionInst>",
2020
"flags": ["no-set"],
2121
"parent": "dbDatabase"
2222
}
@@ -26,6 +26,6 @@
2626
],
2727
"cpp_includes": [
2828
"dbChipConn.h",
29-
"dbUnfoldedRegionInst.h"
29+
"dbUnfoldedChipRegionInst.h"
3030
]
3131
}

src/odb/src/db/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ add_library(db
163163
dbUnfoldedBumpInst.cpp
164164
dbUnfoldedChipInst.cpp
165165
dbUnfoldedChipNet.cpp
166+
dbUnfoldedChipRegionInst.cpp
166167
dbUnfoldedConn.cpp
167-
dbUnfoldedRegionInst.cpp
168168
dbChipBumpInstItr.cpp
169169
dbChipConnItr.cpp
170170
dbChipInstItr.cpp
@@ -189,7 +189,7 @@ add_library(db
189189
dbRegionGroupItr.cpp
190190
dbScanListScanInstItr.cpp
191191
dbUnfoldedBumpInstItr.cpp
192-
dbUnfoldedRegionInstItr.cpp
192+
dbUnfoldedChipRegionInstItr.cpp
193193
# Generator Code End cpp
194194
)
195195

0 commit comments

Comments
 (0)