Skip to content

Commit

Permalink
vcs: decouple build and run
Browse files Browse the repository at this point in the history
This allows calling the run phase without forcing rebuilds
  • Loading branch information
olofk committed Jan 22, 2025
1 parent ac8e931 commit ccea733
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion edalize/tools/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def setup(self, edam):
["./" + binary_name, "$(EXTRA_OPTIONS)"]
+ self.tool_options.get("run_options", []),
["run"],
[binary_name],
[],
)
self.commands.set_default_target(binary_name)

Expand Down
2 changes: 1 addition & 1 deletion tests/tools/vcs/basic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ libx/64/vhmra.sdb: vhdl_lfile libx.f
design.simv: work/AN.DB/make.vlogan work_1/AN.DB/make.vlogan work_2/64/vhmra.sdb libx/64/vhmra.sdb user_file vcs.f parameters.txt
$(EDALIZE_LAUNCHER) vcs -full64 -o design.simv -file vcs.f -parameters parameters.txt

run: design.simv
run:
$(EDALIZE_LAUNCHER) ./design.simv $(EXTRA_OPTIONS) and some run options
2 changes: 1 addition & 1 deletion tests/tools/vcs/minimal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ libx/64/vhmra.sdb: vhdl_lfile libx.f
design.simv: work/AN.DB/make.vlogan work_1/AN.DB/make.vlogan work_2/64/vhmra.sdb libx/64/vhmra.sdb user_file vcs.f parameters.txt
$(EDALIZE_LAUNCHER) vcs -full64 -o design.simv -file vcs.f -parameters parameters.txt

run: design.simv
run:
$(EDALIZE_LAUNCHER) ./design.simv $(EXTRA_OPTIONS)

0 comments on commit ccea733

Please sign in to comment.