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
de4b2548
Commit
de4b2548
authored
10 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
added 't_mem_ctlr_m?s?_arr' type which is an array of 't_mem_ctlr_m?s?'
parent
c70bd044
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/common/src/vhdl/common_mem_pkg.vhd
+5
-0
5 additions, 0 deletions
libraries/base/common/src/vhdl/common_mem_pkg.vhd
with
5 additions
and
0 deletions
libraries/base/common/src/vhdl/common_mem_pkg.vhd
+
5
−
0
View file @
de4b2548
...
@@ -121,6 +121,11 @@ PACKAGE common_mem_pkg IS
...
@@ -121,6 +121,11 @@ PACKAGE common_mem_pkg IS
CONSTANT
c_mem_ctlr_miso_rst
:
t_mem_ctlr_miso
:
=
((
OTHERS
=>
'0'
),
'0'
,
'0'
,
'0'
);
CONSTANT
c_mem_ctlr_miso_rst
:
t_mem_ctlr_miso
:
=
((
OTHERS
=>
'0'
),
'0'
,
'0'
,
'0'
);
CONSTANT
c_mem_ctlr_mosi_rst
:
t_mem_ctlr_mosi
:
=
((
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
),
'0'
,
'0'
,
'0'
,
(
OTHERS
=>
'0'
),
'0'
);
CONSTANT
c_mem_ctlr_mosi_rst
:
t_mem_ctlr_mosi
:
=
((
OTHERS
=>
'0'
),
(
OTHERS
=>
'0'
),
'0'
,
'0'
,
'0'
,
(
OTHERS
=>
'0'
),
'0'
);
-- Multi port array for mem_ctlr records
TYPE
t_mem_ctlr_miso_arr
IS
ARRAY
(
INTEGER
RANGE
<>
)
OF
t_mem_ctlr_miso
;
TYPE
t_mem_ctlr_mosi_arr
IS
ARRAY
(
INTEGER
RANGE
<>
)
OF
t_mem_ctlr_mosi
;
-- Resize functions to fit an integer or an SLV in the corresponding t_mem_ctlr_miso or t_mem_ctlr_mosi field width
-- Resize functions to fit an integer or an SLV in the corresponding t_mem_ctlr_miso or t_mem_ctlr_mosi field width
FUNCTION
TO_MEM_CTLR_ADDRESS
(
n
:
INTEGER
)
RETURN
STD_LOGIC_VECTOR
;
-- unsigned, use integer to support 32 bit range
FUNCTION
TO_MEM_CTLR_ADDRESS
(
n
:
INTEGER
)
RETURN
STD_LOGIC_VECTOR
;
-- unsigned, use integer to support 32 bit range
FUNCTION
TO_MEM_CTLR_DATA
(
n
:
INTEGER
)
RETURN
STD_LOGIC_VECTOR
;
-- unsigned
FUNCTION
TO_MEM_CTLR_DATA
(
n
:
INTEGER
)
RETURN
STD_LOGIC_VECTOR
;
-- unsigned
...
...
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