3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-10-04 00:33:58 +00:00

sby_design: Extract total memory size and forall usage

This commit is contained in:
Jannis Harder 2022-06-14 18:04:24 +02:00
parent 157bb156c0
commit 5014d74023
3 changed files with 30 additions and 14 deletions

View file

@ -385,7 +385,7 @@ class SbyTask(SbyConfig):
self.status = "UNKNOWN"
self.total_time = 0
self.expect = list()
self.design_hierarchy = None
self.design = None
self.precise_prop_status = False
self.timeout_reached = False
self.task_local_abort = False
@ -572,9 +572,9 @@ class SbyTask(SbyConfig):
proc.checkretcode = True
def instance_hierarchy_callback(retcode):
if self.design_hierarchy == None:
if self.design == None:
with open(f"{self.workdir}/model/design.json") as f:
self.design_hierarchy = design_hierarchy(f)
self.design = design_hierarchy(f)
def instance_hierarchy_error_callback(retcode):
self.precise_prop_status = False
@ -848,7 +848,7 @@ class SbyTask(SbyConfig):
def print_junit_result(self, f, junit_ts_name, junit_tc_name, junit_format_strict=False):
junit_time = strftime('%Y-%m-%dT%H:%M:%S')
if self.precise_prop_status:
checks = self.design_hierarchy.get_property_list()
checks = self.design.hierarchy.get_property_list()
junit_tests = len(checks)
junit_failures = 0
junit_errors = 0