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
f17dbbb3
Commit
f17dbbb3
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added g_symbol_w support.
parent
9ff51058
No related branches found
No related tags found
1 merge request
!190
Resolve L2SDP-210
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_offload_rx.vhd
+5
-3
5 additions, 3 deletions
libraries/base/dp/src/vhdl/dp_offload_rx.vhd
with
5 additions
and
3 deletions
libraries/base/dp/src/vhdl/dp_offload_rx.vhd
+
5
−
3
View file @
f17dbbb3
...
@@ -31,6 +31,7 @@ ENTITY dp_offload_rx IS
...
@@ -31,6 +31,7 @@ ENTITY dp_offload_rx IS
GENERIC
(
GENERIC
(
g_nof_streams
:
NATURAL
;
g_nof_streams
:
NATURAL
;
g_data_w
:
NATURAL
;
g_data_w
:
NATURAL
;
g_symbol_w
:
NATURAL
:
=
0
;
-- default 0 yields g_symbol_w = g_data_w
g_hdr_field_arr
:
t_common_field_arr
;
g_hdr_field_arr
:
t_common_field_arr
;
g_remove_crc
:
BOOLEAN
:
=
FALSE
;
g_remove_crc
:
BOOLEAN
:
=
FALSE
;
g_crc_nof_words
:
NATURAL
:
=
0
g_crc_nof_words
:
NATURAL
:
=
0
...
@@ -59,7 +60,8 @@ END dp_offload_rx;
...
@@ -59,7 +60,8 @@ END dp_offload_rx;
ARCHITECTURE
str
OF
dp_offload_rx
IS
ARCHITECTURE
str
OF
dp_offload_rx
IS
CONSTANT
c_nof_header_words
:
NATURAL
:
=
field_slv_len
(
g_hdr_field_arr
)
/
g_data_w
;
CONSTANT
c_symbol_w
:
NATURAL
:
=
sel_a_b
(
g_symbol_w
=
0
,
g_data_w
,
g_symbol_w
);
CONSTANT
c_nof_header_symbols
:
NATURAL
:
=
field_slv_len
(
g_hdr_field_arr
)
/
c_symbol_w
;
CONSTANT
c_field_sel
:
STD_LOGIC_VECTOR
(
g_hdr_field_arr
'RANGE
)
:
=
(
OTHERS
=>
'0'
);
-- Not used in sink mode but requires set range
CONSTANT
c_field_sel
:
STD_LOGIC_VECTOR
(
g_hdr_field_arr
'RANGE
)
:
=
(
OTHERS
=>
'0'
);
-- Not used in sink mode but requires set range
...
@@ -92,8 +94,8 @@ BEGIN
...
@@ -92,8 +94,8 @@ BEGIN
u_dp_split
:
ENTITY
work
.
dp_split
u_dp_split
:
ENTITY
work
.
dp_split
GENERIC
MAP
(
GENERIC
MAP
(
g_data_w
=>
g_data_w
,
g_data_w
=>
g_data_w
,
g_symbol_w
=>
g_data
_w
,
g_symbol_w
=>
c_symbol
_w
,
g_nof_symbols
=>
c_nof_header_
word
s
g_nof_symbols
=>
c_nof_header_
symbol
s
)
)
PORT
MAP
(
PORT
MAP
(
rst
=>
dp_rst
,
rst
=>
dp_rst
,
...
...
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