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
Commits
354275f6
Commit
354275f6
authored
1 year ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Improve use of u_dp_fifo_fill_eop.
parent
65642566
No related branches found
Branches containing commit
No related tags found
1 merge request
!389
Resolve L2SDP-1013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar2/libraries/sdp/src/vhdl/sdp_crosslets_remote.vhd
+21
-11
21 additions, 11 deletions
...ns/lofar2/libraries/sdp/src/vhdl/sdp_crosslets_remote.vhd
with
21 additions
and
11 deletions
applications/lofar2/libraries/sdp/src/vhdl/sdp_crosslets_remote.vhd
+
21
−
11
View file @
354275f6
...
@@ -66,9 +66,19 @@ entity sdp_crosslets_remote is
...
@@ -66,9 +66,19 @@ entity sdp_crosslets_remote is
end
sdp_crosslets_remote
;
end
sdp_crosslets_remote
;
architecture
str
of
sdp_crosslets_remote
is
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
:
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_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_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
-- 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
-- on the remote input of the mux probably have enough gap time in between. Just
...
@@ -125,7 +135,7 @@ begin
...
@@ -125,7 +135,7 @@ begin
g_bsn_w
=>
c_dp_stream_bsn_w
,
g_bsn_w
=>
c_dp_stream_bsn_w
,
g_data_w
=>
c_longword_w
,
g_data_w
=>
c_longword_w
,
g_channel_w
=>
c_word_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
)
g_fifo_size
=>
array_init
(
c_mux_fifo_size
,
2
)
)
)
port
map
(
port
map
(
...
@@ -140,18 +150,18 @@ begin
...
@@ -140,18 +150,18 @@ begin
to_ri_sosi
<=
ring_mux_sosi
;
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
u_dp_fifo_fill_eop
:
entity
dp_lib
.
dp_fifo_fill_eop
generic
map
(
generic
map
(
g_data_w
=>
c_longword_w
,
g_data_w
=>
c_longword_w
,
g_bsn_w
=>
c_dp_stream_bsn_w
,
g_bsn_w
=>
c_dp_stream_bsn_w
,
g_empty_w
=>
c_dp_stream_empty_w
,
g_empty_w
=>
c_empty_w
,
g_channel_w
=>
c_dp_stream_channel_w
,
g_channel_w
=>
c_channel_w
,
g_error_w
=>
c_dp_stream_error_w
,
g_use_bsn
=>
true
,
g_use_bsn
=>
true
,
g_use_empty
=>
true
,
g_use_empty
=>
c_use_empty
,
g_use_channel
=>
true
,
g_use_channel
=>
c_use_channel
,
g_use_error
=>
true
,
g_use_error
=>
c_use_error
,
g_use_sync
=>
true
,
g_use_sync
=>
true
,
g_fifo_fill
=>
c_block_size_longwords
,
g_fifo_fill
=>
c_block_size_longwords
,
g_fifo_size
=>
c_fifo_fill_size
g_fifo_size
=>
c_fifo_fill_size
...
...
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