mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 04:07:36 -04:00
Restore makefile targets with custom elf-bin
This commit is contained in:
parent
25a0470df6
commit
707c611465
1 changed files with 16 additions and 4 deletions
20
Makefile
20
Makefile
|
@ -25,7 +25,10 @@ defines ?=
|
|||
# test name for torture runs (binary name)
|
||||
test-location ?= output/test
|
||||
# set to either nothing or -log
|
||||
torture-logs := -log
|
||||
torture-logs :=
|
||||
# custom elf bin to run with sim or sim-verilator
|
||||
elf-bin ?= tmp/riscv-tests/build/benchmarks/dhrystone.riscv
|
||||
|
||||
|
||||
# Sources
|
||||
# Package files -> compile first
|
||||
|
@ -173,15 +176,21 @@ $(dpi-library)/ariane_dpi.so: $(dpi)
|
|||
# single test runs on Questa can be started by calling make <testname>, e.g. make towers.riscv
|
||||
# the test names are defined in ci/riscv-asm-tests.list, and in ci/riscv-benchmarks.list
|
||||
# if you want to run in batch mode, use make <testname> batch-mode=1
|
||||
# alternatively you can call make sim elf-bin=<path/to/elf-bin> in order to load an arbitrary binary
|
||||
sim: build
|
||||
vsim${questa_version} +permissive $(questa-flags) $(questa-cmd) -lib $(library) +max-cycles=$(max_cycles) +UVM_TESTNAME=$(test_case) \
|
||||
+BASEDIR=$(riscv-test-dir) $(uvm-flags) +jtag_rbb_enable=0 -gblso $(RISCV)/lib/libfesvr.so -sv_lib $(dpi-library)/ariane_dpi \
|
||||
${top_level}_optimized +permissive-off ++$(elf-bin) ++$(target-options) | tee sim.log
|
||||
|
||||
$(riscv-asm-tests): build
|
||||
vsim${questa_version} +permissive $(questa-flags) $(questa-cmd) -lib $(library) +max-cycles=$(max_cycles) +UVM_TESTNAME=$(test_case) \
|
||||
+BASEDIR=$(riscv-test-dir) $(uvm-flags) +jtag_rbb_enable=0 -gblso $(RISCV)/lib/libfesvr.so -sv_lib $(dpi-library)/ariane_dpi \
|
||||
${top_level}_optimized +permissive-off ++$(riscv-test-dir)/$@ ++$(target-options) | tee tmp/riscv-asm-tests-$@.log
|
||||
${top_level}_optimized +permissive-off ++$(riscv-test-dir)/$@ ++$(target-options) | tee tmp/riscv-amo-tests-$@.log
|
||||
|
||||
$(riscv-amo-tests): build
|
||||
vsim${questa_version} +permissive $(questa-flags) $(questa-cmd) -lib $(library) +max-cycles=$(max_cycles) +UVM_TESTNAME=$(test_case) \
|
||||
+BASEDIR=$(riscv-test-dir) $(uvm-flags) +jtag_rbb_enable=0 -gblso $(RISCV)/lib/libfesvr.so -sv_lib $(dpi-library)/ariane_dpi \
|
||||
${top_level}_optimized +permissive-off ++$(riscv-test-dir)/$@ ++$(target-options) | tee tmp/riscv-amo-tests-$@.log
|
||||
${top_level}_optimized +permissive-off ++$(riscv-test-dir)/$@ ++$(target-options) | tee tmp/riscv-asm-tests-$@.log
|
||||
|
||||
$(riscv-benchmarks): build
|
||||
vsim${questa_version} +permissive $(questa-flags) $(questa-cmd) -lib $(library) +max-cycles=$(max_cycles) +UVM_TESTNAME=$(test_case) \
|
||||
|
@ -237,6 +246,9 @@ verilate:
|
|||
$(verilate_command)
|
||||
cd $(ver-library) && $(MAKE) -j${NUM_JOBS} -f Variane_testharness.mk
|
||||
|
||||
sim-verilator: verilate
|
||||
$(ver-library)/Variane_testharness $(elf-bin)
|
||||
|
||||
$(addsuffix -verilator,$(riscv-asm-tests)): verilate
|
||||
$(ver-library)/Variane_testharness $(riscv-test-dir)/$(subst -verilator,,$@)
|
||||
|
||||
|
@ -312,7 +324,7 @@ clean:
|
|||
rm -f tmp/*.ucdb tmp/*.log *.wlf *vstf wlft* *.ucdb
|
||||
|
||||
.PHONY:
|
||||
build sim simc verilate clean \
|
||||
build sim sim-verilate clean \
|
||||
$(riscv-asm-tests) $(addsuffix _verilator,$(riscv-asm-tests)) \
|
||||
$(riscv-benchmarks) $(addsuffix _verilator,$(riscv-benchmarks)) \
|
||||
check-benchmarks check-asm-tests \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue