Update run target in Makefile

* Pass `APP` variable to the startup TCL script
* Change the executed startup script based on gui or batch simulation
This commit is contained in:
Riccardo Tedeschi 2023-10-04 16:29:45 +02:00 committed by Yvan Tortorella
parent cc5186665d
commit b7f2b67774

View file

@ -68,4 +68,8 @@ vsim-flags = -c
endif
run:
vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); source $(VSIM_PATH)/scripts/start.tcl"
ifdef gui
vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); set APP $(TARGET_BUILD_DIR)/$(PULP_APP)/$(PULP_APP); source $(VSIM_PATH)/scripts/start.tcl"
else
vsim $(vsim-flags) -do "set VSIM_PATH $(VSIM_PATH); set APP $(TARGET_BUILD_DIR)/$(PULP_APP)/$(PULP_APP); source $(VSIM_PATH)/scripts/run_and_exit.tcl"
endif