mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(configure): copy analog switch (asw) macro
This commit is contained in:
+19
-14
@@ -144,6 +144,20 @@ class ShuttleConfig:
|
|||||||
|
|
||||||
return os.path.join(runs, runlist[-1])
|
return os.path.join(runs, runlist[-1])
|
||||||
|
|
||||||
|
def copy_mux_macro(self, source_dir: str, name: str):
|
||||||
|
copy_print(
|
||||||
|
f"tt-multiplexer/{source_dir}/{name}.gds",
|
||||||
|
f"tt-multiplexer/ol2/tt_top/gds/{name}.gds",
|
||||||
|
)
|
||||||
|
copy_print(
|
||||||
|
f"tt-multiplexer/{source_dir}/{name}.lef",
|
||||||
|
f"tt-multiplexer/ol2/tt_top/lef/{name}.lef",
|
||||||
|
)
|
||||||
|
copy_print(
|
||||||
|
f"tt-multiplexer/{source_dir}/{name}.v",
|
||||||
|
f"tt-multiplexer/ol2/tt_top/verilog/{name}.v",
|
||||||
|
)
|
||||||
|
|
||||||
def copy_macros(self):
|
def copy_macros(self):
|
||||||
logging.info("copying macros to tt_top:")
|
logging.info("copying macros to tt_top:")
|
||||||
copy_print_glob("projects/*/*.gds", "tt-multiplexer/ol2/tt_top/gds")
|
copy_print_glob("projects/*/*.gds", "tt-multiplexer/ol2/tt_top/gds")
|
||||||
@@ -167,20 +181,11 @@ class ShuttleConfig:
|
|||||||
copy_print_glob(
|
copy_print_glob(
|
||||||
f"{lastrun}/final/spef/*/*.spef", "tt-multiplexer/ol2/tt_top/spef"
|
f"{lastrun}/final/spef/*/*.spef", "tt-multiplexer/ol2/tt_top/spef"
|
||||||
)
|
)
|
||||||
# Copy power gate macros:
|
|
||||||
for macro in ["tt_pg_vdd_1", "tt_pg_vdd_2"]:
|
# Copy power gate / analog switch macros:
|
||||||
copy_print(
|
self.copy_mux_macro("pg/tt_pg_vdd_1", "tt_pg_vdd_1")
|
||||||
f"tt-multiplexer/pg/{macro}/{macro}.gds",
|
self.copy_mux_macro("pg/tt_pg_vdd_2", "tt_pg_vdd_2")
|
||||||
f"tt-multiplexer/ol2/tt_top/gds/{macro}.gds",
|
self.copy_mux_macro("asw/tt_asw_1v8", "tt_asw_1v8")
|
||||||
)
|
|
||||||
copy_print(
|
|
||||||
f"tt-multiplexer/pg/{macro}/{macro}.lef",
|
|
||||||
f"tt-multiplexer/ol2/tt_top/lef/{macro}.lef",
|
|
||||||
)
|
|
||||||
copy_print(
|
|
||||||
f"tt-multiplexer/pg/{macro}/{macro}.v",
|
|
||||||
f"tt-multiplexer/ol2/tt_top/verilog/{macro}.v",
|
|
||||||
)
|
|
||||||
|
|
||||||
def copy_final_results(self):
|
def copy_final_results(self):
|
||||||
macros = ["tt_um_chip_rom", "tt_ctrl", "tt_mux", "tt_top"]
|
macros = ["tt_um_chip_rom", "tt_ctrl", "tt_mux", "tt_top"]
|
||||||
|
|||||||
Reference in New Issue
Block a user