Skip to content

Commit

Permalink
fix(configure): fails on ihp user submissions
Browse files Browse the repository at this point in the history
IHP submissions do not have powered netlists, so add a flag to specify that in the shuttles config.yaml file.
  • Loading branch information
urish committed Oct 21, 2024
1 parent 6fbbea4 commit 4eb3789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(self, config: Config, args):
project.golden_harden()

if args.update_shuttle:
project.check_ports(True)
project.check_ports(bool(config.get("powered_netlists", True)))
project.check_num_cells()

self.projects.append(project)
Expand Down
7 changes: 5 additions & 2 deletions shuttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def __init__(self, config: Config, projects: List[Project], modules_yaml_name: s
self.modules_yaml_name = modules_yaml_name
self.mux_config_yaml_name = os.environ.get("TT_CONFIG", "sky130.yaml")
self.tt_top_macro = config.get("top_level_macro", "openframe_project_wrapper")
self.netlist_type = "pnl" if self.config.get("powered_netlists", True) else "nl"

self.read_mux_config_file()
total_rows: int = self.mux_config["tt"]["grid"]["y"]
Expand Down Expand Up @@ -186,6 +187,7 @@ def copy_macros(self):
copy_print_glob("projects/*/*.gds", "tt-multiplexer/ol2/tt_top/gds")
copy_print_glob("projects/*/*.lef", "tt-multiplexer/ol2/tt_top/lef")
copy_print_glob("projects/*/*.v", "tt-multiplexer/ol2/tt_top/verilog")
netlist_type = self.netlist_type
macros = ["tt_um_chip_rom", "tt_ctrl", "tt_mux"]
for macro in macros:
lastrun = self.find_last_run(macro)
Expand All @@ -198,7 +200,7 @@ def copy_macros(self):
f"tt-multiplexer/ol2/tt_top/lef/{macro}.lef",
)
copy_print(
f"{lastrun}/final/pnl/{macro}.pnl.v",
f"{lastrun}/final/{netlist_type}/{macro}.{netlist_type}.v",
f"tt-multiplexer/ol2/tt_top/verilog/{macro}.v",
)
copy_print_glob(
Expand Down Expand Up @@ -255,12 +257,13 @@ def copy_final_results(self):

def create_efabless_submission(self):
logging.info("creating efabless submission directory:")
netlist_type = self.netlist_type
lastrun = self.find_last_run("tt_top")
copy_print("shuttle_index.md", "efabless/README.md")
copy_print("shuttle_index.json", "efabless/shuttle_index.json")
copy_print("verilog/rtl/user_defines.v", "efabless/verilog/rtl/user_defines.v")
copy_print(
f"{lastrun}/final/pnl/{self.tt_top_macro}.pnl.v",
f"{lastrun}/final/{netlist_type}/{self.tt_top_macro}.{netlist_type}.v",
f"efabless/verilog/gl/{self.tt_top_macro}.v",
)
copy_print(
Expand Down

0 comments on commit 4eb3789

Please sign in to comment.