Skip to content

Commit 19950c1

Browse files
committed
grt: store layer adjustment into cugr metal layer
Signed-off-by: Eder Monteiro <[email protected]>
1 parent e885f48 commit 19950c1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/grt/src/cugr/src/Layers.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ MetalLayer::MetalLayer(odb::dbTechLayer* tech_layer,
7979
max_eol_within_ = std::max(max_eol_within_, static_cast<int>(eol_within));
8080
}
8181
}
82+
83+
adjustment_ = tech_layer->getLayerAdjustment();
8284
}
8385

8486
int MetalLayer::getTrackLocation(const int track_index) const

src/grt/src/cugr/src/Layers.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class MetalLayer
1717
MetalLayer(odb::dbTechLayer* tech_layer, odb::dbTrackGrid* track_grid);
1818

1919
std::string getName() const { return name_; }
20+
int getIndex() const { return index_; }
2021
int getDirection() const { return direction_; }
2122
int getWidth() const { return width_; }
2223
int getPitch() const { return pitch_; }
@@ -29,6 +30,8 @@ class MetalLayer
2930
int getDefaultSpacing() const { return default_spacing_; }
3031
int getParallelSpacing(int width, int length = 0) const;
3132
int getMaxEolSpacing() const { return max_eol_spacing_; }
33+
float getAdjustment() const { return adjustment_; }
34+
void setAdjustment(float adjustment) { adjustment_ = adjustment; }
3235

3336
private:
3437
std::string name_;
@@ -58,6 +61,9 @@ class MetalLayer
5861
int max_eol_width_ = 0;
5962
int max_eol_within_ = 0;
6063

64+
// User-defined capacity adjustment
65+
float adjustment_ = 0.0;
66+
6167
// Corner spacing
6268
};
6369

0 commit comments

Comments
 (0)