|
| 1 | +#################################################################################### |
| 2 | +#################################################################################### |
| 3 | +## Copyright 2024(c) Analog Devices, Inc. |
| 4 | +#################################################################################### |
| 5 | +#################################################################################### |
| 6 | + |
| 7 | +# All test-bench dependencies except test programs |
| 8 | +SV_DEPS += ../common/sv/utils.svh |
| 9 | +SV_DEPS += ../common/sv/logger_pkg.sv |
| 10 | +SV_DEPS += ../common/sv/reg_accessor.sv |
| 11 | +SV_DEPS += ../common/sv/m_axis_sequencer.sv |
| 12 | +SV_DEPS += ../common/sv/s_axis_sequencer.sv |
| 13 | +SV_DEPS += ../common/sv/m_axi_sequencer.sv |
| 14 | +SV_DEPS += ../common/sv/s_axi_sequencer.sv |
| 15 | +SV_DEPS += ../common/sv/test_harness_env.sv |
| 16 | +SV_DEPS += ../common/sv/adi_peripheral_pkg.sv |
| 17 | +SV_DEPS += ../common/sv/adi_regmap_pkg.sv |
| 18 | +SV_DEPS += ../common/sv/mailbox.sv |
| 19 | +SV_DEPS += ../common/sv/x_monitor.sv |
| 20 | +SV_DEPS += ../common/sv/scoreboard.sv |
| 21 | +SV_DEPS += ../common/sv/scoreboard_pack.sv |
| 22 | +SV_DEPS += ../common/sv/dmac_api.sv |
| 23 | +SV_DEPS += ../common/sv/dma_trans.sv |
| 24 | +SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv |
| 25 | +SV_DEPS += ../common/sv/watchdog.sv |
| 26 | +SV_DEPS += environment.sv |
| 27 | +SV_DEPS += system_tb.sv |
| 28 | + |
| 29 | +ENV_DEPS += system_project.tcl |
| 30 | +ENV_DEPS += system_bd.tcl |
| 31 | +ENV_DEPS +=../scripts/adi_sim.tcl |
| 32 | +ENV_DEPS +=../scripts/run_sim.tcl |
| 33 | + |
| 34 | +LIB_DEPS := util_cdc |
| 35 | +LIB_DEPS += util_axis_fifo |
| 36 | +LIB_DEPS += axi_dmac |
| 37 | +LIB_DEPS += util_pack/util_cpack2 |
| 38 | +LIB_DEPS += util_pack/util_upack2 |
| 39 | + |
| 40 | +# default test program |
| 41 | +TP := test_program |
| 42 | + |
| 43 | +# config files should have the following format |
| 44 | +# cfg_<param1>_<param2>.tcl |
| 45 | +CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) |
| 46 | + |
| 47 | +# List of tests and configuration combinations that has to be run |
| 48 | +# Format is: <configuration>:<test name> |
| 49 | +TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) |
| 50 | +#TESTS += cfg1:test_program |
| 51 | +#TESTS += cfg_rand:test_program |
| 52 | + |
| 53 | +include ../scripts/project-sim.mk |
| 54 | + |
| 55 | +# usage : |
| 56 | +# |
| 57 | +# run specific test on a specific configuration in gui mode |
| 58 | +# make CFG=cfg2_fsync TST=test_frame_delay MODE=gui |
| 59 | +# |
| 60 | +# run all test from a configuration |
| 61 | +# make cfg1_mm2mm_default |
| 62 | + |
| 63 | +#################################################################################### |
| 64 | +#################################################################################### |
0 commit comments