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
8975cb58
Commit
8975cb58
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Enable BST offload. Select last g_beamlet, to check that it is covered.
parent
70caace2
No related branches found
Branches containing commit
No related tags found
1 merge request
!254
Corrected c_block_size_w, by using +1 to ensure that g_block_size that is...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_lofar2_unb2c_sdp_station_bf.vhd
+14
-5
14 additions, 5 deletions
...2_unb2c_sdp_station_bf/tb_lofar2_unb2c_sdp_station_bf.vhd
with
14 additions
and
5 deletions
applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_lofar2_unb2c_sdp_station_bf.vhd
+
14
−
5
View file @
8975cb58
...
...
@@ -146,7 +146,7 @@ ENTITY tb_lofar2_unb2c_sdp_station_bf IS
g_sp_remnant_ampl
:
REAL
:
=
0
.
1
;
-- WG normalized amplitude for remnant sp
g_sp_remnant_phase
:
REAL
:
=
15
.
0
;
-- WG phase in degrees for remnant sp
g_subband
:
NATURAL
:
=
102
;
-- select g_subband at index 102 = 102/1024 * 200MHz = 19.921875 MHz
g_beamlet
:
NATURAL
:
=
1
0
;
-- map g_subband to g_beamlet index in beamset in range(c_sdp_S_sub_bf = 488)
g_beamlet
:
NATURAL
:
=
c_sdp_S_sub_bf
-
1
;
-- map g_subband to g_beamlet index in beamset in range(c_sdp_S_sub_bf = 488)
g_beamlet_scale
:
REAL
:
=
1
.
0
/
2
.
0
**
9
;
-- g_beamlet output scale factor
g_bf_x_gain
:
REAL
:
=
0
.
7
;
-- g_beamlet X BF weight normalized gain for g_sp
g_bf_y_gain
:
REAL
:
=
0
.
6
;
-- g_beamlet Y BF weight normalized gain for g_sp
...
...
@@ -156,8 +156,8 @@ ENTITY tb_lofar2_unb2c_sdp_station_bf IS
g_bf_remnant_y_gain
:
REAL
:
=
0
.
04
;
-- g_beamlet Y BF weight normalized gain for remnant sp
g_bf_remnant_x_phase
:
REAL
:
=
170
.
0
;
-- g_beamlet X BF weight phase rotation in degrees for g_sp
g_bf_remnant_y_phase
:
REAL
:
=
-135
.
0
;
-- g_beamlet Y BF weight phase rotation in degrees for g_sp
g_read_all_SST
:
BOOLEAN
:
=
FALS
E
;
-- when FALSE only read SST for g_subband, to save sim time
g_read_all_BST
:
BOOLEAN
:
=
FALS
E
-- when FALSE only read BST for g_beamlet, to save sim time
g_read_all_SST
:
BOOLEAN
:
=
TRU
E
;
-- when FALSE only read SST for g_subband, to save sim time
g_read_all_BST
:
BOOLEAN
:
=
TRU
E
-- when FALSE only read BST for g_beamlet, to save sim time
);
END
tb_lofar2_unb2c_sdp_station_bf
;
...
...
@@ -333,6 +333,7 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_bf IS
CONSTANT
c_addr_w_ram_bf_weights
:
NATURAL
:
=
ceil_log2
(
c_sdp_N_pol_bf
*
c_sdp_P_pfb
*
c_sdp_S_sub_bf
*
c_sdp_Q_fft
);
CONSTANT
c_addr_w_reg_bf_scale
:
NATURAL
:
=
1
;
CONSTANT
c_addr_w_reg_hdr_dat
:
NATURAL
:
=
ceil_log2
(
field_nof_words
(
c_sdp_cep_hdr_field_arr
,
c_word_w
));
CONSTANT
c_addr_w_reg_stat_enable_bst
:
NATURAL
:
=
c_sdp_reg_stat_enable_addr_w
;
CONSTANT
c_addr_w_reg_dp_xonoff
:
NATURAL
:
=
1
;
CONSTANT
c_addr_w_ram_st_bst
:
NATURAL
:
=
ceil_log2
(
c_sdp_S_sub_bf
*
c_sdp_N_pol_bf
*
c_stat_data_sz
);
-- . Address spans of a single MM instance
...
...
@@ -343,6 +344,7 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_bf IS
CONSTANT
c_mm_span_ram_bf_weights
:
NATURAL
:
=
2
**
c_addr_w_ram_bf_weights
;
CONSTANT
c_mm_span_reg_bf_scale
:
NATURAL
:
=
2
**
c_addr_w_reg_bf_scale
;
CONSTANT
c_mm_span_reg_hdr_dat
:
NATURAL
:
=
2
**
c_addr_w_reg_hdr_dat
;
CONSTANT
c_mm_span_reg_stat_enable_bst
:
NATURAL
:
=
2
**
c_addr_w_reg_stat_enable_bst
;
CONSTANT
c_mm_span_reg_dp_xonoff
:
NATURAL
:
=
2
**
c_addr_w_reg_dp_xonoff
;
CONSTANT
c_mm_span_ram_st_bst
:
NATURAL
:
=
2
**
c_addr_w_ram_st_bst
;
...
...
@@ -354,7 +356,8 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_bf IS
CONSTANT
c_mm_file_reg_dp_selector
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_DP_SELECTOR"
;
CONSTANT
c_mm_file_ram_st_sst
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"RAM_ST_SST"
;
CONSTANT
c_mm_file_ram_st_bst
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"RAM_ST_BST"
;
CONSTANT
c_mm_file_reg_dp_xonoff
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_DP_XONOFF"
;
CONSTANT
c_mm_file_reg_stat_enable_bst
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_STAT_ENABLE_BST"
;
-- BST offload enable
CONSTANT
c_mm_file_reg_dp_xonoff
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_DP_XONOFF"
;
-- beamlet output enable
CONSTANT
c_mm_file_ram_ss_ss_wide
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"RAM_SS_SS_WIDE"
;
CONSTANT
c_mm_file_ram_bf_weights
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"RAM_BF_WEIGHTS"
;
CONSTANT
c_mm_file_reg_bf_scale
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_BF_SCALE"
;
...
...
@@ -779,7 +782,13 @@ BEGIN
ASSERT
rd_cep_udp_dst_port
=
c_sdp_cep_udp_dst_port
REPORT
"Wrong MM read rd_cep_udp_dst_port for beamset "
&
NATURAL
'IMAGE
(
bset
)
SEVERITY
ERROR
;
-- 5000
----------------------------------------------------------------------------
-- Enable beamlet UDP offload (dp_xonoff)
-- Enable BST offload (not verified here, but only for view in Wave window)
----------------------------------------------------------------------------
v_offset
:
=
bset
*
c_mm_span_reg_stat_enable_bst
;
mmf_mm_bus_wr
(
c_mm_file_reg_stat_enable_bst
,
v_offset
+
0
,
1
,
tb_clk
);
----------------------------------------------------------------------------
-- Enable beamlet output (dp_xonoff)
----------------------------------------------------------------------------
v_offset
:
=
bset
*
c_mm_span_reg_dp_xonoff
;
mmf_mm_bus_wr
(
c_mm_file_reg_dp_xonoff
,
v_offset
+
0
,
1
,
tb_clk
);
...
...
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