From 572e79ef88fe64b11e97b9ad43d72580272daa36 Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Thu, 28 Sep 2023 11:29:46 +0200
Subject: [PATCH] Use N_destinations_max = 32

---
 .../lofar2/libraries/sdp/sdp.peripheral.yaml    | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/applications/lofar2/libraries/sdp/sdp.peripheral.yaml b/applications/lofar2/libraries/sdp/sdp.peripheral.yaml
index 17b64c399c..42da4ecb68 100644
--- a/applications/lofar2/libraries/sdp/sdp.peripheral.yaml
+++ b/applications/lofar2/libraries/sdp/sdp.peripheral.yaml
@@ -193,11 +193,10 @@ peripherals:
   - peripheral_name: sdp_bdo_destinations
     peripheral_description: "SDP beamlet data output (BDO) destinations."
     parameters:
-      # Parameters fixed in sdp_beamformer_output.vhd / sdp_pkg.vhd
-      - { name: N_destinations_max, value: 16 }
-      - { name: N_reorder_blocks_max, value: 16 }
+      # Parameters fixed in sdp_bdo_destinations_reg.vhd / sdp_pkg.vhd
+      - { name: N_destinations_max, value: 32 }
     mm_ports:
-      # MM port for sdp_beamformer_output.vhd / mm_fields.vhd
+      # MM port for sdp_bdo_destinations_reg.vhd / mm_fields.vhd
       - mm_port_name: REG_BDO_DESTINATIONS
         mm_port_type: REG
         mm_port_span: 16 * MM_BUS_SIZE
@@ -207,15 +206,15 @@ peripherals:
            The number of destinations is 1 <= nof_destinations <= N_destinations_max. The actual
            nof_destinations is reported via nof_destinations_act.
            The actual number of blocks per packet depends on nof_destinations_act, and is reported
-           via nof_blocks_per_packet_act."
+           via nof_blocks_per_packet."
         fields:
           - - { field_name: eth_destination_mac,    number_of_fields: N_destinations_max, mm_width: 32, user_width: 48, radix: uint64, access_mode: RW, address_offset: 0x0 }
           - - { field_name: ip_destination_address, number_of_fields: N_destinations_max, mm_width: 32,                                access_mode: RW, address_offset: 0x80 }
           - - { field_name: udp_destination_port,   number_of_fields: N_destinations_max, mm_width: 16,                                access_mode: RW, address_offset: 0xC0 }
-          - - { field_name: nof_destinations,          mm_width: 8, access_mode: RW, address_offset: 0x100 }
-          - - { field_name: nof_destinations_act,      mm_width: 8, access_mode: RO, address_offset: 0x104 }
-          - - { field_name: nof_destinations_max,      mm_width: 8, access_mode: RO, address_offset: 0x108 }
-          - - { field_name: nof_blocks_per_packet_act, mm_width: 8, access_mode: RO, address_offset: 0x10C }
+          - - { field_name: nof_destinations,      mm_width: 8, access_mode: RW, address_offset: 0x100 }
+          - - { field_name: nof_destinations_act,  mm_width: 8, access_mode: RO, address_offset: 0x104 }
+          - - { field_name: nof_destinations_max,  mm_width: 8, access_mode: RO, address_offset: 0x108 }
+          - - { field_name: nof_blocks_per_packet, mm_width: 8, access_mode: RO, address_offset: 0x10C }
 
 
   - peripheral_name: sdp_beamformer_output_hdr_dat  #  pi_dp_offload_tx_hdr_dat_lofar2_beamformer_output.py
-- 
GitLab