-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* VCS: Support runtime options Introduce `run_options` to pass options to the simulation when running it. (`vcs_options` is passed to VCS when compiling the simulation). * VCS: Rename test_vcs2 to test_no_tool_options And put the test files into a separate directory
- Loading branch information
Showing
12 changed files
with
81 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
all: {{ name }} | ||
|
||
{{ name }}: {{ name }}.scr | ||
vcs -full64 -top {{ toplevel }} -f {{ name }}.scr -o $@ {% for option in tool_options %} {{ option }} {% endfor %} | ||
vcs -full64 -top {{ toplevel }} -f {{ name }}.scr -o $@ {% for option in vcs_options %} {{ option }}{% endfor %} | ||
|
||
run: {{ name }} | ||
./{{ name }} -l vcs.log {% for plusarg in plusargs %} {{ plusarg }} {% endfor %} | ||
./{{ name }} -l vcs.log {% for plusarg in plusargs %} {{ plusarg }} {% endfor %}{% for option in run_options %} {{ option }}{% endfor %} | ||
|
||
clean: | ||
$(RM) {{ name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
all: test_vcs_tool_options_0 | ||
|
||
test_vcs_tool_options_0: test_vcs_tool_options_0.scr | ||
vcs -full64 -top top_module -f test_vcs_tool_options_0.scr -o $@ -debug_access+pp -debug_access+all | ||
run: test_vcs_tool_options_0 | ||
./test_vcs_tool_options_0 -l vcs.log +plusarg_bool=1 +plusarg_int=42 +plusarg_str=hello -licqueue | ||
clean: | ||
$(RM) test_vcs_tool_options_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-l vcs.log +plusarg_bool=1 +plusarg_int=42 +plusarg_str=hello -licqueue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
+define+vlogdefine_bool=1 | ||
+define+vlogdefine_int=42 | ||
+define+vlogdefine_str=hello | ||
+parameter+top_module.vlogparam_bool=1 | ||
+parameter+top_module.vlogparam_int=42 | ||
+parameter+top_module.vlogparam_str="hello" | ||
+incdir+. | ||
sv_file.sv | ||
vlog_file.v | ||
vlog05_file.v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-full64 -top top_module -f test_vcs_tool_options_0.scr -o test_vcs_tool_options_0 -debug_access+pp -debug_access+all |