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

processed review comments

parent 9addf71c
Branches
No related tags found
1 merge request!155added ring_rx
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
-- a gap between blocks the dp_fifo_fill_eop needs 1 cycle to process a block. -- a gap between blocks the dp_fifo_fill_eop needs 1 cycle to process a block.
-- Streaming without gaps may cause the fifo to overflow. Bursts of blocks -- Streaming without gaps may cause the fifo to overflow. Bursts of blocks
-- can be handled by increasing g_fifo_size. -- can be handled by increasing g_fifo_size.
-- . g_max/min_block_size indicate the minimum / maximum length of incoming blocks.
-- The ratio of max / min is used to determine a fifo size for the outgoing
-- sosi.valid signals. To minimize logic the g_min_block_size can be set to
-- the expected minimum block size.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- REGMAP -- REGMAP
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
......
...@@ -152,14 +152,14 @@ BEGIN ...@@ -152,14 +152,14 @@ BEGIN
hdr_fields_out_arr(0) => hdr_fields_out hdr_fields_out_arr(0) => hdr_fields_out
); );
-- Use dp layer
gen_dp_layer : IF c_use_dp_layer GENERATE
p_set_meta: PROCESS(offload_rx_sosi, hdr_fields_out) p_set_meta: PROCESS(offload_rx_sosi, hdr_fields_out)
BEGIN BEGIN
decoded_sosi <= offload_rx_sosi; decoded_sosi <= offload_rx_sosi;
IF c_use_dp_layer THEN
decoded_sosi.sync <= hdr_fields_out(field_hi(c_hdr_field_arr, "dp_sync" ) DOWNTO field_lo(c_hdr_field_arr, "dp_sync" ))(0); decoded_sosi.sync <= hdr_fields_out(field_hi(c_hdr_field_arr, "dp_sync" ) DOWNTO field_lo(c_hdr_field_arr, "dp_sync" ))(0);
decoded_sosi.channel <= RESIZE_DP_CHANNEL(hdr_fields_out(field_hi(c_hdr_field_arr, "dp_channel" ) DOWNTO field_lo(c_hdr_field_arr, "dp_channel" ))); decoded_sosi.channel <= RESIZE_DP_CHANNEL(hdr_fields_out(field_hi(c_hdr_field_arr, "dp_channel" ) DOWNTO field_lo(c_hdr_field_arr, "dp_channel" )));
decoded_sosi.bsn <= RESIZE_DP_BSN( hdr_fields_out(field_hi(c_hdr_field_arr, "dp_bsn" ) DOWNTO field_lo(c_hdr_field_arr, "dp_bsn" ))); decoded_sosi.bsn <= RESIZE_DP_BSN( hdr_fields_out(field_hi(c_hdr_field_arr, "dp_bsn" ) DOWNTO field_lo(c_hdr_field_arr, "dp_bsn" )));
END IF;
END PROCESS; END PROCESS;
-- Validate bsn at sync -- Validate bsn at sync
...@@ -182,9 +182,7 @@ BEGIN ...@@ -182,9 +182,7 @@ BEGIN
reg_miso => reg_dp_block_validate_bsn_at_sync_cipo reg_miso => reg_dp_block_validate_bsn_at_sync_cipo
); );
-- BSN Monitors -- BSN Monitors
gen_bsn_monitors : IF c_use_dp_layer GENERATE
-- Convert nof_hops to source RN -- Convert nof_hops to source RN
p_hop_to_src_rn: PROCESS(validated_sosi, this_rn, N_rn) p_hop_to_src_rn: PROCESS(validated_sosi, this_rn, N_rn)
BEGIN BEGIN
...@@ -222,4 +220,9 @@ BEGIN ...@@ -222,4 +220,9 @@ BEGIN
END GENERATE; END GENERATE;
-- Do not use dp layer
gen_no_dp_layer : IF NOT c_use_dp_layer GENERATE
from_lane_sosi <= offload_rx_sosi;
END GENERATE;
END str; END str;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment