File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments