Skip to content
GitLab
Explore
Sign in
Register
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
Merge requests
!389
Resolve
L2SDP-1013
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
L2SDP-1013
L2SDP-1013
into
master
Overview
0
Commits
30
Pipelines
1
Changes
1
Merged
Eric Kooistra
requested to merge
L2SDP-1013
into
master
1 year ago
Overview
0
Commits
30
Pipelines
1
Changes
1
Expand
Closes
L2SDP-1013
0
0
Merge request reports
Viewing commit
354275f6
Prev
Next
Show latest version
1 file
+
21
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
354275f6
Improve use of u_dp_fifo_fill_eop.
· 354275f6
Eric Kooistra
authored
1 year ago
applications/lofar2/libraries/sdp/src/vhdl/sdp_crosslets_remote.vhd
+
21
−
11
Options
@@ -66,9 +66,19 @@ entity sdp_crosslets_remote is
end
sdp_crosslets_remote
;
architecture
str
of
sdp_crosslets_remote
is
constant
c_block_size
:
natural
:
=
c_sdp_N_crosslets_max
*
c_sdp_S_pn
;
constant
c_block_size_longwords
:
natural
:
=
ceil_div
(
c_block_size
,
2
);
-- 32b -> 64b
constant
c_data_w
:
natural
:
=
c_sdp_W_crosslet
*
c_nof_complex
;
constant
c_block_size
:
natural
:
=
c_sdp_N_crosslets_max
*
c_sdp_S_pn
;
constant
c_block_size_longwords
:
natural
:
=
ceil_div
(
c_block_size
,
2
);
-- 32b -> 64b
constant
c_data_w
:
natural
:
=
c_sdp_W_crosslet
*
c_nof_complex
;
-- The channel field carries the index of time multiplexed crosslet packets
constant
c_use_channel
:
boolean
:
=
true
;
constant
c_channel_w
:
natural
:
=
ceil_log2
(
g_P_sq
);
-- With 32b data repacked in 64b one empty bit is enough. For crosslets the number
-- of 32b words is c_block_size is even, so empty will be 0 always. However do
-- support odd sizes, to be save.
constant
c_use_empty
:
boolean
:
=
true
;
constant
c_empty_w
:
natural
:
=
1
;
-- The from_ri_sosi only carries correct packets, so error field is not used.
constant
c_use_error
:
boolean
:
=
false
;
-- The size for 1 block is probably already enough as the number of blocks received
-- on the remote input of the mux probably have enough gap time in between. Just
@@ -125,7 +135,7 @@ begin
g_bsn_w
=>
c_dp_stream_bsn_w
,
g_data_w
=>
c_longword_w
,
g_channel_w
=>
c_word_w
,
g_use_error
=>
false
,
g_use_error
=>
c_use_error
,
g_fifo_size
=>
array_init
(
c_mux_fifo_size
,
2
)
)
port
map
(
@@ -140,18 +150,18 @@ begin
to_ri_sosi
<=
ring_mux_sosi
;
-- fill fifo to remove gaps
-- fill fifo to remove valid gaps that occur due to repack 32b/64b in local_sosi,
-- the from_ri_sosi has no valid gaps during block.
u_dp_fifo_fill_eop
:
entity
dp_lib
.
dp_fifo_fill_eop
generic
map
(
g_data_w
=>
c_longword_w
,
g_bsn_w
=>
c_dp_stream_bsn_w
,
g_empty_w
=>
c_dp_stream_empty_w
,
g_channel_w
=>
c_dp_stream_channel_w
,
g_error_w
=>
c_dp_stream_error_w
,
g_empty_w
=>
c_empty_w
,
g_channel_w
=>
c_channel_w
,
g_use_bsn
=>
true
,
g_use_empty
=>
true
,
g_use_channel
=>
true
,
g_use_error
=>
true
,
g_use_empty
=>
c_use_empty
,
g_use_channel
=>
c_use_channel
,
g_use_error
=>
c_use_error
,
g_use_sync
=>
true
,
g_fifo_fill
=>
c_block_size_longwords
,
g_fifo_size
=>
c_fifo_fill_size
Loading