Skip to content

Commit

Permalink
V8: Rebase on next main
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Oct 16, 2024
1 parent a61682f commit 8da4367
Show file tree
Hide file tree
Showing 20 changed files with 69 additions and 67 deletions.
46 changes: 0 additions & 46 deletions dma_flock/system_project.tcl

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ GENERIC_DEPS += io_vip_if.sv
XILINX_DEPS += io_vip_ip.tcl
XILINX_DEPS += io_vip_pkg.ttcl

include ../../../../library/scripts/library.mk
include ../../../../../library/scripts/library.mk
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 io_vip
Expand Down
File renamed without changes.
32 changes: 17 additions & 15 deletions dma_flock/Makefile → testbenches/ip/dma_flock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +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_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/drivers/dmac/dma_trans.sv
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 += ../../../library/regmaps/adi_peripheral_pkg.sv
SV_DEPS += environment.sv
SV_DEPS += scoreboard.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
SIM_LIB_DEPS := io_vip
Expand All @@ -45,7 +47,7 @@ TESTS += cfg2_fsync:test_program
TESTS += cfg2_fsync:test_program_frame_delay
TESTS += cfg3_fsync_autorun:test_program_frame_delay

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.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
// ***************************************************************************

`include "utils.svh"
`include "dma_trans.sv"

package scoreboard_pkg;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# ***************************************************************************
# ***************************************************************************

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

global m_dma_cfg
global s_dma_cfg
Expand Down
47 changes: 47 additions & 0 deletions testbenches/ip/dma_flock/system_project.tcl
Original file line number Diff line number Diff line change
@@ -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 with cfg information
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/drivers/dmac/dma_trans.sv" \
"../../../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" \
"../../../library/regmaps/adi_peripheral_pkg.sv" \
"scoreboard.sv" \
"environment.sv" \
"tests/test_program.sv" \
"tests/test_program_frame_delay.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.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ program test_program;
);
dma_flocked_2d_segment m_seg, s_seg;
int m_tid, s_tid;
int rand_succ = 0;
automatic int rand_succ = 0;

axi4stream_ready_gen tready_gen;
axi_ready_gen wready_gen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ program test_program_frame_delay;
);
dma_flocked_2d_segment m_seg, s_seg;
int m_tid, s_tid;
int rand_succ = 0;
automatic int rand_succ = 0;
int x_length, y_length, baseaddress;

axi4stream_ready_gen tready_gen;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8da4367

Please sign in to comment.