Skip to content
Snippets Groups Projects
Commit 49f385e6 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Clarify use of c_sdp_stat_hdr_field_sel.

parent aaf17891
No related branches found
No related tags found
1 merge request!283Resolve L2SDP-696
......@@ -273,33 +273,64 @@ ARCHITECTURE str OF sdp_statistics_offload IS
BEGIN
-------------------------------------------------------------------------------
-- Assemble offload header info, for data path fields that are selected by:
-- Assemble offload header info
-------------------------------------------------------------------------------
-- Whether the dp_offload_tx_hdr_fields value is actually used in the Tx header depends on c_sdp_stat_hdr_field_sel
-- c_sdp_stat_hdr_field_sel = "1"&"101"&"111011111001"&"0100"&"0100"&"000000010"&"1000000"&"0"
-- eth ip udp app
-- where 0 = data path, 1 = MM controlled. The '0' fields are assigned here in dp_header_info
-- in order:
-- . eth: eth_src_mac
-- . ip: ip_total_length,
-- ip_header_checksum (not here, will be filled in by 1GbE eth component),
-- ip_src_addr
-- . udp: udp_src_port,
-- udp_total_length
-- udp_checksum, (not here, also not calculated in 1GbE eth component because would
-- require store and forward, send default 0)
-- . app: - sdp_marker, sdp_observation_id, sdp_station_id,
-- - sdp_source_info_antenna_band_id,
-- sdp_source_info_nyquist_zone_id,
-- sdp_source_info_f_adc,
-- sdp_source_info_fsub_type,
-- sdp_source_info_payload_error,
-- sdp_source_info_beam_repositioning_flag,
-- sdp_source_info_weighted_subbands_flag,
-- sdp_source_info_gn_id,
-- - sdp_integration_interval, sdp_data_id, sdp_nof_signal_inputs,
-- sdp_nof_bytes_per_statistic,
-- sdp_nof_statistics_per_packet, sdp_block_period
-- - dp_bsn
-------------------------------------------------------------------------------
-- access field
-- MM word_align
--
-- MM eth_dst_mac
-- DP eth_src_mac
-- MM eth_type
--
-- MM ip_version
-- MM ip_header_length
-- MM ip_services
-- DP ip_total_length
-- MM ip_identification
-- MM ip_flags
-- MM ip_fragment_offset
-- MM ip_time_to_live
-- MM ip_protocol
-- DP ip_header_checksum --> not here, will be filled in by 1GbE eth component
-- DP ip_src_addr
-- MM ip_dst_addr
--
-- DP udp_src_port
-- MM udp_dst_port
-- DP udp_total_length
-- DP udp_checksum --> default fixed 0, so not used, not calculated here or in 1GbE
-- eth component because would require store and forward
--
-- DP sdp_marker
-- MM sdp_version_id
-- DP sdp_observation_id
-- DP sdp_station_id
--
-- DP sdp_source_info_antenna_band_id
-- DP sdp_source_info_nyquist_zone_id
-- DP sdp_source_info_f_adc
-- DP sdp_source_info_fsub_type
-- DP sdp_source_info_payload_error
-- DP sdp_source_info_beam_repositioning_flag
-- DP sdp_source_info_weighted_subbands_flag
-- MM sdp_source_info_reserved
-- DP sdp_source_info_gn_id
--
-- MM sdp_reserved
-- DP sdp_integration_interval
-- DP sdp_data_id
-- DP sdp_nof_signal_inputs
-- DP sdp_nof_bytes_per_statistic
-- DP sdp_nof_statistics_per_packet
-- DP sdp_block_period
--
-- DP dp_bsn
dp_header_info(field_hi(c_sdp_stat_hdr_field_arr, "eth_src_mac" ) DOWNTO field_lo(c_sdp_stat_hdr_field_arr, "eth_src_mac" )) <= eth_src_mac;
dp_header_info(field_hi(c_sdp_stat_hdr_field_arr, "ip_total_length" ) DOWNTO field_lo(c_sdp_stat_hdr_field_arr, "ip_total_length" )) <= TO_UVEC(c_ip_total_length, 16);
dp_header_info(field_hi(c_sdp_stat_hdr_field_arr, "ip_src_addr" ) DOWNTO field_lo(c_sdp_stat_hdr_field_arr, "ip_src_addr" )) <= ip_src_addr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment