fix(configure): update synth stats paths for tt06

This commit is contained in:
Uri Shaked
2024-04-26 12:23:38 +03:00
parent 4b2bb6d000
commit 60c8ff8b8e
+2 -2
View File
@@ -321,7 +321,7 @@ class Project:
else: else:
return os.path.join(self.local_dir, "runs/wokwi/reports/metrics.csv") return os.path.join(self.local_dir, "runs/wokwi/reports/metrics.csv")
else: else:
return os.path.join(self.local_dir, "metrics.csv") return os.path.join(self.local_dir, "stats/metrics.csv")
def get_gl_path(self): def get_gl_path(self):
if self.is_user_project: if self.is_user_project:
@@ -811,7 +811,7 @@ class Project:
def get_cell_count_from_synth(self): def get_cell_count_from_synth(self):
num_cells = 0 num_cells = 0
try: try:
yosys_report = f"{self.local_dir}/synthesis-stats.txt" yosys_report = f"{self.local_dir}/stats/synthesis-stats.txt"
with open(yosys_report) as fh: with open(yosys_report) as fh:
for line in fh.readlines(): for line in fh.readlines():
m = re.search(r"Number of cells:\s+(\d+)", line) m = re.search(r"Number of cells:\s+(\d+)", line)