Skip to content
GitLab
Explore
Sign in
Register
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
e0934f12
Commit
e0934f12
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Use g_nof_destinations_max as design revison parameter.
parent
5125de4c
No related branches found
No related tags found
1 merge request
!359
Clarify g_nof_destinations_max design revision parameter and package constants...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_beamformer_output.vhd
+12
-12
12 additions, 12 deletions
...s/lofar2/libraries/sdp/src/vhdl/sdp_beamformer_output.vhd
with
12 additions
and
12 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_beamformer_output.vhd
+
12
−
12
View file @
e0934f12
...
@@ -46,10 +46,10 @@ use work.sdp_bdo_pkg.all;
...
@@ -46,10 +46,10 @@ use work.sdp_bdo_pkg.all;
entity
sdp_beamformer_output
is
entity
sdp_beamformer_output
is
generic
(
generic
(
g_beamset_id
:
natural
:
=
0
;
g_beamset_id
:
natural
:
=
0
;
g_use_transpose
:
boolean
:
=
false
;
g_use_transpose
:
boolean
:
=
false
;
g_
use_multiple
_destinations
:
boolean
:
=
false
;
g_
nof
_destinations
_max
:
natural
:
=
1
;
g_sim_force_bsn_error
:
boolean
:
=
true
g_sim_force_bsn_error
:
boolean
:
=
true
);
);
port
(
port
(
dp_clk
:
in
std_logic
;
dp_clk
:
in
std_logic
;
...
@@ -99,8 +99,8 @@ architecture str of sdp_beamformer_output is
...
@@ -99,8 +99,8 @@ architecture str of sdp_beamformer_output is
-- field_sel = '0' for DP (dynamic), '1' for MM (fixed or programmable via MM of dp_offload_tx_v3)
-- field_sel = '0' for DP (dynamic), '1' for MM (fixed or programmable via MM of dp_offload_tx_v3)
constant
c_cep_hdr_field_sel
:
std_logic_vector
(
c_sdp_cep_nof_hdr_fields
-
1
downto
0
)
:
=
constant
c_cep_hdr_field_sel
:
std_logic_vector
(
c_sdp_cep_nof_hdr_fields
-
1
downto
0
)
:
=
sel_a_b
(
g_
use_multiple
_destinations
,
func_sdp_cep_hdr_field_sel_dst
(
'
0
'
),
sel_a_b
(
g_
nof
_destinations
_max
=
1
,
func_sdp_cep_hdr_field_sel_dst
(
'
1
'
),
func_sdp_cep_hdr_field_sel_dst
(
'
1
'
));
func_sdp_cep_hdr_field_sel_dst
(
'
0
'
));
-- BDO packet size control
-- BDO packet size control
-- . One 32b word contains 1 dual pol beamlet of 4 octets (Xre, Xim, Yre, Yim).
-- . One 32b word contains 1 dual pol beamlet of 4 octets (Xre, Xim, Yre, Yim).
...
@@ -229,7 +229,7 @@ begin
...
@@ -229,7 +229,7 @@ begin
-- [0:3] = [Xre, Xim, Yre, Yim]
-- [0:3] = [Xre, Xim, Yre, Yim]
dp_repack_beamlet_word
<=
unpack_data
(
dp_repack_beamlet_src_out
.
data
(
c_sdp_W_dual_pol_beamlet
-
1
downto
0
));
dp_repack_beamlet_word
<=
unpack_data
(
dp_repack_beamlet_src_out
.
data
(
c_sdp_W_dual_pol_beamlet
-
1
downto
0
));
gen_one_destination
:
if
g_
use_multiple
_destinations
=
false
generate
gen_one_destination
:
if
g_
nof
_destinations
_max
=
1
generate
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Merge and reorder beamlet data for one destination from:
-- Merge and reorder beamlet data for one destination from:
-- (int8) [t] [N_blocks_per_packet][S_sub_bf] [N_pol_bf][N_complex]
-- (int8) [t] [N_blocks_per_packet][S_sub_bf] [N_pol_bf][N_complex]
...
@@ -252,7 +252,7 @@ begin
...
@@ -252,7 +252,7 @@ begin
);
);
end
generate
;
end
generate
;
gen_multiple_destinations
:
if
g_
use_multiple
_destinations
=
true
generate
gen_multiple_destinations
:
if
g_
nof
_destinations
_max
>
1
generate
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Merge, reorder and unmerge beamlet data for N_destinations >= 1 from:
-- Merge, reorder and unmerge beamlet data for N_destinations >= 1 from:
-- (int8) [t] [N_blocks_per_packet][S_sub_bf / N_destinations] [N_pol_bf][N_complex]
-- (int8) [t] [N_blocks_per_packet][S_sub_bf / N_destinations] [N_pol_bf][N_complex]
...
@@ -265,8 +265,8 @@ begin
...
@@ -265,8 +265,8 @@ begin
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
u_sdp_bdo_multiple_destinations
:
entity
work
.
sdp_bdo_multiple_destinations
u_sdp_bdo_multiple_destinations
:
entity
work
.
sdp_bdo_multiple_destinations
generic
map
(
generic
map
(
g_
beamset_id
=>
g_beamset_id
,
g_
nof_destinations_max
=>
g_nof_destinations_max
,
g_
use_transpose
=>
g_use_transpose
g_
beamset_id
=>
g_beamset_id
)
)
port
map
(
port
map
(
mm_clk
=>
mm_clk
,
mm_clk
=>
mm_clk
,
...
@@ -433,13 +433,13 @@ begin
...
@@ -433,13 +433,13 @@ begin
p_assemble_offload_info
:
process
(
destinations_info
)
p_assemble_offload_info
:
process
(
destinations_info
)
begin
begin
if
g_
use_multiple
_destinations
=
false
then
if
g_
nof
_destinations
_max
=
1
then
-- Use constant defaults for beamlet data output to one destination.
-- Use constant defaults for beamlet data output to one destination.
nof_blocks_per_packet
<=
c_sdp_cep_nof_blocks_per_packet
;
-- = 4;
nof_blocks_per_packet
<=
c_sdp_cep_nof_blocks_per_packet
;
-- = 4;
nof_beamlets_per_block
<=
c_sdp_S_sub_bf
;
-- = 488 dual pol beamlets;
nof_beamlets_per_block
<=
c_sdp_S_sub_bf
;
-- = 488 dual pol beamlets;
else
else
-- Use dynamic sizes for beamlet data output to multiple destination.
-- Use dynamic sizes for beamlet data output to multiple destination.
nof_blocks_per_packet
<=
destinations_info
.
nof_blocks_per_packet
_act
;
nof_blocks_per_packet
<=
destinations_info
.
nof_blocks_per_packet
;
nof_beamlets_per_block
<=
c_sdp_S_sub_bf
;
-- = 488 dual pol beamlets;
nof_beamlets_per_block
<=
c_sdp_S_sub_bf
;
-- = 488 dual pol beamlets;
-- TODO check channel field to set destination addresses in dp_offload_tx_hdr_fields
-- TODO check channel field to set destination addresses in dp_offload_tx_hdr_fields
...
...
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