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
1716d488
Commit
1716d488
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Add merged payload error bit support in design and in tb.
parent
e4ea44b8
No related branches found
No related tags found
1 merge request
!336
Resolve L2SDP-958
Pipeline
#55470
passed
1 year ago
Stage: linting
Changes
1
Pipelines
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_ring/tb_lofar2_unb2c_sdp_station_bf_ring.vhd
+31
-4
31 additions, 4 deletions
...p_station_bf_ring/tb_lofar2_unb2c_sdp_station_bf_ring.vhd
with
31 additions
and
4 deletions
applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf_ring/tb_lofar2_unb2c_sdp_station_bf_ring.vhd
+
31
−
4
View file @
1716d488
...
@@ -105,6 +105,9 @@
...
@@ -105,6 +105,9 @@
-- * The c_wg_phase_offset and c_subband_phase_offset are used to tune the WG
-- * The c_wg_phase_offset and c_subband_phase_offset are used to tune the WG
-- phase reference to 0.0 degrees at the start (sop)
-- phase reference to 0.0 degrees at the start (sop)
-- * 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]
-- * 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
-- can be verified here.
--
--
-- Usage:
-- Usage:
-- > as 7 # default
-- > as 7 # default
...
@@ -1372,15 +1375,39 @@ begin
...
@@ -1372,15 +1375,39 @@ begin
rx_sdp_cep_header
<=
func_sdp_map_cep_header
(
rx_hdr_fields_raw
);
rx_sdp_cep_header
<=
func_sdp_map_cep_header
(
rx_hdr_fields_raw
);
p_verify_cep_header
:
process
p_verify_cep_header
:
process
variable
v_bool
:
boolean
;
variable
v_pkt_cnt
:
natural
;
variable
v_new_pkt
:
boolean
;
variable
v_error
:
std_logic
:
=
'0'
;
variable
v_bsn
:
natural
:
=
0
;
variable
v_bool
:
boolean
;
begin
begin
wait
until
rising_edge
(
ext_clk
);
wait
until
rising_edge
(
ext_clk
);
-- Count packets per beamset
v_pkt_cnt
:
=
rx_beamlet_sop_cnt
/
c_sdp_N_beamsets
;
v_new_pkt
:
=
rx_beamlet_sop_cnt
mod
c_sdp_N_beamsets
=
0
;
-- Prepare exp_sdp_cep_header at sop, so that it can be verified at eop
-- Prepare exp_sdp_cep_header at sop, so that it can be verified at eop
if
rx_beamlet_sosi
.
sop
=
'1'
then
if
rx_beamlet_sosi
.
sop
=
'1'
then
-- Expected BSN increments by c_sdp_cep_nof_blocks_per_packet = 4 blocks per packet
-- Expected BSN increments by c_sdp_cep_nof_blocks_per_packet = 4 blocks per packet,
if
rx_beamlet_sop_cnt
mod
c_sdp_N_beamsets
=
0
then
-- both beamsets are outputting packets.
exp_dp_bsn
<=
c_init_bsn
+
(
rx_beamlet_sop_cnt
/
c_sdp_N_beamsets
)
*
c_sdp_cep_nof_blocks_per_packet
;
if
v_new_pkt
then
-- Default expected
v_error
:
=
'0'
;
v_bsn
:
=
c_init_bsn
+
v_pkt_cnt
*
c_sdp_cep_nof_blocks_per_packet
;
-- Expected due to bsn and payload_error stimuli in sdp_beamformer_output.vhd.
if
v_pkt_cnt
=
1
then
v_error
:
=
'1'
;
elsif
v_pkt_cnt
=
2
or
v_pkt_cnt
=
3
then
v_bsn
:
=
v_bsn
+
1
;
elsif
v_pkt_cnt
=
4
then
v_bsn
:
=
v_bsn
+
1
;
v_error
:
=
'1'
;
end
if
;
-- Apply expected values
exp_payload_error
<=
v_error
;
exp_dp_bsn
<=
v_bsn
;
end
if
;
end
if
;
end
if
;
end
if
;
...
...
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