Skip to content

Commit

Permalink
includes: Introduced include files for Makefile and system_project
Browse files Browse the repository at this point in the history
- Added include files for major drivers
- Updated scripts

Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
  • Loading branch information
IstvanZsSzekely committed Nov 19, 2024
1 parent 27b9971 commit fa78fd8
Show file tree
Hide file tree
Showing 27 changed files with 628 additions and 16 deletions.
8 changes: 8 additions & 0 deletions library/includes/Makeinclude_axi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/vip/amd/m_axi_sequencer.sv
SV_DEPS += $(TB_LIBRARY_PATH)/vip/amd/s_axi_sequencer.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/reg_accessor.sv
7 changes: 7 additions & 0 deletions library/includes/Makeinclude_axis
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/vip/amd/m_axis_sequencer.sv
SV_DEPS += $(TB_LIBRARY_PATH)/vip/amd/s_axis_sequencer.sv
19 changes: 19 additions & 0 deletions library/includes/Makeinclude_common
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_axi

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/utilities/utils.svh
SV_DEPS += $(TB_LIBRARY_PATH)/utilities/logger_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/utilities/test_harness_env.sv
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/common/watchdog.sv

SV_DEPS += system_tb.sv

ENV_DEPS += system_project.tcl
ENV_DEPS += system_bd.tcl
ENV_DEPS += $(ADI_TB_DIR)/scripts/adi_sim.tcl
ENV_DEPS += $(ADI_TB_DIR)/scripts/run_sim.tcl
10 changes: 10 additions & 0 deletions library/includes/Makeinclude_data_offload
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_regmap

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/data_offload/data_offload_api.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_data_offload_pkg.sv
11 changes: 11 additions & 0 deletions library/includes/Makeinclude_dmac
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_regmap

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/dmac/dma_trans.sv
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/dmac/dmac_api.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_dmac_pkg.sv
14 changes: 14 additions & 0 deletions library/includes/Makeinclude_jesd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_regmap

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/jesd/adi_jesd204_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_jesd_rx_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_jesd_tx_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_jesd_tpl_pkg.sv

ENV_DEPS += $(TB_LIBRARY_PATH)/drivers/jesd/jesd_exerciser.tcl
8 changes: 8 additions & 0 deletions library/includes/Makeinclude_regmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/reg_accessor.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_peripheral_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_pkg.sv
9 changes: 9 additions & 0 deletions library/includes/Makeinclude_scoreboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/common/mailbox.sv
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/common/scoreboard.sv
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/common/scoreboard_pack.sv
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/common/x_monitor.sv
14 changes: 14 additions & 0 deletions library/includes/Makeinclude_spi_engine
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_regmap

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/vip/adi/spi_vip/adi_spi_vip_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/vip/adi/spi_vip/s_spi_sequencer.sv
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/spi_engine/spi_engine_instr_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_spi_engine_pkg.sv

SIM_LIB_DEPS += spi_vip
10 changes: 10 additions & 0 deletions library/includes/Makeinclude_tdd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_regmap

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_tdd_gen_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_tdd_trans_pkg.sv
10 changes: 10 additions & 0 deletions library/includes/Makeinclude_xcvr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Copyright 2024(c) Analog Devices, Inc.
####################################################################################
####################################################################################

# Makeincludes
include $(TB_LIBRARY_PATH)/includes/Makeinclude_regmap

# All test-bench dependencies except test programs
SV_DEPS += $(TB_LIBRARY_PATH)/drivers/xcvr/adi_xcvr_pkg.sv
SV_DEPS += $(TB_LIBRARY_PATH)/regmaps/adi_regmap_xcvr_pkg.sv
41 changes: 41 additions & 0 deletions library/includes/sp_include_axi.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# ***************************************************************************
# ***************************************************************************
# Copyright 2024 (c) Analog Devices, Inc. All rights reserved.
#
# In this HDL repository, there are many different and unique modules, consisting
# of various HDL (Verilog or VHDL) components. The individual modules are
# developed independently, and may be accompanied by separate and unique license
# terms.
#
# The user should read each of these license terms, and understand the
# freedoms and responsibilities that he or she has by using this source/core.
#
# This core is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
#
# Redistribution and use of source or resulting binaries, with or without modification
# of this file, are permitted under one of the following two license terms:
#
# 1. The GNU General Public License version 2 as published by the
# Free Software Foundation, which can be found in the top level directory
# of this repository (LICENSE_GPL2), and also online at:
# <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#
# OR
#
# 2. An ADI specific BSD license, which can be found in the top level directory
# of this repository (LICENSE_ADIBSD), and also on-line at:
# https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
# This will allow to generate bit files and not release the source code,
# as long as it attaches to an ADI device.
#
# ***************************************************************************
# ***************************************************************************

