File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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
8486int MetalLayer::getTrackLocation (const int track_index) const
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments