Skip to content

Commit

Permalink
Fix PDN Config
Browse files Browse the repository at this point in the history
~ Configure PDN as a macro
~ Update OpenLane 2 to Beta 14
~ Fix bug where `odbpy` returns a goddamn pointer to an int64
  • Loading branch information
donn committed Sep 21, 2023
1 parent 8f08a1c commit fd08a20
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion dffram.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ def main(
"FP_IO_VEXTEND": Decimal(0),
"FP_IO_VLENGTH": 2,
"FP_IO_HLENGTH": 2,
"STA_CORNERS": ["nom_ss_100C_1v60"],
# PDN
"DESIGN_IS_CORE": False,
},
design_dir=build_dir,
)
Expand Down
6 changes: 3 additions & 3 deletions placeram/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def place(self):
utl.metric_float("dffram__suggested__core_width", self.core_width)
utl.metric_float("dffram__suggested__core_height", self.core_height)

die_area = self.block.getDieArea().area() / (
self.micron_in_units * self.micron_in_units
)
die_width = self.block.getDieArea().dx() / self.micron_in_units
die_height = self.block.getDieArea().dy() / self.micron_in_units
die_area = die_width * die_height

self.density = logical_area / die_area
utl.metric_float("dffram__logic__density", self.density)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
openlane==2.0.0b3
openlane==2.0.0b14
pyyaml
cloup
4 changes: 2 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
let openlane-src = pkgs.fetchFromGitHub {
owner = "efabless";
repo = "openlane2";
rev = "0b2cb7eb6681b644e65082701175044e6e97cc0f";
sha256 = "sha256-qYMZJGRfqNhf0FFf2VdF2AOsAqVTlWLrYlc3krvKp0I=";
rev = "0c05b7ea04eac74203a9a33f8a8b519f33220f2f";
sha256 = "sha256-fjYz6HuIYrGbkb1oA6wPIlEjieYU5hu0aygYQFj2d2I=";
}; in import "${openlane-src}/shell.nix" {}

0 comments on commit fd08a20

Please sign in to comment.