Skip to content
Snippets Groups Projects
Commit 966db9fb authored by Reinier van der Walle's avatar Reinier van der Walle
Browse files

Merge branch 'L2SDP-760' into 'master'

Resolve L2SDP-760

Closes L2SDP-760

See merge request desp/hdl!261
parents 5a39abdb dd01778f
Branches
No related tags found
1 merge request!261Resolve L2SDP-760
Pipeline #31952 passed
......@@ -9,7 +9,7 @@ parameters:
- { name: c_nof_lanes, value: 8 }
- { name: c_nof_rx_monitors, value: 16 } # per lane
- { name: c_nof_tx_monitors, value: 16 } # per lane
- { name: c_nof_err_counts, value: 8 } # per lane
- { name: c_nof_err_counts, value: 8 } # per lane, per bit in sosi.err field
- { name: c_nof_mac, value: 12 } # 4 TX/RX for RING0 + 4 TX/RX for RING1 + 4 TX/RX for QSFP0
peripherals:
......
......@@ -11,10 +11,11 @@ parameters:
- { name: c_N_beamsets, value: 2 }
- { name: c_N_sub, value: 512 }
- { name: c_N_fft, value: 1024 }
- { name: c_N_pn_lb, value: 16 }
- { name: c_N_pn_max, value: 16 }
- { name: c_S_pn, value: 12 }
- { name: c_Q_fft, value: 2 }
- { name: c_P_sq, value: 1 + c_N_pn_lb // 2 } # = 1 + 16 // 2 = 9, on revision xsub_one only first X_sq cell is used
- { name: c_P_sum, value: 2 }
- { name: c_P_sq, value: 1 + c_N_pn_max // 2 } # = 1 + 16 // 2 = 9, on revision xsub_one only first X_sq cell is used
- { name: c_X_sq, value: c_S_pn * c_S_pn } # = 144
- { name: c_N_crosslets, value: 7 }
- { name: c_N_taps, value: 16 }
......@@ -37,9 +38,7 @@ parameters:
- { name: c_W_beamlet, value: 8 }
- { name: c_stat_data_sz, value: 2 }
- { name: c_nof_clk_per_pps, value: c_f_adc_MHz * 10**6 } # = 200000000
- { name: c_lane_nof_rx_monitors, value: 16 } # per lane
- { name: c_lane_nof_tx_monitors, value: 16 } # per lane
- { name: c_lane_nof_err_counts, value: 8 } # per lane
- { name: c_lane_nof_err_counts, value: 8 } # per lane, per bit in RX sosi.err field
- { name: c_ring_nof_mac, value: 3 } # 1 TX/RX for RING0 + 1 TX/RX for RING1 + 1 TX/RX for QSFP0
peripherals:
......@@ -312,14 +311,14 @@ peripherals:
- peripheral_name: dp/dp_bsn_monitor_v2
peripheral_group: ring_rx
parameter_overrides:
- { name: g_nof_streams, value: c_lane_nof_rx_monitors }
- { name: g_nof_streams, value: c_N_pn_max }
mm_port_names:
- REG_BSN_MONITOR_V2_RING_RX_XST
- peripheral_name: dp/dp_bsn_monitor_v2
peripheral_group: ring_tx
parameter_overrides:
- { name: g_nof_streams, value: c_lane_nof_tx_monitors }
- { name: g_nof_streams, value: c_N_pn_max }
mm_port_names:
- REG_BSN_MONITOR_V2_RING_TX_XST
......@@ -369,7 +368,7 @@ peripherals:
peripheral_group: bf
number_of_peripherals: c_N_beamsets
parameter_overrides:
- { name: g_nof_streams, value: 2 }
- { name: g_nof_streams, value: c_P_sum }
mm_port_names:
- REG_BSN_ALIGN_V2_BF
......@@ -377,7 +376,7 @@ peripherals:
peripheral_group: rx_align_bf
number_of_peripherals: c_N_beamsets
parameter_overrides:
- { name: g_nof_streams, value: 2 }
- { name: g_nof_streams, value: c_P_sum }
mm_port_names:
- REG_BSN_MONITOR_V2_RX_ALIGN_BF
......
......@@ -9,7 +9,7 @@ parameters:
- { name: c_nof_lanes, value: 8 }
- { name: c_nof_rx_monitors, value: 16 } # per lane
- { name: c_nof_tx_monitors, value: 16 } # per lane
- { name: c_nof_err_counts, value: 8 } # per lane
- { name: c_nof_err_counts, value: 8 } # per lane, per bit in sosi.err field
- { name: c_nof_mac, value: 12 } # 4 TX/RX for RING0 + 4 TX/RX for RING1 + 4 TX/RX for QSFP0
peripherals:
......
......@@ -11,10 +11,11 @@ parameters:
- { name: c_N_beamsets, value: 2 }
- { name: c_N_sub, value: 512 }
- { name: c_N_fft, value: 1024 }
- { name: c_N_pn_lb, value: 16 }
- { name: c_N_pn_max, value: 16 }
- { name: c_S_pn, value: 12 }
- { name: c_Q_fft, value: 2 }
- { name: c_P_sq, value: 1 + c_N_pn_lb // 2 } # = 1 + 16 // 2 = 9, on revision xsub_one only first X_sq cell is used
- { name: c_P_sum, value: 2 }
- { name: c_P_sq, value: 1 + c_N_pn_max // 2 } # = 1 + 16 // 2 = 9, on revision xsub_one only first X_sq cell is used
- { name: c_X_sq, value: c_S_pn * c_S_pn } # = 144
- { name: c_N_crosslets, value: 7 }
- { name: c_N_taps, value: 16 }
......@@ -37,9 +38,7 @@ parameters:
- { name: c_W_beamlet, value: 8 }
- { name: c_stat_data_sz, value: 2 }
- { name: c_nof_clk_per_pps, value: c_f_adc_MHz * 10**6 } # = 200000000
- { name: c_lane_nof_rx_monitors, value: 16 } # per lane
- { name: c_lane_nof_tx_monitors, value: 16 } # per lane
- { name: c_lane_nof_err_counts, value: 8 } # per lane
- { name: c_lane_nof_err_counts, value: 8 } # per lane, per bit in RX sosi.err field
- { name: c_ring_nof_mac, value: 3 } # 1 TX/RX for RING0 + 1 TX/RX for RING1 + 1 TX/RX for QSFP0
peripherals:
......@@ -312,14 +311,14 @@ peripherals:
- peripheral_name: dp/dp_bsn_monitor_v2
peripheral_group: ring_rx
parameter_overrides:
- { name: g_nof_streams, value: c_lane_nof_rx_monitors }
- { name: g_nof_streams, value: c_N_pn_max }
mm_port_names:
- REG_BSN_MONITOR_V2_RING_RX_XST
- peripheral_name: dp/dp_bsn_monitor_v2
peripheral_group: ring_tx
parameter_overrides:
- { name: g_nof_streams, value: c_lane_nof_tx_monitors }
- { name: g_nof_streams, value: c_N_pn_max }
mm_port_names:
- REG_BSN_MONITOR_V2_RING_TX_XST
......@@ -369,7 +368,7 @@ peripherals:
peripheral_group: bf
number_of_peripherals: c_N_beamsets
parameter_overrides:
- { name: g_nof_streams, value: 2 }
- { name: g_nof_streams, value: c_P_sum }
mm_port_names:
- REG_BSN_ALIGN_V2_BF
......@@ -377,7 +376,7 @@ peripherals:
peripheral_group: rx_align_bf
number_of_peripherals: c_N_beamsets
parameter_overrides:
- { name: g_nof_streams, value: 2 }
- { name: g_nof_streams, value: c_P_sum }
mm_port_names:
- REG_BSN_MONITOR_V2_RX_ALIGN_BF
......
......@@ -69,7 +69,6 @@ PACKAGE sdp_pkg is
CONSTANT c_sdp_N_cross_sets_sdp : NATURAL := 1;
CONSTANT c_sdp_N_crosslets_max : NATURAL := 7;
CONSTANT c_sdp_N_fft : NATURAL := 1024;
CONSTANT c_sdp_N_pn_lb : NATURAL := 16;
CONSTANT c_sdp_N_pn_max : NATURAL := 16; -- gn 0:31 --> pn 0:15, pn 0:15 per antenna band
CONSTANT c_sdp_N_pol : NATURAL := 2;
CONSTANT c_sdp_N_pol_bf : NATURAL := 2;
......@@ -592,8 +591,7 @@ PACKAGE BODY sdp_pkg IS
-- pn_index = gn_index MOD c_sdp_N_pn_max
--
-- The c_sdp_N_pn_max = 16 fits the LB and HB of LOFAR2:
-- . The LB starts at GN index = 0 and has c_sdp_N_pn_lb = c_sdp_N_pn_max
-- = 16 nodes.
-- . The LB starts at GN index = 0 and has c_sdp_N_pn_max = 16 nodes.
-- . The HB starts at GN index = c_sdp_N_pn_max, and has 8 or 16 nodes
-- dependent on the type of station.
--
......
......@@ -107,7 +107,7 @@ peripherals:
- peripheral_name: dp_bsn_align_v2 # pi_dp_bsn_align_v2.py
peripheral_description: "Align frames from multiple input streams."
peripheral_description: "Align packets from multiple input streams."
parameters:
# Parameters of dp_bsn_align_v2.vhd
- { name: g_nof_streams, value: 2 }
......@@ -120,12 +120,12 @@ peripherals:
number_of_mm_ports: g_nof_streams
fields:
- - field_name: enable
field_description: "Stream enable per stream via bits g_nof_streams-1 : 0. Bit value 0 disables the stream, 1 enables the stream. Disabled streams are not aligned."
field_description: "Stream enable per stream. Value 0 disables the stream, 1 enables the stream. Disabled streams are not aligned."
address_offset: 0 * MM_BUS_SIZE
mm_width: 1
access_mode: RW
- - field_name: replaced_pkt_cnt
field_description: "Count of packets that contain replacement data per sync interval."
field_description: "Count of packets per stream that contain replacement data per sync interval."
address_offset: 1 * MM_BUS_SIZE
access_mode: RO
......@@ -453,12 +453,12 @@ peripherals:
mm_port_description: ""
fields:
- - field_name: err_count_index
field_description: "The total amount of discarded DP blocks per bit in the in_sosi.err field (g_nof_err_counts-1 DOWNTO 0)."
field_description: "Number of errors count per bit in the input sosi.err field (g_nof_err_counts-1 DOWNTO 0)."
number_of_fields: g_nof_err_counts
address_offset: 0
access_mode: RO
- - field_name: total_discarded_blocks
field_description: "The total amount of discarded DP blocks."
field_description: "The total amount of discarded DP blocks. All input DP blocks with sosi.err /= 0 are discarded."
address_offset: g_nof_err_counts * MM_BUS_SIZE # 8 * MM_BUS_SIZE
access_mode: RO
- - field_name: total_block_count
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment