Skip to content

Commit 0a501ec

Browse files
committed
odb: rename chipletHierarchy nodes
Signed-off-by: Rafael Moresco <[email protected]>
1 parent 36ef562 commit 0a501ec

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/odb/src/3dblox/chipletHierarchy.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,18 @@ void ChipletHierarchy::buildHierarchy(const std::vector<dbChip*>& all_chips)
4545
{
4646
nodes_.clear();
4747

48-
for (odb::dbChip* chip : all_chips) {
49-
ChipletNode* parent_node = addChip(chip);
48+
for (odb::dbChip* parent : all_chips) {
49+
ChipletNode* parent_node = addChip(parent);
5050
if (!parent_node) {
5151
continue;
5252
}
5353

5454
// Iterate instances to find dependencies
55-
for (dbChipInst* inst : chip->getChipInsts()) {
56-
odb::dbChip* master = inst->getMasterChip();
57-
if (master) {
58-
addDependency(chip, master);
55+
for (dbChipInst* inst : parent->getChipInsts()) {
56+
// The instance master points to the child chiplets
57+
odb::dbChip* child = inst->getMasterChip();
58+
if (child) {
59+
addDependency(parent, child);
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)