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
32192a93
Commit
32192a93
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Correct c_eth_runtime_timeout to account for skipped first new_interval.
parent
59b9fb96
No related branches found
No related tags found
No related merge requests found
Pipeline
#37080
passed
2 years ago
Stage: simulation
Stage: synthesis
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_fsub/tb_lofar2_unb2c_sdp_station_fsub_sst_offload.vhd
+6
-4
6 additions, 4 deletions
...ion_fsub/tb_lofar2_unb2c_sdp_station_fsub_sst_offload.vhd
with
6 additions
and
4 deletions
applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_fsub/tb_lofar2_unb2c_sdp_station_fsub_sst_offload.vhd
+
6
−
4
View file @
32192a93
...
@@ -74,7 +74,7 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_fsub_sst_offload IS
...
@@ -74,7 +74,7 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_fsub_sst_offload IS
CONSTANT
c_nof_clk_per_sync
:
NATURAL
:
=
c_nof_block_per_sync
*
c_sdp_N_fft
;
CONSTANT
c_nof_clk_per_sync
:
NATURAL
:
=
c_nof_block_per_sync
*
c_sdp_N_fft
;
CONSTANT
c_pps_period
:
NATURAL
:
=
c_nof_clk_per_sync
;
CONSTANT
c_pps_period
:
NATURAL
:
=
c_nof_clk_per_sync
;
CONSTANT
c_wpfb_sim
:
t_wpfb
:
=
func_wpfb_set_nof_block_per_sync
(
c_sdp_wpfb_subbands
,
c_nof_block_per_sync
);
CONSTANT
c_wpfb_sim
:
t_wpfb
:
=
func_wpfb_set_nof_block_per_sync
(
c_sdp_wpfb_subbands
,
c_nof_block_per_sync
);
CONSTANT
c_nof_sync
:
NATURAL
:
=
2
;
CONSTANT
c_nof_sync
:
NATURAL
:
=
1
;
-- MM
-- MM
CONSTANT
c_mm_file_reg_bsn_source_v2
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_BSN_SOURCE_V2"
;
CONSTANT
c_mm_file_reg_bsn_source_v2
:
STRING
:
=
mmf_unb_file_prefix
(
c_unb_nr
,
c_node_nr
)
&
"REG_BSN_SOURCE_V2"
;
...
@@ -88,13 +88,15 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_fsub_sst_offload IS
...
@@ -88,13 +88,15 @@ ARCHITECTURE tb OF tb_lofar2_unb2c_sdp_station_fsub_sst_offload IS
SIGNAL
eth_done
:
STD_LOGIC
:
=
'0'
;
SIGNAL
eth_done
:
STD_LOGIC
:
=
'0'
;
-- . 1GbE output
-- . 1GbE output
CONSTANT
c_eth_check_nof_packets
:
NATURAL
:
=
c_nof_sync
*
c_sdp_S_pn
;
CONSTANT
c_eth_check_nof_packets
:
NATURAL
:
=
c_nof_sync
*
c_sdp_S_pn
;
-- S_pn = 12 received packets per sync interval
CONSTANT
c_eth_header_size
:
NATURAL
:
=
19
;
-- words
CONSTANT
c_eth_header_size
:
NATURAL
:
=
19
;
-- words
CONSTANT
c_eth_crc_size
:
NATURAL
:
=
1
;
-- word
CONSTANT
c_eth_crc_size
:
NATURAL
:
=
1
;
-- word
CONSTANT
c_eth_packet_size
:
NATURAL
:
=
c_eth_header_size
+
c_eth_crc_size
+
c_sdp_N_sub
*
(
c_sdp_W_statistic
/
c_word_w
);
-- 20 + 512 * 2 = 1044
CONSTANT
c_eth_packet_size
:
NATURAL
:
=
c_eth_header_size
+
c_eth_crc_size
+
c_sdp_N_sub
*
(
c_sdp_W_statistic
/
c_word_w
);
-- 20 + 512 * 2 = 1044
CONSTANT
c_eth_check_nof_valid
:
NATURAL
:
=
c_eth_check_nof_packets
*
c_eth_packet_size
;
CONSTANT
c_eth_check_nof_valid
:
NATURAL
:
=
c_eth_check_nof_packets
*
c_eth_packet_size
;
CONSTANT
c_eth_runtime_timeout
:
TIME
:
=
(
c_nof_sync
+
1
)
*
c_nof_clk_per_sync
*
c_ext_clk_period
;
-- eth statistics should be done after c_nof_sync intervals
-- eth statistics should be done after c_nof_sync + 1 intervals (+1 because first new_interval is skipped)
CONSTANT
c_eth_runtime_timeout
:
TIME
:
=
(
c_nof_sync
+
2
)
*
c_nof_clk_per_sync
*
c_ext_clk_period
;
-- DUT
-- DUT
SIGNAL
ext_clk
:
STD_LOGIC
:
=
'0'
;
SIGNAL
ext_clk
:
STD_LOGIC
:
=
'0'
;
SIGNAL
pps
:
STD_LOGIC
:
=
'0'
;
SIGNAL
pps
:
STD_LOGIC
:
=
'0'
;
...
...
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