Skip to content

Commit

Permalink
Update src/kriscv/tools.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tamás Tóth <[email protected]>
  • Loading branch information
Stevengre and tothtamas28 authored Feb 14, 2025
1 parent d704300 commit 7118341
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/kriscv/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ def run_config(self, config: KInner) -> KInner:
stderr_path = path / 'krun_stderr.txt'
input_path = path / 'krun_input.txt'

with open(stdout_path, 'w') as f:
f.write(e.stdout)
with open(stderr_path, 'w') as f:
f.write(e.stderr)
with open(input_path, 'w') as f:
config_kore.write(f)
stdout_path.write_text(e.stdout)
stderr_path.write_text(e.stderr)
input_path.write_text(config_kore.text)

print('Generated debug files:')
print(f'- {stdout_path.resolve()}: KRun standard output')
Expand Down

0 comments on commit 7118341

Please sign in to comment.