diff --git a/target/sim/sim.mk b/target/sim/sim.mk index 3ac2a4c..b9df5bb 100644 --- a/target/sim/sim.mk +++ b/target/sim/sim.mk @@ -10,6 +10,25 @@ chim_sim_mk=1 CHIM_SIM_DIR ?= $(CHIM_ROOT)/target/sim +# Simulation parameters +SELCFG ?= 0 +# BOOTMODE ?= +# PRELMODE ?= +BINARY ?= $(CHIM_SW_DIR)/tests/testCluster.memisl.elf +# IMAGE ?= + +# Run vsim simulation +.PHONY: car-vsim-sim-run +chim-sim-run: chim-sim + cd $(CHIM_SIM_DIR)/vsim && \ + vsim -do " \ + set SELCFG $(SELCFG); \ + set BINARY $(BINARY); \ + source $(CHIM_SIM_DIR)/vsim/compile.tcl; \ + source $(CHIM_SIM_DIR)/vsim/start.chimera_soc.tcl; \ + run -all; \ + exit" + # Init vsim compilation .PHONY: chim-sim chim-sim: chim-hyperram-model $(CHIM_SIM_DIR)/vsim/compile.tcl diff --git a/target/sim/vsim/setup.chimera_soc.tcl b/target/sim/vsim/setup.chimera_soc.tcl deleted file mode 100644 index 0876587..0000000 --- a/target/sim/vsim/setup.chimera_soc.tcl +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright 2024 ETH Zurich and University of Bologna. -# Licensed under the Apache License, Version 2.0, see LICENSE for details. -# SPDX-License-Identifier: Apache-2.0 -# -# Moritz Scherer - -set BINARY ../../../sw/tests/testCluster.memisl.elf -set SELCFG 0