Skip to content

Commit

Permalink
Added new placeholder <config_path> to ISS YAML config, added config …
Browse files Browse the repository at this point in the history
…for Whisper

Signed-off-by: Maciej Kurc <[email protected]>
  • Loading branch information
mkurc-ant committed Oct 9, 2023
1 parent 372d03e commit 76be52e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def parse_iss_yaml(iss, iss_yaml, isa, setting_dir, debug_cmd):
logging.info("Processing ISS setup file : {}".format(iss_yaml))
yaml_data = read_yaml(iss_yaml)

# Path to the "yaml" subdirectory
yaml_dir = os.path.dirname(iss_yaml)

# Path to the "scripts" subdirectory
my_path = os.path.dirname(os.path.realpath(__file__))
scripts_dir = os.path.join(my_path, "scripts") # Search for matched ISS
Expand Down Expand Up @@ -167,6 +170,7 @@ def parse_iss_yaml(iss, iss_yaml, isa, setting_dir, debug_cmd):
else:
cmd = re.sub("\<variant\>", isa, cmd)
cmd = re.sub("\<scripts_path\>", scripts_dir, cmd)
cmd = re.sub("\<config_path\>", yaml_dir, cmd)
return cmd
logging.error("Cannot find ISS {}".format(iss))
sys.exit(RET_FAIL)
Expand Down
2 changes: 1 addition & 1 deletion yaml/iss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- iss: whisper
path_var: WHISPER_ISS
cmd: >
<path_var> <elf> --log --xlen <xlen> --isa <variant>
<path_var> <elf> --log --xlen <xlen> --isa <variant> --configfile <config_path>/whisper.json --iccmrw
- iss: renode
path_var: RENODE_PATH
Expand Down
7 changes: 7 additions & 0 deletions yaml/whisper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"iccm": {
"region": "0",
"size": "0x80000000",
"offset": "0x80000000"
}
}

0 comments on commit 76be52e

Please sign in to comment.