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
f6ce59f2
Commit
f6ce59f2
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Use fixed O_rn and N_rn of 8 bits wide.
parent
bf122662
No related branches found
No related tags found
1 merge request
!323
Resolve L2SDP-930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/ring/src/vhdl/ring_info.vhd
+1
-9
1 addition, 9 deletions
libraries/base/ring/src/vhdl/ring_info.vhd
with
1 addition
and
9 deletions
libraries/base/ring/src/vhdl/ring_info.vhd
+
1
−
9
View file @
f6ce59f2
...
@@ -38,10 +38,6 @@ USE common_lib.common_field_pkg.ALL;
...
@@ -38,10 +38,6 @@ USE common_lib.common_field_pkg.ALL;
USE
work
.
ring_pkg
.
ALL
;
USE
work
.
ring_pkg
.
ALL
;
ENTITY
ring_info
IS
ENTITY
ring_info
IS
GENERIC
(
-- Actual ring_info.O_rn field width can be less than a byte
g_ring_info_O_rn_w
:
NATURAL
:
=
c_byte_w
);
PORT
(
PORT
(
-- Clocks and reset
-- Clocks and reset
mm_rst
:
IN
STD_LOGIC
;
-- reset synchronous with mm_clk
mm_rst
:
IN
STD_LOGIC
;
-- reset synchronous with mm_clk
...
@@ -62,8 +58,6 @@ ARCHITECTURE str OF ring_info IS
...
@@ -62,8 +58,6 @@ ARCHITECTURE str OF ring_info IS
SIGNAL
mm_fields_out
:
STD_LOGIC_VECTOR
(
field_slv_out_len
(
c_ring_info_field_arr
)
-1
DOWNTO
0
);
SIGNAL
mm_fields_out
:
STD_LOGIC_VECTOR
(
field_slv_out_len
(
c_ring_info_field_arr
)
-1
DOWNTO
0
);
SIGNAL
O_rn
:
STD_LOGIC_VECTOR
(
c_byte_w
-1
DOWNTO
0
);
BEGIN
BEGIN
u_mm_fields
:
ENTITY
mm_lib
.
mm_fields
u_mm_fields
:
ENTITY
mm_lib
.
mm_fields
...
@@ -87,9 +81,7 @@ BEGIN
...
@@ -87,9 +81,7 @@ BEGIN
);
);
-- get "RW" fields from mm_fields
-- get "RW" fields from mm_fields
O_rn
<=
mm_fields_out
(
field_hi
(
c_ring_info_field_arr
,
"O_rn"
)
DOWNTO
field_lo
(
c_ring_info_field_arr
,
"O_rn"
));
ring_info
.
O_rn
<=
mm_fields_out
(
field_hi
(
c_ring_info_field_arr
,
"O_rn"
)
DOWNTO
field_lo
(
c_ring_info_field_arr
,
"O_rn"
));
ring_info
.
O_rn
<=
RESIZE_UVEC
(
O_rn
(
g_ring_info_O_rn_w
-1
DOWNTO
0
),
c_byte_w
);
ring_info
.
N_rn
<=
mm_fields_out
(
field_hi
(
c_ring_info_field_arr
,
"N_rn"
)
DOWNTO
field_lo
(
c_ring_info_field_arr
,
"N_rn"
));
ring_info
.
N_rn
<=
mm_fields_out
(
field_hi
(
c_ring_info_field_arr
,
"N_rn"
)
DOWNTO
field_lo
(
c_ring_info_field_arr
,
"N_rn"
));
ring_info
.
use_cable_to_previous_rn
<=
sl
(
mm_fields_out
(
field_hi
(
c_ring_info_field_arr
,
"use_cable_to_previous_rn"
)
DOWNTO
field_lo
(
c_ring_info_field_arr
,
"use_cable_to_previous_rn"
)));
ring_info
.
use_cable_to_previous_rn
<=
sl
(
mm_fields_out
(
field_hi
(
c_ring_info_field_arr
,
"use_cable_to_previous_rn"
)
DOWNTO
field_lo
(
c_ring_info_field_arr
,
"use_cable_to_previous_rn"
)));
...
...
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