Skip to content

Commit

Permalink
Move fills to SCL tech file + remove ef cells
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Sep 21, 2023
1 parent 16889d8 commit 09df5b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
7 changes: 3 additions & 4 deletions placeram/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def cli(
odb_in,
):
pdk, scl, blocks = building_blocks.split(":")
fill_cells_file = os.path.join(".", "platforms", pdk, "fill_cells.yml")
if not os.path.isfile(fill_cells_file):
platform_tech_file = os.path.join(".", "platforms", pdk, scl, "tech.yml")
if not os.path.isfile(platform_tech_file):
eprint("Platform %s not found." % pdk)
exit(os.EX_NOINPUT)

Expand All @@ -264,15 +264,14 @@ def cli(
"WARNING: Word length must be a non-zero multiple of 8. Results may be unexpected."
)

platform_tech_file = os.path.join(".", "platforms", pdk, scl, "tech.yml")
platform_tech_config = yaml.safe_load(open(platform_tech_file))

tap_distance = platform_tech_config["tap_distance"]

for input in [odb_in]:
check_readable(input)

fill_cell_data = yaml.load(open(fill_cells_file).read(), Loader=yaml.SafeLoader)
fill_cell_data = platform_tech_config["fills"]

placer = Placer(
odb_in,
Expand Down
5 changes: 0 additions & 5 deletions platforms/sky130A/fill_cells.yml

This file was deleted.

11 changes: 8 additions & 3 deletions platforms/sky130A/sky130_fd_sc_hd/tech.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
tap_distance: 15
metal_layers:
metal_layers:
hor-layer: met3
ver-layer: met2
rt-max-layer: met4
site:
width: 0.46
height: 2.72
name: unithd
tie:
tie:
tie_lo_cell: sky130_fd_sc_hd__conb_1
tie_lo_port: LO
tie_hi_cell: sky130_fd_sc_hd__conb_1
tie_hi_port: HI
tie_hi_port: HI
sta:
driving_cell:
name: sky130_fd_sc_hd__inv_8
Expand All @@ -30,3 +30,8 @@ sta:
"1024x*": 16.5
"2048x*": 16.5
rf: {}
fills:
decap: sky130_fd_sc_hd__decap_(\d+)
fill: sky130_fd_sc_hd__fill_(\d+)
tap: sky130_fd_sc_hd__tapvpwrvgnd_(\d+)
diode: sky130_fd_sc_hd__diode_(\d+)

0 comments on commit 09df5b3

Please sign in to comment.