Skip to content

Commit

Permalink
added file to save config as standalone, to be used in test
Browse files Browse the repository at this point in the history
Signed-off-by: {Johann Heyszl} <[email protected]>
  • Loading branch information
johannheyszl committed Sep 26, 2023
1 parent e14ff69 commit 5f61e53
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cw/save_waverunner_config_to_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

"""Save WaveRunner to file for later use by script."""

from waverunner import WaveRunner

if __name__ == '__main__':
waverunner = WaveRunner("172.26.111.125")

# Save WaveRunner setup to timestamped file
now = datetime.now()
now_str = now.strftime("%Y-%m-%d_%H:%M:%S")
file_name_local = f"scope_config_{now_str}.lss"
waverunner.save_setup_to_local_file(file_name_local)

0 comments on commit 5f61e53

Please sign in to comment.