Skip to content

Commit 2576305

Browse files
committed
interchange: take only run-time to bitstream
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
1 parent df5a9f1 commit 2576305

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

toolchains/symbiflow.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,12 @@ def prepare_edam(self):
11091109

11101110
return edam
11111111

1112+
def run_steps(self):
1113+
with Timed(self, 'fasm'):
1114+
self.backend.build_main(self.project_name + '.fasm')
1115+
with Timed(self, 'bitstream'):
1116+
self.backend.build_main(self.project_name + '.bit')
1117+
11121118
def run(self):
11131119
with Timed(self, 'total'):
11141120
with Timed(self, 'prepare'):
@@ -1118,11 +1124,14 @@ def run(self):
11181124
edam=self.edam, work_root=self.out_dir
11191125
)
11201126
self.backend.configure("")
1121-
try:
1122-
self.backend.build_main(self.project_name + '.timing')
1123-
self.run_steps()
1124-
finally:
1125-
del os.environ['EDALIZE_LAUNCHER']
1127+
1128+
self.backend.build_main(self.project_name + '.phys')
1129+
self.run_steps()
1130+
1131+
with Timed(self, 'report_timing'):
1132+
self.backend.build_main(self.project_name + '.timing')
1133+
1134+
del os.environ["EDALIZE_LAUNCHER"]
11261135

11271136
self.add_runtimes()
11281137
self.add_wirelength()

toolchains/toolchain.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ def get_runtimes(self):
268268
'overhead': ['overhead'],
269269
'checkpoint': ['open_checkpoint'],
270270
'bitstream': ['write_bitstream', 'bitstream'],
271-
'reports': ['report_power', 'report_methodology', 'report_drc'],
271+
'reports':
272+
[
273+
'report_power', 'report_methodology', 'report_drc',
274+
'report_timing'
275+
],
272276
'total': ['total'],
273277
'fasm2bels': ['fasm2bels'],
274278
'link design': ['link_design'],

0 commit comments

Comments
 (0)