Skip to content

Commit

Permalink
Capture output of GateMate place-and-route to a log file
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kuzmin committed Apr 14, 2024
1 parent bd5a7e2 commit 78e6b96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions edalize/gatemate.py
Expand Up @@ -71,6 +71,9 @@ def configure_main(self):
else:
ccf_file = f.name

# p_r_log_file = None
p_r_log_file = 'p_r.log'

# Pass GateMate tool options to yosys
self.edam["tool_options"] = {
"yosys": {
Expand Down Expand Up @@ -117,6 +120,10 @@ def configure_main(self):
]
if ccf_file is not None:
command += ["-ccf", ccf_file]

if p_r_log_file is not None:
command += [">", p_r_log_file]

commands.add(command, [targets], [synth_out])

commands.set_default_target(targets)
Expand Down

0 comments on commit 78e6b96

Please sign in to comment.