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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
ef5d1a48
Commit
ef5d1a48
authored
Sep 25, 2023
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Define c_sdp_nof_words_per_beamlet and c_sdp_nof_beamlets_per_block.
parent
64fbe910
Branches
Branches containing commit
No related tags found
1 merge request
!357
Move func_sdp_bdo_cep_hdr_field_sel_dest() from sdp_bdo_pkg to...
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_pkg.vhd
+2
-1
2 additions, 1 deletion
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_pkg.vhd
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+3
-1
3 additions, 1 deletion
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
with
5 additions
and
2 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_bdo_pkg.vhd
+
2
−
1
View file @
ef5d1a48
...
...
@@ -63,8 +63,9 @@ package sdp_bdo_pkg is
-- Use functions that return look up tables to precalculate the values as
-- constant arrays
-- . One ch (channel) = one 32b word = one dual polarization beamlet (Xre, Xim, Yre, Yim)
-- . Look up table arrays for t_natural_arr(1 to c_sdp_bdo_nof_destinations_max)
.
-- . Look up table arrays for
:
t_natural_arr(1 to c_sdp_bdo_nof_destinations_max)
function
func_sdp_bdo_nof_blocks_per_packet_look_up_table
return
t_natural_arr
;
function
func_sdp_bdo_reorder_nof_blocks_look_up_table
return
t_natural_arr
;
function
func_sdp_bdo_reorder_nof_ch_look_up_table
return
t_natural_arr
;
...
...
This diff is collapsed.
Click to expand it.
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+
3
−
1
View file @
ef5d1a48
...
...
@@ -137,7 +137,9 @@ package sdp_pkg is
constant
c_sdp_N_beamlets_sdp
:
natural
:
=
c_sdp_N_beamsets
*
c_sdp_S_sub_bf
;
-- = 976
constant
c_sdp_W_dual_pol_beamlet
:
natural
:
=
c_sdp_N_pol_bf
*
c_nof_complex
*
c_sdp_W_beamlet
;
-- 2 * 2 * 8 = 32b
constant
c_sdp_nof_words_per_beamlet
:
natural
:
=
1
;
-- 1 dual pol, complex, 8bit beamlet (Xre, Xim, Yre, Yim) per 32b word
constant
c_sdp_nof_beamlets_per_longword
:
natural
:
=
2
;
-- 2 dual pol, complex, 8bit beamlets fit in 1 64bit longword
constant
c_sdp_nof_beamlets_per_block
:
natural
:
=
c_sdp_S_sub_bf
;
-- number of dual pol beamlets per block
-- . unit weights
constant
c_sdp_unit_sub_weight
:
natural
:
=
2
**
c_sdp_W_sub_weight_fraction
;
-- 2**13, so range +-4.0 for 16 bit signed weight
...
...
@@ -419,7 +421,7 @@ package sdp_pkg is
constant
c_sdp_cep_header_len
:
natural
:
=
14
+
20
+
8
+
c_sdp_cep_app_header_len
;
-- = eth + ip + udp + app = 74 octets, see ICD STAT-CEP
constant
c_sdp_cep_nof_blocks_per_packet
:
natural
:
=
4
;
-- number of time blocks of beamlets per output packet
constant
c_sdp_cep_nof_beamlets_per_block
:
natural
:
=
c_sdp_
S_sub_bf
;
-- number of dual pol beamlets (c_sdp_N_pol_bf = 2)
constant
c_sdp_cep_nof_beamlets_per_block
:
natural
:
=
c_sdp_
nof_beamlets_per_block
;
-- number of dual pol beamlets (c_sdp_N_pol_bf = 2)
constant
c_sdp_cep_nof_beamlets_per_packet
:
natural
:
=
c_sdp_cep_nof_blocks_per_packet
*
c_sdp_cep_nof_beamlets_per_block
;
constant
c_sdp_cep_payload_nof_longwords
:
natural
:
=
c_sdp_cep_nof_beamlets_per_packet
/
c_sdp_nof_beamlets_per_longword
;
-- = 976
constant
c_sdp_cep_packet_nof_longwords
:
natural
:
=
ceil_div
(
c_sdp_cep_header_len
,
c_longword_sz
)
+
c_sdp_cep_payload_nof_longwords
;
-- without tail CRC, the CRC is applied by 10GbE MAC
...
...
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