mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
tiles support in --create-user-config
This commit is contained in:
+10
-1
@@ -16,6 +16,10 @@ import shutil
|
|||||||
CELL_URL = 'https://antmicro-skywater-pdk-docs.readthedocs.io/en/test-submodules-in-rtd/contents/libraries/sky130_fd_sc_ls/cells/'
|
CELL_URL = 'https://antmicro-skywater-pdk-docs.readthedocs.io/en/test-submodules-in-rtd/contents/libraries/sky130_fd_sc_ls/cells/'
|
||||||
|
|
||||||
|
|
||||||
|
with open(os.path.join(os.path.dirname(__file__), 'tile_sizes.yaml'), 'r') as stream:
|
||||||
|
tile_sizes = (yaml.safe_load(stream))
|
||||||
|
|
||||||
|
|
||||||
class Project():
|
class Project():
|
||||||
|
|
||||||
def __init__(self, index, git_url, local_dir, args, fill=False):
|
def __init__(self, index, git_url, local_dir, args, fill=False):
|
||||||
@@ -350,7 +354,12 @@ class Project():
|
|||||||
fh.write(" $::env(DESIGN_DIR)/" + source)
|
fh.write(" $::env(DESIGN_DIR)/" + source)
|
||||||
if line != len(self.src_files) - 1:
|
if line != len(self.src_files) - 1:
|
||||||
fh.write(' \\\n')
|
fh.write(' \\\n')
|
||||||
fh.write('"\n')
|
fh.write('"\n\n')
|
||||||
|
tiles = self.yaml['project']['tiles']
|
||||||
|
die_area = tile_sizes[tiles]
|
||||||
|
fh.write(f'# Project area: {tiles} tiles\n')
|
||||||
|
fh.write(f'set ::env(DIE_AREA) "{die_area}"\n')
|
||||||
|
fh.write(f'set ::env(FP_DEF_TEMPLATE) "$::env(DESIGN_DIR)/../tt/def/tt_block_{tiles}.def"\n')
|
||||||
|
|
||||||
def golden_harden(self):
|
def golden_harden(self):
|
||||||
logging.info(f"hardening {self}")
|
logging.info(f"hardening {self}")
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
1x1: "0 0 167.9 108.8"
|
||||||
|
1x2: "0 0 167.9 220.32"
|
||||||
|
2x2: "0 0 338.56 220.32"
|
||||||
|
4x2: "0 0 679.88 220.32"
|
||||||
|
8x2: "0 0 1362.52 220.32"
|
||||||
Reference in New Issue
Block a user