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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
68d01501
Commit
68d01501
authored
Aug 2, 2022
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added value comment.
parent
9aae5818
No related branches found
No related tags found
1 merge request
!269
Some clean up of sdp_station.vhd and fifo fill eop usage
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/ring/src/vhdl/ring_pkg.vhd
+2
-3
2 additions, 3 deletions
libraries/base/ring/src/vhdl/ring_pkg.vhd
with
2 additions
and
3 deletions
libraries/base/ring/src/vhdl/ring_pkg.vhd
+
2
−
3
View file @
68d01501
...
...
@@ -78,8 +78,7 @@ PACKAGE ring_pkg is
(
field_name_pad
(
"eth_src_mac"
),
"RW"
,
48
,
field_default
(
c_ring_eth_src_mac
)
),
(
field_name_pad
(
"eth_type"
),
"RW"
,
16
,
field_default
(
0
)
)
);
CONSTANT
c_ring_eth_hdr_field_size
:
NATURAL
:
=
ceil_div
(
field_slv_len
(
c_ring_eth_hdr_field_arr
),
c_longword_w
);
CONSTANT
c_ring_eth_hdr_field_size
:
NATURAL
:
=
ceil_div
(
field_slv_len
(
c_ring_eth_hdr_field_arr
),
c_longword_w
);
-- = 14/8 = 2 longwords
CONSTANT
c_ring_dp_nof_hdr_fields
:
NATURAL
:
=
6
;
CONSTANT
c_ring_dp_hdr_field_sel
:
STD_LOGIC_VECTOR
(
c_ring_dp_nof_hdr_fields
-1
DOWNTO
0
)
:
=
"000"
&
"000"
;
...
...
@@ -91,7 +90,7 @@ PACKAGE ring_pkg is
(
field_name_pad
(
"dp_sync"
),
"RW"
,
1
,
field_default
(
0
)
),
(
field_name_pad
(
"dp_bsn"
),
"RW"
,
63
,
field_default
(
0
)
)
);
CONSTANT
c_ring_dp_hdr_field_size
:
NATURAL
:
=
ceil_div
(
field_slv_len
(
c_ring_dp_hdr_field_arr
),
c_longword_w
);
CONSTANT
c_ring_dp_hdr_field_size
:
NATURAL
:
=
ceil_div
(
field_slv_len
(
c_ring_dp_hdr_field_arr
),
c_longword_w
);
-- = 24/8 = 3 longwords
FUNCTION
func_ring_nof_hops_to_source_rn
(
hops
,
this_rn
,
N_rn
,
lane_dir
:
NATURAL
)
RETURN
NATURAL
;
FUNCTION
func_ring_nof_hops_to_source_rn
(
hops
,
this_rn
,
N_rn
:
STD_LOGIC_VECTOR
;
lane_dir
:
NATURAL
)
RETURN
STD_LOGIC_VECTOR
;
-- return vector length is same as hops vector length
...
...
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