Skip to content

Commit

Permalink
feat(configure): make top_level_macro configurable
Browse files Browse the repository at this point in the history
For IHP shuttles, we need "tt_ihp_wrapper" instead of "openframe_project_wrapper"
  • Loading branch information
urish committed Oct 21, 2024
1 parent 9844f3f commit 9dc2af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class Config(TypedDict):
name: str
project_dir: str
end_date: str
openframe: bool
top_level_macro: str
5 changes: 1 addition & 4 deletions shuttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ def __init__(self, config: Config, projects: List[Project], modules_yaml_name: s
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"]
Expand Down

0 comments on commit 9dc2af1

Please sign in to comment.