diff --git a/libraries/technology/jesd204b/registermap-jesd-rx.xlsx b/libraries/technology/jesd204b/registermap-jesd-rx.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d3140dbbdefb8090558542b5fdf899ea0107f87b Binary files /dev/null and b/libraries/technology/jesd204b/registermap-jesd-rx.xlsx differ diff --git a/libraries/technology/jesd204b/tech_jesd204b_pkg.vhd b/libraries/technology/jesd204b/tech_jesd204b_pkg.vhd index b82c1bbb75b5c4a0550b4157081f3b8b5f57b69e..0c8ab4246b3823be04a822d3e9604dfad5a75f70 100644 --- a/libraries/technology/jesd204b/tech_jesd204b_pkg.vhd +++ b/libraries/technology/jesd204b/tech_jesd204b_pkg.vhd @@ -16,15 +16,13 @@ -- See the License for the specific language governing permissions and -- limitations under the License. -- -------------------------------------------------------------------------------- - ------------------------------------------------------------------------------- -- -- Author: E. Kooistra -- Purpose: Test bench parameters for the JESD204B IP. -- Description: -- Remark: --- . +-- . From registermap-jesd-rx.xlsx ------------------------------------------------------------------------------- LIBRARY IEEE, technology_lib; @@ -36,19 +34,30 @@ PACKAGE tech_jesd204b_pkg IS CONSTANT tech_jesd204b_port_span_w : NATURAL := 8; CONSTANT tech_jesd204b_port_span : NATURAL := 2**tech_jesd204b_port_span_w; - CONSTANT tech_jesd204b_field_rx_err0_adr : NATURAL := 16#60#; + CONSTANT tech_jesd204b_field_rx_syncn_sysref_ctrl_adr : NATURAL := 16#54# / 4; + CONSTANT tech_jesd204b_field_rx_syncn_sysref_ctrl_link_reinit : NATURAL := 1; + CONSTANT tech_jesd204b_field_rx_syncn_sysref_ctrl_singled : NATURAL := 2; + CONSTANT tech_jesd204b_field_rx_syncn_sysref_ctrl_alwayson : NATURAL := 4; + + CONSTANT tech_jesd204b_field_rx_err0_adr : NATURAL := 16#60# / 4; CONSTANT tech_jesd204b_field_rx_err0_w : NATURAL := 9; CONSTANT tech_jesd204b_field_rx_err0_lo : NATURAL := 0; CONSTANT tech_jesd204b_field_rx_err0_hi : NATURAL := tech_jesd204b_field_rx_err0_w-1 + tech_jesd204b_field_rx_err0_lo; - CONSTANT tech_jesd204b_field_rx_err1_adr : NATURAL := 16#64#; + CONSTANT tech_jesd204b_field_rx_err1_adr : NATURAL := 16#64# / 4; CONSTANT tech_jesd204b_field_rx_err1_w : NATURAL := 10; CONSTANT tech_jesd204b_field_rx_err1_lo : NATURAL := 0; CONSTANT tech_jesd204b_field_rx_err1_hi : NATURAL := tech_jesd204b_field_rx_err1_w-1 + tech_jesd204b_field_rx_err1_lo; - CONSTANT tech_jesd204b_field_csr_rbd_count_adr : NATURAL := 16#80#; + + CONSTANT tech_jesd204b_field_rx_err_enable_adr : NATURAL := 16#74# / 4; + CONSTANT tech_jesd204b_field_rx_err_enable_reset : INTEGER := 16#17F9FE#; + CONSTANT tech_jesd204b_field_rx_err_link_reinit_adr : NATURAL := 16#78# / 4; + CONSTANT tech_jesd204b_field_rx_err_link_reinit_reset : INTEGER := 16#3902#; + + CONSTANT tech_jesd204b_field_csr_rbd_count_adr : NATURAL := 16#80# / 4; CONSTANT tech_jesd204b_field_csr_rbd_count_w : NATURAL := 8; CONSTANT tech_jesd204b_field_csr_rbd_count_lo : NATURAL := 3; CONSTANT tech_jesd204b_field_csr_rbd_count_hi : NATURAL := tech_jesd204b_field_csr_rbd_count_w-1 + tech_jesd204b_field_csr_rbd_count_lo; - CONSTANT tech_jesd204b_field_csr_dev_syncn_adr : NATURAL := 16#80#; + CONSTANT tech_jesd204b_field_csr_dev_syncn_adr : NATURAL := 16#80# / 4; CONSTANT tech_jesd204b_field_csr_dev_syncn_w : NATURAL := 1; CONSTANT tech_jesd204b_field_csr_dev_syncn_lo : NATURAL := 0; CONSTANT tech_jesd204b_field_csr_dev_syncn_hi : NATURAL := tech_jesd204b_field_csr_dev_syncn_w-1 + tech_jesd204b_field_csr_dev_syncn_lo;