# Add test files to the project
adi_sim_project_files [list \
"$ad_tb_dir/library/vip/amd/m_axi_sequencer.sv" \
"$ad_tb_dir/library/vip/amd/s_axi_sequencer.sv" \
"$ad_tb_dir/library/regmaps/reg_accessor.sv" \
]
40 changes: 40 additions & 0 deletions library/includes/sp_include_axis.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# ***************************************************************************
# ***************************************************************************
# Copyright 2024 (c) Analog Devices, Inc. All rights reserved.
#
# In this HDL repository, there are many different and unique modules, consisting
# of various HDL (Verilog or VHDL) components. The individual modules are
# developed independently, and may be accompanied by separate and unique license
# terms.
#
# The user should read each of these license terms, and understand the
# freedoms and responsibilities that he or she has by using this source/core.
#
# This core is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
#
# Redistribution and use of source or resulting binaries, with or without modification
# of this file, are permitted under one of the following two license terms:
#
# 1. The GNU General Public License version 2 as published by the
# Free Software Foundation, which can be found in the top level directory
# of this repository (LICENSE_GPL2), and also online at:
# <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#
# OR
#
# 2. An ADI specific BSD license, which can be found in the top level directory
# of this repository (LICENSE_ADIBSD), and also on-line at:
# https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
# This will allow to generate bit files and not release the source code,
# as long as it attaches to an ADI device.
#
# ***************************************************************************
# ***************************************************************************

# Add test files to the project
adi_sim_project_files [list \
"$ad_tb_dir/library/vip/amd/m_axis_sequencer.sv" \
"$ad_tb_dir/library/vip/amd/s_axis_sequencer.sv" \
]
45 changes: 45 additions & 0 deletions library/includes/sp_include_common.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ***************************************************************************
# ***************************************************************************
# Copyright 2024 (c) Analog Devices, Inc. All rights reserved.
#
# In this HDL repository, there are many different and unique modules, consisting
# of various HDL (Verilog or VHDL) components. The individual modules are
# developed independently, and may be accompanied by separate and unique license
# terms.
#
# The user should read each of these license terms, and understand the
# freedoms and responsibilities that he or she has by using this source/core.
#
# This core is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
#
# Redistribution and use of source or resulting binaries, with or without modification
# of this file, are permitted under one of the following two license terms:
#
# 1. The GNU General Public License version 2 as published by the
# Free Software Foundation, which can be found in the top level directory
# of this repository (LICENSE_GPL2), and also online at:
# <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#
# OR
#
# 2. An ADI specific BSD license, which can be found in the top level directory
# of this repository (LICENSE_ADIBSD), and also on-line at:
# https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
# This will allow to generate bit files and not release the source code,
# as long as it attaches to an ADI device.
#
# ***************************************************************************
# ***************************************************************************

source $ad_tb_dir/library/includes/sp_include_axi.tcl

# Add test files to the project
adi_sim_project_files [list \
"$ad_tb_dir/library/utilities/utils.svh" \
"$ad_tb_dir/library/utilities/logger_pkg.sv" \
"$ad_tb_dir/library/utilities/test_harness_env.sv" \
"$ad_tb_dir/library/drivers/common/watchdog.sv" \
"system_tb.sv" \
]
42 changes: 42 additions & 0 deletions library/includes/sp_include_data_offload.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ***************************************************************************
# ***************************************************************************
# Copyright 2024 (c) Analog Devices, Inc. All rights reserved.
#
# In this HDL repository, there are many different and unique modules, consisting
# of various HDL (Verilog or VHDL) components. The individual modules are
# developed independently, and may be accompanied by separate and unique license
# terms.
#
# The user should read each of these license terms, and understand the
# freedoms and responsibilities that he or she has by using this source/core.
#
# This core is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
#
# Redistribution and use of source or resulting binaries, with or without modification
# of this file, are permitted under one of the following two license terms:
#
# 1. The GNU General Public License version 2 as published by the
# Free Software Foundation, which can be found in the top level directory
# of this repository (LICENSE_GPL2), and also online at:
# <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#
# OR
#
# 2. An ADI specific BSD license, which can be found in the top level directory
# of this repository (LICENSE_ADIBSD), and also on-line at:
# https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
# This will allow to generate bit files and not release the source code,
# as long as it attaches to an ADI device.
#
# ***************************************************************************
# ***************************************************************************

