mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix(reharden): support new shuttle index format (v3)
This commit is contained in:
+8
-8
@@ -90,8 +90,8 @@ def build_metrics(shuttle_index):
|
|||||||
min_util = 100
|
min_util = 100
|
||||||
max_util_project = None
|
max_util_project = None
|
||||||
|
|
||||||
for project in shuttle_index["mux"]:
|
for project in shuttle_index["projects"]:
|
||||||
macro: str = shuttle_index["mux"][project]["macro"]
|
macro: str = project["macro"]
|
||||||
repo_dir = os.path.join(REHARDEN_DIR, macro)
|
repo_dir = os.path.join(REHARDEN_DIR, macro)
|
||||||
metrics = load_metrics(repo_dir)
|
metrics = load_metrics(repo_dir)
|
||||||
if metrics is None:
|
if metrics is None:
|
||||||
@@ -171,23 +171,23 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
shuttle_index = json.load(open("shuttle_index.json"))
|
shuttle_index = json.load(open("shuttle_index.json"))
|
||||||
differences: List[str] = []
|
differences: List[str] = []
|
||||||
for number, project in enumerate(shuttle_index["mux"]):
|
for number, project in enumerate(shuttle_index["projects"]):
|
||||||
if number < args.start_from:
|
if number < args.start_from:
|
||||||
continue
|
continue
|
||||||
if number > args.end_at:
|
if number > args.end_at:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
repo = shuttle_index["mux"][project]["repo"]
|
repo = project["repo"]
|
||||||
commit = shuttle_index["mux"][project]["commit"]
|
commit = project["commit"]
|
||||||
macro = shuttle_index["mux"][project]["macro"]
|
macro = project["macro"]
|
||||||
repo_dir = os.path.join(REHARDEN_DIR, macro)
|
repo_dir = os.path.join(REHARDEN_DIR, macro)
|
||||||
|
|
||||||
if macro == "tt_um_chip_rom":
|
if macro == "tt_um_chip_rom":
|
||||||
logging.info(f"[{number :03}] skipping chip ROM")
|
logging.info(f"[{number :03}] skipping chip ROM")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if shuttle_index["mux"][project]["features"]["power_switch"]:
|
if "analog_pins" in project:
|
||||||
logging.info(f"[{number :03}] skipping power gated project {macro}")
|
logging.info(f"[{number :03}] skipping analog project {macro}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if args.clone:
|
if args.clone:
|
||||||
|
|||||||
Reference in New Issue
Block a user