From b7f2b677746f3067afc3cd238e84123ca0bf32e9 Mon Sep 17 00:00:00 2001 From: Riccardo Tedeschi Date: Wed, 4 Oct 2023 16:29:45 +0200 Subject: [PATCH] Update `run` target in Makefile * Pass `APP` variable to the startup TCL script * Change the executed startup script based on gui or batch simulation --- rules/pulpos/targets/pulp_cluster.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rules/pulpos/targets/pulp_cluster.mk b/rules/pulpos/targets/pulp_cluster.mk index 43f5c22..7e9b217 100644 --- a/rules/pulpos/targets/pulp_cluster.mk +++ b/rules/pulpos/targets/pulp_cluster.mk @@ -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