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
29349b42
Commit
29349b42
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Use g_beamlet = 137
parent
749aa377
No related branches found
No related tags found
1 merge request
!348
Use use_bdo_transpose = true in c_bf revision. Test use_bdo_transpose = false...
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
+10
-5
10 additions, 5 deletions
...2_unb2c_sdp_station_bf/tb_lofar2_unb2c_sdp_station_bf.vhd
with
10 additions
and
5 deletions
applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_lofar2_unb2c_sdp_station_bf.vhd
+
10
−
5
View file @
29349b42
...
@@ -107,10 +107,15 @@
...
@@ -107,10 +107,15 @@
-- * Use g_beamlet_scale = 2**10, for full scale WG and N_ant = 1, see [1]
-- * Use g_beamlet_scale = 2**10, for full scale WG and N_ant = 1, see [1]
-- * Using g_beamlet = c_sdp_S_sub_bf-1 = 487 puts g_subband = 102 at the last
-- * Using g_beamlet = c_sdp_S_sub_bf-1 = 487 puts g_subband = 102 at the last
-- beamlet in the beamset, so at index 974,975 of rx_beamlet_list_re/im.
-- beamlet in the beamset, so at index 974,975 of rx_beamlet_list_re/im.
-- * Try g_beamlet somewhere random in range 0:c_sdp_S_sub_bf-1 = 0:487 to
-- verify that the beamlet output reorder works at that position in the
-- beamlets block. E.g. use some prime number, like g_beamlet = 137.
-- * Default beamlet 102 also contains g_subband = 102. On HW the BF weights
-- * Default beamlet 102 also contains g_subband = 102. On HW the BF weights
-- are default 0, but in sim the BF weights in node_sdp_beamformer.vhd
-- are default 0, but in sim the BF weights in node_sdp_beamformer.vhd
-- are default unit weights. Therefore also write the BF weight for default
-- are default unit weights. Therefore also write the BF weight for default
-- beamlet 102 to define it value, in case g_beamlet /= 102.
-- beamlet 102 to define it value, in case g_beamlet /= 102. In this tb
-- the BF weigth for beamlet = g_subband = 102 is set to 0, so that the
-- g_subband = 102 will only show up in g_beamlet.
-- * A simulation only section in sdp_beamformer_output.vhd disturbs the BSN,
-- * A simulation only section in sdp_beamformer_output.vhd disturbs the BSN,
-- to cause a merged payload error, so that sdp_source_info_payload_error
-- to cause a merged payload error, so that sdp_source_info_payload_error
-- can be verified here.
-- can be verified here.
...
@@ -165,7 +170,7 @@ entity tb_lofar2_unb2c_sdp_station_bf is
...
@@ -165,7 +170,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_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_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_subband
:
natural
:
=
102
;
-- select g_subband at index 102 = 102/1024 * 200MHz = 19.921875 MHz
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
:
natural
:
=
137
;
-- 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_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_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
g_bf_y_gain
:
real
:
=
0
.
6
;
-- g_beamlet Y BF weight normalized gain for g_sp
...
@@ -1355,8 +1360,8 @@ begin
...
@@ -1355,8 +1360,8 @@ begin
rx_beamlet_valid
<=
'0'
;
rx_beamlet_valid
<=
'0'
;
-- Wait until start of a beamlet packet
-- Wait until start of a beamlet packet
proc_common_wait_until_high
(
ext_clk
,
rx_beamlet_sosi
.
sop
);
proc_common_wait_until_high
(
ext_clk
,
rx_beamlet_sosi
.
sop
);
-- c_sdp_
cep_
nof_beamlets_per_longword = 2 dual pol beamlets (= XY, XY) per 64b data word
-- c_sdp_nof_beamlets_per_longword = 2 dual pol beamlets (= XY, XY) per 64b data word
for
I
in
0
to
(
c_sdp_cep_nof_beamlets_per_packet
/
c_sdp_
cep_
nof_beamlets_per_longword
)
-
1
loop
for
I
in
0
to
(
c_sdp_cep_nof_beamlets_per_packet
/
c_sdp_nof_beamlets_per_longword
)
-
1
loop
proc_common_wait_until_high
(
ext_clk
,
rx_beamlet_sosi
.
valid
);
proc_common_wait_until_high
(
ext_clk
,
rx_beamlet_sosi
.
valid
);
rx_beamlet_valid
<=
'1'
;
rx_beamlet_valid
<=
'1'
;
-- Capture rx beamlets per longword in rx_beamlet_arr, for time series view in Wave window
-- Capture rx beamlets per longword in rx_beamlet_arr, for time series view in Wave window
...
@@ -1383,7 +1388,7 @@ begin
...
@@ -1383,7 +1388,7 @@ begin
-- contains no WAIT statement.
-- contains no WAIT statement.
wait
until
rising_edge
(
ext_clk
);
wait
until
rising_edge
(
ext_clk
);
rx_beamlet_valid
<=
'0'
;
rx_beamlet_valid
<=
'0'
;
rx_beamlet_cnt
<=
(
rx_beamlet_cnt
+
c_sdp_
cep_
nof_beamlets_per_longword
)
mod
c_sdp_cep_nof_beamlets_per_block
;
-- 4 blocks/packet
rx_beamlet_cnt
<=
(
rx_beamlet_cnt
+
c_sdp_nof_beamlets_per_longword
)
mod
c_sdp_cep_nof_beamlets_per_block
;
-- 4 blocks/packet
end
loop
;
end
loop
;
end
process
;
end
process
;
...
...
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