Skip to content

Commit

Permalink
packet_filter: Moved and updated testbench
Browse files Browse the repository at this point in the history
Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely committed Oct 18, 2024
1 parent 2eb5c94 commit 48f66af
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/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/filter.sv
SV_DEPS += ../common/sv/scoreboard.sv
SV_DEPS += ../common/sv/interfaces.svh
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/filter.sv
SV_DEPS += ../../../library/drivers/common/interfaces.svh
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
Expand All @@ -45,7 +45,7 @@ CFG_FILES := $(notdir $(wildcard cfgs/cfg*.tcl))
# Format is: <configuration>:<test name>
TESTS := $(foreach cfg, $(basename $(CFG_FILES)), $(cfg):$(TP))

include ../scripts/project-sim.mk
include ../../../scripts/project-sim.mk

# usage :
#
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

global ad_hdl_dir

source ../../scripts/adi_env.tcl
source ../../../../scripts/adi_env.tcl

# system level parameters
global ad_project_params
Expand Down
49 changes: 49 additions & 0 deletions testbenches/ip/util_axis_fifo_asym/system_project.tcl
Original file line number Diff line number Diff line change
@@ -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}"

global ad_project_params

# 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/filter.sv" \
"../../../library/drivers/common/interfaces.svh" \
"../../../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
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 0 additions & 49 deletions util_axis_fifo_asym/system_project.tcl

This file was deleted.

0 comments on commit 48f66af

Please sign in to comment.