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
a05ea2b9
Commit
a05ea2b9
authored
4 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
Processed review comments
parent
d60e6462
No related branches found
No related tags found
2 merge requests
!100
Removed text for XSub that is now written in Confluence Subband correlator...
,
!61
Resolve L2SDP-174 & L2SDP-173
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/designs/lofar2_unb2b_beamformer/tb/vhdl/tb_lofar2_unb2b_beamformer.vhd
+22
-11
22 additions, 11 deletions
...2_unb2b_beamformer/tb/vhdl/tb_lofar2_unb2b_beamformer.vhd
with
22 additions
and
11 deletions
applications/lofar2/designs/lofar2_unb2b_beamformer/tb/vhdl/tb_lofar2_unb2b_beamformer.vhd
+
22
−
11
View file @
a05ea2b9
...
...
@@ -152,9 +152,11 @@ ARCHITECTURE tb OF tb_lofar2_unb2b_beamformer IS
-- 10GbE
CONSTANT
c_exp_beamlet_index
:
NATURAL
:
=
NATURAL
(
c_subband_sp_0
)
*
c_sdp_N_pol
;
CONSTANT
c_exp_beamlet
:
STD_LOGIC_VECTOR
(
15
DOWNTO
0
)
:
=
x"7F81"
;
--Derived from simulation
CONSTANT
c_exp_beamlet_re
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
)
:
=
x"81"
;
--Derived from simulation
CONSTANT
c_exp_beamlet_im
:
STD_LOGIC_VECTOR
(
7
DOWNTO
0
)
:
=
x"7F"
;
--Derived from simulation
SIGNAL
beamlet_arr2
:
t_slv_16_arr
(
c_sdp_cep_nof_beamlets_per_block
-1
DOWNTO
0
);
SIGNAL
beamlet_arr2_re
:
t_slv_8_arr
(
c_sdp_cep_nof_beamlets_per_block
-1
DOWNTO
0
);
SIGNAL
beamlet_arr2_im
:
t_slv_8_arr
(
c_sdp_cep_nof_beamlets_per_block
-1
DOWNTO
0
);
SIGNAL
tr_10GbE_src_out
:
t_dp_sosi
;
SIGNAL
tr_ref_clk_312
:
STD_LOGIC
:
=
'0'
;
...
...
@@ -462,21 +464,29 @@ BEGIN
END
LOOP
;
-- First word contains 3 beamlets + 1 header part
beamlet_arr2
(
0
)
<=
tr_10GbE_src_out
.
data
(
15
DOWNTO
0
);
beamlet_arr2
(
1
)
<=
tr_10GbE_src_out
.
data
(
31
DOWNTO
16
);
beamlet_arr2
(
2
)
<=
tr_10GbE_src_out
.
data
(
47
DOWNTO
32
);
beamlet_arr2_re
(
0
)
<=
tr_10GbE_src_out
.
data
(
7
DOWNTO
0
);
beamlet_arr2_im
(
0
)
<=
tr_10GbE_src_out
.
data
(
15
DOWNTO
8
);
beamlet_arr2_re
(
1
)
<=
tr_10GbE_src_out
.
data
(
23
DOWNTO
16
);
beamlet_arr2_im
(
1
)
<=
tr_10GbE_src_out
.
data
(
31
DOWNTO
24
);
beamlet_arr2_re
(
2
)
<=
tr_10GbE_src_out
.
data
(
39
DOWNTO
32
);
beamlet_arr2_im
(
2
)
<=
tr_10GbE_src_out
.
data
(
47
DOWNTO
40
);
proc_common_wait_until_high
(
ext_clk
,
tr_10GbE_src_out
.
valid
);
proc_common_wait_some_cycles
(
ext_clk
,
1
);
FOR
I
IN
1
TO
(
c_sdp_cep_nof_beamlets_per_block
/
4
)
-1
LOOP
beamlet_arr2
(
I
*
4
-1
)
<=
tr_10GbE_src_out
.
data
(
15
DOWNTO
0
);
beamlet_arr2
(
I
*
4
+
0
)
<=
tr_10GbE_src_out
.
data
(
31
DOWNTO
16
);
beamlet_arr2
(
I
*
4
+
1
)
<=
tr_10GbE_src_out
.
data
(
47
DOWNTO
32
);
beamlet_arr2
(
I
*
4
+
2
)
<=
tr_10GbE_src_out
.
data
(
63
DOWNTO
48
);
beamlet_arr2_re
(
I
*
4
-1
)
<=
tr_10GbE_src_out
.
data
(
7
DOWNTO
0
);
beamlet_arr2_im
(
I
*
4
-1
)
<=
tr_10GbE_src_out
.
data
(
15
DOWNTO
8
);
beamlet_arr2_re
(
I
*
4
+
0
)
<=
tr_10GbE_src_out
.
data
(
23
DOWNTO
16
);
beamlet_arr2_im
(
I
*
4
+
0
)
<=
tr_10GbE_src_out
.
data
(
31
DOWNTO
24
);
beamlet_arr2_re
(
I
*
4
+
1
)
<=
tr_10GbE_src_out
.
data
(
39
DOWNTO
32
);
beamlet_arr2_im
(
I
*
4
+
1
)
<=
tr_10GbE_src_out
.
data
(
47
DOWNTO
40
);
beamlet_arr2_re
(
I
*
4
+
2
)
<=
tr_10GbE_src_out
.
data
(
55
DOWNTO
48
);
beamlet_arr2_im
(
I
*
4
+
2
)
<=
tr_10GbE_src_out
.
data
(
63
DOWNTO
56
);
proc_common_wait_until_high
(
ext_clk
,
tr_10GbE_src_out
.
valid
);
proc_common_wait_some_cycles
(
ext_clk
,
1
);
END
LOOP
;
beamlet_arr2
(
c_sdp_cep_nof_beamlets_per_block
-1
)
<=
tr_10GbE_src_out
.
data
(
63
DOWNTO
48
);
beamlet_arr2_re
(
c_sdp_cep_nof_beamlets_per_block
-1
)
<=
tr_10GbE_src_out
.
data
(
55
DOWNTO
48
);
beamlet_arr2_im
(
c_sdp_cep_nof_beamlets_per_block
-1
)
<=
tr_10GbE_src_out
.
data
(
63
DOWNTO
56
);
---------------------------------------------------------------------------
-- Verify subband statistics
...
...
@@ -522,7 +532,8 @@ BEGIN
---------------------------------------------------------------------------
-- Verify 10GbE UDP offload
---------------------------------------------------------------------------
ASSERT
beamlet_arr2
(
c_exp_beamlet_index
)
=
c_exp_beamlet
REPORT
"Wrong 10GbE output"
SEVERITY
ERROR
;
ASSERT
beamlet_arr2_re
(
c_exp_beamlet_index
)
=
c_exp_beamlet_re
REPORT
"Wrong 10GbE output (re)"
SEVERITY
ERROR
;
ASSERT
beamlet_arr2_im
(
c_exp_beamlet_index
)
=
c_exp_beamlet_im
REPORT
"Wrong 10GbE output (im)"
SEVERITY
ERROR
;
---------------------------------------------------------------------------
-- End Simulation
...
...
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