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
61d222bd
Commit
61d222bd
authored
3 years ago
by
Eric Kooistra
Committed by
Pieter Donker
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Removed O_si, N_si from sdp_info because not used. Moved O_rn, N_rn to ring_info.
parent
77de8e92
No related branches found
No related tags found
1 merge request
!207
Made antenne_band_index RW in sdp_info. Removed O_si, N_si from sdp_info...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+13
-11
13 additions, 11 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
with
13 additions
and
11 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+
13
−
11
View file @
61d222bd
...
...
@@ -52,31 +52,28 @@ PACKAGE sdp_pkg is
f_adc
:
STD_LOGIC
;
fsub_type
:
STD_LOGIC
;
beam_repositioning_flag
:
STD_LOGIC
;
O_si
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
);
N_si
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
);
O_rn
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
);
N_rn
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
);
block_period
:
STD_LOGIC_VECTOR
(
15
DOWNTO
0
);
END
RECORD
;
CONSTANT
c_sdp_info_rst
:
t_sdp_info
:
=
(
(
OTHERS
=>
'0'
),
'0'
,
(
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
),
'0'
,
'0'
,
'0'
,
(
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
)
);
-------------------------------------------------
-- SDP specific parameters as defined in:
-- L3 SDP Decision: SDP Parameter definitions
CONSTANT
c_sdp_f_adc_MHz
:
NATURAL
:
=
200
;
CONSTANT
c_sdp_N_beamsets
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_beamsets
:
NATURAL
:
=
2
;
-- = N_beamsets_sdp in doc
CONSTANT
c_sdp_N_cross_sets_sdp
:
NATURAL
:
=
1
;
CONSTANT
c_sdp_N_crosslets_max
:
NATURAL
:
=
7
;
CONSTANT
c_sdp_N_fft
:
NATURAL
:
=
1024
;
CONSTANT
c_sdp_N_pn_lb
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_N_pn_max
:
NATURAL
:
=
16
;
-- gn 0:31 --> pn 0:15, pn 0:15 per antenna band
CONSTANT
c_sdp_N_pol
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_pol_bf
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_ring_lanes_max
:
NATURAL
:
=
8
;
CONSTANT
c_sdp_N_rings_sdp
:
NATURAL
:
=
1
;
CONSTANT
c_sdp_N_ring_lanes_max
:
NATURAL
:
=
8
;
-- = N_lane in doc
CONSTANT
c_sdp_N_sub
:
NATURAL
:
=
512
;
CONSTANT
c_sdp_N_sync_rcu
:
NATURAL
:
=
1
;
CONSTANT
c_sdp_N_taps
:
NATURAL
:
=
16
;
...
...
@@ -551,13 +548,18 @@ END PACKAGE sdp_pkg;
PACKAGE
BODY
sdp_pkg
IS
FUNCTION
func_sdp_gn_index_to_pn_index
(
gn_index
:
NATURAL
)
RETURN
NATURAL
IS
-- Determine PN index that starts at 0 per antenna band.
-- For LOFAR2 SDP there are two antenna bands: LB and HB. The LB starts at
-- GN index = 0 and has c_sdp_N_pn_lb = c_sdp_N_pn_max = 16 nodes. The HB
-- starts at c_sdp_N_pn_max. Assume every antenna_band starts at a GN:
-- Determine PN index that starts at 0 per antenna band. For LOFAR2 SDP
-- each antenna_band has c_sdp_N_pn_max = 16 PN. The pn_index defines the
-- PN index within an antenna_band:
--
-- pn_index = gn_index MOD c_sdp_N_pn_max
--
-- The c_sdp_N_pn_max = 16 fits the LB and HB of LOFAR2:
-- . The LB starts at GN index = 0 and has c_sdp_N_pn_lb = c_sdp_N_pn_max
-- = 16 nodes.
-- . The HB starts at GN index = c_sdp_N_pn_max, and has 8 or 16 nodes
-- dependent on the type of station.
--
-- The fact that c_sdp_N_pn_max = 16 implies that instead of implementing
-- MOD it is possible to do:
--
...
...
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