2017-05-17 17:28:50 +00:00
|
|
|
#
|
|
|
|
# The ADI JESD204 Core is released under the following license, which is
|
|
|
|
# different than all other HDL cores in this repository.
|
|
|
|
#
|
|
|
|
# Please read this, and understand the freedoms and responsibilities you have
|
|
|
|
# by using this source code/core.
|
|
|
|
#
|
|
|
|
# The JESD204 HDL, is copyright © 2016-2017 Analog Devices Inc.
|
|
|
|
#
|
|
|
|
# This core is free software, you can use run, copy, study, change, ask
|
|
|
|
# questions about and improve this core. Distribution of source, or resulting
|
|
|
|
# binaries (including those inside an FPGA or ASIC) require you to release the
|
|
|
|
# source of the entire project (excluding the system libraries provide by the
|
|
|
|
# tools/compiler/FPGA vendor). These are the terms of the GNU General Public
|
|
|
|
# License version 2 as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# 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. See the GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version 2
|
|
|
|
# along with this source code, and binary. If not, see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# Commercial licenses (with commercial support) of this JESD204 core are also
|
|
|
|
# available under terms different than the General Public License. (e.g. they
|
|
|
|
# do not require you to accompany any image (FPGA or ASIC) using the JESD204
|
|
|
|
# core with any corresponding source code.) For these alternate terms you must
|
|
|
|
# purchase a license from Analog Devices Technology Licensing Office. Users
|
|
|
|
# interested in such a license should contact jesd204-licensing@analog.com for
|
|
|
|
# more information. This commercial license is sub-licensable (if you purchase
|
|
|
|
# chips from Analog Devices, incorporate them into your PCB level product, and
|
|
|
|
# purchase a JESD204 license, end users of your product will also have a
|
|
|
|
# license to use this core in a commercial setting without releasing their
|
|
|
|
# source code).
|
|
|
|
#
|
|
|
|
# In addition, we kindly ask you to acknowledge ADI in any program, application
|
|
|
|
# or publication in which you use this JESD204 HDL core. (You are not required
|
|
|
|
# to do so; it is up to your common sense to decide whether you want to comply
|
|
|
|
# with this request or not.) For general publications, we suggest referencing :
|
|
|
|
# “The design and implementation of the JESD204 HDL Core used in this project
|
|
|
|
# is copyright © 2016-2017, Analog Devices, Inc.”
|
|
|
|
#
|
|
|
|
|
|
|
|
source ../../scripts/adi_env.tcl
|
2018-08-14 09:59:39 +00:00
|
|
|
source $ad_hdl_dir/library/scripts/adi_ip_xilinx.tcl
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
# TX interfaces
|
|
|
|
|
|
|
|
adi_if_define "jesd204_tx_cfg"
|
|
|
|
adi_if_ports output -1 lanes_disable
|
2018-03-29 09:38:34 +00:00
|
|
|
adi_if_ports output -1 links_disable
|
2020-01-30 22:05:13 +00:00
|
|
|
adi_if_ports output 10 octets_per_multiframe
|
2017-05-17 17:28:50 +00:00
|
|
|
adi_if_ports output 8 octets_per_frame
|
|
|
|
adi_if_ports output 1 continuous_cgs
|
|
|
|
adi_if_ports output 1 continuous_ilas
|
|
|
|
adi_if_ports output 1 skip_ilas
|
|
|
|
adi_if_ports output 8 mframes_per_ilas
|
|
|
|
adi_if_ports output 1 disable_char_replacement
|
|
|
|
adi_if_ports output 1 disable_scrambler
|
2020-10-27 15:40:37 +00:00
|
|
|
adi_if_ports output 10 device_octets_per_multiframe
|
|
|
|
adi_if_ports output 8 device_octets_per_frame
|
|
|
|
adi_if_ports output 8 device_beats_per_multiframe
|
|
|
|
adi_if_ports output 8 device_lmfc_offset
|
|
|
|
adi_if_ports output 1 device_sysref_oneshot
|
|
|
|
adi_if_ports output 1 device_sysref_disable
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
adi_if_define "jesd204_tx_ilas_config"
|
|
|
|
adi_if_ports output 1 rd
|
|
|
|
adi_if_ports output 2 addr
|
|
|
|
adi_if_ports input 32 data
|
|
|
|
|
|
|
|
adi_if_define "jesd204_tx_status"
|
|
|
|
adi_if_ports output 1 state
|
|
|
|
adi_if_ports output 1 sync
|
|
|
|
|
|
|
|
adi_if_define "jesd204_tx_event"
|
|
|
|
adi_if_ports output 1 sysref_alignment_error
|
|
|
|
adi_if_ports output 1 sysref_edge
|
|
|
|
|
|
|
|
adi_if_define "jesd204_tx_ctrl"
|
|
|
|
adi_if_ports output 1 manual_sync_request
|
|
|
|
|
|
|
|
# RX interfaces
|
|
|
|
|
|
|
|
adi_if_define "jesd204_rx_cfg"
|
|
|
|
adi_if_ports output -1 lanes_disable
|
2018-03-27 14:45:46 +00:00
|
|
|
adi_if_ports output -1 links_disable
|
2020-01-30 22:05:13 +00:00
|
|
|
adi_if_ports output 10 octets_per_multiframe
|
2017-05-17 17:28:50 +00:00
|
|
|
adi_if_ports output 8 octets_per_frame
|
|
|
|
adi_if_ports output 1 disable_char_replacement
|
|
|
|
adi_if_ports output 1 disable_scrambler
|
2020-01-29 14:41:43 +00:00
|
|
|
adi_if_ports output 8 frame_align_err_threshold
|
2020-10-27 15:40:37 +00:00
|
|
|
adi_if_ports output 10 device_octets_per_multiframe
|
|
|
|
adi_if_ports output 8 device_octets_per_frame
|
|
|
|
adi_if_ports output 8 device_beats_per_multiframe
|
|
|
|
adi_if_ports output 8 device_lmfc_offset
|
|
|
|
adi_if_ports output 1 device_sysref_oneshot
|
|
|
|
adi_if_ports output 1 device_sysref_disable
|
|
|
|
adi_if_ports output 1 device_buffer_early_release
|
|
|
|
adi_if_ports output 1 device_buffer_delay
|
2018-05-07 12:33:00 +00:00
|
|
|
adi_if_ports output 1 err_statistics_reset
|
2019-10-10 07:22:49 +00:00
|
|
|
adi_if_ports output 7 err_statistics_mask
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
adi_if_define "jesd204_rx_status"
|
|
|
|
adi_if_ports output 3 ctrl_state
|
|
|
|
adi_if_ports output -1 lane_cgs_state
|
2019-10-10 07:22:49 +00:00
|
|
|
adi_if_ports output -1 lane_emb_state
|
2017-05-17 17:28:50 +00:00
|
|
|
adi_if_ports output -1 lane_frame_align
|
|
|
|
adi_if_ports output -1 lane_ifs_ready
|
|
|
|
adi_if_ports output -1 lane_latency_ready
|
|
|
|
adi_if_ports output -1 lane_latency
|
2018-05-07 12:33:00 +00:00
|
|
|
adi_if_ports output -1 err_statistics_cnt
|
2017-05-17 17:28:50 +00:00
|
|
|
|
|
|
|
adi_if_define "jesd204_rx_ilas_config"
|
|
|
|
adi_if_ports output -1 valid
|
|
|
|
adi_if_ports output -1 addr
|
|
|
|
adi_if_ports input -1 data
|
|
|
|
|
|
|
|
adi_if_define "jesd204_rx_event"
|
|
|
|
adi_if_ports output 1 sysref_alignment_error
|
|
|
|
adi_if_ports output 1 sysref_edge
|
2020-07-21 07:07:57 +00:00
|
|
|
adi_if_ports output 1 frame_alignment_error
|
2020-07-21 15:53:23 +00:00
|
|
|
adi_if_ports output 1 unexpected_lane_state_error
|