From 9770fd6e6c8b3ba3b395738ac2dc2d7ee5b22acf Mon Sep 17 00:00:00 2001 From: IstvanZsSzekely <122256380+IstvanZsSzekely@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:03:44 +0300 Subject: [PATCH] Next main (#124) next_main: Restructured repository Signed-off-by: Istvan-Zsolt Szekely Co-authored-by: LBFFilho --- ad463x/system_project.tcl | 45 --------------- ad57xx/system_project.tcl | 52 ----------------- ad7606x/system_project.tcl | 44 --------------- ad9083/system_project.tcl | 51 ----------------- ad_quadmxfe1_ebz/system_project.tcl | 55 ------------------ adrv9001/system_project.tcl | 47 ---------------- adrv9009/system_project.tcl | 56 ------------------- dma_loopback/system_project.tcl | 43 -------------- dma_sg/system_project.tcl | 45 --------------- fmcomms2/system_project.tcl | 45 --------------- hbm/system_project.tcl | 42 -------------- jesd_loopback/system_project.tcl | 53 ------------------ jesd_loopback_64b/system_project.tcl | 47 ---------------- .../drivers/common}/interfaces.svh | 0 .../sv => library/drivers/common}/mailbox.sv | 0 .../drivers/common}/scoreboard.sv | 0 .../drivers/common}/scoreboard_pack.sv | 0 .../sv => library/drivers/common}/watchdog.sv | 0 .../drivers/common}/x_monitor.sv | 0 .../drivers/data_offload}/data_offload_api.sv | 0 .../sv => library/drivers/dmac}/dma_trans.sv | 0 .../sv => library/drivers/dmac}/dmac_api.sv | 0 .../drivers/jesd}/adi_jesd204_pkg.sv | 0 .../drivers/jesd}/jesd_exerciser.tcl | 0 .../spi_engine}/spi_engine_instr_pkg.sv | 0 .../drivers/xcvr}/adi_xcvr_pkg.sv | 0 .../regmaps}/adi_peripheral_pkg.sv | 0 .../regmaps}/adi_regmap_adc_pkg.sv | 0 .../regmaps}/adi_regmap_axi_ad7616_pkg.sv | 0 .../regmaps}/adi_regmap_clkgen_pkg.sv | 0 .../regmaps}/adi_regmap_clock_monitor_pkg.sv | 0 .../regmaps}/adi_regmap_common_pkg.sv | 0 .../regmaps}/adi_regmap_dac_pkg.sv | 0 .../regmaps}/adi_regmap_data_offload_pkg.sv | 0 .../regmaps}/adi_regmap_dmac_pkg.sv | 0 .../regmaps}/adi_regmap_fan_control_pkg.sv | 0 .../regmaps}/adi_regmap_gpreg_pkg.sv | 0 .../regmaps}/adi_regmap_hdmi_pkg.sv | 0 .../regmaps}/adi_regmap_i3c_controller_pkg.sv | 0 .../regmaps}/adi_regmap_iodelay_pkg.sv | 0 .../regmaps}/adi_regmap_jesd_rx_pkg.sv | 0 .../regmaps}/adi_regmap_jesd_tpl_pkg.sv | 0 .../regmaps}/adi_regmap_jesd_tx_pkg.sv | 0 .../sv => library/regmaps}/adi_regmap_pkg.sv | 0 .../regmaps}/adi_regmap_pwm_gen_pkg.sv | 0 .../regmaps}/adi_regmap_spi_engine_pkg.sv | 0 .../regmaps}/adi_regmap_system_id_pkg.sv | 0 .../regmaps}/adi_regmap_tdd_gen_pkg.sv | 0 .../regmaps}/adi_regmap_tdd_trans_pkg.sv | 0 .../regmaps}/adi_regmap_xcvr_pkg.sv | 0 .../sv => library/regmaps}/reg_accessor.sv | 0 .../sv => library/utilities}/logger_pkg.sv | 0 .../utilities}/test_harness_env.sv | 0 .../utilities}/test_harness_system_bd.tcl | 0 {common/sv => library/utilities}/utils.svh | 0 .../sv => library/vip/adi}/spi_vip/Makefile | 6 +- .../vip/adi}/spi_vip/adi_spi_vip.sv | 0 .../vip/adi}/spi_vip/adi_spi_vip_ip.tcl | 6 +- .../vip/adi}/spi_vip/adi_spi_vip_pkg.sv | 0 .../vip/adi}/spi_vip/adi_spi_vip_pkg.ttcl | 0 .../vip/adi/spi_vip}/s_spi_sequencer.sv | 0 .../vip/adi}/spi_vip/spi_vip_if.sv | 0 .../sv => library/vip/amd}/m_axi_sequencer.sv | 0 .../vip/amd}/m_axis_sequencer.sv | 0 .../sv => library/vip/amd}/s_axi_sequencer.sv | 0 .../vip/amd}/s_axis_sequencer.sv | 0 mxfe/system_project.tcl | 52 ----------------- pluto/Makefile | 51 ----------------- pluto/system_project.tcl | 46 --------------- pulsar_adc_pmdz/system_project.tcl | 49 ---------------- scoreboard/system_project.tcl | 49 ---------------- scripts/adi_sim.tcl | 4 +- scripts/project-sim.mk | 6 +- spi_engine/system_project.tcl | 53 ------------------ {axi_tdd => testbenches/ip/axi_tdd}/Makefile | 26 ++++----- {ad463x => testbenches/ip/axi_tdd}/README.md | 0 .../ip/axi_tdd}/cfgs/cfg1.tcl | 0 .../ip/axi_tdd}/system_bd.tcl | 2 +- .../ip/axi_tdd}/system_project.tcl | 24 ++++---- .../ip/axi_tdd}/system_tb.sv | 0 .../ip/axi_tdd}/tests/test_program.sv | 0 .../ip/axi_tdd}/waves/cfg1.wcfg | 0 .../ip/axis_sequencers}/Makefile | 28 +++++----- .../ip/axis_sequencers}/README.md | 0 .../ip/axis_sequencers}/cfgs/cfg1.tcl | 0 .../ip/axis_sequencers}/environment.sv | 0 .../ip/axis_sequencers}/system_bd.tcl | 2 +- .../ip/axis_sequencers}/system_project.tcl | 29 +++++----- .../ip/axis_sequencers}/system_tb.sv | 0 .../ip/axis_sequencers}/tests/test_program.sv | 0 .../ip/axis_sequencers}/waves/cfg1.wcfg | 0 {base => testbenches/ip/base}/Makefile | 34 +++++------ {base => testbenches/ip/base}/README.md | 0 {base => testbenches/ip/base}/cfgs/cfg1.tcl | 0 {base => testbenches/ip/base}/environment.sv | 0 {base => testbenches/ip/base}/system_bd.tcl | 2 +- .../ip/base}/system_project.tcl | 29 +++++----- {base => testbenches/ip/base}/system_tb.sv | 0 .../ip/base}/tests/test_program.sv | 0 {base => testbenches/ip/base}/waves/cfg1.wcfg | 0 .../ip/data_offload}/Makefile | 20 +++---- .../ip/data_offload}/README.md | 0 .../ip/data_offload}/cfgs/cfg1.tcl | 0 .../ip/data_offload}/cfgs/cfg2.tcl | 0 .../ip/data_offload}/cfgs/cfg3.tcl | 0 .../cfgs/cfg7_internal_memory.tcl | 0 .../ip/data_offload}/cfgs/common_cfg.tcl | 0 .../ip/data_offload}/do_scoreboard.sv | 0 .../ip/data_offload}/environment.sv | 0 .../ip/data_offload}/system_bd.tcl | 0 .../ip/data_offload}/system_project.tcl | 18 +++--- .../ip/data_offload}/system_tb.sv | 0 .../ip/data_offload}/tests/test_program.sv | 0 .../data_offload}/waves/rx_plddr_tx_ram.wcfg | 0 .../ip/data_offload_2}/Makefile | 20 +++---- .../ip/data_offload_2}/cfgs/cfg0.tcl | 0 .../ip/data_offload_2}/cfgs/cfg1.tcl | 0 .../ip/data_offload_2}/cfgs/cfg2.tcl | 0 .../ip/data_offload_2}/cfgs/cfg3.tcl | 0 .../ip/data_offload_2}/cfgs/cfg4.tcl | 0 .../ip/data_offload_2}/cfgs/cfg5_hbm.tcl | 0 .../data_offload_2}/cfgs/cfg5_hbm_cyclic.tcl | 0 .../ip/data_offload_2}/cfgs/common_cfg.tcl | 0 .../ip/data_offload_2}/data_offload_pkg.sv | 0 .../ip/data_offload_2}/do_scoreboard.sv | 0 .../ip/data_offload_2}/environment.sv | 0 .../ip/data_offload_2}/system_bd.tcl | 0 .../ip/data_offload_2}/system_project.tcl | 18 +++--- .../ip/data_offload_2}/system_tb.sv | 0 .../ip/data_offload_2}/tests/test_program.sv | 0 .../tests/test_program_sync.sv | 0 .../ip/data_offload_2}/waves/cfg0.wcfg | 0 .../ip/data_offload_2}/waves/cfg1.wcfg | 0 .../ip/data_offload_2}/waves/cfg2.wcfg | 0 .../ip/data_offload_2}/waves/cfg3.wcfg | 0 .../ip/data_offload_2}/waves/cfg4.wcfg | 0 .../ip/dma_loopback}/Makefile | 30 +++++----- .../ip/dma_loopback}/README.md | 0 .../ip/dma_loopback}/cfgs/cfg1.tcl | 0 .../ip/dma_loopback}/system_bd.tcl | 2 +- .../ip/dma_loopback/system_project.tcl | 43 ++++++++++++++ .../ip/dma_loopback}/system_tb.sv | 0 .../ip/dma_loopback}/tests/test_program.sv | 0 .../ip/dma_loopback}/waves/cfg1.wcfg | 0 {dma_sg => testbenches/ip/dma_sg}/Makefile | 30 +++++----- {ad7616 => testbenches/ip/dma_sg}/README.md | 0 .../ip/dma_sg}/cfgs/cfg1.tcl | 0 .../ip/dma_sg}/cfgs/cfg2.tcl | 0 .../ip/dma_sg}/system_bd.tcl | 2 +- testbenches/ip/dma_sg/system_project.tcl | 45 +++++++++++++++ .../ip/dma_sg}/system_tb.sv | 0 .../ip/dma_sg}/tests/test_program_1d.sv | 0 .../ip/dma_sg}/tests/test_program_2d.sv | 0 .../ip/dma_sg}/tests/test_program_tr_queue.sv | 0 .../ip/dma_sg}/waves/cfg1.wcfg | 0 .../ip/dma_sg}/waves/cfg2.wcfg | 0 {hbm => testbenches/ip/hbm}/Makefile | 30 +++++----- {ad9083 => testbenches/ip/hbm}/README.md | 0 {hbm => testbenches/ip/hbm}/cfgs/cfg1.tcl | 0 {hbm => testbenches/ip/hbm}/system_bd.tcl | 4 +- testbenches/ip/hbm/system_project.tcl | 42 ++++++++++++++ {hbm => testbenches/ip/hbm}/system_tb.sv | 0 .../ip/hbm}/tests/test_program.sv | 0 {hbm => testbenches/ip/hbm}/waves/cfg1.wcfg | 0 .../ip/i3c_controller}/Makefile | 26 ++++----- .../ip/i3c_controller}/README.md | 0 .../ip/i3c_controller}/cfgs/cfg1.tcl | 0 .../ip/i3c_controller}/cfgs/cfg2.tcl | 0 .../ip/i3c_controller}/system_bd.tcl | 8 +-- .../ip/i3c_controller}/system_project.tcl | 22 ++++---- .../ip/i3c_controller}/system_tb.sv | 0 .../ip/i3c_controller}/tests/test_program.sv | 4 +- .../ip/i3c_controller}/waves/cfg1.wcfg | 0 .../ip/jesd_loopback}/Makefile | 40 ++++++------- .../ip/jesd_loopback}/README.md | 0 .../ip/jesd_loopback}/cfgs/cfg1.tcl | 0 .../ip/jesd_loopback}/cfgs/cfg2.tcl | 0 .../ip/jesd_loopback}/cfgs/cfg2_np12.tcl | 0 .../ip/jesd_loopback}/cfgs/cfg3_np12_L2M8.tcl | 0 .../ip/jesd_loopback}/cfgs/cfg4_F8.tcl | 0 .../ip/jesd_loopback}/cfgs/cfg5_64b66b.tcl | 0 .../ip/jesd_loopback}/cfgs/cfg6_F64.tcl | 0 .../jesd_loopback}/cfgs/cfg7_np12_L12M2.tcl | 0 .../ip/jesd_loopback}/cfgs/common.tcl | 0 .../ip/jesd_loopback}/system_bd.tcl | 2 +- .../ip/jesd_loopback/system_project.tcl | 53 ++++++++++++++++++ .../ip/jesd_loopback}/system_tb.sv | 0 .../ip/jesd_loopback}/tests/test_program.sv | 0 .../ip/jesd_loopback}/waves/cfg1.wcfg | 0 .../ip/jesd_loopback}/waves/cfg2.wcfg | 0 .../ip/jesd_loopback}/waves/cfg2_np12.wcfg | 0 .../ip/jesd_loopback}/waves/cfg4_F8.wcfg | 0 .../ip/jesd_loopback_64b}/Makefile | 40 ++++++------- .../ip/jesd_loopback_64b}/README.md | 0 .../ip/jesd_loopback_64b}/cfgs/cfg1.tcl | 0 .../ip/jesd_loopback_64b}/environment.sv | 0 .../ip/jesd_loopback_64b}/system_bd.tcl | 2 +- .../ip/jesd_loopback_64b/system_project.tcl | 47 ++++++++++++++++ .../ip/jesd_loopback_64b}/system_tb.sv | 0 .../jesd_loopback_64b}/tests/test_program.sv | 0 .../ip/jesd_loopback_64b}/waves/cfg1.wcfg | 0 .../ip/scoreboard}/Makefile | 42 +++++++------- .../ip/scoreboard}/README.md | 0 .../ip/scoreboard}/cfgs/cfg1.tcl | 0 .../ip/scoreboard}/environment.sv | 0 .../ip/scoreboard}/system_bd.tcl | 2 +- testbenches/ip/scoreboard/system_project.tcl | 49 ++++++++++++++++ .../ip/scoreboard}/system_tb.sv | 0 .../ip/scoreboard}/tests/test_program.sv | 0 .../ip/scoreboard}/waves/cfg1.wcfg | 0 .../ip/spi_engine}/Makefile | 42 +++++++------- .../ip/spi_engine}/README.md | 0 .../ip/spi_engine}/cfgs/cfg1.tcl | 0 .../ip/spi_engine}/cfgs/cfg_inv_cs.tcl | 0 .../ip/spi_engine}/cfgs/cfg_sdo_streaming.tcl | 0 .../ip/spi_engine}/spi_engine_test_bd.tcl | 0 .../ip/spi_engine}/spi_environment.sv | 0 .../ip/spi_engine}/system_bd.tcl | 8 +-- testbenches/ip/spi_engine/system_project.tcl | 53 ++++++++++++++++++ .../ip/spi_engine}/system_tb.sv | 0 .../ip/spi_engine}/tests/test_program.sv | 0 .../ip/spi_engine}/tests/test_sleep_delay.sv | 0 .../ip/spi_engine}/waves/cfg1.wcfg | 0 .../ip/spi_engine}/waves/cfg_inv_cs.wcfg | 0 .../spi_engine}/waves/cfg_sdo_streaming.wcfg | 0 .../ip/util_pack}/Makefile | 42 +++++++------- .../ip/util_pack}/README.md | 0 .../ip/util_pack}/cfgs/cfg1.tcl | 0 .../ip/util_pack}/cfgs/cfg_rand.tcl | 0 .../ip/util_pack}/environment.sv | 0 .../ip/util_pack}/system_bd.tcl | 2 +- testbenches/ip/util_pack/system_project.tcl | 49 ++++++++++++++++ .../ip/util_pack}/system_tb.sv | 0 .../ip/util_pack}/tests/test_program.sv | 0 .../ip/util_pack}/waves/cfg1.wcfg | 0 .../ip/util_pack}/waves/cfg_rand.wcfg | 0 .../project/ad463x}/Makefile | 38 ++++++------- {hbm => testbenches/project/ad463x}/README.md | 0 .../ad463x}/cfgs/cfg_cm0_sdi2_cz1_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm0_sdi2_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm0_sdi4_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm0_sdi8_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi1_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi2_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi2_cz2_ddr1.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi4_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi4_cz2_ddr1.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi8_cz2_ddr0.tcl | 0 .../ad463x}/cfgs/cfg_cm1_sdi8_cz2_ddr1.tcl | 0 .../project/ad463x}/system_bd.tcl | 6 +- testbenches/project/ad463x/system_project.tcl | 45 +++++++++++++++ .../project/ad463x}/system_tb.sv | 0 .../project/ad463x}/tests/test_program.sv | 0 .../project/ad57xx}/Makefile | 38 ++++++------- .../project/ad57xx}/README.md | 0 .../project/ad57xx}/ad57xx_environment.sv | 0 .../project/ad57xx}/cfgs/cfg1.tcl | 0 .../project/ad57xx}/system_bd.tcl | 10 ++-- testbenches/project/ad57xx/system_project.tcl | 52 +++++++++++++++++ .../project/ad57xx}/system_tb.sv | 0 .../project/ad57xx}/tests/test_program.sv | 0 .../project/ad57xx}/waves/cfg1.wcfg | 0 .../project/ad738x}/Makefile | 34 +++++------ .../project/ad738x}/README.md | 0 .../project/ad738x}/cfgs/cfg1.tcl | 0 .../project/ad738x}/system_bd.tcl | 4 +- .../project/ad738x}/system_project.tcl | 34 +++++------ .../project/ad738x}/system_tb.sv | 0 .../project/ad738x}/tests/test_program.sv | 0 .../project/ad738x}/waves/cfg.wcfg | 0 .../project/ad7606x}/Makefile | 38 ++++++------- .../project/ad7606x}/README.md | 0 .../project/ad7606x}/cfgs/cfg1.tcl | 0 .../project/ad7606x}/cfgs/cfg2.tcl | 0 .../project/ad7606x}/cfgs/cfg3.tcl | 0 .../project/ad7606x}/system_bd.tcl | 8 +-- .../project/ad7606x/system_project.tcl | 44 +++++++++++++++ .../project/ad7606x}/system_tb.sv | 0 .../project/ad7606x}/tests/test_program.sv | 0 .../ad7606x}/waves/system_tb_behav.wcfg | 0 .../project/ad7616}/Makefile | 40 ++++++------- .../project/ad7616}/README.md | 0 .../project/ad7616}/cfgs/cfg_pi.tcl | 0 .../project/ad7616}/cfgs/cfg_si.tcl | 0 .../project/ad7616}/system_bd.tcl | 8 +-- .../project/ad7616}/system_project.tcl | 36 ++++++------ .../project/ad7616}/system_tb.sv | 0 .../project/ad7616}/tests/test_program_pi.sv | 0 .../project/ad7616}/tests/test_program_si.sv | 0 .../project/ad7616}/waves/cfg_pi.wcfg | 0 .../project/ad7616}/waves/cfg_si.wcfg | 0 .../project/ad9083}/Makefile | 30 +++++----- .../project/ad9083}/README.md | 0 .../project/ad9083}/cfgs/cfg1.tcl | 0 .../project/ad9083}/system_bd.tcl | 2 +- testbenches/project/ad9083/system_project.tcl | 51 +++++++++++++++++ .../project/ad9083}/system_tb.sv | 0 .../project/ad9083}/tests/test_program.sv | 0 .../project/ad9083}/waves/cfg1.wcfg | 0 .../ad9083}/waves/cfg4_8b10b_np12.wcfg | 0 .../project/ad_quadmxfe1_ebz}/Makefile | 40 ++++++------- .../project/ad_quadmxfe1_ebz}/cfgs/cfg1.tcl | 0 .../ad_quadmxfe1_ebz}/cfgs/cfg2_64b66b.tcl | 0 .../cfgs/cfg3_64b66b_LR_4_125.tcl | 0 .../cfgs/cfg4_64b66b_Tx10_Rx11.tcl | 0 .../cfgs/cfg5_64b66b_Tx23_Rx25_LR_24_75.tcl | 0 .../cfgs/cfg6_64b66b_Tx29_Rx24_LR_24_75.tcl | 0 .../project/ad_quadmxfe1_ebz}/system_bd.tcl | 2 +- .../ad_quadmxfe1_ebz/system_project.tcl | 55 ++++++++++++++++++ .../project/ad_quadmxfe1_ebz}/system_tb.sv | 0 .../ad_quadmxfe1_ebz}/tests/test_dma.sv | 0 .../ad_quadmxfe1_ebz}/tests/test_program.sv | 0 .../tests/test_program_64b66b.sv | 0 .../project/ad_quadmxfe1_ebz}/waves/cfg1.wcfg | 0 .../ad_quadmxfe1_ebz}/waves/cfg2_64b66b.wcfg | 0 .../waves/cfg3_64b66b_LR_4_125.wcfg | 0 .../waves/cfg4_64b66b_Tx10_Rx11.wcfg | 0 .../waves/cfg5_64b66b_Tx23_Rx25_LR_24_75.wcfg | 0 .../waves/cfg6_64b66b_Tx29_Rx24_LR_24_75.wcfg | 0 .../project/adrv9001}/Makefile | 40 ++++++------- .../project/adrv9001}/README.md | 0 .../cfgs/cfg10_CMOS_SDR_1LANES_SYMB_16b.tcl | 0 .../cfgs/cfg11_CMOS_DDR_1Lanes_SYMB_16b.tcl | 0 .../adrv9001}/cfgs/cfg1_CMOS_SDR_1Lanes.tcl | 0 .../adrv9001}/cfgs/cfg2_CMOS_DDR_1Lanes.tcl | 0 .../adrv9001}/cfgs/cfg4_CMOS_SDR_4Lanes.tcl | 0 .../adrv9001}/cfgs/cfg5_CMOS_DDR_4Lanes.tcl | 0 .../adrv9001}/cfgs/cfg6_LVDS_DDR_1Lanes.tcl | 0 .../adrv9001}/cfgs/cfg7_LVDS_DDR_2Lanes.tcl | 0 .../cfgs/cfg7_LVDS_DDR_2Lanes_noDDS.tcl | 0 .../cfgs/cfg8_CMOS_SDR_1Lanes_SYMB_8b.tcl | 0 .../cfgs/cfg9_CMOS_DDR_1Lanes_SYMB_8b.tcl | 0 .../project/adrv9001}/system_bd.tcl | 2 +- .../project/adrv9001/system_project.tcl | 47 ++++++++++++++++ .../project/adrv9001}/system_tb.sv | 0 .../project/adrv9001}/tests/test_program.sv | 0 .../adrv9001}/waves/cfg1_CMOS_SDR_1Lanes.wcfg | 0 .../adrv9001}/waves/cfg5_CMOS_DDR_4Lanes.wcfg | 0 .../project/adrv9009}/Makefile | 40 ++++++------- .../project/adrv9009}/README.md | 0 .../project/adrv9009}/cfgs/cfg1.tcl | 0 .../project/adrv9009}/cfgs/cfg2.tcl | 0 .../project/adrv9009}/cfgs/cfg3.tcl | 0 .../project/adrv9009}/cfgs/cfg4.tcl | 0 .../project/adrv9009}/environment.sv | 0 .../project/adrv9009}/system_bd.tcl | 4 +- .../project/adrv9009/system_project.tcl | 56 +++++++++++++++++++ .../project/adrv9009}/system_tb.sv | 0 .../project/adrv9009}/tests/test_program.sv | 0 .../project/adrv9009}/waves/cfg1.wcfg | 0 .../project/fmcomms2}/Makefile | 36 ++++++------ .../project/fmcomms2}/README.md | 0 .../project/fmcomms2}/cfgs/cfg1.tcl | 0 .../project/fmcomms2}/system_bd.tcl | 2 +- .../project/fmcomms2/system_project.tcl | 45 +++++++++++++++ .../project/fmcomms2}/system_tb.sv | 0 .../project/fmcomms2}/tests/test_program.sv | 0 .../project/fmcomms2}/waves/cfg1.wcfg | 0 {mxfe => testbenches/project/mxfe}/Makefile | 43 +++++++------- .../project/mxfe}/README.md | 0 .../project/mxfe}/cfgs/cfg1.tcl | 0 .../project/mxfe}/cfgs/cfg2_64b66b_np8.tcl | 0 .../project/mxfe}/cfgs/cfg3_64b66b_np12.tcl | 0 .../project/mxfe}/cfgs/cfg4_8b10b_np12.tcl | 0 .../cfgs/cfg5_204c_txmode_10_rxmode_11.tcl | 0 .../project/mxfe}/cfgs/cfg6_m16_l8_tdd.tcl | 0 .../project/mxfe}/system_bd.tcl | 2 +- testbenches/project/mxfe/system_project.tcl | 52 +++++++++++++++++ .../project/mxfe}/system_tb.sv | 0 .../project/mxfe}/tests/test_program.sv | 0 .../project/mxfe}/waves/cfg1.wcfg | 0 .../project/mxfe}/waves/cfg4_8b10b_np12.wcfg | 0 testbenches/project/pluto/Makefile | 51 +++++++++++++++++ .../project/pluto}/README.md | 0 .../project/pluto}/cfgs/cfg1.tcl | 0 .../project/pluto}/system_bd.tcl | 2 +- testbenches/project/pluto/system_project.tcl | 46 +++++++++++++++ .../project/pluto}/system_tb.sv | 0 .../project/pluto}/tests/test_program.sv | 0 .../project/pluto}/waves/cfg1.wcfg | 0 .../project/pulsar_adc_pmdz}/Makefile | 38 ++++++------- .../project/pulsar_adc_pmdz}/README.md | 0 .../project/pulsar_adc_pmdz}/cfgs/cfg1.tcl | 0 .../project/pulsar_adc_pmdz}/spi_engine.svh | 0 .../project/pulsar_adc_pmdz}/system_bd.tcl | 10 ++-- .../pulsar_adc_pmdz/system_project.tcl | 49 ++++++++++++++++ .../project/pulsar_adc_pmdz}/system_tb.sv | 0 .../pulsar_adc_pmdz}/tests/test_program.sv | 0 .../project/pulsar_adc_pmdz}/waves/cfg1.wcfg | 0 util_pack/system_project.tcl | 49 ---------------- 390 files changed, 1595 insertions(+), 1594 deletions(-) delete mode 100644 ad463x/system_project.tcl delete mode 100644 ad57xx/system_project.tcl delete mode 100755 ad7606x/system_project.tcl delete mode 100644 ad9083/system_project.tcl delete mode 100644 ad_quadmxfe1_ebz/system_project.tcl delete mode 100644 adrv9001/system_project.tcl delete mode 100755 adrv9009/system_project.tcl delete mode 100644 dma_loopback/system_project.tcl delete mode 100644 dma_sg/system_project.tcl delete mode 100644 fmcomms2/system_project.tcl delete mode 100644 hbm/system_project.tcl delete mode 100644 jesd_loopback/system_project.tcl delete mode 100644 jesd_loopback_64b/system_project.tcl rename {common/sv => library/drivers/common}/interfaces.svh (100%) rename {common/sv => library/drivers/common}/mailbox.sv (100%) rename {common/sv => library/drivers/common}/scoreboard.sv (100%) rename {common/sv => library/drivers/common}/scoreboard_pack.sv (100%) rename {common/sv => library/drivers/common}/watchdog.sv (100%) rename {common/sv => library/drivers/common}/x_monitor.sv (100%) rename {common/sv => library/drivers/data_offload}/data_offload_api.sv (100%) rename {common/sv => library/drivers/dmac}/dma_trans.sv (100%) rename {common/sv => library/drivers/dmac}/dmac_api.sv (100%) rename {common/sv => library/drivers/jesd}/adi_jesd204_pkg.sv (100%) rename {common/test_harness => library/drivers/jesd}/jesd_exerciser.tcl (100%) rename {common/sv => library/drivers/spi_engine}/spi_engine_instr_pkg.sv (100%) rename {common/sv => library/drivers/xcvr}/adi_xcvr_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_peripheral_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_adc_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_axi_ad7616_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_clkgen_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_clock_monitor_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_common_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_dac_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_data_offload_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_dmac_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_fan_control_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_gpreg_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_hdmi_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_i3c_controller_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_iodelay_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_jesd_rx_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_jesd_tpl_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_jesd_tx_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_pwm_gen_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_spi_engine_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_system_id_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_tdd_gen_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_tdd_trans_pkg.sv (100%) rename {common/sv => library/regmaps}/adi_regmap_xcvr_pkg.sv (100%) rename {common/sv => library/regmaps}/reg_accessor.sv (100%) rename {common/sv => library/utilities}/logger_pkg.sv (100%) rename {common/sv => library/utilities}/test_harness_env.sv (100%) rename {common/test_harness => library/utilities}/test_harness_system_bd.tcl (100%) rename {common/sv => library/utilities}/utils.svh (100%) rename {common/sv => library/vip/adi}/spi_vip/Makefile (70%) rename {common/sv => library/vip/adi}/spi_vip/adi_spi_vip.sv (100%) rename {common/sv => library/vip/adi}/spi_vip/adi_spi_vip_ip.tcl (98%) rename {common/sv => library/vip/adi}/spi_vip/adi_spi_vip_pkg.sv (100%) rename {common/sv => library/vip/adi}/spi_vip/adi_spi_vip_pkg.ttcl (100%) rename {common/sv => library/vip/adi/spi_vip}/s_spi_sequencer.sv (100%) rename {common/sv => library/vip/adi}/spi_vip/spi_vip_if.sv (100%) rename {common/sv => library/vip/amd}/m_axi_sequencer.sv (100%) rename {common/sv => library/vip/amd}/m_axis_sequencer.sv (100%) rename {common/sv => library/vip/amd}/s_axi_sequencer.sv (100%) rename {common/sv => library/vip/amd}/s_axis_sequencer.sv (100%) delete mode 100644 mxfe/system_project.tcl delete mode 100644 pluto/Makefile delete mode 100644 pluto/system_project.tcl delete mode 100755 pulsar_adc_pmdz/system_project.tcl delete mode 100644 scoreboard/system_project.tcl delete mode 100644 spi_engine/system_project.tcl rename {axi_tdd => testbenches/ip/axi_tdd}/Makefile (67%) rename {ad463x => testbenches/ip/axi_tdd}/README.md (100%) rename {axi_tdd => testbenches/ip/axi_tdd}/cfgs/cfg1.tcl (100%) rename {axi_tdd => testbenches/ip/axi_tdd}/system_bd.tcl (98%) rename {axi_tdd => testbenches/ip/axi_tdd}/system_project.tcl (52%) rename {axi_tdd => testbenches/ip/axi_tdd}/system_tb.sv (100%) rename {axi_tdd => testbenches/ip/axi_tdd}/tests/test_program.sv (100%) rename {axi_tdd => testbenches/ip/axi_tdd}/waves/cfg1.wcfg (100%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/Makefile (66%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/README.md (100%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/cfgs/cfg1.tcl (100%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/environment.sv (100%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/system_bd.tcl (98%) rename {base => testbenches/ip/axis_sequencers}/system_project.tcl (57%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/system_tb.sv (100%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/tests/test_program.sv (100%) rename {axis_sequencers => testbenches/ip/axis_sequencers}/waves/cfg1.wcfg (100%) rename {base => testbenches/ip/base}/Makefile (59%) rename {base => testbenches/ip/base}/README.md (100%) rename {base => testbenches/ip/base}/cfgs/cfg1.tcl (100%) rename {base => testbenches/ip/base}/environment.sv (100%) rename {base => testbenches/ip/base}/system_bd.tcl (97%) rename {axis_sequencers => testbenches/ip/base}/system_project.tcl (51%) rename {base => testbenches/ip/base}/system_tb.sv (100%) rename {base => testbenches/ip/base}/tests/test_program.sv (100%) rename {base => testbenches/ip/base}/waves/cfg1.wcfg (100%) rename {data_offload => testbenches/ip/data_offload}/Makefile (72%) rename {data_offload => testbenches/ip/data_offload}/README.md (100%) rename {data_offload => testbenches/ip/data_offload}/cfgs/cfg1.tcl (100%) rename {data_offload => testbenches/ip/data_offload}/cfgs/cfg2.tcl (100%) rename {data_offload => testbenches/ip/data_offload}/cfgs/cfg3.tcl (100%) rename {data_offload => testbenches/ip/data_offload}/cfgs/cfg7_internal_memory.tcl (100%) rename {data_offload => testbenches/ip/data_offload}/cfgs/common_cfg.tcl (100%) rename {data_offload => testbenches/ip/data_offload}/do_scoreboard.sv (100%) rename {data_offload => testbenches/ip/data_offload}/environment.sv (100%) rename {data_offload => testbenches/ip/data_offload}/system_bd.tcl (100%) rename {data_offload => testbenches/ip/data_offload}/system_project.tcl (69%) rename {data_offload => testbenches/ip/data_offload}/system_tb.sv (100%) rename {data_offload => testbenches/ip/data_offload}/tests/test_program.sv (100%) rename {data_offload => testbenches/ip/data_offload}/waves/rx_plddr_tx_ram.wcfg (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/Makefile (73%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg0.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg1.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg2.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg3.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg4.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg5_hbm.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/cfg5_hbm_cyclic.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/cfgs/common_cfg.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/data_offload_pkg.sv (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/do_scoreboard.sv (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/environment.sv (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/system_bd.tcl (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/system_project.tcl (70%) rename {data_offload_2 => testbenches/ip/data_offload_2}/system_tb.sv (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/tests/test_program.sv (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/tests/test_program_sync.sv (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/waves/cfg0.wcfg (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/waves/cfg1.wcfg (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/waves/cfg2.wcfg (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/waves/cfg3.wcfg (100%) rename {data_offload_2 => testbenches/ip/data_offload_2}/waves/cfg4.wcfg (100%) rename {dma_loopback => testbenches/ip/dma_loopback}/Makefile (64%) rename {ad57xx => testbenches/ip/dma_loopback}/README.md (100%) rename {dma_loopback => testbenches/ip/dma_loopback}/cfgs/cfg1.tcl (100%) rename {dma_loopback => testbenches/ip/dma_loopback}/system_bd.tcl (98%) create mode 100644 testbenches/ip/dma_loopback/system_project.tcl rename {dma_loopback => testbenches/ip/dma_loopback}/system_tb.sv (100%) rename {dma_loopback => testbenches/ip/dma_loopback}/tests/test_program.sv (100%) rename {dma_loopback => testbenches/ip/dma_loopback}/waves/cfg1.wcfg (100%) rename {dma_sg => testbenches/ip/dma_sg}/Makefile (60%) rename {ad7616 => testbenches/ip/dma_sg}/README.md (100%) mode change 100755 => 100644 rename {dma_sg => testbenches/ip/dma_sg}/cfgs/cfg1.tcl (100%) rename {dma_sg => testbenches/ip/dma_sg}/cfgs/cfg2.tcl (100%) rename {dma_sg => testbenches/ip/dma_sg}/system_bd.tcl (98%) create mode 100644 testbenches/ip/dma_sg/system_project.tcl rename {dma_sg => testbenches/ip/dma_sg}/system_tb.sv (100%) rename {dma_sg => testbenches/ip/dma_sg}/tests/test_program_1d.sv (100%) rename {dma_sg => testbenches/ip/dma_sg}/tests/test_program_2d.sv (100%) rename {dma_sg => testbenches/ip/dma_sg}/tests/test_program_tr_queue.sv (100%) rename {dma_sg => testbenches/ip/dma_sg}/waves/cfg1.wcfg (100%) rename {dma_sg => testbenches/ip/dma_sg}/waves/cfg2.wcfg (100%) rename {hbm => testbenches/ip/hbm}/Makefile (64%) rename {ad9083 => testbenches/ip/hbm}/README.md (100%) rename {hbm => testbenches/ip/hbm}/cfgs/cfg1.tcl (100%) rename {hbm => testbenches/ip/hbm}/system_bd.tcl (98%) create mode 100644 testbenches/ip/hbm/system_project.tcl rename {hbm => testbenches/ip/hbm}/system_tb.sv (100%) rename {hbm => testbenches/ip/hbm}/tests/test_program.sv (100%) rename {hbm => testbenches/ip/hbm}/waves/cfg1.wcfg (100%) rename {i3c_controller => testbenches/ip/i3c_controller}/Makefile (67%) rename {adrv9001 => testbenches/ip/i3c_controller}/README.md (100%) mode change 100644 => 100755 rename {i3c_controller => testbenches/ip/i3c_controller}/cfgs/cfg1.tcl (100%) rename {i3c_controller => testbenches/ip/i3c_controller}/cfgs/cfg2.tcl (100%) rename {i3c_controller => testbenches/ip/i3c_controller}/system_bd.tcl (94%) rename {i3c_controller => testbenches/ip/i3c_controller}/system_project.tcl (82%) rename {i3c_controller => testbenches/ip/i3c_controller}/system_tb.sv (100%) rename {i3c_controller => testbenches/ip/i3c_controller}/tests/test_program.sv (99%) rename {i3c_controller => testbenches/ip/i3c_controller}/waves/cfg1.wcfg (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/Makefile (60%) rename {adrv9009 => testbenches/ip/jesd_loopback}/README.md (100%) mode change 100755 => 100644 rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg1.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg2.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg2_np12.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg3_np12_L2M8.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg4_F8.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg5_64b66b.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg6_F64.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/cfg7_np12_L12M2.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/cfgs/common.tcl (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/system_bd.tcl (99%) create mode 100644 testbenches/ip/jesd_loopback/system_project.tcl rename {jesd_loopback => testbenches/ip/jesd_loopback}/system_tb.sv (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/tests/test_program.sv (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/waves/cfg1.wcfg (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/waves/cfg2.wcfg (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/waves/cfg2_np12.wcfg (100%) rename {jesd_loopback => testbenches/ip/jesd_loopback}/waves/cfg4_F8.wcfg (100%) rename {jesd_loopback_64b => testbenches/ip/jesd_loopback_64b}/Makefile (60%) rename {axi_tdd => testbenches/ip/jesd_loopback_64b}/README.md (100%) rename {jesd_loopback_64b => testbenches/ip/jesd_loopback_64b}/cfgs/cfg1.tcl (100%) rename {adrv9009 => testbenches/ip/jesd_loopback_64b}/environment.sv (100%) mode change 100755 => 100644 rename {jesd_loopback_64b => testbenches/ip/jesd_loopback_64b}/system_bd.tcl (99%) create mode 100644 testbenches/ip/jesd_loopback_64b/system_project.tcl rename {jesd_loopback_64b => testbenches/ip/jesd_loopback_64b}/system_tb.sv (100%) rename {jesd_loopback_64b => testbenches/ip/jesd_loopback_64b}/tests/test_program.sv (100%) rename {jesd_loopback_64b => testbenches/ip/jesd_loopback_64b}/waves/cfg1.wcfg (100%) rename {scoreboard => testbenches/ip/scoreboard}/Makefile (57%) rename {dma_loopback => testbenches/ip/scoreboard}/README.md (100%) rename {scoreboard => testbenches/ip/scoreboard}/cfgs/cfg1.tcl (100%) rename {scoreboard => testbenches/ip/scoreboard}/environment.sv (100%) rename {scoreboard => testbenches/ip/scoreboard}/system_bd.tcl (99%) create mode 100644 testbenches/ip/scoreboard/system_project.tcl rename {scoreboard => testbenches/ip/scoreboard}/system_tb.sv (100%) rename {scoreboard => testbenches/ip/scoreboard}/tests/test_program.sv (100%) rename {scoreboard => testbenches/ip/scoreboard}/waves/cfg1.wcfg (100%) rename {spi_engine => testbenches/ip/spi_engine}/Makefile (58%) rename {dma_sg => testbenches/ip/spi_engine}/README.md (100%) rename {spi_engine => testbenches/ip/spi_engine}/cfgs/cfg1.tcl (100%) rename {spi_engine => testbenches/ip/spi_engine}/cfgs/cfg_inv_cs.tcl (100%) rename {spi_engine => testbenches/ip/spi_engine}/cfgs/cfg_sdo_streaming.tcl (100%) rename {spi_engine => testbenches/ip/spi_engine}/spi_engine_test_bd.tcl (100%) rename {spi_engine => testbenches/ip/spi_engine}/spi_environment.sv (100%) rename {spi_engine => testbenches/ip/spi_engine}/system_bd.tcl (95%) create mode 100644 testbenches/ip/spi_engine/system_project.tcl rename {spi_engine => testbenches/ip/spi_engine}/system_tb.sv (100%) rename {spi_engine => testbenches/ip/spi_engine}/tests/test_program.sv (100%) rename {spi_engine => testbenches/ip/spi_engine}/tests/test_sleep_delay.sv (100%) rename {spi_engine => testbenches/ip/spi_engine}/waves/cfg1.wcfg (100%) rename {spi_engine => testbenches/ip/spi_engine}/waves/cfg_inv_cs.wcfg (100%) rename {spi_engine => testbenches/ip/spi_engine}/waves/cfg_sdo_streaming.wcfg (100%) rename {util_pack => testbenches/ip/util_pack}/Makefile (56%) rename {fmcomms2 => testbenches/ip/util_pack}/README.md (100%) rename {util_pack => testbenches/ip/util_pack}/cfgs/cfg1.tcl (100%) rename {util_pack => testbenches/ip/util_pack}/cfgs/cfg_rand.tcl (100%) rename {util_pack => testbenches/ip/util_pack}/environment.sv (100%) rename {util_pack => testbenches/ip/util_pack}/system_bd.tcl (99%) create mode 100644 testbenches/ip/util_pack/system_project.tcl rename {util_pack => testbenches/ip/util_pack}/system_tb.sv (100%) rename {util_pack => testbenches/ip/util_pack}/tests/test_program.sv (100%) rename {util_pack => testbenches/ip/util_pack}/waves/cfg1.wcfg (100%) rename {util_pack => testbenches/ip/util_pack}/waves/cfg_rand.wcfg (100%) rename {ad463x => testbenches/project/ad463x}/Makefile (64%) rename {hbm => testbenches/project/ad463x}/README.md (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm0_sdi2_cz1_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm0_sdi2_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm0_sdi4_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm0_sdi8_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi1_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi2_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi2_cz2_ddr1.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi4_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi4_cz2_ddr1.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi8_cz2_ddr0.tcl (100%) rename {ad463x => testbenches/project/ad463x}/cfgs/cfg_cm1_sdi8_cz2_ddr1.tcl (100%) rename {ad463x => testbenches/project/ad463x}/system_bd.tcl (95%) create mode 100644 testbenches/project/ad463x/system_project.tcl rename {ad463x => testbenches/project/ad463x}/system_tb.sv (100%) rename {ad463x => testbenches/project/ad463x}/tests/test_program.sv (100%) rename {ad57xx => testbenches/project/ad57xx}/Makefile (61%) rename {i3c_controller => testbenches/project/ad57xx}/README.md (100%) mode change 100755 => 100644 rename {ad57xx => testbenches/project/ad57xx}/ad57xx_environment.sv (100%) rename {ad57xx => testbenches/project/ad57xx}/cfgs/cfg1.tcl (100%) rename {ad57xx => testbenches/project/ad57xx}/system_bd.tcl (92%) create mode 100644 testbenches/project/ad57xx/system_project.tcl rename {ad57xx => testbenches/project/ad57xx}/system_tb.sv (100%) rename {ad57xx => testbenches/project/ad57xx}/tests/test_program.sv (100%) rename {ad57xx => testbenches/project/ad57xx}/waves/cfg1.wcfg (100%) rename {ad738x => testbenches/project/ad738x}/Makefile (64%) rename {ad738x => testbenches/project/ad738x}/README.md (100%) rename {ad738x => testbenches/project/ad738x}/cfgs/cfg1.tcl (100%) rename {ad738x => testbenches/project/ad738x}/system_bd.tcl (96%) rename {ad738x => testbenches/project/ad738x}/system_project.tcl (52%) rename {ad738x => testbenches/project/ad738x}/system_tb.sv (100%) rename {ad738x => testbenches/project/ad738x}/tests/test_program.sv (100%) rename {ad738x => testbenches/project/ad738x}/waves/cfg.wcfg (100%) rename {ad7606x => testbenches/project/ad7606x}/Makefile (60%) rename {ad7606x => testbenches/project/ad7606x}/README.md (100%) rename {ad7606x => testbenches/project/ad7606x}/cfgs/cfg1.tcl (100%) rename {ad7606x => testbenches/project/ad7606x}/cfgs/cfg2.tcl (100%) rename {ad7606x => testbenches/project/ad7606x}/cfgs/cfg3.tcl (100%) rename {ad7606x => testbenches/project/ad7606x}/system_bd.tcl (92%) create mode 100755 testbenches/project/ad7606x/system_project.tcl rename {ad7606x => testbenches/project/ad7606x}/system_tb.sv (100%) rename {ad7606x => testbenches/project/ad7606x}/tests/test_program.sv (100%) rename {ad7606x => testbenches/project/ad7606x}/waves/system_tb_behav.wcfg (100%) rename {ad7616 => testbenches/project/ad7616}/Makefile (59%) rename {jesd_loopback => testbenches/project/ad7616}/README.md (100%) mode change 100644 => 100755 rename {ad7616 => testbenches/project/ad7616}/cfgs/cfg_pi.tcl (100%) rename {ad7616 => testbenches/project/ad7616}/cfgs/cfg_si.tcl (100%) rename {ad7616 => testbenches/project/ad7616}/system_bd.tcl (94%) rename {ad7616 => testbenches/project/ad7616}/system_project.tcl (53%) rename {ad7616 => testbenches/project/ad7616}/system_tb.sv (100%) rename {ad7616 => testbenches/project/ad7616}/tests/test_program_pi.sv (100%) rename {ad7616 => testbenches/project/ad7616}/tests/test_program_si.sv (100%) rename {ad7616 => testbenches/project/ad7616}/waves/cfg_pi.wcfg (100%) rename {ad7616 => testbenches/project/ad7616}/waves/cfg_si.wcfg (100%) rename {ad9083 => testbenches/project/ad9083}/Makefile (71%) rename {jesd_loopback_64b => testbenches/project/ad9083}/README.md (100%) rename {ad9083 => testbenches/project/ad9083}/cfgs/cfg1.tcl (100%) rename {ad9083 => testbenches/project/ad9083}/system_bd.tcl (99%) create mode 100644 testbenches/project/ad9083/system_project.tcl rename {ad9083 => testbenches/project/ad9083}/system_tb.sv (100%) rename {ad9083 => testbenches/project/ad9083}/tests/test_program.sv (100%) rename {ad9083 => testbenches/project/ad9083}/waves/cfg1.wcfg (100%) rename {ad9083 => testbenches/project/ad9083}/waves/cfg4_8b10b_np12.wcfg (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/Makefile (67%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/cfgs/cfg1.tcl (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/cfgs/cfg2_64b66b.tcl (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/cfgs/cfg3_64b66b_LR_4_125.tcl (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/cfgs/cfg4_64b66b_Tx10_Rx11.tcl (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/cfgs/cfg5_64b66b_Tx23_Rx25_LR_24_75.tcl (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/cfgs/cfg6_64b66b_Tx29_Rx24_LR_24_75.tcl (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/system_bd.tcl (99%) create mode 100644 testbenches/project/ad_quadmxfe1_ebz/system_project.tcl rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/system_tb.sv (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/tests/test_dma.sv (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/tests/test_program.sv (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/tests/test_program_64b66b.sv (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/waves/cfg1.wcfg (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/waves/cfg2_64b66b.wcfg (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/waves/cfg3_64b66b_LR_4_125.wcfg (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/waves/cfg4_64b66b_Tx10_Rx11.wcfg (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/waves/cfg5_64b66b_Tx23_Rx25_LR_24_75.wcfg (100%) rename {ad_quadmxfe1_ebz => testbenches/project/ad_quadmxfe1_ebz}/waves/cfg6_64b66b_Tx29_Rx24_LR_24_75.wcfg (100%) rename {adrv9001 => testbenches/project/adrv9001}/Makefile (59%) rename {mxfe => testbenches/project/adrv9001}/README.md (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg10_CMOS_SDR_1LANES_SYMB_16b.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg11_CMOS_DDR_1Lanes_SYMB_16b.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg1_CMOS_SDR_1Lanes.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg2_CMOS_DDR_1Lanes.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg4_CMOS_SDR_4Lanes.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg5_CMOS_DDR_4Lanes.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg6_LVDS_DDR_1Lanes.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg7_LVDS_DDR_2Lanes.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg7_LVDS_DDR_2Lanes_noDDS.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg8_CMOS_SDR_1Lanes_SYMB_8b.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/cfgs/cfg9_CMOS_DDR_1Lanes_SYMB_8b.tcl (100%) rename {adrv9001 => testbenches/project/adrv9001}/system_bd.tcl (98%) create mode 100644 testbenches/project/adrv9001/system_project.tcl rename {adrv9001 => testbenches/project/adrv9001}/system_tb.sv (100%) rename {adrv9001 => testbenches/project/adrv9001}/tests/test_program.sv (100%) rename {adrv9001 => testbenches/project/adrv9001}/waves/cfg1_CMOS_SDR_1Lanes.wcfg (100%) rename {adrv9001 => testbenches/project/adrv9001}/waves/cfg5_CMOS_DDR_4Lanes.wcfg (100%) rename {adrv9009 => testbenches/project/adrv9009}/Makefile (63%) rename {pluto => testbenches/project/adrv9009}/README.md (100%) mode change 100644 => 100755 rename {adrv9009 => testbenches/project/adrv9009}/cfgs/cfg1.tcl (100%) rename {adrv9009 => testbenches/project/adrv9009}/cfgs/cfg2.tcl (100%) rename {adrv9009 => testbenches/project/adrv9009}/cfgs/cfg3.tcl (100%) rename {adrv9009 => testbenches/project/adrv9009}/cfgs/cfg4.tcl (100%) rename {jesd_loopback_64b => testbenches/project/adrv9009}/environment.sv (100%) mode change 100644 => 100755 rename {adrv9009 => testbenches/project/adrv9009}/system_bd.tcl (99%) create mode 100755 testbenches/project/adrv9009/system_project.tcl rename {adrv9009 => testbenches/project/adrv9009}/system_tb.sv (100%) rename {adrv9009 => testbenches/project/adrv9009}/tests/test_program.sv (100%) rename {adrv9009 => testbenches/project/adrv9009}/waves/cfg1.wcfg (100%) rename {fmcomms2 => testbenches/project/fmcomms2}/Makefile (63%) rename {pulsar_adc_pmdz => testbenches/project/fmcomms2}/README.md (100%) mode change 100755 => 100644 rename {fmcomms2 => testbenches/project/fmcomms2}/cfgs/cfg1.tcl (100%) rename {fmcomms2 => testbenches/project/fmcomms2}/system_bd.tcl (98%) create mode 100644 testbenches/project/fmcomms2/system_project.tcl rename {fmcomms2 => testbenches/project/fmcomms2}/system_tb.sv (100%) rename {fmcomms2 => testbenches/project/fmcomms2}/tests/test_program.sv (100%) rename {fmcomms2 => testbenches/project/fmcomms2}/waves/cfg1.wcfg (100%) rename {mxfe => testbenches/project/mxfe}/Makefile (62%) rename {scoreboard => testbenches/project/mxfe}/README.md (100%) rename {mxfe => testbenches/project/mxfe}/cfgs/cfg1.tcl (100%) rename {mxfe => testbenches/project/mxfe}/cfgs/cfg2_64b66b_np8.tcl (100%) rename {mxfe => testbenches/project/mxfe}/cfgs/cfg3_64b66b_np12.tcl (100%) rename {mxfe => testbenches/project/mxfe}/cfgs/cfg4_8b10b_np12.tcl (100%) rename {mxfe => testbenches/project/mxfe}/cfgs/cfg5_204c_txmode_10_rxmode_11.tcl (100%) rename {mxfe => testbenches/project/mxfe}/cfgs/cfg6_m16_l8_tdd.tcl (100%) rename {mxfe => testbenches/project/mxfe}/system_bd.tcl (99%) create mode 100644 testbenches/project/mxfe/system_project.tcl rename {mxfe => testbenches/project/mxfe}/system_tb.sv (100%) rename {mxfe => testbenches/project/mxfe}/tests/test_program.sv (100%) rename {mxfe => testbenches/project/mxfe}/waves/cfg1.wcfg (100%) rename {mxfe => testbenches/project/mxfe}/waves/cfg4_8b10b_np12.wcfg (100%) create mode 100644 testbenches/project/pluto/Makefile rename {spi_engine => testbenches/project/pluto}/README.md (100%) rename {pluto => testbenches/project/pluto}/cfgs/cfg1.tcl (100%) rename {pluto => testbenches/project/pluto}/system_bd.tcl (99%) create mode 100644 testbenches/project/pluto/system_project.tcl rename {pluto => testbenches/project/pluto}/system_tb.sv (100%) rename {pluto => testbenches/project/pluto}/tests/test_program.sv (100%) rename {pluto => testbenches/project/pluto}/waves/cfg1.wcfg (100%) rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/Makefile (61%) rename {util_pack => testbenches/project/pulsar_adc_pmdz}/README.md (100%) mode change 100644 => 100755 rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/cfgs/cfg1.tcl (100%) rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/spi_engine.svh (100%) rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/system_bd.tcl (91%) create mode 100755 testbenches/project/pulsar_adc_pmdz/system_project.tcl rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/system_tb.sv (100%) rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/tests/test_program.sv (100%) rename {pulsar_adc_pmdz => testbenches/project/pulsar_adc_pmdz}/waves/cfg1.wcfg (100%) delete mode 100644 util_pack/system_project.tcl diff --git a/ad463x/system_project.tcl b/ad463x/system_project.tcl deleted file mode 100644 index a0e898b2..00000000 --- a/ad463x/system_project.tcl +++ /dev/null @@ -1,45 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_clkgen_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_spi_engine_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/ad57xx/system_project.tcl b/ad57xx/system_project.tcl deleted file mode 100644 index 1385b384..00000000 --- a/ad57xx/system_project.tcl +++ /dev/null @@ -1,52 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Set to use SmartConnect or AXI Interconnect -set use_smartconnect 1 - -# Create the project -adi_sim_project_xilinx $project_name "xc7z007sclg400-1" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/spi_vip/adi_spi_vip_pkg.sv" \ - "../common/sv/s_spi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_clkgen_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/adi_regmap_spi_engine_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/spi_engine_instr_pkg.sv" \ - "ad57xx_environment.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ -] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/ad7606x/system_project.tcl b/ad7606x/system_project.tcl deleted file mode 100755 index d78da426..00000000 --- a/ad7606x/system_project.tcl +++ /dev/null @@ -1,44 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xc7z020clg484-1" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv"] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/ad9083/system_project.tcl b/ad9083/system_project.tcl deleted file mode 100644 index 2734a19b..00000000 --- a/ad9083/system_project.tcl +++ /dev/null @@ -1,51 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/adi_regmap_xcvr_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/adi_jesd204_pkg.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_xcvr_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/ad_quadmxfe1_ebz/system_project.tcl b/ad_quadmxfe1_ebz/system_project.tcl deleted file mode 100644 index 49b2c7b7..00000000 --- a/ad_quadmxfe1_ebz/system_project.tcl +++ /dev/null @@ -1,55 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set topology_file [lindex $argv 0] -} - -# Read config file with topology information -source "cfgs/${topology_file}" - -# Set the project name -set project_name [file rootname $topology_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/adi_regmap_xcvr_pkg.sv" \ - "../common/sv/adi_jesd204_pkg.sv" \ - "../common/sv/adi_xcvr_pkg.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "tests/test_dma.sv" \ - "tests/test_program_64b66b.sv" \ - "system_tb.sv" \ - ] - - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/adrv9001/system_project.tcl b/adrv9001/system_project.tcl deleted file mode 100644 index 0df897a2..00000000 --- a/adrv9001/system_project.tcl +++ /dev/null @@ -1,47 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/adrv9009/system_project.tcl b/adrv9009/system_project.tcl deleted file mode 100755 index 57fbe98a..00000000 --- a/adrv9009/system_project.tcl +++ /dev/null @@ -1,56 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Set to use SmartConnect or AXI Interconnect -set use_smartconnect 0 - -# Create the project -#adi_sim_project_xilinx $project_name "xcvm1802-vfvc1760-3HP-e-S" -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" -#adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e"; # GTH4 - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/adi_regmap_xcvr_pkg.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_jesd204_pkg.sv" \ - "../common/sv/adi_xcvr_pkg.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/dma_loopback/system_project.tcl b/dma_loopback/system_project.tcl deleted file mode 100644 index 18d13351..00000000 --- a/dma_loopback/system_project.tcl +++ /dev/null @@ -1,43 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/dma_sg/system_project.tcl b/dma_sg/system_project.tcl deleted file mode 100644 index 7d9c52b1..00000000 --- a/dma_sg/system_project.tcl +++ /dev/null @@ -1,45 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program_1d.sv" \ - "tests/test_program_2d.sv" \ - "tests/test_program_tr_queue.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program_1d" - -adi_sim_generate $project_name diff --git a/fmcomms2/system_project.tcl b/fmcomms2/system_project.tcl deleted file mode 100644 index 3f400a55..00000000 --- a/fmcomms2/system_project.tcl +++ /dev/null @@ -1,45 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/hbm/system_project.tcl b/hbm/system_project.tcl deleted file mode 100644 index f9e0b297..00000000 --- a/hbm/system_project.tcl +++ /dev/null @@ -1,42 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu37p-fsvh2892-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/jesd_loopback/system_project.tcl b/jesd_loopback/system_project.tcl deleted file mode 100644 index 3a169c9f..00000000 --- a/jesd_loopback/system_project.tcl +++ /dev/null @@ -1,53 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -#adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e"; # GTY4 -adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e"; # GTH4 -#adi_sim_project_xilinx $project_name "xcku040-ffva1156-2-e"; # GTH3 -#adi_sim_project_xilinx $project_name; # GTX2 - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/adi_regmap_xcvr_pkg.sv" \ - "../common/sv/adi_jesd204_pkg.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_xcvr_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/jesd_loopback_64b/system_project.tcl b/jesd_loopback_64b/system_project.tcl deleted file mode 100644 index 19045b25..00000000 --- a/jesd_loopback_64b/system_project.tcl +++ /dev/null @@ -1,47 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/common/sv/interfaces.svh b/library/drivers/common/interfaces.svh similarity index 100% rename from common/sv/interfaces.svh rename to library/drivers/common/interfaces.svh diff --git a/common/sv/mailbox.sv b/library/drivers/common/mailbox.sv similarity index 100% rename from common/sv/mailbox.sv rename to library/drivers/common/mailbox.sv diff --git a/common/sv/scoreboard.sv b/library/drivers/common/scoreboard.sv similarity index 100% rename from common/sv/scoreboard.sv rename to library/drivers/common/scoreboard.sv diff --git a/common/sv/scoreboard_pack.sv b/library/drivers/common/scoreboard_pack.sv similarity index 100% rename from common/sv/scoreboard_pack.sv rename to library/drivers/common/scoreboard_pack.sv diff --git a/common/sv/watchdog.sv b/library/drivers/common/watchdog.sv similarity index 100% rename from common/sv/watchdog.sv rename to library/drivers/common/watchdog.sv diff --git a/common/sv/x_monitor.sv b/library/drivers/common/x_monitor.sv similarity index 100% rename from common/sv/x_monitor.sv rename to library/drivers/common/x_monitor.sv diff --git a/common/sv/data_offload_api.sv b/library/drivers/data_offload/data_offload_api.sv similarity index 100% rename from common/sv/data_offload_api.sv rename to library/drivers/data_offload/data_offload_api.sv diff --git a/common/sv/dma_trans.sv b/library/drivers/dmac/dma_trans.sv similarity index 100% rename from common/sv/dma_trans.sv rename to library/drivers/dmac/dma_trans.sv diff --git a/common/sv/dmac_api.sv b/library/drivers/dmac/dmac_api.sv similarity index 100% rename from common/sv/dmac_api.sv rename to library/drivers/dmac/dmac_api.sv diff --git a/common/sv/adi_jesd204_pkg.sv b/library/drivers/jesd/adi_jesd204_pkg.sv similarity index 100% rename from common/sv/adi_jesd204_pkg.sv rename to library/drivers/jesd/adi_jesd204_pkg.sv diff --git a/common/test_harness/jesd_exerciser.tcl b/library/drivers/jesd/jesd_exerciser.tcl similarity index 100% rename from common/test_harness/jesd_exerciser.tcl rename to library/drivers/jesd/jesd_exerciser.tcl diff --git a/common/sv/spi_engine_instr_pkg.sv b/library/drivers/spi_engine/spi_engine_instr_pkg.sv similarity index 100% rename from common/sv/spi_engine_instr_pkg.sv rename to library/drivers/spi_engine/spi_engine_instr_pkg.sv diff --git a/common/sv/adi_xcvr_pkg.sv b/library/drivers/xcvr/adi_xcvr_pkg.sv similarity index 100% rename from common/sv/adi_xcvr_pkg.sv rename to library/drivers/xcvr/adi_xcvr_pkg.sv diff --git a/common/sv/adi_peripheral_pkg.sv b/library/regmaps/adi_peripheral_pkg.sv similarity index 100% rename from common/sv/adi_peripheral_pkg.sv rename to library/regmaps/adi_peripheral_pkg.sv diff --git a/common/sv/adi_regmap_adc_pkg.sv b/library/regmaps/adi_regmap_adc_pkg.sv similarity index 100% rename from common/sv/adi_regmap_adc_pkg.sv rename to library/regmaps/adi_regmap_adc_pkg.sv diff --git a/common/sv/adi_regmap_axi_ad7616_pkg.sv b/library/regmaps/adi_regmap_axi_ad7616_pkg.sv similarity index 100% rename from common/sv/adi_regmap_axi_ad7616_pkg.sv rename to library/regmaps/adi_regmap_axi_ad7616_pkg.sv diff --git a/common/sv/adi_regmap_clkgen_pkg.sv b/library/regmaps/adi_regmap_clkgen_pkg.sv similarity index 100% rename from common/sv/adi_regmap_clkgen_pkg.sv rename to library/regmaps/adi_regmap_clkgen_pkg.sv diff --git a/common/sv/adi_regmap_clock_monitor_pkg.sv b/library/regmaps/adi_regmap_clock_monitor_pkg.sv similarity index 100% rename from common/sv/adi_regmap_clock_monitor_pkg.sv rename to library/regmaps/adi_regmap_clock_monitor_pkg.sv diff --git a/common/sv/adi_regmap_common_pkg.sv b/library/regmaps/adi_regmap_common_pkg.sv similarity index 100% rename from common/sv/adi_regmap_common_pkg.sv rename to library/regmaps/adi_regmap_common_pkg.sv diff --git a/common/sv/adi_regmap_dac_pkg.sv b/library/regmaps/adi_regmap_dac_pkg.sv similarity index 100% rename from common/sv/adi_regmap_dac_pkg.sv rename to library/regmaps/adi_regmap_dac_pkg.sv diff --git a/common/sv/adi_regmap_data_offload_pkg.sv b/library/regmaps/adi_regmap_data_offload_pkg.sv similarity index 100% rename from common/sv/adi_regmap_data_offload_pkg.sv rename to library/regmaps/adi_regmap_data_offload_pkg.sv diff --git a/common/sv/adi_regmap_dmac_pkg.sv b/library/regmaps/adi_regmap_dmac_pkg.sv similarity index 100% rename from common/sv/adi_regmap_dmac_pkg.sv rename to library/regmaps/adi_regmap_dmac_pkg.sv diff --git a/common/sv/adi_regmap_fan_control_pkg.sv b/library/regmaps/adi_regmap_fan_control_pkg.sv similarity index 100% rename from common/sv/adi_regmap_fan_control_pkg.sv rename to library/regmaps/adi_regmap_fan_control_pkg.sv diff --git a/common/sv/adi_regmap_gpreg_pkg.sv b/library/regmaps/adi_regmap_gpreg_pkg.sv similarity index 100% rename from common/sv/adi_regmap_gpreg_pkg.sv rename to library/regmaps/adi_regmap_gpreg_pkg.sv diff --git a/common/sv/adi_regmap_hdmi_pkg.sv b/library/regmaps/adi_regmap_hdmi_pkg.sv similarity index 100% rename from common/sv/adi_regmap_hdmi_pkg.sv rename to library/regmaps/adi_regmap_hdmi_pkg.sv diff --git a/common/sv/adi_regmap_i3c_controller_pkg.sv b/library/regmaps/adi_regmap_i3c_controller_pkg.sv similarity index 100% rename from common/sv/adi_regmap_i3c_controller_pkg.sv rename to library/regmaps/adi_regmap_i3c_controller_pkg.sv diff --git a/common/sv/adi_regmap_iodelay_pkg.sv b/library/regmaps/adi_regmap_iodelay_pkg.sv similarity index 100% rename from common/sv/adi_regmap_iodelay_pkg.sv rename to library/regmaps/adi_regmap_iodelay_pkg.sv diff --git a/common/sv/adi_regmap_jesd_rx_pkg.sv b/library/regmaps/adi_regmap_jesd_rx_pkg.sv similarity index 100% rename from common/sv/adi_regmap_jesd_rx_pkg.sv rename to library/regmaps/adi_regmap_jesd_rx_pkg.sv diff --git a/common/sv/adi_regmap_jesd_tpl_pkg.sv b/library/regmaps/adi_regmap_jesd_tpl_pkg.sv similarity index 100% rename from common/sv/adi_regmap_jesd_tpl_pkg.sv rename to library/regmaps/adi_regmap_jesd_tpl_pkg.sv diff --git a/common/sv/adi_regmap_jesd_tx_pkg.sv b/library/regmaps/adi_regmap_jesd_tx_pkg.sv similarity index 100% rename from common/sv/adi_regmap_jesd_tx_pkg.sv rename to library/regmaps/adi_regmap_jesd_tx_pkg.sv diff --git a/common/sv/adi_regmap_pkg.sv b/library/regmaps/adi_regmap_pkg.sv similarity index 100% rename from common/sv/adi_regmap_pkg.sv rename to library/regmaps/adi_regmap_pkg.sv diff --git a/common/sv/adi_regmap_pwm_gen_pkg.sv b/library/regmaps/adi_regmap_pwm_gen_pkg.sv similarity index 100% rename from common/sv/adi_regmap_pwm_gen_pkg.sv rename to library/regmaps/adi_regmap_pwm_gen_pkg.sv diff --git a/common/sv/adi_regmap_spi_engine_pkg.sv b/library/regmaps/adi_regmap_spi_engine_pkg.sv similarity index 100% rename from common/sv/adi_regmap_spi_engine_pkg.sv rename to library/regmaps/adi_regmap_spi_engine_pkg.sv diff --git a/common/sv/adi_regmap_system_id_pkg.sv b/library/regmaps/adi_regmap_system_id_pkg.sv similarity index 100% rename from common/sv/adi_regmap_system_id_pkg.sv rename to library/regmaps/adi_regmap_system_id_pkg.sv diff --git a/common/sv/adi_regmap_tdd_gen_pkg.sv b/library/regmaps/adi_regmap_tdd_gen_pkg.sv similarity index 100% rename from common/sv/adi_regmap_tdd_gen_pkg.sv rename to library/regmaps/adi_regmap_tdd_gen_pkg.sv diff --git a/common/sv/adi_regmap_tdd_trans_pkg.sv b/library/regmaps/adi_regmap_tdd_trans_pkg.sv similarity index 100% rename from common/sv/adi_regmap_tdd_trans_pkg.sv rename to library/regmaps/adi_regmap_tdd_trans_pkg.sv diff --git a/common/sv/adi_regmap_xcvr_pkg.sv b/library/regmaps/adi_regmap_xcvr_pkg.sv similarity index 100% rename from common/sv/adi_regmap_xcvr_pkg.sv rename to library/regmaps/adi_regmap_xcvr_pkg.sv diff --git a/common/sv/reg_accessor.sv b/library/regmaps/reg_accessor.sv similarity index 100% rename from common/sv/reg_accessor.sv rename to library/regmaps/reg_accessor.sv diff --git a/common/sv/logger_pkg.sv b/library/utilities/logger_pkg.sv similarity index 100% rename from common/sv/logger_pkg.sv rename to library/utilities/logger_pkg.sv diff --git a/common/sv/test_harness_env.sv b/library/utilities/test_harness_env.sv similarity index 100% rename from common/sv/test_harness_env.sv rename to library/utilities/test_harness_env.sv diff --git a/common/test_harness/test_harness_system_bd.tcl b/library/utilities/test_harness_system_bd.tcl similarity index 100% rename from common/test_harness/test_harness_system_bd.tcl rename to library/utilities/test_harness_system_bd.tcl diff --git a/common/sv/utils.svh b/library/utilities/utils.svh similarity index 100% rename from common/sv/utils.svh rename to library/utilities/utils.svh diff --git a/common/sv/spi_vip/Makefile b/library/vip/adi/spi_vip/Makefile similarity index 70% rename from common/sv/spi_vip/Makefile rename to library/vip/adi/spi_vip/Makefile index 32f6add4..7ff9d0f9 100644 --- a/common/sv/spi_vip/Makefile +++ b/library/vip/adi/spi_vip/Makefile @@ -4,13 +4,13 @@ ## Auto-generated, do not modify! #################################################################################### -# Assumes this file is in /testbenches/common/sv/spi_vip/Makefile -ADI_HDL_DIR := $(subst /testbenches/common/sv/spi_vip/Makefile,,$(abspath $(lastword $(MAKEFILE_LIST)))) +# Assumes this file is in /testbenches/library/vip/adi/spi_vip/Makefile +ADI_HDL_DIR := $(subst /testbenches/library/vip/adi/spi_vip/Makefile,,$(abspath $(lastword $(MAKEFILE_LIST)))) HDL_LIBRARY_PATH := $(ADI_HDL_DIR)/library/ LIBRARY_NAME := adi_spi_vip -GENERIC_DEPS += ../utils.svh +GENERIC_DEPS += $(ADI_HDL_DIR)/testbenches/library/utilities/utils.svh GENERIC_DEPS += adi_spi_vip_pkg.sv GENERIC_DEPS += spi_vip_if.sv GENERIC_DEPS += adi_spi_vip.sv diff --git a/common/sv/spi_vip/adi_spi_vip.sv b/library/vip/adi/spi_vip/adi_spi_vip.sv similarity index 100% rename from common/sv/spi_vip/adi_spi_vip.sv rename to library/vip/adi/spi_vip/adi_spi_vip.sv diff --git a/common/sv/spi_vip/adi_spi_vip_ip.tcl b/library/vip/adi/spi_vip/adi_spi_vip_ip.tcl similarity index 98% rename from common/sv/spi_vip/adi_spi_vip_ip.tcl rename to library/vip/adi/spi_vip/adi_spi_vip_ip.tcl index bbb7b653..d6748352 100644 --- a/common/sv/spi_vip/adi_spi_vip_ip.tcl +++ b/library/vip/adi/spi_vip/adi_spi_vip_ip.tcl @@ -3,7 +3,7 @@ ### SPDX short identifier: ADIBSD ############################################################################### -source ../../../../scripts/adi_env.tcl +source ../../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/scripts/adi_ip_xilinx.tcl adi_ip_create adi_spi_vip @@ -12,8 +12,8 @@ adi_ip_files adi_spi_vip [list \ "adi_spi_vip.sv" \ "spi_vip_if.sv" \ "adi_spi_vip_pkg.ttcl" \ - "$ad_hdl_dir/testbenches/common/sv/utils.svh" \ - "$ad_hdl_dir/testbenches/common/sv/logger_pkg.sv" \ + "$ad_hdl_dir/testbenches/library/utilities/utils.svh" \ + "$ad_hdl_dir/testbenches/library/utilities/logger_pkg.sv" \ ] adi_ip_properties_lite adi_spi_vip diff --git a/common/sv/spi_vip/adi_spi_vip_pkg.sv b/library/vip/adi/spi_vip/adi_spi_vip_pkg.sv similarity index 100% rename from common/sv/spi_vip/adi_spi_vip_pkg.sv rename to library/vip/adi/spi_vip/adi_spi_vip_pkg.sv diff --git a/common/sv/spi_vip/adi_spi_vip_pkg.ttcl b/library/vip/adi/spi_vip/adi_spi_vip_pkg.ttcl similarity index 100% rename from common/sv/spi_vip/adi_spi_vip_pkg.ttcl rename to library/vip/adi/spi_vip/adi_spi_vip_pkg.ttcl diff --git a/common/sv/s_spi_sequencer.sv b/library/vip/adi/spi_vip/s_spi_sequencer.sv similarity index 100% rename from common/sv/s_spi_sequencer.sv rename to library/vip/adi/spi_vip/s_spi_sequencer.sv diff --git a/common/sv/spi_vip/spi_vip_if.sv b/library/vip/adi/spi_vip/spi_vip_if.sv similarity index 100% rename from common/sv/spi_vip/spi_vip_if.sv rename to library/vip/adi/spi_vip/spi_vip_if.sv diff --git a/common/sv/m_axi_sequencer.sv b/library/vip/amd/m_axi_sequencer.sv similarity index 100% rename from common/sv/m_axi_sequencer.sv rename to library/vip/amd/m_axi_sequencer.sv diff --git a/common/sv/m_axis_sequencer.sv b/library/vip/amd/m_axis_sequencer.sv similarity index 100% rename from common/sv/m_axis_sequencer.sv rename to library/vip/amd/m_axis_sequencer.sv diff --git a/common/sv/s_axi_sequencer.sv b/library/vip/amd/s_axi_sequencer.sv similarity index 100% rename from common/sv/s_axi_sequencer.sv rename to library/vip/amd/s_axi_sequencer.sv diff --git a/common/sv/s_axis_sequencer.sv b/library/vip/amd/s_axis_sequencer.sv similarity index 100% rename from common/sv/s_axis_sequencer.sv rename to library/vip/amd/s_axis_sequencer.sv diff --git a/mxfe/system_project.tcl b/mxfe/system_project.tcl deleted file mode 100644 index 1deb12ad..00000000 --- a/mxfe/system_project.tcl +++ /dev/null @@ -1,52 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_jesd_tx_pkg.sv" \ - "../common/sv/adi_regmap_jesd_rx_pkg.sv" \ - "../common/sv/adi_regmap_xcvr_pkg.sv" \ - "../common/sv/adi_regmap_tdd_gen_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/adi_jesd204_pkg.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_xcvr_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/pluto/Makefile b/pluto/Makefile deleted file mode 100644 index 8b86a21d..00000000 --- a/pluto/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -#################################################################################### -## Copyright (C) 2024 Analog Devices, Inc. -#################################################################################### - -# All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_tdd_gen_pkg.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv -SV_DEPS += system_tb.sv - -ENV_DEPS += system_project.tcl -ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl - -LIB_DEPS += axi_ad9361 -LIB_DEPS += axi_dmac -LIB_DEPS += axi_tdd -LIB_DEPS += util_pack/util_cpack2 -LIB_DEPS += util_pack/util_upack2 - -# default test program -TP := test_program - -# config files should have the following format -# cfg__.tcl -CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) -#$(warning $(CFG_FILES)) - -# List of tests and configuration combinations that has to be run -# Format is: : -TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) -#TESTS += cfg1_mm2mm_default:directed_test -#TESTS += cfg1:test_program -#TESTS += cfg2_fsync:test_program -#TESTS += cfg2_fsync:test_frame_delay - -include ../scripts/project-sim.mk diff --git a/pluto/system_project.tcl b/pluto/system_project.tcl deleted file mode 100644 index 1aad1f5a..00000000 --- a/pluto/system_project.tcl +++ /dev/null @@ -1,46 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xc7z010clg400-1" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_dac_pkg.sv" \ - "../common/sv/adi_regmap_adc_pkg.sv" \ - "../common/sv/adi_regmap_common_pkg.sv" \ - "../common/sv/adi_regmap_tdd_gen_pkg.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/pulsar_adc_pmdz/system_project.tcl b/pulsar_adc_pmdz/system_project.tcl deleted file mode 100755 index 3c91af47..00000000 --- a/pulsar_adc_pmdz/system_project.tcl +++ /dev/null @@ -1,49 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Set to use SmartConnect or AXI Interconnect -set use_smartconnect 1 - -# Create the project -adi_sim_project_xilinx $project_name "xc7z007sclg400-1" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_clkgen_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/adi_regmap_spi_engine_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "spi_engine.svh" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/scoreboard/system_project.tcl b/scoreboard/system_project.tcl deleted file mode 100644 index 97d11ca0..00000000 --- a/scoreboard/system_project.tcl +++ /dev/null @@ -1,49 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/mailbox.sv" \ - "../common/sv/x_monitor.sv" \ - "../common/sv/scoreboard.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/data_offload_api.sv" \ - "../common/sv/adi_regmap_data_offload_pkg.sv" \ - "environment.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/scripts/adi_sim.tcl b/scripts/adi_sim.tcl index 640b3671..f6b18a03 100644 --- a/scripts/adi_sim.tcl +++ b/scripts/adi_sim.tcl @@ -21,7 +21,7 @@ proc adi_sim_project_xilinx {project_name {part "xc7vx485tffg1157-1"}} { # Set IP repository paths set lib_dirs $ad_hdl_dir/library - lappend lib_dirs [file normalize "./../common/sv"] + lappend lib_dirs [file normalize "./../../../library"] set_property ip_repo_paths $lib_dirs \ [get_filesets sources_1] @@ -35,7 +35,7 @@ proc adi_sim_project_xilinx {project_name {part "xc7vx485tffg1157-1"}} { global sys_zynq set sys_zynq -1 if { ![info exists ad_project_params(CUSTOM_HARNESS)] || !$ad_project_params(CUSTOM_HARNESS) } { - source ../common/test_harness/test_harness_system_bd.tcl + source ../../../library/utilities/test_harness_system_bd.tcl } # transfer tcl parameters as defines to verilog diff --git a/scripts/project-sim.mk b/scripts/project-sim.mk index ec4a0a9b..953773b7 100644 --- a/scripts/project-sim.mk +++ b/scripts/project-sim.mk @@ -10,7 +10,7 @@ HDL_LIBRARY_PATH := $(ADI_HDL_DIR)/library/ include $(ADI_HDL_DIR)/quiet.mk ENV_DEPS += $(foreach dep,$(LIB_DEPS),$(HDL_LIBRARY_PATH)$(dep)/component.xml) -ENV_DEPS += $(foreach dep,$(SIM_LIB_DEPS),$(ADI_HDL_DIR)/testbenches/common/sv/$(dep)/component.xml) +ENV_DEPS += $(foreach dep,$(SIM_LIB_DEPS),$(ADI_HDL_DIR)/testbenches/library/vip/adi/$(dep)/component.xml) SHELL:=/bin/bash @@ -160,9 +160,9 @@ $(HDL_LIBRARY_PATH)%/component.xml: FORCE "; exit $$? # Create here the targets which build the sim libraries -$(ADI_HDL_DIR)/testbenches/common/sv/%/component.xml: TARGET:=xilinx +$(ADI_HDL_DIR)/testbenches/library/vip/adi/%/component.xml: TARGET:=xilinx FORCE: -$(ADI_HDL_DIR)/testbenches/common/sv/%/component.xml: FORCE +$(ADI_HDL_DIR)/testbenches/library/vip/adi/%/component.xml: FORCE flock $(dir $@).lock -c " \ $(MAKE) -C $(dir $@) xilinx; \ "; exit $$? diff --git a/spi_engine/system_project.tcl b/spi_engine/system_project.tcl deleted file mode 100644 index 9c00413a..00000000 --- a/spi_engine/system_project.tcl +++ /dev/null @@ -1,53 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read common config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Set to use SmartConnect or AXI Interconnect -set use_smartconnect 1 - -# Create the project -adi_sim_project_xilinx $project_name "xc7z007sclg400-1" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/spi_vip/adi_spi_vip_pkg.sv" \ - "../common/sv/s_spi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_clkgen_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/adi_regmap_spi_engine_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/spi_engine_instr_pkg.sv" \ - "spi_environment.sv" \ - "tests/test_program.sv" \ - "tests/test_sleep_delay.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name diff --git a/axi_tdd/Makefile b/testbenches/ip/axi_tdd/Makefile similarity index 67% rename from axi_tdd/Makefile rename to testbenches/ip/axi_tdd/Makefile index 6d6fb63c..f0deed49 100644 --- a/axi_tdd/Makefile +++ b/testbenches/ip/axi_tdd/Makefile @@ -5,22 +5,22 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_tdd_gen_pkg.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_tdd_gen_pkg.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_tdd @@ -40,7 +40,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad463x/README.md b/testbenches/ip/axi_tdd/README.md similarity index 100% rename from ad463x/README.md rename to testbenches/ip/axi_tdd/README.md diff --git a/axi_tdd/cfgs/cfg1.tcl b/testbenches/ip/axi_tdd/cfgs/cfg1.tcl similarity index 100% rename from axi_tdd/cfgs/cfg1.tcl rename to testbenches/ip/axi_tdd/cfgs/cfg1.tcl diff --git a/axi_tdd/system_bd.tcl b/testbenches/ip/axi_tdd/system_bd.tcl similarity index 98% rename from axi_tdd/system_bd.tcl rename to testbenches/ip/axi_tdd/system_bd.tcl index 974718af..5369f7df 100644 --- a/axi_tdd/system_bd.tcl +++ b/testbenches/ip/axi_tdd/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl # Device clk ad_ip_instance clk_vip device_clk_vip [ list \ diff --git a/axi_tdd/system_project.tcl b/testbenches/ip/axi_tdd/system_project.tcl similarity index 52% rename from axi_tdd/system_project.tcl rename to testbenches/ip/axi_tdd/system_project.tcl index 7c6db191..699d5c26 100644 --- a/axi_tdd/system_project.tcl +++ b/testbenches/ip/axi_tdd/system_project.tcl @@ -1,5 +1,5 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -20,16 +20,16 @@ adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_tdd_gen_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_tdd_gen_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ "tests/test_program.sv" \ "system_tb.sv" \ ] diff --git a/axi_tdd/system_tb.sv b/testbenches/ip/axi_tdd/system_tb.sv similarity index 100% rename from axi_tdd/system_tb.sv rename to testbenches/ip/axi_tdd/system_tb.sv diff --git a/axi_tdd/tests/test_program.sv b/testbenches/ip/axi_tdd/tests/test_program.sv similarity index 100% rename from axi_tdd/tests/test_program.sv rename to testbenches/ip/axi_tdd/tests/test_program.sv diff --git a/axi_tdd/waves/cfg1.wcfg b/testbenches/ip/axi_tdd/waves/cfg1.wcfg similarity index 100% rename from axi_tdd/waves/cfg1.wcfg rename to testbenches/ip/axi_tdd/waves/cfg1.wcfg diff --git a/axis_sequencers/Makefile b/testbenches/ip/axis_sequencers/Makefile similarity index 66% rename from axis_sequencers/Makefile rename to testbenches/ip/axis_sequencers/Makefile index 5293ebfc..1c27cb06 100644 --- a/axis_sequencers/Makefile +++ b/testbenches/ip/axis_sequencers/Makefile @@ -5,24 +5,24 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/test_harness_env.sv -SV_DEPS += ../common/sv/adi_peripheral_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/watchdog.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv +SV_DEPS += ../../../library/regmaps/adi_peripheral_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/drivers/common/watchdog.sv SV_DEPS += environment.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl # default test program TP := test_program @@ -40,7 +40,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/axis_sequencers/README.md b/testbenches/ip/axis_sequencers/README.md similarity index 100% rename from axis_sequencers/README.md rename to testbenches/ip/axis_sequencers/README.md diff --git a/axis_sequencers/cfgs/cfg1.tcl b/testbenches/ip/axis_sequencers/cfgs/cfg1.tcl similarity index 100% rename from axis_sequencers/cfgs/cfg1.tcl rename to testbenches/ip/axis_sequencers/cfgs/cfg1.tcl diff --git a/axis_sequencers/environment.sv b/testbenches/ip/axis_sequencers/environment.sv similarity index 100% rename from axis_sequencers/environment.sv rename to testbenches/ip/axis_sequencers/environment.sv diff --git a/axis_sequencers/system_bd.tcl b/testbenches/ip/axis_sequencers/system_bd.tcl similarity index 98% rename from axis_sequencers/system_bd.tcl rename to testbenches/ip/axis_sequencers/system_bd.tcl index 0097009c..61142ac1 100644 --- a/axis_sequencers/system_bd.tcl +++ b/testbenches/ip/axis_sequencers/system_bd.tcl @@ -35,7 +35,7 @@ global ad_hdl_dir -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/base/system_project.tcl b/testbenches/ip/axis_sequencers/system_project.tcl similarity index 57% rename from base/system_project.tcl rename to testbenches/ip/axis_sequencers/system_project.tcl index d35a9e1c..c5bf16a7 100644 --- a/base/system_project.tcl +++ b/testbenches/ip/axis_sequencers/system_project.tcl @@ -1,5 +1,5 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -20,20 +20,17 @@ adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/mailbox.sv" \ - "../common/sv/x_monitor.sv" \ - "../common/sv/scoreboard.sv" \ - "../common/sv/watchdog.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/drivers/common/watchdog.sv" \ "environment.sv" \ "tests/test_program.sv" \ "system_tb.sv" \ diff --git a/axis_sequencers/system_tb.sv b/testbenches/ip/axis_sequencers/system_tb.sv similarity index 100% rename from axis_sequencers/system_tb.sv rename to testbenches/ip/axis_sequencers/system_tb.sv diff --git a/axis_sequencers/tests/test_program.sv b/testbenches/ip/axis_sequencers/tests/test_program.sv similarity index 100% rename from axis_sequencers/tests/test_program.sv rename to testbenches/ip/axis_sequencers/tests/test_program.sv diff --git a/axis_sequencers/waves/cfg1.wcfg b/testbenches/ip/axis_sequencers/waves/cfg1.wcfg similarity index 100% rename from axis_sequencers/waves/cfg1.wcfg rename to testbenches/ip/axis_sequencers/waves/cfg1.wcfg diff --git a/base/Makefile b/testbenches/ip/base/Makefile similarity index 59% rename from base/Makefile rename to testbenches/ip/base/Makefile index 13599602..174b9836 100644 --- a/base/Makefile +++ b/testbenches/ip/base/Makefile @@ -5,27 +5,27 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/test_harness_env.sv -SV_DEPS += ../common/sv/adi_peripheral_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/mailbox.sv -SV_DEPS += ../common/sv/x_monitor.sv -SV_DEPS += ../common/sv/scoreboard.sv -SV_DEPS += ../common/sv/watchdog.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv +SV_DEPS += ../../../library/regmaps/adi_peripheral_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/drivers/common/mailbox.sv +SV_DEPS += ../../../library/drivers/common/x_monitor.sv +SV_DEPS += ../../../library/drivers/common/scoreboard.sv +SV_DEPS += ../../../library/drivers/common/watchdog.sv SV_DEPS += environment.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl # default test program TP := test_program @@ -40,7 +40,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(addprefix $(cfg):, $(TP))) #TESTS += cfg1:test_program -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/base/README.md b/testbenches/ip/base/README.md similarity index 100% rename from base/README.md rename to testbenches/ip/base/README.md diff --git a/base/cfgs/cfg1.tcl b/testbenches/ip/base/cfgs/cfg1.tcl similarity index 100% rename from base/cfgs/cfg1.tcl rename to testbenches/ip/base/cfgs/cfg1.tcl diff --git a/base/environment.sv b/testbenches/ip/base/environment.sv similarity index 100% rename from base/environment.sv rename to testbenches/ip/base/environment.sv diff --git a/base/system_bd.tcl b/testbenches/ip/base/system_bd.tcl similarity index 97% rename from base/system_bd.tcl rename to testbenches/ip/base/system_bd.tcl index 8f1707c4..972e8a2c 100644 --- a/base/system_bd.tcl +++ b/testbenches/ip/base/system_bd.tcl @@ -35,6 +35,6 @@ global ad_hdl_dir -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/axis_sequencers/system_project.tcl b/testbenches/ip/base/system_project.tcl similarity index 51% rename from axis_sequencers/system_project.tcl rename to testbenches/ip/base/system_project.tcl index 690f40c7..54e1f340 100644 --- a/axis_sequencers/system_project.tcl +++ b/testbenches/ip/base/system_project.tcl @@ -1,5 +1,5 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -20,17 +20,20 @@ adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/watchdog.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/drivers/common/mailbox.sv" \ + "../../../library/drivers/common/x_monitor.sv" \ + "../../../library/drivers/common/scoreboard.sv" \ + "../../../library/drivers/common/watchdog.sv" \ "environment.sv" \ "tests/test_program.sv" \ "system_tb.sv" \ diff --git a/base/system_tb.sv b/testbenches/ip/base/system_tb.sv similarity index 100% rename from base/system_tb.sv rename to testbenches/ip/base/system_tb.sv diff --git a/base/tests/test_program.sv b/testbenches/ip/base/tests/test_program.sv similarity index 100% rename from base/tests/test_program.sv rename to testbenches/ip/base/tests/test_program.sv diff --git a/base/waves/cfg1.wcfg b/testbenches/ip/base/waves/cfg1.wcfg similarity index 100% rename from base/waves/cfg1.wcfg rename to testbenches/ip/base/waves/cfg1.wcfg diff --git a/data_offload/Makefile b/testbenches/ip/data_offload/Makefile similarity index 72% rename from data_offload/Makefile rename to testbenches/ip/data_offload/Makefile index 147f9da4..ad917bf8 100644 --- a/data_offload/Makefile +++ b/testbenches/ip/data_offload/Makefile @@ -5,13 +5,13 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv SV_DEPS += do_scoreboard.sv SV_DEPS += environment.sv SV_DEPS += system_tb.sv @@ -19,8 +19,8 @@ SV_DEPS += system_tb.sv #ENV_DEPS += cfgs/common_cfg.tcl ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS += ../scripts/adi_sim.tcl -ENV_DEPS += ../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS := util_cdc LIB_DEPS += util_axis_fifo @@ -41,7 +41,7 @@ $(warning $(CFG_FILES)) # Format is: : TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk #################################################################################### #################################################################################### diff --git a/data_offload/README.md b/testbenches/ip/data_offload/README.md similarity index 100% rename from data_offload/README.md rename to testbenches/ip/data_offload/README.md diff --git a/data_offload/cfgs/cfg1.tcl b/testbenches/ip/data_offload/cfgs/cfg1.tcl similarity index 100% rename from data_offload/cfgs/cfg1.tcl rename to testbenches/ip/data_offload/cfgs/cfg1.tcl diff --git a/data_offload/cfgs/cfg2.tcl b/testbenches/ip/data_offload/cfgs/cfg2.tcl similarity index 100% rename from data_offload/cfgs/cfg2.tcl rename to testbenches/ip/data_offload/cfgs/cfg2.tcl diff --git a/data_offload/cfgs/cfg3.tcl b/testbenches/ip/data_offload/cfgs/cfg3.tcl similarity index 100% rename from data_offload/cfgs/cfg3.tcl rename to testbenches/ip/data_offload/cfgs/cfg3.tcl diff --git a/data_offload/cfgs/cfg7_internal_memory.tcl b/testbenches/ip/data_offload/cfgs/cfg7_internal_memory.tcl similarity index 100% rename from data_offload/cfgs/cfg7_internal_memory.tcl rename to testbenches/ip/data_offload/cfgs/cfg7_internal_memory.tcl diff --git a/data_offload/cfgs/common_cfg.tcl b/testbenches/ip/data_offload/cfgs/common_cfg.tcl similarity index 100% rename from data_offload/cfgs/common_cfg.tcl rename to testbenches/ip/data_offload/cfgs/common_cfg.tcl diff --git a/data_offload/do_scoreboard.sv b/testbenches/ip/data_offload/do_scoreboard.sv similarity index 100% rename from data_offload/do_scoreboard.sv rename to testbenches/ip/data_offload/do_scoreboard.sv diff --git a/data_offload/environment.sv b/testbenches/ip/data_offload/environment.sv similarity index 100% rename from data_offload/environment.sv rename to testbenches/ip/data_offload/environment.sv diff --git a/data_offload/system_bd.tcl b/testbenches/ip/data_offload/system_bd.tcl similarity index 100% rename from data_offload/system_bd.tcl rename to testbenches/ip/data_offload/system_bd.tcl diff --git a/data_offload/system_project.tcl b/testbenches/ip/data_offload/system_project.tcl similarity index 69% rename from data_offload/system_project.tcl rename to testbenches/ip/data_offload/system_project.tcl index e55ba789..3203832a 100644 --- a/data_offload/system_project.tcl +++ b/testbenches/ip/data_offload/system_project.tcl @@ -1,6 +1,6 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -32,13 +32,13 @@ adi_sim_project_xilinx $project_name $part # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ "do_scoreboard.sv" \ "environment.sv" \ "tests/test_program.sv" \ diff --git a/data_offload/system_tb.sv b/testbenches/ip/data_offload/system_tb.sv similarity index 100% rename from data_offload/system_tb.sv rename to testbenches/ip/data_offload/system_tb.sv diff --git a/data_offload/tests/test_program.sv b/testbenches/ip/data_offload/tests/test_program.sv similarity index 100% rename from data_offload/tests/test_program.sv rename to testbenches/ip/data_offload/tests/test_program.sv diff --git a/data_offload/waves/rx_plddr_tx_ram.wcfg b/testbenches/ip/data_offload/waves/rx_plddr_tx_ram.wcfg similarity index 100% rename from data_offload/waves/rx_plddr_tx_ram.wcfg rename to testbenches/ip/data_offload/waves/rx_plddr_tx_ram.wcfg diff --git a/data_offload_2/Makefile b/testbenches/ip/data_offload_2/Makefile similarity index 73% rename from data_offload_2/Makefile rename to testbenches/ip/data_offload_2/Makefile index 0b5eefa7..c439d7ff 100644 --- a/data_offload_2/Makefile +++ b/testbenches/ip/data_offload_2/Makefile @@ -5,13 +5,13 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv SV_DEPS += do_scoreboard.sv SV_DEPS += environment.sv SV_DEPS += system_tb.sv @@ -20,8 +20,8 @@ SV_DEPS += data_offload_pkg.sv ENV_DEPS += cfgs/common_cfg.tcl ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS += ../scripts/adi_sim.tcl -ENV_DEPS += ../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS := util_cdc LIB_DEPS += util_axis_fifo @@ -43,7 +43,7 @@ $(warning $(CFG_FILES)) TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) TESTS += cfg3:test_program_sync -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk #################################################################################### #################################################################################### diff --git a/data_offload_2/cfgs/cfg0.tcl b/testbenches/ip/data_offload_2/cfgs/cfg0.tcl similarity index 100% rename from data_offload_2/cfgs/cfg0.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg0.tcl diff --git a/data_offload_2/cfgs/cfg1.tcl b/testbenches/ip/data_offload_2/cfgs/cfg1.tcl similarity index 100% rename from data_offload_2/cfgs/cfg1.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg1.tcl diff --git a/data_offload_2/cfgs/cfg2.tcl b/testbenches/ip/data_offload_2/cfgs/cfg2.tcl similarity index 100% rename from data_offload_2/cfgs/cfg2.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg2.tcl diff --git a/data_offload_2/cfgs/cfg3.tcl b/testbenches/ip/data_offload_2/cfgs/cfg3.tcl similarity index 100% rename from data_offload_2/cfgs/cfg3.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg3.tcl diff --git a/data_offload_2/cfgs/cfg4.tcl b/testbenches/ip/data_offload_2/cfgs/cfg4.tcl similarity index 100% rename from data_offload_2/cfgs/cfg4.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg4.tcl diff --git a/data_offload_2/cfgs/cfg5_hbm.tcl b/testbenches/ip/data_offload_2/cfgs/cfg5_hbm.tcl similarity index 100% rename from data_offload_2/cfgs/cfg5_hbm.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg5_hbm.tcl diff --git a/data_offload_2/cfgs/cfg5_hbm_cyclic.tcl b/testbenches/ip/data_offload_2/cfgs/cfg5_hbm_cyclic.tcl similarity index 100% rename from data_offload_2/cfgs/cfg5_hbm_cyclic.tcl rename to testbenches/ip/data_offload_2/cfgs/cfg5_hbm_cyclic.tcl diff --git a/data_offload_2/cfgs/common_cfg.tcl b/testbenches/ip/data_offload_2/cfgs/common_cfg.tcl similarity index 100% rename from data_offload_2/cfgs/common_cfg.tcl rename to testbenches/ip/data_offload_2/cfgs/common_cfg.tcl diff --git a/data_offload_2/data_offload_pkg.sv b/testbenches/ip/data_offload_2/data_offload_pkg.sv similarity index 100% rename from data_offload_2/data_offload_pkg.sv rename to testbenches/ip/data_offload_2/data_offload_pkg.sv diff --git a/data_offload_2/do_scoreboard.sv b/testbenches/ip/data_offload_2/do_scoreboard.sv similarity index 100% rename from data_offload_2/do_scoreboard.sv rename to testbenches/ip/data_offload_2/do_scoreboard.sv diff --git a/data_offload_2/environment.sv b/testbenches/ip/data_offload_2/environment.sv similarity index 100% rename from data_offload_2/environment.sv rename to testbenches/ip/data_offload_2/environment.sv diff --git a/data_offload_2/system_bd.tcl b/testbenches/ip/data_offload_2/system_bd.tcl similarity index 100% rename from data_offload_2/system_bd.tcl rename to testbenches/ip/data_offload_2/system_bd.tcl diff --git a/data_offload_2/system_project.tcl b/testbenches/ip/data_offload_2/system_project.tcl similarity index 70% rename from data_offload_2/system_project.tcl rename to testbenches/ip/data_offload_2/system_project.tcl index 7027ba48..e3b7cf61 100644 --- a/data_offload_2/system_project.tcl +++ b/testbenches/ip/data_offload_2/system_project.tcl @@ -1,5 +1,5 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -31,13 +31,13 @@ adi_sim_project_xilinx $project_name $part # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ "environment.sv" \ "tests/test_program.sv" \ "tests/test_program_sync.sv" \ diff --git a/data_offload_2/system_tb.sv b/testbenches/ip/data_offload_2/system_tb.sv similarity index 100% rename from data_offload_2/system_tb.sv rename to testbenches/ip/data_offload_2/system_tb.sv diff --git a/data_offload_2/tests/test_program.sv b/testbenches/ip/data_offload_2/tests/test_program.sv similarity index 100% rename from data_offload_2/tests/test_program.sv rename to testbenches/ip/data_offload_2/tests/test_program.sv diff --git a/data_offload_2/tests/test_program_sync.sv b/testbenches/ip/data_offload_2/tests/test_program_sync.sv similarity index 100% rename from data_offload_2/tests/test_program_sync.sv rename to testbenches/ip/data_offload_2/tests/test_program_sync.sv diff --git a/data_offload_2/waves/cfg0.wcfg b/testbenches/ip/data_offload_2/waves/cfg0.wcfg similarity index 100% rename from data_offload_2/waves/cfg0.wcfg rename to testbenches/ip/data_offload_2/waves/cfg0.wcfg diff --git a/data_offload_2/waves/cfg1.wcfg b/testbenches/ip/data_offload_2/waves/cfg1.wcfg similarity index 100% rename from data_offload_2/waves/cfg1.wcfg rename to testbenches/ip/data_offload_2/waves/cfg1.wcfg diff --git a/data_offload_2/waves/cfg2.wcfg b/testbenches/ip/data_offload_2/waves/cfg2.wcfg similarity index 100% rename from data_offload_2/waves/cfg2.wcfg rename to testbenches/ip/data_offload_2/waves/cfg2.wcfg diff --git a/data_offload_2/waves/cfg3.wcfg b/testbenches/ip/data_offload_2/waves/cfg3.wcfg similarity index 100% rename from data_offload_2/waves/cfg3.wcfg rename to testbenches/ip/data_offload_2/waves/cfg3.wcfg diff --git a/data_offload_2/waves/cfg4.wcfg b/testbenches/ip/data_offload_2/waves/cfg4.wcfg similarity index 100% rename from data_offload_2/waves/cfg4.wcfg rename to testbenches/ip/data_offload_2/waves/cfg4.wcfg diff --git a/dma_loopback/Makefile b/testbenches/ip/dma_loopback/Makefile similarity index 64% rename from dma_loopback/Makefile rename to testbenches/ip/dma_loopback/Makefile index 59ddac0d..d09ff046 100644 --- a/dma_loopback/Makefile +++ b/testbenches/ip/dma_loopback/Makefile @@ -5,24 +5,24 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac @@ -42,7 +42,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad57xx/README.md b/testbenches/ip/dma_loopback/README.md similarity index 100% rename from ad57xx/README.md rename to testbenches/ip/dma_loopback/README.md diff --git a/dma_loopback/cfgs/cfg1.tcl b/testbenches/ip/dma_loopback/cfgs/cfg1.tcl similarity index 100% rename from dma_loopback/cfgs/cfg1.tcl rename to testbenches/ip/dma_loopback/cfgs/cfg1.tcl diff --git a/dma_loopback/system_bd.tcl b/testbenches/ip/dma_loopback/system_bd.tcl similarity index 98% rename from dma_loopback/system_bd.tcl rename to testbenches/ip/dma_loopback/system_bd.tcl index bd4b1d80..acef5610 100644 --- a/dma_loopback/system_bd.tcl +++ b/testbenches/ip/dma_loopback/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl # Device clk ad_ip_instance clk_vip device_clk_vip [ list \ diff --git a/testbenches/ip/dma_loopback/system_project.tcl b/testbenches/ip/dma_loopback/system_project.tcl new file mode 100644 index 00000000..f3b25d4f --- /dev/null +++ b/testbenches/ip/dma_loopback/system_project.tcl @@ -0,0 +1,43 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/dma_loopback/system_tb.sv b/testbenches/ip/dma_loopback/system_tb.sv similarity index 100% rename from dma_loopback/system_tb.sv rename to testbenches/ip/dma_loopback/system_tb.sv diff --git a/dma_loopback/tests/test_program.sv b/testbenches/ip/dma_loopback/tests/test_program.sv similarity index 100% rename from dma_loopback/tests/test_program.sv rename to testbenches/ip/dma_loopback/tests/test_program.sv diff --git a/dma_loopback/waves/cfg1.wcfg b/testbenches/ip/dma_loopback/waves/cfg1.wcfg similarity index 100% rename from dma_loopback/waves/cfg1.wcfg rename to testbenches/ip/dma_loopback/waves/cfg1.wcfg diff --git a/dma_sg/Makefile b/testbenches/ip/dma_sg/Makefile similarity index 60% rename from dma_sg/Makefile rename to testbenches/ip/dma_sg/Makefile index aa83782d..f5380fb1 100644 --- a/dma_sg/Makefile +++ b/testbenches/ip/dma_sg/Makefile @@ -3,24 +3,24 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac @@ -39,7 +39,7 @@ TESTS += cfg1:test_program_1d TESTS += cfg2:test_program_2d TESTS += cfg1:test_program_tr_queue -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad7616/README.md b/testbenches/ip/dma_sg/README.md old mode 100755 new mode 100644 similarity index 100% rename from ad7616/README.md rename to testbenches/ip/dma_sg/README.md diff --git a/dma_sg/cfgs/cfg1.tcl b/testbenches/ip/dma_sg/cfgs/cfg1.tcl similarity index 100% rename from dma_sg/cfgs/cfg1.tcl rename to testbenches/ip/dma_sg/cfgs/cfg1.tcl diff --git a/dma_sg/cfgs/cfg2.tcl b/testbenches/ip/dma_sg/cfgs/cfg2.tcl similarity index 100% rename from dma_sg/cfgs/cfg2.tcl rename to testbenches/ip/dma_sg/cfgs/cfg2.tcl diff --git a/dma_sg/system_bd.tcl b/testbenches/ip/dma_sg/system_bd.tcl similarity index 98% rename from dma_sg/system_bd.tcl rename to testbenches/ip/dma_sg/system_bd.tcl index b1e12c1f..20b03ee5 100644 --- a/dma_sg/system_bd.tcl +++ b/testbenches/ip/dma_sg/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl # Device clk ad_ip_instance clk_vip device_clk_vip [ list \ diff --git a/testbenches/ip/dma_sg/system_project.tcl b/testbenches/ip/dma_sg/system_project.tcl new file mode 100644 index 00000000..f6fa4578 --- /dev/null +++ b/testbenches/ip/dma_sg/system_project.tcl @@ -0,0 +1,45 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program_1d.sv" \ + "tests/test_program_2d.sv" \ + "tests/test_program_tr_queue.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program_1d" + +adi_sim_generate $project_name diff --git a/dma_sg/system_tb.sv b/testbenches/ip/dma_sg/system_tb.sv similarity index 100% rename from dma_sg/system_tb.sv rename to testbenches/ip/dma_sg/system_tb.sv diff --git a/dma_sg/tests/test_program_1d.sv b/testbenches/ip/dma_sg/tests/test_program_1d.sv similarity index 100% rename from dma_sg/tests/test_program_1d.sv rename to testbenches/ip/dma_sg/tests/test_program_1d.sv diff --git a/dma_sg/tests/test_program_2d.sv b/testbenches/ip/dma_sg/tests/test_program_2d.sv similarity index 100% rename from dma_sg/tests/test_program_2d.sv rename to testbenches/ip/dma_sg/tests/test_program_2d.sv diff --git a/dma_sg/tests/test_program_tr_queue.sv b/testbenches/ip/dma_sg/tests/test_program_tr_queue.sv similarity index 100% rename from dma_sg/tests/test_program_tr_queue.sv rename to testbenches/ip/dma_sg/tests/test_program_tr_queue.sv diff --git a/dma_sg/waves/cfg1.wcfg b/testbenches/ip/dma_sg/waves/cfg1.wcfg similarity index 100% rename from dma_sg/waves/cfg1.wcfg rename to testbenches/ip/dma_sg/waves/cfg1.wcfg diff --git a/dma_sg/waves/cfg2.wcfg b/testbenches/ip/dma_sg/waves/cfg2.wcfg similarity index 100% rename from dma_sg/waves/cfg2.wcfg rename to testbenches/ip/dma_sg/waves/cfg2.wcfg diff --git a/hbm/Makefile b/testbenches/ip/hbm/Makefile similarity index 64% rename from hbm/Makefile rename to testbenches/ip/hbm/Makefile index e2327acf..24ec9b44 100644 --- a/hbm/Makefile +++ b/testbenches/ip/hbm/Makefile @@ -5,24 +5,24 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac LIB_DEPS += util_hbm @@ -43,7 +43,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad9083/README.md b/testbenches/ip/hbm/README.md similarity index 100% rename from ad9083/README.md rename to testbenches/ip/hbm/README.md diff --git a/hbm/cfgs/cfg1.tcl b/testbenches/ip/hbm/cfgs/cfg1.tcl similarity index 100% rename from hbm/cfgs/cfg1.tcl rename to testbenches/ip/hbm/cfgs/cfg1.tcl diff --git a/hbm/system_bd.tcl b/testbenches/ip/hbm/system_bd.tcl similarity index 98% rename from hbm/system_bd.tcl rename to testbenches/ip/hbm/system_bd.tcl index bbde7186..c757bf32 100644 --- a/hbm/system_bd.tcl +++ b/testbenches/ip/hbm/system_bd.tcl @@ -33,8 +33,8 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl -source ../../library/util_hbm/scripts/adi_util_hbm.tcl +source ../../../../scripts/adi_env.tcl +source ../../../../library/util_hbm/scripts/adi_util_hbm.tcl # hbm clk/reset ad_ip_instance clk_vip hbm_clk_vip [ list \ diff --git a/testbenches/ip/hbm/system_project.tcl b/testbenches/ip/hbm/system_project.tcl new file mode 100644 index 00000000..885bc012 --- /dev/null +++ b/testbenches/ip/hbm/system_project.tcl @@ -0,0 +1,42 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu37p-fsvh2892-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/hbm/system_tb.sv b/testbenches/ip/hbm/system_tb.sv similarity index 100% rename from hbm/system_tb.sv rename to testbenches/ip/hbm/system_tb.sv diff --git a/hbm/tests/test_program.sv b/testbenches/ip/hbm/tests/test_program.sv similarity index 100% rename from hbm/tests/test_program.sv rename to testbenches/ip/hbm/tests/test_program.sv diff --git a/hbm/waves/cfg1.wcfg b/testbenches/ip/hbm/waves/cfg1.wcfg similarity index 100% rename from hbm/waves/cfg1.wcfg rename to testbenches/ip/hbm/waves/cfg1.wcfg diff --git a/i3c_controller/Makefile b/testbenches/ip/i3c_controller/Makefile similarity index 67% rename from i3c_controller/Makefile rename to testbenches/ip/i3c_controller/Makefile index e8681649..4dd57ac3 100755 --- a/i3c_controller/Makefile +++ b/testbenches/ip/i3c_controller/Makefile @@ -5,23 +5,23 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv SV_DEPS += system_tb.sv -ENV_DEPS +=../../library/util_cdc/sync_bits.v -ENV_DEPS +=../../library/common/ad_edge_detect.v +ENV_DEPS += ../../../../library/util_cdc/sync_bits.v +ENV_DEPS += ../../../../library/common/ad_edge_detect.v ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_sysid LIB_DEPS += i3c_controller/i3c_controller_host_interface @@ -40,7 +40,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) # Format is: : TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/adrv9001/README.md b/testbenches/ip/i3c_controller/README.md old mode 100644 new mode 100755 similarity index 100% rename from adrv9001/README.md rename to testbenches/ip/i3c_controller/README.md diff --git a/i3c_controller/cfgs/cfg1.tcl b/testbenches/ip/i3c_controller/cfgs/cfg1.tcl similarity index 100% rename from i3c_controller/cfgs/cfg1.tcl rename to testbenches/ip/i3c_controller/cfgs/cfg1.tcl diff --git a/i3c_controller/cfgs/cfg2.tcl b/testbenches/ip/i3c_controller/cfgs/cfg2.tcl similarity index 100% rename from i3c_controller/cfgs/cfg2.tcl rename to testbenches/ip/i3c_controller/cfgs/cfg2.tcl diff --git a/i3c_controller/system_bd.tcl b/testbenches/ip/i3c_controller/system_bd.tcl similarity index 94% rename from i3c_controller/system_bd.tcl rename to testbenches/ip/i3c_controller/system_bd.tcl index 224bf183..1745f2f2 100755 --- a/i3c_controller/system_bd.tcl +++ b/testbenches/ip/i3c_controller/system_bd.tcl @@ -33,14 +33,14 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v" \ - "../../library/common/ad_iobuf.v" \ + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v" \ + "../../../../library/common/ad_iobuf.v" \ ] # diff --git a/i3c_controller/system_project.tcl b/testbenches/ip/i3c_controller/system_project.tcl similarity index 82% rename from i3c_controller/system_project.tcl rename to testbenches/ip/i3c_controller/system_project.tcl index 1ce0bc56..e63add74 100755 --- a/i3c_controller/system_project.tcl +++ b/testbenches/ip/i3c_controller/system_project.tcl @@ -33,8 +33,8 @@ # *************************************************************************** # *************************************************************************** -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -55,15 +55,15 @@ adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ "tests/test_program.sv" \ "system_tb.sv" \ ] diff --git a/i3c_controller/system_tb.sv b/testbenches/ip/i3c_controller/system_tb.sv similarity index 100% rename from i3c_controller/system_tb.sv rename to testbenches/ip/i3c_controller/system_tb.sv diff --git a/i3c_controller/tests/test_program.sv b/testbenches/ip/i3c_controller/tests/test_program.sv similarity index 99% rename from i3c_controller/tests/test_program.sv rename to testbenches/ip/i3c_controller/tests/test_program.sv index 56a571a2..0be4fc4b 100755 --- a/i3c_controller/tests/test_program.sv +++ b/testbenches/ip/i3c_controller/tests/test_program.sv @@ -36,8 +36,8 @@ // `include "utils.svh" -`include "../../../library/i3c_controller/i3c_controller_host_interface/i3c_controller_regmap.vh" -`include "../../../library/i3c_controller/i3c_controller_core/i3c_controller_word.vh" +`include "../../../../../library/i3c_controller/i3c_controller_host_interface/i3c_controller_regmap.vh" +`include "../../../../../library/i3c_controller/i3c_controller_core/i3c_controller_word.vh" import axi_vip_pkg::*; import axi4stream_vip_pkg::*; diff --git a/i3c_controller/waves/cfg1.wcfg b/testbenches/ip/i3c_controller/waves/cfg1.wcfg similarity index 100% rename from i3c_controller/waves/cfg1.wcfg rename to testbenches/ip/i3c_controller/waves/cfg1.wcfg diff --git a/jesd_loopback/Makefile b/testbenches/ip/jesd_loopback/Makefile similarity index 60% rename from jesd_loopback/Makefile rename to testbenches/ip/jesd_loopback/Makefile index 265e0023..4ba28761 100644 --- a/jesd_loopback/Makefile +++ b/testbenches/ip/jesd_loopback/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_tx_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_rx_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac LIB_DEPS += jesd204/axi_jesd204_tx @@ -55,7 +55,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/adrv9009/README.md b/testbenches/ip/jesd_loopback/README.md old mode 100755 new mode 100644 similarity index 100% rename from adrv9009/README.md rename to testbenches/ip/jesd_loopback/README.md diff --git a/jesd_loopback/cfgs/cfg1.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg1.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg1.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg1.tcl diff --git a/jesd_loopback/cfgs/cfg2.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg2.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg2.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg2.tcl diff --git a/jesd_loopback/cfgs/cfg2_np12.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg2_np12.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg2_np12.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg2_np12.tcl diff --git a/jesd_loopback/cfgs/cfg3_np12_L2M8.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg3_np12_L2M8.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg3_np12_L2M8.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg3_np12_L2M8.tcl diff --git a/jesd_loopback/cfgs/cfg4_F8.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg4_F8.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg4_F8.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg4_F8.tcl diff --git a/jesd_loopback/cfgs/cfg5_64b66b.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg5_64b66b.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg5_64b66b.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg5_64b66b.tcl diff --git a/jesd_loopback/cfgs/cfg6_F64.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg6_F64.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg6_F64.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg6_F64.tcl diff --git a/jesd_loopback/cfgs/cfg7_np12_L12M2.tcl b/testbenches/ip/jesd_loopback/cfgs/cfg7_np12_L12M2.tcl similarity index 100% rename from jesd_loopback/cfgs/cfg7_np12_L12M2.tcl rename to testbenches/ip/jesd_loopback/cfgs/cfg7_np12_L12M2.tcl diff --git a/jesd_loopback/cfgs/common.tcl b/testbenches/ip/jesd_loopback/cfgs/common.tcl similarity index 100% rename from jesd_loopback/cfgs/common.tcl rename to testbenches/ip/jesd_loopback/cfgs/common.tcl diff --git a/jesd_loopback/system_bd.tcl b/testbenches/ip/jesd_loopback/system_bd.tcl similarity index 99% rename from jesd_loopback/system_bd.tcl rename to testbenches/ip/jesd_loopback/system_bd.tcl index b4ba40c4..82a5a258 100644 --- a/jesd_loopback/system_bd.tcl +++ b/testbenches/ip/jesd_loopback/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/jesd204/scripts/jesd204.tcl global ad_project_params diff --git a/testbenches/ip/jesd_loopback/system_project.tcl b/testbenches/ip/jesd_loopback/system_project.tcl new file mode 100644 index 00000000..11b4afcf --- /dev/null +++ b/testbenches/ip/jesd_loopback/system_project.tcl @@ -0,0 +1,53 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +#adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e"; # GTY4 +adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e"; # GTH4 +#adi_sim_project_xilinx $project_name "xcku040-ffva1156-2-e"; # GTH3 +#adi_sim_project_xilinx $project_name; # GTX2 + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_xcvr_pkg.sv" \ + "../../../library/drivers/jesd/adi_jesd204_pkg.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/drivers/xcvr/adi_xcvr_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/jesd_loopback/system_tb.sv b/testbenches/ip/jesd_loopback/system_tb.sv similarity index 100% rename from jesd_loopback/system_tb.sv rename to testbenches/ip/jesd_loopback/system_tb.sv diff --git a/jesd_loopback/tests/test_program.sv b/testbenches/ip/jesd_loopback/tests/test_program.sv similarity index 100% rename from jesd_loopback/tests/test_program.sv rename to testbenches/ip/jesd_loopback/tests/test_program.sv diff --git a/jesd_loopback/waves/cfg1.wcfg b/testbenches/ip/jesd_loopback/waves/cfg1.wcfg similarity index 100% rename from jesd_loopback/waves/cfg1.wcfg rename to testbenches/ip/jesd_loopback/waves/cfg1.wcfg diff --git a/jesd_loopback/waves/cfg2.wcfg b/testbenches/ip/jesd_loopback/waves/cfg2.wcfg similarity index 100% rename from jesd_loopback/waves/cfg2.wcfg rename to testbenches/ip/jesd_loopback/waves/cfg2.wcfg diff --git a/jesd_loopback/waves/cfg2_np12.wcfg b/testbenches/ip/jesd_loopback/waves/cfg2_np12.wcfg similarity index 100% rename from jesd_loopback/waves/cfg2_np12.wcfg rename to testbenches/ip/jesd_loopback/waves/cfg2_np12.wcfg diff --git a/jesd_loopback/waves/cfg4_F8.wcfg b/testbenches/ip/jesd_loopback/waves/cfg4_F8.wcfg similarity index 100% rename from jesd_loopback/waves/cfg4_F8.wcfg rename to testbenches/ip/jesd_loopback/waves/cfg4_F8.wcfg diff --git a/jesd_loopback_64b/Makefile b/testbenches/ip/jesd_loopback_64b/Makefile similarity index 60% rename from jesd_loopback_64b/Makefile rename to testbenches/ip/jesd_loopback_64b/Makefile index 265e0023..4ba28761 100644 --- a/jesd_loopback_64b/Makefile +++ b/testbenches/ip/jesd_loopback_64b/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_tx_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_rx_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac LIB_DEPS += jesd204/axi_jesd204_tx @@ -55,7 +55,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/axi_tdd/README.md b/testbenches/ip/jesd_loopback_64b/README.md similarity index 100% rename from axi_tdd/README.md rename to testbenches/ip/jesd_loopback_64b/README.md diff --git a/jesd_loopback_64b/cfgs/cfg1.tcl b/testbenches/ip/jesd_loopback_64b/cfgs/cfg1.tcl similarity index 100% rename from jesd_loopback_64b/cfgs/cfg1.tcl rename to testbenches/ip/jesd_loopback_64b/cfgs/cfg1.tcl diff --git a/adrv9009/environment.sv b/testbenches/ip/jesd_loopback_64b/environment.sv old mode 100755 new mode 100644 similarity index 100% rename from adrv9009/environment.sv rename to testbenches/ip/jesd_loopback_64b/environment.sv diff --git a/jesd_loopback_64b/system_bd.tcl b/testbenches/ip/jesd_loopback_64b/system_bd.tcl similarity index 99% rename from jesd_loopback_64b/system_bd.tcl rename to testbenches/ip/jesd_loopback_64b/system_bd.tcl index 86421c22..a5c7d700 100644 --- a/jesd_loopback_64b/system_bd.tcl +++ b/testbenches/ip/jesd_loopback_64b/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/jesd204/scripts/jesd204.tcl global ad_project_params diff --git a/testbenches/ip/jesd_loopback_64b/system_project.tcl b/testbenches/ip/jesd_loopback_64b/system_project.tcl new file mode 100644 index 00000000..fe9a8bf4 --- /dev/null +++ b/testbenches/ip/jesd_loopback_64b/system_project.tcl @@ -0,0 +1,47 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/jesd_loopback_64b/system_tb.sv b/testbenches/ip/jesd_loopback_64b/system_tb.sv similarity index 100% rename from jesd_loopback_64b/system_tb.sv rename to testbenches/ip/jesd_loopback_64b/system_tb.sv diff --git a/jesd_loopback_64b/tests/test_program.sv b/testbenches/ip/jesd_loopback_64b/tests/test_program.sv similarity index 100% rename from jesd_loopback_64b/tests/test_program.sv rename to testbenches/ip/jesd_loopback_64b/tests/test_program.sv diff --git a/jesd_loopback_64b/waves/cfg1.wcfg b/testbenches/ip/jesd_loopback_64b/waves/cfg1.wcfg similarity index 100% rename from jesd_loopback_64b/waves/cfg1.wcfg rename to testbenches/ip/jesd_loopback_64b/waves/cfg1.wcfg diff --git a/scoreboard/Makefile b/testbenches/ip/scoreboard/Makefile similarity index 57% rename from scoreboard/Makefile rename to testbenches/ip/scoreboard/Makefile index 0fd51572..492afe87 100644 --- a/scoreboard/Makefile +++ b/testbenches/ip/scoreboard/Makefile @@ -5,31 +5,31 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/test_harness_env.sv -SV_DEPS += ../common/sv/adi_peripheral_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/mailbox.sv -SV_DEPS += ../common/sv/x_monitor.sv -SV_DEPS += ../common/sv/scoreboard.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/data_offload_api.sv -SV_DEPS += ../common/sv/adi_regmap_data_offload_pkg.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv +SV_DEPS += ../../../library/regmaps/adi_peripheral_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/drivers/common/mailbox.sv +SV_DEPS += ../../../library/drivers/common/x_monitor.sv +SV_DEPS += ../../../library/drivers/common/scoreboard.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/drivers/data_offload/data_offload_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_data_offload_pkg.sv SV_DEPS += environment.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS := util_cdc LIB_DEPS += util_axis_fifo @@ -53,7 +53,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/dma_loopback/README.md b/testbenches/ip/scoreboard/README.md similarity index 100% rename from dma_loopback/README.md rename to testbenches/ip/scoreboard/README.md diff --git a/scoreboard/cfgs/cfg1.tcl b/testbenches/ip/scoreboard/cfgs/cfg1.tcl similarity index 100% rename from scoreboard/cfgs/cfg1.tcl rename to testbenches/ip/scoreboard/cfgs/cfg1.tcl diff --git a/scoreboard/environment.sv b/testbenches/ip/scoreboard/environment.sv similarity index 100% rename from scoreboard/environment.sv rename to testbenches/ip/scoreboard/environment.sv diff --git a/scoreboard/system_bd.tcl b/testbenches/ip/scoreboard/system_bd.tcl similarity index 99% rename from scoreboard/system_bd.tcl rename to testbenches/ip/scoreboard/system_bd.tcl index f28f19e5..276fea7a 100644 --- a/scoreboard/system_bd.tcl +++ b/testbenches/ip/scoreboard/system_bd.tcl @@ -35,7 +35,7 @@ global ad_hdl_dir -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source "$ad_hdl_dir/projects/common/xilinx/data_offload_bd.tcl" diff --git a/testbenches/ip/scoreboard/system_project.tcl b/testbenches/ip/scoreboard/system_project.tcl new file mode 100644 index 00000000..27649425 --- /dev/null +++ b/testbenches/ip/scoreboard/system_project.tcl @@ -0,0 +1,49 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/drivers/common/mailbox.sv" \ + "../../../library/drivers/common/x_monitor.sv" \ + "../../../library/drivers/common/scoreboard.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/drivers/data_offload/data_offload_api.sv" \ + "../../../library/regmaps/adi_regmap_data_offload_pkg.sv" \ + "environment.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/scoreboard/system_tb.sv b/testbenches/ip/scoreboard/system_tb.sv similarity index 100% rename from scoreboard/system_tb.sv rename to testbenches/ip/scoreboard/system_tb.sv diff --git a/scoreboard/tests/test_program.sv b/testbenches/ip/scoreboard/tests/test_program.sv similarity index 100% rename from scoreboard/tests/test_program.sv rename to testbenches/ip/scoreboard/tests/test_program.sv diff --git a/scoreboard/waves/cfg1.wcfg b/testbenches/ip/scoreboard/waves/cfg1.wcfg similarity index 100% rename from scoreboard/waves/cfg1.wcfg rename to testbenches/ip/scoreboard/waves/cfg1.wcfg diff --git a/spi_engine/Makefile b/testbenches/ip/spi_engine/Makefile similarity index 58% rename from spi_engine/Makefile rename to testbenches/ip/spi_engine/Makefile index f5e5ac46..fd685800 100644 --- a/spi_engine/Makefile +++ b/testbenches/ip/spi_engine/Makefile @@ -5,32 +5,32 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/s_spi_sequencer.sv -SV_DEPS += ../common/sv/spi_vip/adi_spi_vip_pkg.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_clkgen_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_spi_engine_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/vip/adi/spi_vip/s_spi_sequencer.sv +SV_DEPS += ../../../library/vip/adi/spi_vip/adi_spi_vip_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_clkgen_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_spi_engine_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += spi_environment.sv SV_DEPS += system_tb.sv -ENV_DEPS +=../../library/util_cdc/sync_bits.v -ENV_DEPS +=../../library/common/ad_edge_detect.v +ENV_DEPS += ../../../../library/util_cdc/sync_bits.v +ENV_DEPS += ../../../../library/common/ad_edge_detect.v ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_clkgen LIB_DEPS += axi_pwm_gen @@ -56,7 +56,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) # Format is: : TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(addprefix $(cfg):, $(TP))) -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/dma_sg/README.md b/testbenches/ip/spi_engine/README.md similarity index 100% rename from dma_sg/README.md rename to testbenches/ip/spi_engine/README.md diff --git a/spi_engine/cfgs/cfg1.tcl b/testbenches/ip/spi_engine/cfgs/cfg1.tcl similarity index 100% rename from spi_engine/cfgs/cfg1.tcl rename to testbenches/ip/spi_engine/cfgs/cfg1.tcl diff --git a/spi_engine/cfgs/cfg_inv_cs.tcl b/testbenches/ip/spi_engine/cfgs/cfg_inv_cs.tcl similarity index 100% rename from spi_engine/cfgs/cfg_inv_cs.tcl rename to testbenches/ip/spi_engine/cfgs/cfg_inv_cs.tcl diff --git a/spi_engine/cfgs/cfg_sdo_streaming.tcl b/testbenches/ip/spi_engine/cfgs/cfg_sdo_streaming.tcl similarity index 100% rename from spi_engine/cfgs/cfg_sdo_streaming.tcl rename to testbenches/ip/spi_engine/cfgs/cfg_sdo_streaming.tcl diff --git a/spi_engine/spi_engine_test_bd.tcl b/testbenches/ip/spi_engine/spi_engine_test_bd.tcl similarity index 100% rename from spi_engine/spi_engine_test_bd.tcl rename to testbenches/ip/spi_engine/spi_engine_test_bd.tcl diff --git a/spi_engine/spi_environment.sv b/testbenches/ip/spi_engine/spi_environment.sv similarity index 100% rename from spi_engine/spi_environment.sv rename to testbenches/ip/spi_engine/spi_environment.sv diff --git a/spi_engine/system_bd.tcl b/testbenches/ip/spi_engine/system_bd.tcl similarity index 95% rename from spi_engine/system_bd.tcl rename to testbenches/ip/spi_engine/system_bd.tcl index dc96d03b..6ac075db 100644 --- a/spi_engine/system_bd.tcl +++ b/testbenches/ip/spi_engine/system_bd.tcl @@ -33,16 +33,16 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/spi_engine/scripts/spi_engine.tcl global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v" \ - "../../library/common/ad_iobuf.v" \ + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v" \ + "../../../../library/common/ad_iobuf.v" \ ] # diff --git a/testbenches/ip/spi_engine/system_project.tcl b/testbenches/ip/spi_engine/system_project.tcl new file mode 100644 index 00000000..fa8d6797 --- /dev/null +++ b/testbenches/ip/spi_engine/system_project.tcl @@ -0,0 +1,53 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Set to use SmartConnect or AXI Interconnect +set use_smartconnect 1 + +# Create the project +adi_sim_project_xilinx $project_name "xc7z007sclg400-1" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/vip/adi/spi_vip/adi_spi_vip_pkg.sv" \ + "../../../library/vip/adi/spi_vip/s_spi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_clkgen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_spi_engine_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/drivers/spi_engine/spi_engine_instr_pkg.sv" \ + "spi_environment.sv" \ + "tests/test_program.sv" \ + "tests/test_sleep_delay.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/spi_engine/system_tb.sv b/testbenches/ip/spi_engine/system_tb.sv similarity index 100% rename from spi_engine/system_tb.sv rename to testbenches/ip/spi_engine/system_tb.sv diff --git a/spi_engine/tests/test_program.sv b/testbenches/ip/spi_engine/tests/test_program.sv similarity index 100% rename from spi_engine/tests/test_program.sv rename to testbenches/ip/spi_engine/tests/test_program.sv diff --git a/spi_engine/tests/test_sleep_delay.sv b/testbenches/ip/spi_engine/tests/test_sleep_delay.sv similarity index 100% rename from spi_engine/tests/test_sleep_delay.sv rename to testbenches/ip/spi_engine/tests/test_sleep_delay.sv diff --git a/spi_engine/waves/cfg1.wcfg b/testbenches/ip/spi_engine/waves/cfg1.wcfg similarity index 100% rename from spi_engine/waves/cfg1.wcfg rename to testbenches/ip/spi_engine/waves/cfg1.wcfg diff --git a/spi_engine/waves/cfg_inv_cs.wcfg b/testbenches/ip/spi_engine/waves/cfg_inv_cs.wcfg similarity index 100% rename from spi_engine/waves/cfg_inv_cs.wcfg rename to testbenches/ip/spi_engine/waves/cfg_inv_cs.wcfg diff --git a/spi_engine/waves/cfg_sdo_streaming.wcfg b/testbenches/ip/spi_engine/waves/cfg_sdo_streaming.wcfg similarity index 100% rename from spi_engine/waves/cfg_sdo_streaming.wcfg rename to testbenches/ip/spi_engine/waves/cfg_sdo_streaming.wcfg diff --git a/util_pack/Makefile b/testbenches/ip/util_pack/Makefile similarity index 56% rename from util_pack/Makefile rename to testbenches/ip/util_pack/Makefile index 107356b5..0e2bb8b9 100644 --- a/util_pack/Makefile +++ b/testbenches/ip/util_pack/Makefile @@ -5,31 +5,31 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/test_harness_env.sv -SV_DEPS += ../common/sv/adi_peripheral_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/mailbox.sv -SV_DEPS += ../common/sv/x_monitor.sv -SV_DEPS += ../common/sv/scoreboard.sv -SV_DEPS += ../common/sv/scoreboard_pack.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/watchdog.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv +SV_DEPS += ../../../library/regmaps/adi_peripheral_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/drivers/common/mailbox.sv +SV_DEPS += ../../../library/drivers/common/x_monitor.sv +SV_DEPS += ../../../library/drivers/common/scoreboard.sv +SV_DEPS += ../../../library/drivers/common/scoreboard_pack.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/drivers/common/watchdog.sv SV_DEPS += environment.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS := util_cdc LIB_DEPS += util_axis_fifo @@ -50,7 +50,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg1:test_program #TESTS += cfg_rand:test_program -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/fmcomms2/README.md b/testbenches/ip/util_pack/README.md similarity index 100% rename from fmcomms2/README.md rename to testbenches/ip/util_pack/README.md diff --git a/util_pack/cfgs/cfg1.tcl b/testbenches/ip/util_pack/cfgs/cfg1.tcl similarity index 100% rename from util_pack/cfgs/cfg1.tcl rename to testbenches/ip/util_pack/cfgs/cfg1.tcl diff --git a/util_pack/cfgs/cfg_rand.tcl b/testbenches/ip/util_pack/cfgs/cfg_rand.tcl similarity index 100% rename from util_pack/cfgs/cfg_rand.tcl rename to testbenches/ip/util_pack/cfgs/cfg_rand.tcl diff --git a/util_pack/environment.sv b/testbenches/ip/util_pack/environment.sv similarity index 100% rename from util_pack/environment.sv rename to testbenches/ip/util_pack/environment.sv diff --git a/util_pack/system_bd.tcl b/testbenches/ip/util_pack/system_bd.tcl similarity index 99% rename from util_pack/system_bd.tcl rename to testbenches/ip/util_pack/system_bd.tcl index 83f09b7e..8ae48b2b 100644 --- a/util_pack/system_bd.tcl +++ b/testbenches/ip/util_pack/system_bd.tcl @@ -39,7 +39,7 @@ proc log2 {x} { global ad_hdl_dir -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/testbenches/ip/util_pack/system_project.tcl b/testbenches/ip/util_pack/system_project.tcl new file mode 100644 index 00000000..6289033c --- /dev/null +++ b/testbenches/ip/util_pack/system_project.tcl @@ -0,0 +1,49 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/drivers/common/mailbox.sv" \ + "../../../library/drivers/common/x_monitor.sv" \ + "../../../library/drivers/common/scoreboard.sv" \ + "../../../library/drivers/common/scoreboard_pack.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/drivers/common/watchdog.sv" \ + "environment.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/util_pack/system_tb.sv b/testbenches/ip/util_pack/system_tb.sv similarity index 100% rename from util_pack/system_tb.sv rename to testbenches/ip/util_pack/system_tb.sv diff --git a/util_pack/tests/test_program.sv b/testbenches/ip/util_pack/tests/test_program.sv similarity index 100% rename from util_pack/tests/test_program.sv rename to testbenches/ip/util_pack/tests/test_program.sv diff --git a/util_pack/waves/cfg1.wcfg b/testbenches/ip/util_pack/waves/cfg1.wcfg similarity index 100% rename from util_pack/waves/cfg1.wcfg rename to testbenches/ip/util_pack/waves/cfg1.wcfg diff --git a/util_pack/waves/cfg_rand.wcfg b/testbenches/ip/util_pack/waves/cfg_rand.wcfg similarity index 100% rename from util_pack/waves/cfg_rand.wcfg rename to testbenches/ip/util_pack/waves/cfg_rand.wcfg diff --git a/ad463x/Makefile b/testbenches/project/ad463x/Makefile similarity index 64% rename from ad463x/Makefile rename to testbenches/project/ad463x/Makefile index ab166d05..cff61960 100644 --- a/ad463x/Makefile +++ b/testbenches/project/ad463x/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_clkgen_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_spi_engine_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_clkgen_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_spi_engine_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += system_tb.sv -ENV_DEPS +=../../library/util_cdc/sync_bits.v -ENV_DEPS +=../../library/common/ad_edge_detect.v +ENV_DEPS += ../../../../library/util_cdc/sync_bits.v +ENV_DEPS += ../../../../library/common/ad_edge_detect.v ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += ad463x_data_capture LIB_DEPS += axi_dmac @@ -61,7 +61,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/hbm/README.md b/testbenches/project/ad463x/README.md similarity index 100% rename from hbm/README.md rename to testbenches/project/ad463x/README.md diff --git a/ad463x/cfgs/cfg_cm0_sdi2_cz1_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm0_sdi2_cz1_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm0_sdi2_cz1_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm0_sdi2_cz1_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm0_sdi2_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm0_sdi2_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm0_sdi2_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm0_sdi2_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm0_sdi4_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm0_sdi4_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm0_sdi4_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm0_sdi4_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm0_sdi8_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm0_sdi8_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm0_sdi8_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm0_sdi8_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi1_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi1_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi1_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi1_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr1.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr1.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr1.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi2_cz2_ddr1.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr1.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr1.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr1.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi4_cz2_ddr1.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr0.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr0.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr0.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr0.tcl diff --git a/ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr1.tcl b/testbenches/project/ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr1.tcl similarity index 100% rename from ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr1.tcl rename to testbenches/project/ad463x/cfgs/cfg_cm1_sdi8_cz2_ddr1.tcl diff --git a/ad463x/system_bd.tcl b/testbenches/project/ad463x/system_bd.tcl similarity index 95% rename from ad463x/system_bd.tcl rename to testbenches/project/ad463x/system_bd.tcl index 8e88d35f..686c65ce 100644 --- a/ad463x/system_bd.tcl +++ b/testbenches/project/ad463x/system_bd.tcl @@ -33,13 +33,13 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v" \ + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v" \ ] # diff --git a/testbenches/project/ad463x/system_project.tcl b/testbenches/project/ad463x/system_project.tcl new file mode 100644 index 00000000..80af9127 --- /dev/null +++ b/testbenches/project/ad463x/system_project.tcl @@ -0,0 +1,45 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_clkgen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_spi_engine_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/ad463x/system_tb.sv b/testbenches/project/ad463x/system_tb.sv similarity index 100% rename from ad463x/system_tb.sv rename to testbenches/project/ad463x/system_tb.sv diff --git a/ad463x/tests/test_program.sv b/testbenches/project/ad463x/tests/test_program.sv similarity index 100% rename from ad463x/tests/test_program.sv rename to testbenches/project/ad463x/tests/test_program.sv diff --git a/ad57xx/Makefile b/testbenches/project/ad57xx/Makefile similarity index 61% rename from ad57xx/Makefile rename to testbenches/project/ad57xx/Makefile index 9587d9da..a897535a 100644 --- a/ad57xx/Makefile +++ b/testbenches/project/ad57xx/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/s_spi_sequencer.sv -SV_DEPS += ../common/sv/spi_vip/adi_spi_vip_pkg.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_clkgen_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_spi_engine_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/vip/adi/spi_vip/s_spi_sequencer.sv +SV_DEPS += ../../../library/vip/adi/spi_vip/adi_spi_vip_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_clkgen_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_spi_engine_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += ad57xx_environment.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS += ../scripts/adi_sim.tcl -ENV_DEPS += ../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_clkgen LIB_DEPS += axi_pwm_gen @@ -54,7 +54,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) # Format is: : TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(addprefix $(cfg):, $(TP))) -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/i3c_controller/README.md b/testbenches/project/ad57xx/README.md old mode 100755 new mode 100644 similarity index 100% rename from i3c_controller/README.md rename to testbenches/project/ad57xx/README.md diff --git a/ad57xx/ad57xx_environment.sv b/testbenches/project/ad57xx/ad57xx_environment.sv similarity index 100% rename from ad57xx/ad57xx_environment.sv rename to testbenches/project/ad57xx/ad57xx_environment.sv diff --git a/ad57xx/cfgs/cfg1.tcl b/testbenches/project/ad57xx/cfgs/cfg1.tcl similarity index 100% rename from ad57xx/cfgs/cfg1.tcl rename to testbenches/project/ad57xx/cfgs/cfg1.tcl diff --git a/ad57xx/system_bd.tcl b/testbenches/project/ad57xx/system_bd.tcl similarity index 92% rename from ad57xx/system_bd.tcl rename to testbenches/project/ad57xx/system_bd.tcl index d2681e96..6893bbc0 100644 --- a/ad57xx/system_bd.tcl +++ b/testbenches/project/ad57xx/system_bd.tcl @@ -33,23 +33,23 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/spi_engine/scripts/spi_engine.tcl global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v" \ - "../../library/common/ad_iobuf.v" \ + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v" \ + "../../../../library/common/ad_iobuf.v" \ ] # # Block design under test # -source ../../projects/ad57xx_ardz/common/ad57xx_ardz_bd.tcl +source $ad_hdl_dir//projects/ad57xx_ardz/common/ad57xx_ardz_bd.tcl # Add test-specific VIPs diff --git a/testbenches/project/ad57xx/system_project.tcl b/testbenches/project/ad57xx/system_project.tcl new file mode 100644 index 00000000..c7e49f33 --- /dev/null +++ b/testbenches/project/ad57xx/system_project.tcl @@ -0,0 +1,52 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Set to use SmartConnect or AXI Interconnect +set use_smartconnect 1 + +# Create the project +adi_sim_project_xilinx $project_name "xc7z007sclg400-1" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/vip/adi/spi_vip/adi_spi_vip_pkg.sv" \ + "../../../library/vip/adi/spi_vip/s_spi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_clkgen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_spi_engine_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/drivers/spi_engine/spi_engine_instr_pkg.sv" \ + "ad57xx_environment.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ +] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/ad57xx/system_tb.sv b/testbenches/project/ad57xx/system_tb.sv similarity index 100% rename from ad57xx/system_tb.sv rename to testbenches/project/ad57xx/system_tb.sv diff --git a/ad57xx/tests/test_program.sv b/testbenches/project/ad57xx/tests/test_program.sv similarity index 100% rename from ad57xx/tests/test_program.sv rename to testbenches/project/ad57xx/tests/test_program.sv diff --git a/ad57xx/waves/cfg1.wcfg b/testbenches/project/ad57xx/waves/cfg1.wcfg similarity index 100% rename from ad57xx/waves/cfg1.wcfg rename to testbenches/project/ad57xx/waves/cfg1.wcfg diff --git a/ad738x/Makefile b/testbenches/project/ad738x/Makefile similarity index 64% rename from ad738x/Makefile rename to testbenches/project/ad738x/Makefile index 8cee2b9a..68617991 100644 --- a/ad738x/Makefile +++ b/testbenches/project/ad738x/Makefile @@ -5,26 +5,26 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_clkgen_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_spi_engine_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_clkgen_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_spi_engine_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_clkgen LIB_DEPS += axi_dmac @@ -51,7 +51,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) # Format is: : TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(addprefix $(cfg):, $(TP))) -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad738x/README.md b/testbenches/project/ad738x/README.md similarity index 100% rename from ad738x/README.md rename to testbenches/project/ad738x/README.md diff --git a/ad738x/cfgs/cfg1.tcl b/testbenches/project/ad738x/cfgs/cfg1.tcl similarity index 100% rename from ad738x/cfgs/cfg1.tcl rename to testbenches/project/ad738x/cfgs/cfg1.tcl diff --git a/ad738x/system_bd.tcl b/testbenches/project/ad738x/system_bd.tcl similarity index 96% rename from ad738x/system_bd.tcl rename to testbenches/project/ad738x/system_bd.tcl index 930e9baa..911cabc9 100644 --- a/ad738x/system_bd.tcl +++ b/testbenches/project/ad738x/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl # system level parameters @@ -43,7 +43,7 @@ global ad_project_params # Block design under test # -source ../../projects/ad738x_fmc/common/ad738x_bd.tcl +source $ad_hdl_dir/projects/ad738x_fmc/common/ad738x_bd.tcl create_bd_port -dir O ad738x_spi_clk create_bd_port -dir O ad738x_irq diff --git a/ad738x/system_project.tcl b/testbenches/project/ad738x/system_project.tcl similarity index 52% rename from ad738x/system_project.tcl rename to testbenches/project/ad738x/system_project.tcl index e49e90a0..09917eb6 100644 --- a/ad738x/system_project.tcl +++ b/testbenches/project/ad738x/system_project.tcl @@ -1,5 +1,5 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -35,21 +35,21 @@ adi_sim_project_xilinx $project_name "xc7z007sclg400-1" # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_clkgen_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_spi_engine_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_clkgen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_spi_engine_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ "tests/test_program.sv" \ "system_tb.sv"] diff --git a/ad738x/system_tb.sv b/testbenches/project/ad738x/system_tb.sv similarity index 100% rename from ad738x/system_tb.sv rename to testbenches/project/ad738x/system_tb.sv diff --git a/ad738x/tests/test_program.sv b/testbenches/project/ad738x/tests/test_program.sv similarity index 100% rename from ad738x/tests/test_program.sv rename to testbenches/project/ad738x/tests/test_program.sv diff --git a/ad738x/waves/cfg.wcfg b/testbenches/project/ad738x/waves/cfg.wcfg similarity index 100% rename from ad738x/waves/cfg.wcfg rename to testbenches/project/ad738x/waves/cfg.wcfg diff --git a/ad7606x/Makefile b/testbenches/project/ad7606x/Makefile similarity index 60% rename from ad7606x/Makefile rename to testbenches/project/ad7606x/Makefile index 07070cce..3d972343 100755 --- a/ad7606x/Makefile +++ b/testbenches/project/ad7606x/Makefile @@ -5,28 +5,28 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += system_tb.sv -ENV_DEPS +=../../library/util_cdc/sync_bits.v -ENV_DEPS +=../../library/common/ad_edge_detect.v +ENV_DEPS += ../../../../library/util_cdc/sync_bits.v +ENV_DEPS += ../../../../library/common/ad_edge_detect.v ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_ad7606x LIB_DEPS += axi_clkgen @@ -56,7 +56,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg1:test_program_pi -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad7606x/README.md b/testbenches/project/ad7606x/README.md similarity index 100% rename from ad7606x/README.md rename to testbenches/project/ad7606x/README.md diff --git a/ad7606x/cfgs/cfg1.tcl b/testbenches/project/ad7606x/cfgs/cfg1.tcl similarity index 100% rename from ad7606x/cfgs/cfg1.tcl rename to testbenches/project/ad7606x/cfgs/cfg1.tcl diff --git a/ad7606x/cfgs/cfg2.tcl b/testbenches/project/ad7606x/cfgs/cfg2.tcl similarity index 100% rename from ad7606x/cfgs/cfg2.tcl rename to testbenches/project/ad7606x/cfgs/cfg2.tcl diff --git a/ad7606x/cfgs/cfg3.tcl b/testbenches/project/ad7606x/cfgs/cfg3.tcl similarity index 100% rename from ad7606x/cfgs/cfg3.tcl rename to testbenches/project/ad7606x/cfgs/cfg3.tcl diff --git a/ad7606x/system_bd.tcl b/testbenches/project/ad7606x/system_bd.tcl similarity index 92% rename from ad7606x/system_bd.tcl rename to testbenches/project/ad7606x/system_bd.tcl index 9f35d39b..9c1d3353 100755 --- a/ad7606x/system_bd.tcl +++ b/testbenches/project/ad7606x/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl # system level parameters set DEV_CONFIG $ad_project_params(DEV_CONFIG) @@ -42,14 +42,14 @@ set EXT_CLK $ad_project_params(EXT_CLK) global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v"] + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v"] # # Block design under test # -source ../../projects/ad7606x_fmc/common/ad7606x_bd.tcl +source $ad_hdl_dir/projects/ad7606x_fmc/common/ad7606x_bd.tcl create_bd_port -dir O sys_clk diff --git a/testbenches/project/ad7606x/system_project.tcl b/testbenches/project/ad7606x/system_project.tcl new file mode 100755 index 00000000..043e1605 --- /dev/null +++ b/testbenches/project/ad7606x/system_project.tcl @@ -0,0 +1,44 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xc7z020clg484-1" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv"] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/ad7606x/system_tb.sv b/testbenches/project/ad7606x/system_tb.sv similarity index 100% rename from ad7606x/system_tb.sv rename to testbenches/project/ad7606x/system_tb.sv diff --git a/ad7606x/tests/test_program.sv b/testbenches/project/ad7606x/tests/test_program.sv similarity index 100% rename from ad7606x/tests/test_program.sv rename to testbenches/project/ad7606x/tests/test_program.sv diff --git a/ad7606x/waves/system_tb_behav.wcfg b/testbenches/project/ad7606x/waves/system_tb_behav.wcfg similarity index 100% rename from ad7606x/waves/system_tb_behav.wcfg rename to testbenches/project/ad7606x/waves/system_tb_behav.wcfg diff --git a/ad7616/Makefile b/testbenches/project/ad7616/Makefile similarity index 59% rename from ad7616/Makefile rename to testbenches/project/ad7616/Makefile index 5544117d..a27abba1 100755 --- a/ad7616/Makefile +++ b/testbenches/project/ad7616/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_axi_ad7616_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_clkgen_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_spi_engine_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_axi_ad7616_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_clkgen_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_spi_engine_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += system_tb.sv -ENV_DEPS +=../../library/util_cdc/sync_bits.v -ENV_DEPS +=../../library/common/ad_edge_detect.v +ENV_DEPS += ../../../../library/util_cdc/sync_bits.v +ENV_DEPS += ../../../../library/common/ad_edge_detect.v ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_clkgen LIB_DEPS += axi_ad7616 @@ -55,7 +55,7 @@ TP := test_program_si TESTS += cfg_pi:test_program_pi TESTS += cfg_si:test_program_si -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/jesd_loopback/README.md b/testbenches/project/ad7616/README.md old mode 100644 new mode 100755 similarity index 100% rename from jesd_loopback/README.md rename to testbenches/project/ad7616/README.md diff --git a/ad7616/cfgs/cfg_pi.tcl b/testbenches/project/ad7616/cfgs/cfg_pi.tcl similarity index 100% rename from ad7616/cfgs/cfg_pi.tcl rename to testbenches/project/ad7616/cfgs/cfg_pi.tcl diff --git a/ad7616/cfgs/cfg_si.tcl b/testbenches/project/ad7616/cfgs/cfg_si.tcl similarity index 100% rename from ad7616/cfgs/cfg_si.tcl rename to testbenches/project/ad7616/cfgs/cfg_si.tcl diff --git a/ad7616/system_bd.tcl b/testbenches/project/ad7616/system_bd.tcl similarity index 94% rename from ad7616/system_bd.tcl rename to testbenches/project/ad7616/system_bd.tcl index f87941b4..4ea0f06e 100755 --- a/ad7616/system_bd.tcl +++ b/testbenches/project/ad7616/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl # system level parameters set SER_PAR_N $ad_project_params(SER_PAR_N) @@ -41,14 +41,14 @@ set SER_PAR_N $ad_project_params(SER_PAR_N) global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v"] + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v"] # # Block design under test # -source ../../projects/ad7616_sdz/common/ad7616_bd.tcl +source $ad_hdl_dir/projects/ad7616_sdz/common/ad7616_bd.tcl if {$SER_PAR_N == 1} { diff --git a/ad7616/system_project.tcl b/testbenches/project/ad7616/system_project.tcl similarity index 53% rename from ad7616/system_project.tcl rename to testbenches/project/ad7616/system_project.tcl index 0a233ba3..b707397e 100755 --- a/ad7616/system_project.tcl +++ b/testbenches/project/ad7616/system_project.tcl @@ -1,5 +1,5 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/projects/scripts/adi_board.tcl if {$argc < 1} { @@ -40,22 +40,22 @@ adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" # Add test files to the project adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/adi_regmap_axi_ad7616_pkg.sv" \ - "../common/sv/adi_regmap_clkgen_pkg.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/adi_regmap_spi_engine_pkg.sv" \ - "../common/sv/adi_regmap_pwm_gen_pkg.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/test_harness_env.sv" \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_axi_ad7616_pkg.sv" \ + "../../../library/regmaps/adi_regmap_clkgen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_spi_engine_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ "tests/test_program_si.sv" \ "tests/test_program_pi.sv" \ "system_tb.sv"] diff --git a/ad7616/system_tb.sv b/testbenches/project/ad7616/system_tb.sv similarity index 100% rename from ad7616/system_tb.sv rename to testbenches/project/ad7616/system_tb.sv diff --git a/ad7616/tests/test_program_pi.sv b/testbenches/project/ad7616/tests/test_program_pi.sv similarity index 100% rename from ad7616/tests/test_program_pi.sv rename to testbenches/project/ad7616/tests/test_program_pi.sv diff --git a/ad7616/tests/test_program_si.sv b/testbenches/project/ad7616/tests/test_program_si.sv similarity index 100% rename from ad7616/tests/test_program_si.sv rename to testbenches/project/ad7616/tests/test_program_si.sv diff --git a/ad7616/waves/cfg_pi.wcfg b/testbenches/project/ad7616/waves/cfg_pi.wcfg similarity index 100% rename from ad7616/waves/cfg_pi.wcfg rename to testbenches/project/ad7616/waves/cfg_pi.wcfg diff --git a/ad7616/waves/cfg_si.wcfg b/testbenches/project/ad7616/waves/cfg_si.wcfg similarity index 100% rename from ad7616/waves/cfg_si.wcfg rename to testbenches/project/ad7616/waves/cfg_si.wcfg diff --git a/ad9083/Makefile b/testbenches/project/ad9083/Makefile similarity index 71% rename from ad9083/Makefile rename to testbenches/project/ad9083/Makefile index dfddc987..d5d2dc95 100644 --- a/ad9083/Makefile +++ b/testbenches/project/ad9083/Makefile @@ -5,24 +5,24 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac @@ -58,7 +58,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/jesd_loopback_64b/README.md b/testbenches/project/ad9083/README.md similarity index 100% rename from jesd_loopback_64b/README.md rename to testbenches/project/ad9083/README.md diff --git a/ad9083/cfgs/cfg1.tcl b/testbenches/project/ad9083/cfgs/cfg1.tcl similarity index 100% rename from ad9083/cfgs/cfg1.tcl rename to testbenches/project/ad9083/cfgs/cfg1.tcl diff --git a/ad9083/system_bd.tcl b/testbenches/project/ad9083/system_bd.tcl similarity index 99% rename from ad9083/system_bd.tcl rename to testbenches/project/ad9083/system_bd.tcl index 7e931738..8e8714d6 100644 --- a/ad9083/system_bd.tcl +++ b/testbenches/project/ad9083/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/jesd204/scripts/jesd204.tcl diff --git a/testbenches/project/ad9083/system_project.tcl b/testbenches/project/ad9083/system_project.tcl new file mode 100644 index 00000000..3277f85b --- /dev/null +++ b/testbenches/project/ad9083/system_project.tcl @@ -0,0 +1,51 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_xcvr_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/drivers/jesd/adi_jesd204_pkg.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/drivers/xcvr/adi_xcvr_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/ad9083/system_tb.sv b/testbenches/project/ad9083/system_tb.sv similarity index 100% rename from ad9083/system_tb.sv rename to testbenches/project/ad9083/system_tb.sv diff --git a/ad9083/tests/test_program.sv b/testbenches/project/ad9083/tests/test_program.sv similarity index 100% rename from ad9083/tests/test_program.sv rename to testbenches/project/ad9083/tests/test_program.sv diff --git a/ad9083/waves/cfg1.wcfg b/testbenches/project/ad9083/waves/cfg1.wcfg similarity index 100% rename from ad9083/waves/cfg1.wcfg rename to testbenches/project/ad9083/waves/cfg1.wcfg diff --git a/ad9083/waves/cfg4_8b10b_np12.wcfg b/testbenches/project/ad9083/waves/cfg4_8b10b_np12.wcfg similarity index 100% rename from ad9083/waves/cfg4_8b10b_np12.wcfg rename to testbenches/project/ad9083/waves/cfg4_8b10b_np12.wcfg diff --git a/ad_quadmxfe1_ebz/Makefile b/testbenches/project/ad_quadmxfe1_ebz/Makefile similarity index 67% rename from ad_quadmxfe1_ebz/Makefile rename to testbenches/project/ad_quadmxfe1_ebz/Makefile index 1122b1c8..9561df88 100644 --- a/ad_quadmxfe1_ebz/Makefile +++ b/testbenches/project/ad_quadmxfe1_ebz/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_tx_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_rx_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac @@ -72,7 +72,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg5_64b66b_Tx23_Rx25_LR_24_75:test_dma #TESTS += cfg6_64b66b_Tx29_Rx24_LR_24_75:test_dma -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/ad_quadmxfe1_ebz/cfgs/cfg1.tcl b/testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg1.tcl similarity index 100% rename from ad_quadmxfe1_ebz/cfgs/cfg1.tcl rename to testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg1.tcl diff --git a/ad_quadmxfe1_ebz/cfgs/cfg2_64b66b.tcl b/testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg2_64b66b.tcl similarity index 100% rename from ad_quadmxfe1_ebz/cfgs/cfg2_64b66b.tcl rename to testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg2_64b66b.tcl diff --git a/ad_quadmxfe1_ebz/cfgs/cfg3_64b66b_LR_4_125.tcl b/testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg3_64b66b_LR_4_125.tcl similarity index 100% rename from ad_quadmxfe1_ebz/cfgs/cfg3_64b66b_LR_4_125.tcl rename to testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg3_64b66b_LR_4_125.tcl diff --git a/ad_quadmxfe1_ebz/cfgs/cfg4_64b66b_Tx10_Rx11.tcl b/testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg4_64b66b_Tx10_Rx11.tcl similarity index 100% rename from ad_quadmxfe1_ebz/cfgs/cfg4_64b66b_Tx10_Rx11.tcl rename to testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg4_64b66b_Tx10_Rx11.tcl diff --git a/ad_quadmxfe1_ebz/cfgs/cfg5_64b66b_Tx23_Rx25_LR_24_75.tcl b/testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg5_64b66b_Tx23_Rx25_LR_24_75.tcl similarity index 100% rename from ad_quadmxfe1_ebz/cfgs/cfg5_64b66b_Tx23_Rx25_LR_24_75.tcl rename to testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg5_64b66b_Tx23_Rx25_LR_24_75.tcl diff --git a/ad_quadmxfe1_ebz/cfgs/cfg6_64b66b_Tx29_Rx24_LR_24_75.tcl b/testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg6_64b66b_Tx29_Rx24_LR_24_75.tcl similarity index 100% rename from ad_quadmxfe1_ebz/cfgs/cfg6_64b66b_Tx29_Rx24_LR_24_75.tcl rename to testbenches/project/ad_quadmxfe1_ebz/cfgs/cfg6_64b66b_Tx29_Rx24_LR_24_75.tcl diff --git a/ad_quadmxfe1_ebz/system_bd.tcl b/testbenches/project/ad_quadmxfe1_ebz/system_bd.tcl similarity index 99% rename from ad_quadmxfe1_ebz/system_bd.tcl rename to testbenches/project/ad_quadmxfe1_ebz/system_bd.tcl index 0df0fa48..4c0246bc 100644 --- a/ad_quadmxfe1_ebz/system_bd.tcl +++ b/testbenches/project/ad_quadmxfe1_ebz/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/testbenches/project/ad_quadmxfe1_ebz/system_project.tcl b/testbenches/project/ad_quadmxfe1_ebz/system_project.tcl new file mode 100644 index 00000000..29cb81c8 --- /dev/null +++ b/testbenches/project/ad_quadmxfe1_ebz/system_project.tcl @@ -0,0 +1,55 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set topology_file [lindex $argv 0] +} + +# Read config file with topology information +source "cfgs/${topology_file}" + +# Set the project name +set project_name [file rootname $topology_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_xcvr_pkg.sv" \ + "../../../library/drivers/jesd/adi_jesd204_pkg.sv" \ + "../../../library/drivers/xcvr/adi_xcvr_pkg.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "tests/test_dma.sv" \ + "tests/test_program_64b66b.sv" \ + "system_tb.sv" \ + ] + + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/ad_quadmxfe1_ebz/system_tb.sv b/testbenches/project/ad_quadmxfe1_ebz/system_tb.sv similarity index 100% rename from ad_quadmxfe1_ebz/system_tb.sv rename to testbenches/project/ad_quadmxfe1_ebz/system_tb.sv diff --git a/ad_quadmxfe1_ebz/tests/test_dma.sv b/testbenches/project/ad_quadmxfe1_ebz/tests/test_dma.sv similarity index 100% rename from ad_quadmxfe1_ebz/tests/test_dma.sv rename to testbenches/project/ad_quadmxfe1_ebz/tests/test_dma.sv diff --git a/ad_quadmxfe1_ebz/tests/test_program.sv b/testbenches/project/ad_quadmxfe1_ebz/tests/test_program.sv similarity index 100% rename from ad_quadmxfe1_ebz/tests/test_program.sv rename to testbenches/project/ad_quadmxfe1_ebz/tests/test_program.sv diff --git a/ad_quadmxfe1_ebz/tests/test_program_64b66b.sv b/testbenches/project/ad_quadmxfe1_ebz/tests/test_program_64b66b.sv similarity index 100% rename from ad_quadmxfe1_ebz/tests/test_program_64b66b.sv rename to testbenches/project/ad_quadmxfe1_ebz/tests/test_program_64b66b.sv diff --git a/ad_quadmxfe1_ebz/waves/cfg1.wcfg b/testbenches/project/ad_quadmxfe1_ebz/waves/cfg1.wcfg similarity index 100% rename from ad_quadmxfe1_ebz/waves/cfg1.wcfg rename to testbenches/project/ad_quadmxfe1_ebz/waves/cfg1.wcfg diff --git a/ad_quadmxfe1_ebz/waves/cfg2_64b66b.wcfg b/testbenches/project/ad_quadmxfe1_ebz/waves/cfg2_64b66b.wcfg similarity index 100% rename from ad_quadmxfe1_ebz/waves/cfg2_64b66b.wcfg rename to testbenches/project/ad_quadmxfe1_ebz/waves/cfg2_64b66b.wcfg diff --git a/ad_quadmxfe1_ebz/waves/cfg3_64b66b_LR_4_125.wcfg b/testbenches/project/ad_quadmxfe1_ebz/waves/cfg3_64b66b_LR_4_125.wcfg similarity index 100% rename from ad_quadmxfe1_ebz/waves/cfg3_64b66b_LR_4_125.wcfg rename to testbenches/project/ad_quadmxfe1_ebz/waves/cfg3_64b66b_LR_4_125.wcfg diff --git a/ad_quadmxfe1_ebz/waves/cfg4_64b66b_Tx10_Rx11.wcfg b/testbenches/project/ad_quadmxfe1_ebz/waves/cfg4_64b66b_Tx10_Rx11.wcfg similarity index 100% rename from ad_quadmxfe1_ebz/waves/cfg4_64b66b_Tx10_Rx11.wcfg rename to testbenches/project/ad_quadmxfe1_ebz/waves/cfg4_64b66b_Tx10_Rx11.wcfg diff --git a/ad_quadmxfe1_ebz/waves/cfg5_64b66b_Tx23_Rx25_LR_24_75.wcfg b/testbenches/project/ad_quadmxfe1_ebz/waves/cfg5_64b66b_Tx23_Rx25_LR_24_75.wcfg similarity index 100% rename from ad_quadmxfe1_ebz/waves/cfg5_64b66b_Tx23_Rx25_LR_24_75.wcfg rename to testbenches/project/ad_quadmxfe1_ebz/waves/cfg5_64b66b_Tx23_Rx25_LR_24_75.wcfg diff --git a/ad_quadmxfe1_ebz/waves/cfg6_64b66b_Tx29_Rx24_LR_24_75.wcfg b/testbenches/project/ad_quadmxfe1_ebz/waves/cfg6_64b66b_Tx29_Rx24_LR_24_75.wcfg similarity index 100% rename from ad_quadmxfe1_ebz/waves/cfg6_64b66b_Tx29_Rx24_LR_24_75.wcfg rename to testbenches/project/ad_quadmxfe1_ebz/waves/cfg6_64b66b_Tx29_Rx24_LR_24_75.wcfg diff --git a/adrv9001/Makefile b/testbenches/project/adrv9001/Makefile similarity index 59% rename from adrv9001/Makefile rename to testbenches/project/adrv9001/Makefile index d7876205..6a2b830c 100644 --- a/adrv9001/Makefile +++ b/testbenches/project/adrv9001/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_tx_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_rx_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac LIB_DEPS += axi_adrv9001 @@ -52,7 +52,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/mxfe/README.md b/testbenches/project/adrv9001/README.md similarity index 100% rename from mxfe/README.md rename to testbenches/project/adrv9001/README.md diff --git a/adrv9001/cfgs/cfg10_CMOS_SDR_1LANES_SYMB_16b.tcl b/testbenches/project/adrv9001/cfgs/cfg10_CMOS_SDR_1LANES_SYMB_16b.tcl similarity index 100% rename from adrv9001/cfgs/cfg10_CMOS_SDR_1LANES_SYMB_16b.tcl rename to testbenches/project/adrv9001/cfgs/cfg10_CMOS_SDR_1LANES_SYMB_16b.tcl diff --git a/adrv9001/cfgs/cfg11_CMOS_DDR_1Lanes_SYMB_16b.tcl b/testbenches/project/adrv9001/cfgs/cfg11_CMOS_DDR_1Lanes_SYMB_16b.tcl similarity index 100% rename from adrv9001/cfgs/cfg11_CMOS_DDR_1Lanes_SYMB_16b.tcl rename to testbenches/project/adrv9001/cfgs/cfg11_CMOS_DDR_1Lanes_SYMB_16b.tcl diff --git a/adrv9001/cfgs/cfg1_CMOS_SDR_1Lanes.tcl b/testbenches/project/adrv9001/cfgs/cfg1_CMOS_SDR_1Lanes.tcl similarity index 100% rename from adrv9001/cfgs/cfg1_CMOS_SDR_1Lanes.tcl rename to testbenches/project/adrv9001/cfgs/cfg1_CMOS_SDR_1Lanes.tcl diff --git a/adrv9001/cfgs/cfg2_CMOS_DDR_1Lanes.tcl b/testbenches/project/adrv9001/cfgs/cfg2_CMOS_DDR_1Lanes.tcl similarity index 100% rename from adrv9001/cfgs/cfg2_CMOS_DDR_1Lanes.tcl rename to testbenches/project/adrv9001/cfgs/cfg2_CMOS_DDR_1Lanes.tcl diff --git a/adrv9001/cfgs/cfg4_CMOS_SDR_4Lanes.tcl b/testbenches/project/adrv9001/cfgs/cfg4_CMOS_SDR_4Lanes.tcl similarity index 100% rename from adrv9001/cfgs/cfg4_CMOS_SDR_4Lanes.tcl rename to testbenches/project/adrv9001/cfgs/cfg4_CMOS_SDR_4Lanes.tcl diff --git a/adrv9001/cfgs/cfg5_CMOS_DDR_4Lanes.tcl b/testbenches/project/adrv9001/cfgs/cfg5_CMOS_DDR_4Lanes.tcl similarity index 100% rename from adrv9001/cfgs/cfg5_CMOS_DDR_4Lanes.tcl rename to testbenches/project/adrv9001/cfgs/cfg5_CMOS_DDR_4Lanes.tcl diff --git a/adrv9001/cfgs/cfg6_LVDS_DDR_1Lanes.tcl b/testbenches/project/adrv9001/cfgs/cfg6_LVDS_DDR_1Lanes.tcl similarity index 100% rename from adrv9001/cfgs/cfg6_LVDS_DDR_1Lanes.tcl rename to testbenches/project/adrv9001/cfgs/cfg6_LVDS_DDR_1Lanes.tcl diff --git a/adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes.tcl b/testbenches/project/adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes.tcl similarity index 100% rename from adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes.tcl rename to testbenches/project/adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes.tcl diff --git a/adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes_noDDS.tcl b/testbenches/project/adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes_noDDS.tcl similarity index 100% rename from adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes_noDDS.tcl rename to testbenches/project/adrv9001/cfgs/cfg7_LVDS_DDR_2Lanes_noDDS.tcl diff --git a/adrv9001/cfgs/cfg8_CMOS_SDR_1Lanes_SYMB_8b.tcl b/testbenches/project/adrv9001/cfgs/cfg8_CMOS_SDR_1Lanes_SYMB_8b.tcl similarity index 100% rename from adrv9001/cfgs/cfg8_CMOS_SDR_1Lanes_SYMB_8b.tcl rename to testbenches/project/adrv9001/cfgs/cfg8_CMOS_SDR_1Lanes_SYMB_8b.tcl diff --git a/adrv9001/cfgs/cfg9_CMOS_DDR_1Lanes_SYMB_8b.tcl b/testbenches/project/adrv9001/cfgs/cfg9_CMOS_DDR_1Lanes_SYMB_8b.tcl similarity index 100% rename from adrv9001/cfgs/cfg9_CMOS_DDR_1Lanes_SYMB_8b.tcl rename to testbenches/project/adrv9001/cfgs/cfg9_CMOS_DDR_1Lanes_SYMB_8b.tcl diff --git a/adrv9001/system_bd.tcl b/testbenches/project/adrv9001/system_bd.tcl similarity index 98% rename from adrv9001/system_bd.tcl rename to testbenches/project/adrv9001/system_bd.tcl index 799a46c0..7f7b8b5c 100644 --- a/adrv9001/system_bd.tcl +++ b/testbenches/project/adrv9001/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/testbenches/project/adrv9001/system_project.tcl b/testbenches/project/adrv9001/system_project.tcl new file mode 100644 index 00000000..dcd47964 --- /dev/null +++ b/testbenches/project/adrv9001/system_project.tcl @@ -0,0 +1,47 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/adrv9001/system_tb.sv b/testbenches/project/adrv9001/system_tb.sv similarity index 100% rename from adrv9001/system_tb.sv rename to testbenches/project/adrv9001/system_tb.sv diff --git a/adrv9001/tests/test_program.sv b/testbenches/project/adrv9001/tests/test_program.sv similarity index 100% rename from adrv9001/tests/test_program.sv rename to testbenches/project/adrv9001/tests/test_program.sv diff --git a/adrv9001/waves/cfg1_CMOS_SDR_1Lanes.wcfg b/testbenches/project/adrv9001/waves/cfg1_CMOS_SDR_1Lanes.wcfg similarity index 100% rename from adrv9001/waves/cfg1_CMOS_SDR_1Lanes.wcfg rename to testbenches/project/adrv9001/waves/cfg1_CMOS_SDR_1Lanes.wcfg diff --git a/adrv9001/waves/cfg5_CMOS_DDR_4Lanes.wcfg b/testbenches/project/adrv9001/waves/cfg5_CMOS_DDR_4Lanes.wcfg similarity index 100% rename from adrv9001/waves/cfg5_CMOS_DDR_4Lanes.wcfg rename to testbenches/project/adrv9001/waves/cfg5_CMOS_DDR_4Lanes.wcfg diff --git a/adrv9009/Makefile b/testbenches/project/adrv9009/Makefile similarity index 63% rename from adrv9009/Makefile rename to testbenches/project/adrv9009/Makefile index cba492b9..244ec5c5 100755 --- a/adrv9009/Makefile +++ b/testbenches/project/adrv9009/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_tx_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_rx_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_clkgen LIB_DEPS += axi_dmac @@ -62,7 +62,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/pluto/README.md b/testbenches/project/adrv9009/README.md old mode 100644 new mode 100755 similarity index 100% rename from pluto/README.md rename to testbenches/project/adrv9009/README.md diff --git a/adrv9009/cfgs/cfg1.tcl b/testbenches/project/adrv9009/cfgs/cfg1.tcl similarity index 100% rename from adrv9009/cfgs/cfg1.tcl rename to testbenches/project/adrv9009/cfgs/cfg1.tcl diff --git a/adrv9009/cfgs/cfg2.tcl b/testbenches/project/adrv9009/cfgs/cfg2.tcl similarity index 100% rename from adrv9009/cfgs/cfg2.tcl rename to testbenches/project/adrv9009/cfgs/cfg2.tcl diff --git a/adrv9009/cfgs/cfg3.tcl b/testbenches/project/adrv9009/cfgs/cfg3.tcl similarity index 100% rename from adrv9009/cfgs/cfg3.tcl rename to testbenches/project/adrv9009/cfgs/cfg3.tcl diff --git a/adrv9009/cfgs/cfg4.tcl b/testbenches/project/adrv9009/cfgs/cfg4.tcl similarity index 100% rename from adrv9009/cfgs/cfg4.tcl rename to testbenches/project/adrv9009/cfgs/cfg4.tcl diff --git a/jesd_loopback_64b/environment.sv b/testbenches/project/adrv9009/environment.sv old mode 100644 new mode 100755 similarity index 100% rename from jesd_loopback_64b/environment.sv rename to testbenches/project/adrv9009/environment.sv diff --git a/adrv9009/system_bd.tcl b/testbenches/project/adrv9009/system_bd.tcl similarity index 99% rename from adrv9009/system_bd.tcl rename to testbenches/project/adrv9009/system_bd.tcl index b0917ca2..ea1709b5 100755 --- a/adrv9009/system_bd.tcl +++ b/testbenches/project/adrv9009/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl source $ad_hdl_dir/library/jesd204/scripts/jesd204.tcl global ad_project_params @@ -212,7 +212,7 @@ ad_connect $sys_cpu_resetn tx_os_device_clk_rstgen/ext_reset_in source $ad_hdl_dir/projects/adrv9009/common/adrv9009_bd.tcl -source ../common/test_harness/jesd_exerciser.tcl +source $ad_hdl_dir/testbenches/library/drivers/jesd/jesd_exerciser.tcl create_jesd_exerciser rx_jesd_exerciser 0 $ENCODER_SEL $LANE_RATE $TX_NUM_OF_CONVERTERS $TX_NUM_OF_LANES $TX_SAMPLES_PER_FRAME $TX_SAMPLE_WIDTH create_bd_cell -type container -reference rx_jesd_exerciser i_rx_jesd_exerciser diff --git a/testbenches/project/adrv9009/system_project.tcl b/testbenches/project/adrv9009/system_project.tcl new file mode 100755 index 00000000..6c2cba9f --- /dev/null +++ b/testbenches/project/adrv9009/system_project.tcl @@ -0,0 +1,56 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Set to use SmartConnect or AXI Interconnect +set use_smartconnect 0 + +# Create the project +#adi_sim_project_xilinx $project_name "xcvm1802-vfvc1760-3HP-e-S" +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" +#adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e"; # GTH4 + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "../../../library/regmaps/adi_regmap_xcvr_pkg.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/drivers/jesd/adi_jesd204_pkg.sv" \ + "../../../library/drivers/xcvr/adi_xcvr_pkg.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/adrv9009/system_tb.sv b/testbenches/project/adrv9009/system_tb.sv similarity index 100% rename from adrv9009/system_tb.sv rename to testbenches/project/adrv9009/system_tb.sv diff --git a/adrv9009/tests/test_program.sv b/testbenches/project/adrv9009/tests/test_program.sv similarity index 100% rename from adrv9009/tests/test_program.sv rename to testbenches/project/adrv9009/tests/test_program.sv diff --git a/adrv9009/waves/cfg1.wcfg b/testbenches/project/adrv9009/waves/cfg1.wcfg similarity index 100% rename from adrv9009/waves/cfg1.wcfg rename to testbenches/project/adrv9009/waves/cfg1.wcfg diff --git a/fmcomms2/Makefile b/testbenches/project/fmcomms2/Makefile similarity index 63% rename from fmcomms2/Makefile rename to testbenches/project/fmcomms2/Makefile index ad16b4cb..31fe2f56 100644 --- a/fmcomms2/Makefile +++ b/testbenches/project/fmcomms2/Makefile @@ -5,27 +5,27 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_ad9361 LIB_DEPS += axi_dmac @@ -54,7 +54,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/pulsar_adc_pmdz/README.md b/testbenches/project/fmcomms2/README.md old mode 100755 new mode 100644 similarity index 100% rename from pulsar_adc_pmdz/README.md rename to testbenches/project/fmcomms2/README.md diff --git a/fmcomms2/cfgs/cfg1.tcl b/testbenches/project/fmcomms2/cfgs/cfg1.tcl similarity index 100% rename from fmcomms2/cfgs/cfg1.tcl rename to testbenches/project/fmcomms2/cfgs/cfg1.tcl diff --git a/fmcomms2/system_bd.tcl b/testbenches/project/fmcomms2/system_bd.tcl similarity index 98% rename from fmcomms2/system_bd.tcl rename to testbenches/project/fmcomms2/system_bd.tcl index d2c7ced1..d85e461a 100644 --- a/fmcomms2/system_bd.tcl +++ b/testbenches/project/fmcomms2/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/testbenches/project/fmcomms2/system_project.tcl b/testbenches/project/fmcomms2/system_project.tcl new file mode 100644 index 00000000..0fe0d726 --- /dev/null +++ b/testbenches/project/fmcomms2/system_project.tcl @@ -0,0 +1,45 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xczu9eg-ffvb1156-2-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/fmcomms2/system_tb.sv b/testbenches/project/fmcomms2/system_tb.sv similarity index 100% rename from fmcomms2/system_tb.sv rename to testbenches/project/fmcomms2/system_tb.sv diff --git a/fmcomms2/tests/test_program.sv b/testbenches/project/fmcomms2/tests/test_program.sv similarity index 100% rename from fmcomms2/tests/test_program.sv rename to testbenches/project/fmcomms2/tests/test_program.sv diff --git a/fmcomms2/waves/cfg1.wcfg b/testbenches/project/fmcomms2/waves/cfg1.wcfg similarity index 100% rename from fmcomms2/waves/cfg1.wcfg rename to testbenches/project/fmcomms2/waves/cfg1.wcfg diff --git a/mxfe/Makefile b/testbenches/project/mxfe/Makefile similarity index 62% rename from mxfe/Makefile rename to testbenches/project/mxfe/Makefile index b49bf703..05a2ca30 100644 --- a/mxfe/Makefile +++ b/testbenches/project/mxfe/Makefile @@ -5,32 +5,33 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_common_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_adc_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_tx_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_jesd_rx_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv -SV_DEPS += ../common/sv/adi_regmap_tdd_gen_pkg.sv -SV_DEPS += ../common/sv/test_harness_env.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_tdd_gen_pkg.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv SV_DEPS += system_tb.sv ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_dmac +LIB_DEPS += axi_tdd LIB_DEPS += data_offload LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac LIB_DEPS += jesd204/axi_jesd204_tx @@ -66,7 +67,7 @@ TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) #TESTS += cfg2_fsync:test_program #TESTS += cfg2_fsync:test_frame_delay -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/scoreboard/README.md b/testbenches/project/mxfe/README.md similarity index 100% rename from scoreboard/README.md rename to testbenches/project/mxfe/README.md diff --git a/mxfe/cfgs/cfg1.tcl b/testbenches/project/mxfe/cfgs/cfg1.tcl similarity index 100% rename from mxfe/cfgs/cfg1.tcl rename to testbenches/project/mxfe/cfgs/cfg1.tcl diff --git a/mxfe/cfgs/cfg2_64b66b_np8.tcl b/testbenches/project/mxfe/cfgs/cfg2_64b66b_np8.tcl similarity index 100% rename from mxfe/cfgs/cfg2_64b66b_np8.tcl rename to testbenches/project/mxfe/cfgs/cfg2_64b66b_np8.tcl diff --git a/mxfe/cfgs/cfg3_64b66b_np12.tcl b/testbenches/project/mxfe/cfgs/cfg3_64b66b_np12.tcl similarity index 100% rename from mxfe/cfgs/cfg3_64b66b_np12.tcl rename to testbenches/project/mxfe/cfgs/cfg3_64b66b_np12.tcl diff --git a/mxfe/cfgs/cfg4_8b10b_np12.tcl b/testbenches/project/mxfe/cfgs/cfg4_8b10b_np12.tcl similarity index 100% rename from mxfe/cfgs/cfg4_8b10b_np12.tcl rename to testbenches/project/mxfe/cfgs/cfg4_8b10b_np12.tcl diff --git a/mxfe/cfgs/cfg5_204c_txmode_10_rxmode_11.tcl b/testbenches/project/mxfe/cfgs/cfg5_204c_txmode_10_rxmode_11.tcl similarity index 100% rename from mxfe/cfgs/cfg5_204c_txmode_10_rxmode_11.tcl rename to testbenches/project/mxfe/cfgs/cfg5_204c_txmode_10_rxmode_11.tcl diff --git a/mxfe/cfgs/cfg6_m16_l8_tdd.tcl b/testbenches/project/mxfe/cfgs/cfg6_m16_l8_tdd.tcl similarity index 100% rename from mxfe/cfgs/cfg6_m16_l8_tdd.tcl rename to testbenches/project/mxfe/cfgs/cfg6_m16_l8_tdd.tcl diff --git a/mxfe/system_bd.tcl b/testbenches/project/mxfe/system_bd.tcl similarity index 99% rename from mxfe/system_bd.tcl rename to testbenches/project/mxfe/system_bd.tcl index 42f99340..6fbbbbf0 100644 --- a/mxfe/system_bd.tcl +++ b/testbenches/project/mxfe/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/testbenches/project/mxfe/system_project.tcl b/testbenches/project/mxfe/system_project.tcl new file mode 100644 index 00000000..7f23430a --- /dev/null +++ b/testbenches/project/mxfe/system_project.tcl @@ -0,0 +1,52 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_tx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_jesd_rx_pkg.sv" \ + "../../../library/regmaps/adi_regmap_xcvr_pkg.sv" \ + "../../../library/regmaps/adi_regmap_tdd_gen_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/drivers/jesd/adi_jesd204_pkg.sv" \ + "../../../library/regmaps/adi_peripheral_pkg.sv" \ + "../../../library/drivers/xcvr/adi_xcvr_pkg.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/mxfe/system_tb.sv b/testbenches/project/mxfe/system_tb.sv similarity index 100% rename from mxfe/system_tb.sv rename to testbenches/project/mxfe/system_tb.sv diff --git a/mxfe/tests/test_program.sv b/testbenches/project/mxfe/tests/test_program.sv similarity index 100% rename from mxfe/tests/test_program.sv rename to testbenches/project/mxfe/tests/test_program.sv diff --git a/mxfe/waves/cfg1.wcfg b/testbenches/project/mxfe/waves/cfg1.wcfg similarity index 100% rename from mxfe/waves/cfg1.wcfg rename to testbenches/project/mxfe/waves/cfg1.wcfg diff --git a/mxfe/waves/cfg4_8b10b_np12.wcfg b/testbenches/project/mxfe/waves/cfg4_8b10b_np12.wcfg similarity index 100% rename from mxfe/waves/cfg4_8b10b_np12.wcfg rename to testbenches/project/mxfe/waves/cfg4_8b10b_np12.wcfg diff --git a/testbenches/project/pluto/Makefile b/testbenches/project/pluto/Makefile new file mode 100644 index 00000000..3fb127cc --- /dev/null +++ b/testbenches/project/pluto/Makefile @@ -0,0 +1,51 @@ +#################################################################################### +## Copyright (C) 2024 Analog Devices, Inc. +#################################################################################### + +# All test-bench dependencies except test programs +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_adc_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_common_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_tdd_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv +SV_DEPS += ../../../library/utilities/test_harness_env.sv +SV_DEPS += system_tb.sv + +ENV_DEPS += system_project.tcl +ENV_DEPS += system_bd.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl + +LIB_DEPS += axi_ad9361 +LIB_DEPS += axi_dmac +LIB_DEPS += axi_tdd +LIB_DEPS += util_pack/util_cpack2 +LIB_DEPS += util_pack/util_upack2 + +# default test program +TP := test_program + +# config files should have the following format +# cfg__.tcl +CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) +#$(warning $(CFG_FILES)) + +# List of tests and configuration combinations that has to be run +# Format is: : +TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP)) +#TESTS += cfg1_mm2mm_default:directed_test +#TESTS += cfg1:test_program +#TESTS += cfg2_fsync:test_program +#TESTS += cfg2_fsync:test_frame_delay + +include ../../../scripts/project-sim.mk diff --git a/spi_engine/README.md b/testbenches/project/pluto/README.md similarity index 100% rename from spi_engine/README.md rename to testbenches/project/pluto/README.md diff --git a/pluto/cfgs/cfg1.tcl b/testbenches/project/pluto/cfgs/cfg1.tcl similarity index 100% rename from pluto/cfgs/cfg1.tcl rename to testbenches/project/pluto/cfgs/cfg1.tcl diff --git a/pluto/system_bd.tcl b/testbenches/project/pluto/system_bd.tcl similarity index 99% rename from pluto/system_bd.tcl rename to testbenches/project/pluto/system_bd.tcl index 58c085da..2e6b33f1 100644 --- a/pluto/system_bd.tcl +++ b/testbenches/project/pluto/system_bd.tcl @@ -33,7 +33,7 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params diff --git a/testbenches/project/pluto/system_project.tcl b/testbenches/project/pluto/system_project.tcl new file mode 100644 index 00000000..8afd32e5 --- /dev/null +++ b/testbenches/project/pluto/system_project.tcl @@ -0,0 +1,46 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Create the project +adi_sim_project_xilinx $project_name "xc7z010clg400-1" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_adc_pkg.sv" \ + "../../../library/regmaps/adi_regmap_common_pkg.sv" \ + "../../../library/regmaps/adi_regmap_tdd_gen_pkg.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/pluto/system_tb.sv b/testbenches/project/pluto/system_tb.sv similarity index 100% rename from pluto/system_tb.sv rename to testbenches/project/pluto/system_tb.sv diff --git a/pluto/tests/test_program.sv b/testbenches/project/pluto/tests/test_program.sv similarity index 100% rename from pluto/tests/test_program.sv rename to testbenches/project/pluto/tests/test_program.sv diff --git a/pluto/waves/cfg1.wcfg b/testbenches/project/pluto/waves/cfg1.wcfg similarity index 100% rename from pluto/waves/cfg1.wcfg rename to testbenches/project/pluto/waves/cfg1.wcfg diff --git a/pulsar_adc_pmdz/Makefile b/testbenches/project/pulsar_adc_pmdz/Makefile similarity index 61% rename from pulsar_adc_pmdz/Makefile rename to testbenches/project/pulsar_adc_pmdz/Makefile index 8976fdde..4768e93f 100755 --- a/pulsar_adc_pmdz/Makefile +++ b/testbenches/project/pulsar_adc_pmdz/Makefile @@ -5,29 +5,29 @@ #################################################################################### # All test-bench dependencies except test programs -SV_DEPS += ../common/sv/utils.svh -SV_DEPS += ../common/sv/logger_pkg.sv -SV_DEPS += ../common/sv/reg_accessor.sv -SV_DEPS += ../common/sv/m_axis_sequencer.sv -SV_DEPS += ../common/sv/s_axis_sequencer.sv -SV_DEPS += ../common/sv/m_axi_sequencer.sv -SV_DEPS += ../common/sv/s_axi_sequencer.sv -SV_DEPS += ../common/sv/dmac_api.sv -SV_DEPS += ../common/sv/adi_regmap_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_clkgen_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_dmac_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_spi_engine_pkg.sv -SV_DEPS += ../common/sv/adi_regmap_pwm_gen_pkg.sv -SV_DEPS += ../common/sv/dma_trans.sv +SV_DEPS += ../../../library/utilities/utils.svh +SV_DEPS += ../../../library/utilities/logger_pkg.sv +SV_DEPS += ../../../library/regmaps/reg_accessor.sv +SV_DEPS += ../../../library/vip/amd/m_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axis_sequencer.sv +SV_DEPS += ../../../library/vip/amd/m_axi_sequencer.sv +SV_DEPS += ../../../library/vip/amd/s_axi_sequencer.sv +SV_DEPS += ../../../library/drivers/dmac/dmac_api.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_clkgen_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_dmac_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_spi_engine_pkg.sv +SV_DEPS += ../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv +SV_DEPS += ../../../library/drivers/dmac/dma_trans.sv SV_DEPS += system_tb.sv -ENV_DEPS +=../../library/util_cdc/sync_bits.v -ENV_DEPS +=../../library/common/ad_edge_detect.v +ENV_DEPS += ../../../../library/util_cdc/sync_bits.v +ENV_DEPS += ../../../../library/common/ad_edge_detect.v ENV_DEPS += system_project.tcl ENV_DEPS += system_bd.tcl -ENV_DEPS +=../scripts/adi_sim.tcl -ENV_DEPS +=../scripts/run_sim.tcl +ENV_DEPS += ../../../scripts/adi_sim.tcl +ENV_DEPS += ../../../scripts/run_sim.tcl LIB_DEPS += axi_clkgen LIB_DEPS += axi_pwm_gen @@ -54,7 +54,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl)) # Format is: : TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(addprefix $(cfg):, $(TP))) -include ../scripts/project-sim.mk +include ../../../scripts/project-sim.mk # usage : # diff --git a/util_pack/README.md b/testbenches/project/pulsar_adc_pmdz/README.md old mode 100644 new mode 100755 similarity index 100% rename from util_pack/README.md rename to testbenches/project/pulsar_adc_pmdz/README.md diff --git a/pulsar_adc_pmdz/cfgs/cfg1.tcl b/testbenches/project/pulsar_adc_pmdz/cfgs/cfg1.tcl similarity index 100% rename from pulsar_adc_pmdz/cfgs/cfg1.tcl rename to testbenches/project/pulsar_adc_pmdz/cfgs/cfg1.tcl diff --git a/pulsar_adc_pmdz/spi_engine.svh b/testbenches/project/pulsar_adc_pmdz/spi_engine.svh similarity index 100% rename from pulsar_adc_pmdz/spi_engine.svh rename to testbenches/project/pulsar_adc_pmdz/spi_engine.svh diff --git a/pulsar_adc_pmdz/system_bd.tcl b/testbenches/project/pulsar_adc_pmdz/system_bd.tcl similarity index 91% rename from pulsar_adc_pmdz/system_bd.tcl rename to testbenches/project/pulsar_adc_pmdz/system_bd.tcl index 2b1eb6b4..161ce168 100755 --- a/pulsar_adc_pmdz/system_bd.tcl +++ b/testbenches/project/pulsar_adc_pmdz/system_bd.tcl @@ -33,21 +33,21 @@ # *************************************************************************** # *************************************************************************** -source ../../scripts/adi_env.tcl +source ../../../../scripts/adi_env.tcl global ad_project_params adi_project_files [list \ - "../../library/common/ad_edge_detect.v" \ - "../../library/util_cdc/sync_bits.v" \ - "../../library/common/ad_iobuf.v" \ + "../../../../library/common/ad_edge_detect.v" \ + "../../../../library/util_cdc/sync_bits.v" \ + "../../../../library/common/ad_iobuf.v" \ ] # # Block design under test # -source ../../projects/pulsar_adc/common/pulsar_adc_bd.tcl +source $ad_hdl_dir/projects/pulsar_adc/common/pulsar_adc_bd.tcl create_bd_port -dir O pulsar_adc_spi_clk create_bd_port -dir O pulsar_adc_irq diff --git a/testbenches/project/pulsar_adc_pmdz/system_project.tcl b/testbenches/project/pulsar_adc_pmdz/system_project.tcl new file mode 100755 index 00000000..709cbcca --- /dev/null +++ b/testbenches/project/pulsar_adc_pmdz/system_project.tcl @@ -0,0 +1,49 @@ +source ../../../scripts/adi_sim.tcl +source ../../../../scripts/adi_env.tcl +source $ad_hdl_dir/projects/scripts/adi_board.tcl + +if {$argc < 1} { + puts "Expecting at least one argument that specifies the test configuration" + exit 1 +} else { + set cfg_file [lindex $argv 0] +} + +# Read common config file +source "cfgs/${cfg_file}" + +# Set the project name +set project_name [file rootname $cfg_file] + +# Set to use SmartConnect or AXI Interconnect +set use_smartconnect 1 + +# Create the project +adi_sim_project_xilinx $project_name "xc7z007sclg400-1" + +# Add test files to the project +adi_sim_project_files [list \ + "../../../library/utilities/utils.svh" \ + "../../../library/utilities/logger_pkg.sv" \ + "../../../library/regmaps/reg_accessor.sv" \ + "../../../library/vip/amd/m_axis_sequencer.sv" \ + "../../../library/vip/amd/s_axis_sequencer.sv" \ + "../../../library/vip/amd/m_axi_sequencer.sv" \ + "../../../library/vip/amd/s_axi_sequencer.sv" \ + "../../../library/drivers/dmac/dmac_api.sv" \ + "../../../library/regmaps/adi_regmap_pkg.sv" \ + "../../../library/regmaps/adi_regmap_clkgen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_dmac_pkg.sv" \ + "../../../library/regmaps/adi_regmap_pwm_gen_pkg.sv" \ + "../../../library/regmaps/adi_regmap_spi_engine_pkg.sv" \ + "../../../library/drivers/dmac/dma_trans.sv" \ + "../../../library/utilities/test_harness_env.sv" \ + "spi_engine.svh" \ + "tests/test_program.sv" \ + "system_tb.sv" \ + ] + +#set a default test program +adi_sim_add_define "TEST_PROGRAM=test_program" + +adi_sim_generate $project_name diff --git a/pulsar_adc_pmdz/system_tb.sv b/testbenches/project/pulsar_adc_pmdz/system_tb.sv similarity index 100% rename from pulsar_adc_pmdz/system_tb.sv rename to testbenches/project/pulsar_adc_pmdz/system_tb.sv diff --git a/pulsar_adc_pmdz/tests/test_program.sv b/testbenches/project/pulsar_adc_pmdz/tests/test_program.sv similarity index 100% rename from pulsar_adc_pmdz/tests/test_program.sv rename to testbenches/project/pulsar_adc_pmdz/tests/test_program.sv diff --git a/pulsar_adc_pmdz/waves/cfg1.wcfg b/testbenches/project/pulsar_adc_pmdz/waves/cfg1.wcfg similarity index 100% rename from pulsar_adc_pmdz/waves/cfg1.wcfg rename to testbenches/project/pulsar_adc_pmdz/waves/cfg1.wcfg diff --git a/util_pack/system_project.tcl b/util_pack/system_project.tcl deleted file mode 100644 index 9dfe1667..00000000 --- a/util_pack/system_project.tcl +++ /dev/null @@ -1,49 +0,0 @@ -source ../scripts/adi_sim.tcl -source ../../scripts/adi_env.tcl -source $ad_hdl_dir/projects/scripts/adi_board.tcl - -if {$argc < 1} { - puts "Expecting at least one argument that specifies the test configuration" - exit 1 -} else { - set cfg_file [lindex $argv 0] -} - -# Read config file -source "cfgs/${cfg_file}" - -# Set the project name -set project_name [file rootname $cfg_file] - -# Create the project -adi_sim_project_xilinx $project_name "xcvu9p-flga2104-2L-e" - -# Add test files to the project -adi_sim_project_files [list \ - "../common/sv/utils.svh" \ - "../common/sv/logger_pkg.sv" \ - "../common/sv/reg_accessor.sv" \ - "../common/sv/m_axis_sequencer.sv" \ - "../common/sv/s_axis_sequencer.sv" \ - "../common/sv/m_axi_sequencer.sv" \ - "../common/sv/s_axi_sequencer.sv" \ - "../common/sv/adi_peripheral_pkg.sv" \ - "../common/sv/adi_regmap_pkg.sv" \ - "../common/sv/test_harness_env.sv" \ - "../common/sv/mailbox.sv" \ - "../common/sv/x_monitor.sv" \ - "../common/sv/scoreboard.sv" \ - "../common/sv/scoreboard_pack.sv" \ - "../common/sv/dmac_api.sv" \ - "../common/sv/dma_trans.sv" \ - "../common/sv/adi_regmap_dmac_pkg.sv" \ - "../common/sv/watchdog.sv" \ - "environment.sv" \ - "tests/test_program.sv" \ - "system_tb.sv" \ - ] - -#set a default test program -adi_sim_add_define "TEST_PROGRAM=test_program" - -adi_sim_generate $project_name