source $ad_tb_dir/library/includes/sp_include_regmap.tcl

# Add test files to the project
adi_sim_project_files [list \
"$ad_tb_dir/library/drivers/data_offload/data_offload_api.sv" \
"$ad_tb_dir/library/regmaps/adi_regmap_data_offload_pkg.sv" \
]
43 changes: 43 additions & 0 deletions library/includes/sp_include_dmac.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# ***************************************************************************
# ***************************************************************************
# Copyright 2024 (c) Analog Devices, Inc. All rights reserved.
#
# In this HDL repository, there are many different and unique modules, consisting
# of various HDL (Verilog or VHDL) components. The individual modules are
# developed independently, and may be accompanied by separate and unique license
# terms.
#
# The user should read each of these license terms, and understand the
# freedoms and responsibilities that he or she has by using this source/core.
#
# This core is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
#
# Redistribution and use of source or resulting binaries, with or without modification
# of this file, are permitted under one of the following two license terms:
#
# 1. The GNU General Public License version 2 as published by the
# Free Software Foundation, which can be found in the top level directory
# of this repository (LICENSE_GPL2), and also online at:
# <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#
# OR
#
# 2. An ADI specific BSD license, which can be found in the top level directory
# of this repository (LICENSE_ADIBSD), and also on-line at:
# https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
# This will allow to generate bit files and not release the source code,
# as long as it attaches to an ADI device.
#
# ***************************************************************************
# ***************************************************************************

source $ad_tb_dir/library/includes/sp_include_regmap.tcl

# Add test files to the project
adi_sim_project_files [list \
"$ad_tb_dir/library/drivers/dmac/dma_trans.sv" \
"$ad_tb_dir/library/drivers/dmac/dmac_api.sv" \
"$ad_tb_dir/library/regmaps/adi_regmap_dmac_pkg.sv" \
]
44 changes: 44 additions & 0 deletions library/includes/sp_include_jesd.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# ***************************************************************************
# ***************************************************************************
# Copyright 2024 (c) Analog Devices, Inc. All rights reserved.
#
# In this HDL repository, there are many different and unique modules, consisting
# of various HDL (Verilog or VHDL) components. The individual modules are
# developed independently, and may be accompanied by separate and unique license
# terms.
#
# The user should read each of these license terms, and understand the
# freedoms and responsibilities that he or she has by using this source/core.
#
# This core is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.
#
# Redistribution and use of source or resulting binaries, with or without modification
# of this file, are permitted under one of the following two license terms:
#
# 1. The GNU General Public License version 2 as published by the
# Free Software Foundation, which can be found in the top level directory
# of this repository (LICENSE_GPL2), and also online at:
# <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#
# OR
#
# 2. An ADI specific BSD license, which can be found in the top level directory
# of this repository (LICENSE_ADIBSD), and also on-line at:
# https://github.com/analogdevicesinc/hdl/blob/master/LICENSE_ADIBSD
# This will allow to generate bit files and not release the source code,
# as long as it attaches to an ADI device.
#
# ***************************************************************************
# ***************************************************************************

source $ad_tb_dir/library/includes/sp_include_regmap.tcl

# Add test files to the project
adi_sim_project_files [list \
"$ad_tb_dir/library/drivers/jesd/adi_jesd204_pkg.sv" \
"$ad_tb_dir/library/regmaps/adi_regmap_jesd_rx_pkg.sv" \
"$ad_tb_dir/library/regmaps/adi_regmap_jesd_tx_pkg.sv" \
"$ad_tb_dir/library/regmaps/adi_regmap_jesd_tpl_pkg.sv" \
]
Loading

0 comments on commit fa78fd8

Please sign in to comment.