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

Prepare support for g_user_size in dp_block_from_mm_dc.vhd and rename g_data_w into g_word_w.

parent 105eddd5
No related branches found
No related tags found
1 merge request!182Resolve L2SDP-551
...@@ -106,6 +106,7 @@ ARCHITECTURE str OF sdp_statistics_offload IS ...@@ -106,6 +106,7 @@ ARCHITECTURE str OF sdp_statistics_offload IS
CONSTANT c_beamlet_id : NATURAL := g_beamset_id * c_sdp_S_sub_bf; CONSTANT c_beamlet_id : NATURAL := g_beamset_id * c_sdp_S_sub_bf;
-- MM access settings per packet for u_dp_block_from_mm_dc -- MM access settings per packet for u_dp_block_from_mm_dc
CONSTANT c_mm_user_size : NATURAL := func_sdp_get_stat_from_mm_data_size(g_statistics_type);
CONSTANT c_mm_data_size : NATURAL := func_sdp_get_stat_from_mm_data_size(g_statistics_type); CONSTANT c_mm_data_size : NATURAL := func_sdp_get_stat_from_mm_data_size(g_statistics_type);
CONSTANT c_mm_step_size : NATURAL := func_sdp_get_stat_from_mm_step_size(g_statistics_type); CONSTANT c_mm_step_size : NATURAL := func_sdp_get_stat_from_mm_step_size(g_statistics_type);
CONSTANT c_mm_nof_data : NATURAL := func_sdp_get_stat_from_mm_nof_data(g_statistics_type); CONSTANT c_mm_nof_data : NATURAL := func_sdp_get_stat_from_mm_nof_data(g_statistics_type);
...@@ -386,9 +387,11 @@ BEGIN ...@@ -386,9 +387,11 @@ BEGIN
u_dp_block_from_mm_dc : ENTITY dp_lib.dp_block_from_mm_dc u_dp_block_from_mm_dc : ENTITY dp_lib.dp_block_from_mm_dc
GENERIC MAP ( GENERIC MAP (
g_user_size => c_mm_user_size,
g_data_size => c_mm_data_size, g_data_size => c_mm_data_size,
g_step_size => c_mm_step_size, g_step_size => c_mm_step_size,
g_nof_data => c_mm_nof_data, g_nof_data => c_mm_nof_data,
g_word_w => c_word_w,
g_reverse_word_order => g_reverse_word_order g_reverse_word_order => g_reverse_word_order
) )
PORT MAP( PORT MAP(
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
-- this is a dual-clock wrapper around dp_block_from_mm.vhd -- this is a dual-clock wrapper around dp_block_from_mm.vhd
-- Description: -- Description:
-- . https://support.astron.nl/confluence/display/L2M/L5+SDPFW+Design+Document%3A+Subband+filterbank -- . https://support.astron.nl/confluence/display/L2M/L5+SDPFW+Design+Document%3A+Subband+filterbank
-- . see dp_block_from_mm.vhd
-- -------------------------------------------------------------------------- -- --------------------------------------------------------------------------
LIBRARY IEEE,common_lib; LIBRARY IEEE,common_lib;
...@@ -35,9 +36,11 @@ USE work.dp_stream_pkg.ALL; ...@@ -35,9 +36,11 @@ USE work.dp_stream_pkg.ALL;
ENTITY dp_block_from_mm_dc IS ENTITY dp_block_from_mm_dc IS
GENERIC ( GENERIC (
g_user_size : NATURAL;
g_data_size : NATURAL; g_data_size : NATURAL;
g_step_size : NATURAL; g_step_size : NATURAL;
g_nof_data : NATURAL; g_nof_data : NATURAL;
g_word_w : NATURAL := c_word_w;
g_reverse_word_order : BOOLEAN := FALSE g_reverse_word_order : BOOLEAN := FALSE
); );
PORT ( PORT (
...@@ -135,9 +138,11 @@ BEGIN ...@@ -135,9 +138,11 @@ BEGIN
u_dp_block_from_mm : ENTITY work.dp_block_from_mm u_dp_block_from_mm : ENTITY work.dp_block_from_mm
GENERIC MAP ( GENERIC MAP (
g_user_size => g_user_size,
g_data_size => g_data_size, g_data_size => g_data_size,
g_step_size => g_step_size, g_step_size => g_step_size,
g_nof_data => g_nof_data, g_nof_data => g_nof_data,
g_word_w => g_word_w,
g_reverse_word_order => g_reverse_word_order g_reverse_word_order => g_reverse_word_order
) )
PORT MAP ( PORT MAP (
......
...@@ -418,10 +418,11 @@ BEGIN ...@@ -418,10 +418,11 @@ BEGIN
gen_mm_to_dp : FOR I IN 0 TO g_nof_streams-1 GENERATE gen_mm_to_dp : FOR I IN 0 TO g_nof_streams-1 GENERATE
u_mm_to_dp: ENTITY work.dp_block_from_mm u_mm_to_dp: ENTITY work.dp_block_from_mm
GENERIC MAP ( GENERIC MAP (
g_user_size => 1,
g_data_size => 1, g_data_size => 1,
g_step_size => 1, g_step_size => 1,
g_nof_data => g_block_size, g_nof_data => g_block_size,
g_data_w => g_data_w, g_word_w => g_data_w,
g_mm_rd_latency => g_rd_latency, g_mm_rd_latency => g_rd_latency,
g_reverse_word_order => FALSE g_reverse_word_order => FALSE
) )
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
-- . p_verify_read, set ram address (using g_data_size and g_step_size) to check and -- . p_verify_read, set ram address (using g_data_size and g_step_size) to check and
-- read value from ram, also set expected ram value. -- read value from ram, also set expected ram value.
-- . p_verify_check, check if ram_value is equal to expected value. -- . p_verify_check, check if ram_value is equal to expected value.
--
-- Remark:
-- . g_user_size and g_reverse_word_order are verified in tb_sdp_statistics_offload.vhd
-- -------------------------------------------------------------------------- -- --------------------------------------------------------------------------
-- > as 10 -- > as 10
...@@ -222,6 +225,7 @@ BEGIN ...@@ -222,6 +225,7 @@ BEGIN
-- DUT, dp_block_from_mm -- DUT, dp_block_from_mm
u_dp_block_from_mm: ENTITY work.dp_block_from_mm u_dp_block_from_mm: ENTITY work.dp_block_from_mm
GENERIC MAP ( GENERIC MAP (
g_user_size => g_data_size,
g_data_size => g_data_size, g_data_size => g_data_size,
g_step_size => g_step_size, g_step_size => g_step_size,
g_nof_data => g_nof_data g_nof_data => g_nof_data
......
...@@ -603,10 +603,11 @@ BEGIN ...@@ -603,10 +603,11 @@ BEGIN
gen_mm_to_dp : FOR I IN 0 TO g_nof_streams-1 GENERATE gen_mm_to_dp : FOR I IN 0 TO g_nof_streams-1 GENERATE
u_mm_to_dp: ENTITY work.dp_block_from_mm u_mm_to_dp: ENTITY work.dp_block_from_mm
GENERIC MAP ( GENERIC MAP (
g_user_size => 1,
g_data_size => 1, g_data_size => 1,
g_step_size => 1, g_step_size => 1,
g_nof_data => g_block_size, g_nof_data => g_block_size,
g_data_w => g_data_w, g_word_w => g_data_w,
g_mm_rd_latency => g_rd_latency, g_mm_rd_latency => g_rd_latency,
g_reverse_word_order => FALSE g_reverse_word_order => FALSE
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment