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
31c16c1c
Commit
31c16c1c
authored
4 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SDP-169
' into 'master'
Added t_sdp_info record type + cleanup Closes
L2SDP-169
See merge request desp/hdl!55
parents
40d99429
3fcbd4b2
No related branches found
No related tags found
2 merge requests
!100
Removed text for XSub that is now written in Confluence Subband correlator...
,
!55
Added t_sdp_info record type + cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+44
-21
44 additions, 21 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
with
44 additions
and
21 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_pkg.vhd
+
44
−
21
View file @
31c16c1c
...
...
@@ -36,33 +36,56 @@ USE filter_lib.fil_pkg.ALL;
USE
wpfb_lib
.
wpfb_pkg
.
ALL
;
PACKAGE
sdp_pkg
is
-------------------------------------------------
-- SDP info record as defined in:
-- LOFAR2-9258-SDP info per antenna band
-------------------------------------------------
TYPE
t_sdp_info
IS
RECORD
station_id
:
STD_LOGIC_VECTOR
(
15
DOWNTO
0
);
antenna_band_index
:
STD_LOGIC
;
observation_id
:
STD_LOGIC_VECTOR
(
31
DOWNTO
0
);
nyquist_zone_index
:
STD_LOGIC_VECTOR
(
1
DOWNTO
0
);
f_adc
:
STD_LOGIC
;
fsub_type
:
STD_LOGIC
;
beam_repositioning_flag
:
STD_LOGIC
;
subband_calibrated_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
);
beamlet_scale
:
STD_LOGIC_VECTOR
(
15
DOWNTO
0
);
END
RECORD
;
-------------------------------------------------
-- SDP specific parameters as defined in:
-- L3 SDP Decision: SDP Parameter definitions
-------------------------------------------------
CONSTANT
c_sdp_N_pol
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_sub
:
NATURAL
:
=
512
;
CONSTANT
c_sdp_N_fft
:
NATURAL
:
=
1024
;
CONSTANT
c_sdp_S_pn
:
NATURAL
:
=
12
;
CONSTANT
c_sdp_Q_fft
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_taps
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_adc
:
NATURAL
:
=
14
;
CONSTANT
c_sdp_W_fir_coef
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_subband
:
NATURAL
:
=
18
;
CONSTANT
c_sdp_P_pfb
:
NATURAL
:
=
c_sdp_S_pn
/
c_sdp_Q_fft
;
CONSTANT
c_sdp_S_sub_bf
:
NATURAL
:
=
488
;
CONSTANT
c_sdp_f_adc_MHz
:
NATURAL
:
=
200
;
CONSTANT
c_sdp_T_adc
:
TIME
:
=
(
10
**
6
/
c_sdp_f_adc_MHz
)
*
1
ps
;
CONSTANT
c_sdp_T_sub
:
TIME
:
=
c_sdp_N_fft
*
c_sdp_T_adc
;
CONSTANT
c_sdp_W_sub_weight
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_N_pol
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_sub
:
NATURAL
:
=
512
;
CONSTANT
c_sdp_N_fft
:
NATURAL
:
=
1024
;
CONSTANT
c_sdp_S_pn
:
NATURAL
:
=
12
;
CONSTANT
c_sdp_Q_fft
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_N_taps
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_adc
:
NATURAL
:
=
14
;
CONSTANT
c_sdp_W_fir_coef
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_subband
:
NATURAL
:
=
18
;
CONSTANT
c_sdp_P_pfb
:
NATURAL
:
=
c_sdp_S_pn
/
c_sdp_Q_fft
;
CONSTANT
c_sdp_S_sub_bf
:
NATURAL
:
=
488
;
CONSTANT
c_sdp_f_adc_MHz
:
NATURAL
:
=
200
;
CONSTANT
c_sdp_T_adc
:
TIME
:
=
(
10
**
6
/
c_sdp_f_adc_MHz
)
*
1
ps
;
CONSTANT
c_sdp_T_sub
:
TIME
:
=
c_sdp_N_fft
*
c_sdp_T_adc
;
CONSTANT
c_sdp_W_sub_weight
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_sub_magnitude
:
NATURAL
:
=
2
;
CONSTANT
c_sdp_W_sub_fraction
:
NATURAL
:
=
c_sdp_W_sub_weight
-
c_sdp_W_sub_magnitude
-1
;
CONSTANT
c_sdp_W_bf_weight
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_bf_magnitude
:
NATURAL
:
=
1
;
CONSTANT
c_sdp_W_bf_fraction
:
NATURAL
:
=
c_sdp_W_bf_weight
-
c_sdp_W_bf_magnitude
-1
;
CONSTANT
c_sdp_W_bf_product
:
NATURAL
:
=
c_sdp_W_subband
+
c_sdp_W_bf_weight
-1
;
CONSTANT
c_sdp_W_beamlet_sum
:
NATURAL
:
=
18
;
CONSTANT
c_sdp_W_sub_fraction
:
NATURAL
:
=
c_sdp_W_sub_weight
-
c_sdp_W_sub_magnitude
-1
;
CONSTANT
c_sdp_W_bf_weight
:
NATURAL
:
=
16
;
CONSTANT
c_sdp_W_bf_magnitude
:
NATURAL
:
=
1
;
CONSTANT
c_sdp_W_bf_fraction
:
NATURAL
:
=
c_sdp_W_bf_weight
-
c_sdp_W_bf_magnitude
-1
;
CONSTANT
c_sdp_W_bf_product
:
NATURAL
:
=
c_sdp_W_subband
+
c_sdp_W_bf_weight
-1
;
CONSTANT
c_sdp_W_beamlet_sum
:
NATURAL
:
=
18
;
CONSTANT
c_sdp_W_beamlet
:
NATURAL
:
=
8
;
-- AIT constants
CONSTANT
c_sdp_ait_buf_nof_data_jesd
:
NATURAL
:
=
1024
;
-- 1024 14 bit samples fit in one M20k BRAM
CONSTANT
c_sdp_ait_buf_nof_data_bsn
:
NATURAL
:
=
1024
;
-- 1024 14 bit samples fit in one M20k BRAM
...
...
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