feat(configure): make top_level_macro configurable

For IHP shuttles, we need "tt_ihp_wrapper" instead of "openframe_project_wrapper"
This commit is contained in:
Uri Shaked
2024-10-21 13:31:51 +03:00
parent 9844f3fe47
commit 9dc2af14c8
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ class Config(TypedDict):
name: str
project_dir: str
end_date: str
openframe: bool
top_level_macro: str
+1 -4
View File
@@ -31,10 +31,7 @@ class ShuttleConfig:
self.script_dir = os.path.dirname(os.path.realpath(__file__))
self.modules_yaml_name = modules_yaml_name
self.mux_config_yaml_name = os.environ.get("TT_CONFIG", "sky130.yaml")
if config.get("openframe", False):
self.tt_top_macro = "openframe_project_wrapper"
else:
self.tt_top_macro = "user_project_wrapper"
self.tt_top_macro = config.get("top_level_macro", "openframe_project_wrapper")
self.read_mux_config_file()
total_rows: int = self.mux_config["tt"]["grid"]["y"]