Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
ca18edde
Commit
ca18edde
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Connect nof_ch_per_packet to u_dp_packet_unmerge.
parent
ef5d1a48
No related branches found
No related tags found
1 merge request
!357
Move func_sdp_bdo_cep_hdr_field_sel_dest() from sdp_bdo_pkg to...
Pipeline
#59001
passed
1 year ago
Stage: linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_multiple_destinations.vhd
+24
-32
24 additions, 32 deletions
.../libraries/sdp/src/vhdl/sdp_bdo_multiple_destinations.vhd
with
24 additions
and
32 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_multiple_destinations.vhd
+
24
−
32
View file @
ca18edde
...
@@ -68,41 +68,28 @@ entity sdp_bdo_multiple_destinations is
...
@@ -68,41 +68,28 @@ entity sdp_bdo_multiple_destinations is
end
sdp_bdo_multiple_destinations
;
end
sdp_bdo_multiple_destinations
;
architecture
str
of
sdp_bdo_multiple_destinations
is
architecture
str
of
sdp_bdo_multiple_destinations
is
constant
c_nof_blocks_per_packet
:
natural
:
=
c_sdp_cep_nof_blocks_per_packet
;
-- = 4
constant
c_nof_beamlets_per_block
:
natural
:
=
c_sdp_S_sub_bf
;
-- = 488 dual pol beamlets
constant
c_nof_words_per_beamlet
:
natural
:
=
1
;
-- 1 dual pol beamlet data per 32b word
-- Reorder c_nof_ch = c_nof_ch_sel = c_nof_ch_in
-- Reorder c_nof_ch = c_nof_ch_sel = c_nof_ch_in
constant
c_reorder_nof_blocks_max
:
natural
:
=
c_sdp_bdo_reorder_nof_blocks_max
;
-- = 16
constant
c_reorder_nof_blocks_max
:
natural
:
=
c_sdp_bdo_reorder_nof_blocks_max
;
-- = 16
constant
c_reorder_nof_blocks_w
:
natural
:
=
ceil_log2
(
c_reorder_nof_blocks_max
+
1
);
constant
c_reorder_nof_blocks_w
:
natural
:
=
ceil_log2
(
c_reorder_nof_blocks_max
+
1
);
constant
c_reorder_nof_ch_max
:
natural
:
=
c_reorder_nof_blocks_max
*
constant
c_reorder_nof_ch_max
:
natural
:
=
c_reorder_nof_blocks_max
*
c_nof_beamlets_per_block
*
c_
sdp_
nof_beamlets_per_block
*
c_nof_words_per_beamlet
;
-- = 7808
c_
sdp_
nof_words_per_beamlet
;
-- = 7808
-- Look up table constants as function of N_destinations
-- Look up table constants as function of N_destinations
constant
c_m
:
natural
:
=
c_sdp_bdo_nof_destinations_max
;
-- 16
constant
c_m
:
natural
:
=
c_sdp_bdo_nof_destinations_max
;
-- 16
constant
c_nof_blocks_per_packet_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_bdo_nof_blocks_per_packet_look_up_table
;
constant
c_nof_blocks_per_packet_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_bdo_nof_blocks_per_packet_look_up_table
;
constant
c_reorder_nof_blocks_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_bdo_reorder_nof_blocks_look_up_table
;
constant
c_reorder_nof_blocks_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_bdo_reorder_nof_blocks_look_up_table
;
constant
c_reorder_nof_ch_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_bdo_reorder_nof_ch_look_up_table
;
constant
c_reorder_nof_ch_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_bdo_reorder_nof_ch_look_up_table
;
constant
c_nof_beamlets_per_block_first_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_beamlets_per_block_first_destination_look_up_table
;
constant
c_nof_beamlets_per_block_first_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_beamlets_per_block_first_destination_look_up_table
;
constant
c_nof_beamlets_per_block_last_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_beamlets_per_block_last_destination_look_up_table
;
constant
c_nof_beamlets_per_block_last_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_beamlets_per_block_last_destination_look_up_table
;
constant
c_
sdp_sdo_
nof_ch_per_packet_first_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_ch_per_packet_first_destination_look_up_table
;
constant
c_nof_ch_per_packet_first_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_ch_per_packet_first_destination_look_up_table
;
constant
c_
sdp_sdo_
nof_ch_per_packet_last_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_ch_per_packet_last_destination_look_up_table
;
constant
c_nof_ch_per_packet_last_destination_arr
:
t_natural_arr
(
1
to
c_m
)
:
=
func_sdp_sdo_nof_ch_per_packet_last_destination_look_up_table
;
constant
c_beamlet_index_per_destination_mat
:
t_natural_matrix
(
1
to
c_m
,
0
to
c_m
-
1
)
:
=
constant
c_beamlet_index_per_destination_mat
:
t_natural_matrix
(
1
to
c_m
,
0
to
c_m
-
1
)
:
=
func_sdp_sdo_beamlet_index_per_destination_look_up_matrix
;
func_sdp_sdo_beamlet_index_per_destination_look_up_matrix
;
-- -- Use c_transpose_indices and c_transpose_indices_inv for debug view in Objects window.
constant
c_nof_ch_per_packet_max
:
natural
:
=
largest
(
c_nof_ch_per_packet_first_destination_arr
);
-- -- Use c_transpose_indices for func_reorder_transpose() in this sdp_bdo_multiple_destinations,
constant
c_nof_ch_per_packet_w
:
natural
:
=
ceil_log2
(
c_nof_ch_per_packet_max
+
1
);
-- -- a tb can then use c_transpose_indices_inv to undo the transpose.
-- constant c_transpose_indices : t_natural_arr(0 to c_nof_ch - 1) :=
-- func_reorder_transpose_indices(c_nof_blocks_per_packet,
-- c_nof_beamlets_per_block,
-- c_nof_words_per_beamlet);
-- constant c_transpose_indices_inv : t_natural_arr(0 to c_nof_ch - 1) :=
-- func_reorder_transpose_indices(c_nof_beamlets_per_block,
-- c_nof_blocks_per_packet,
-- c_nof_words_per_beamlet);
signal
i_destinations_info
:
t_sdp_bdo_destinations_info
;
signal
i_destinations_info
:
t_sdp_bdo_destinations_info
;
...
@@ -115,8 +102,11 @@ architecture str of sdp_bdo_multiple_destinations is
...
@@ -115,8 +102,11 @@ architecture str of sdp_bdo_multiple_destinations is
signal
nof_beamlets_per_block_first_destination
:
natural
:
=
c_nof_beamlets_per_block_first_destination_arr
(
1
);
signal
nof_beamlets_per_block_first_destination
:
natural
:
=
c_nof_beamlets_per_block_first_destination_arr
(
1
);
signal
nof_beamlets_per_block_last_destination
:
natural
:
=
c_nof_beamlets_per_block_last_destination_arr
(
1
);
signal
nof_beamlets_per_block_last_destination
:
natural
:
=
c_nof_beamlets_per_block_last_destination_arr
(
1
);
signal
nof_beamlets_per_block
:
natural
;
signal
nof_beamlets_per_block
:
natural
;
signal
nof_ch_per_packet_first_destination
:
natural
:
=
c_sdp_sdo_nof_ch_per_packet_first_destination_arr
(
1
);
signal
nof_ch_per_packet_first_destination
:
natural
:
=
c_nof_ch_per_packet_first_destination_arr
(
1
);
signal
nof_ch_per_packet_last_destination
:
natural
:
=
c_sdp_sdo_nof_ch_per_packet_last_destination_arr
(
1
);
signal
nof_ch_per_packet_last_destination
:
natural
:
=
c_nof_ch_per_packet_last_destination_arr
(
1
);
signal
nof_ch_per_packet
:
natural
;
signal
nof_ch_per_packet_slv
:
std_logic_vector
(
c_nof_ch_per_packet_w
-
1
downto
0
);
-- . default use values for N_destinations = 1 and destination index = 0
-- . default use values for N_destinations = 1 and destination index = 0
signal
beamlet_index_per_destination
:
natural
:
=
c_beamlet_index_per_destination_mat
(
1
,
0
);
signal
beamlet_index_per_destination
:
natural
:
=
c_beamlet_index_per_destination_mat
(
1
,
0
);
...
@@ -179,6 +169,7 @@ begin
...
@@ -179,6 +169,7 @@ begin
end
process
;
end
process
;
nof_beamlets_per_block
<=
nof_beamlets_per_block_first_destination
;
nof_beamlets_per_block
<=
nof_beamlets_per_block_first_destination
;
nof_ch_per_packet
<=
nof_ch_per_packet_first_destination
;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- dp_packet_merge
-- dp_packet_merge
...
@@ -294,25 +285,26 @@ begin
...
@@ -294,25 +285,26 @@ begin
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- dp_packet_unmerge for N_destinations
-- dp_packet_unmerge for N_destinations
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
nof_ch_per_packet_slv
<=
to_uvec
(
nof_ch_per_packet
,
c_nof_ch_per_packet_w
);
u_dp_packet_unmerge
:
entity
dp_lib
.
dp_packet_unmerge
u_dp_packet_unmerge
:
entity
dp_lib
.
dp_packet_unmerge
generic
map
(
generic
map
(
g_use_ready
=>
false
,
-- no flow control
g_use_ready
=>
false
,
-- no flow control
g_nof_pkt
=>
c_reorder_nof_blocks_max
,
g_nof_pkt
=>
c_reorder_nof_blocks_max
,
g_pkt_len
=>
99
,
-- Length of the unmerged
packet
s
g_pkt_len
=>
c_nof_ch_per_
packet
_max
,
g_bsn_increment
=>
1
g_bsn_increment
=>
1
)
)
port
map
(
port
map
(
rst
=>
dp_rst
,
rst
=>
dp_rst
,
clk
=>
dp_clk
,
clk
=>
dp_clk
,
pkt_len
=>
nof_ch_per_packet_slv
,
pkt_len_out
=>
open
,
-- Valid at src_out.sop
snk_in
=>
reorder_src_out
,
snk_in
=>
reorder_src_out
,
src_out
=>
unmerge_src_out
src_out
=>
unmerge_src_out
);
);
-- TODO:
-- . add dynamic pkt_len input port
-- . support unmerge of pkt_len and remaining last packet shorter than pkt_len.
-- Debug signals for view in Wave window
-- Debug signals for view in Wave window
unmerge_word
<=
unpack_data
(
unmerge_src_out
.
data
(
c_sdp_W_dual_pol_beamlet
-
1
downto
0
));
unmerge_word
<=
unpack_data
(
unmerge_src_out
.
data
(
c_sdp_W_dual_pol_beamlet
-
1
downto
0
));
end
str
;
end
str
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment