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
7507a354
Commit
7507a354
authored
8 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Added g_default_value
parent
8935e7d3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/dp/src/vhdl/dp_xonoff_reg.vhd
+5
-2
5 additions, 2 deletions
libraries/base/dp/src/vhdl/dp_xonoff_reg.vhd
libraries/base/dp/src/vhdl/mms_dp_xonoff.vhd
+5
-1
5 additions, 1 deletion
libraries/base/dp/src/vhdl/mms_dp_xonoff.vhd
with
10 additions
and
3 deletions
libraries/base/dp/src/vhdl/dp_xonoff_reg.vhd
+
5
−
2
View file @
7507a354
...
...
@@ -38,6 +38,9 @@ USE common_lib.common_pkg.ALL;
USE
common_lib
.
common_mem_pkg
.
ALL
;
ENTITY
dp_xonoff_reg
IS
GENERIC
(
g_default_value
:
STD_LOGIC
:
=
'1'
);
PORT
(
-- Clocks and reset
mm_rst
:
IN
STD_LOGIC
;
...
...
@@ -61,7 +64,7 @@ ARCHITECTURE str OF dp_xonoff_reg IS
adr_w
=>
1
,
dat_w
=>
c_word_w
,
nof_dat
=>
1
,
init_sl
=>
'0'
);
init_sl
=>
g_default_value
);
SIGNAL
mm_xonoff_reg
:
STD_LOGIC_VECTOR
(
0
DOWNTO
0
);
...
...
@@ -73,7 +76,7 @@ BEGIN
-- Read access
sla_out
<=
c_mem_miso_rst
;
-- Write access, register values
mm_xonoff_reg
(
0
)
<=
'1'
;
mm_xonoff_reg
(
0
)
<=
g_default_value
;
ELSIF
rising_edge
(
mm_clk
)
THEN
-- Read access defaults
...
...
This diff is collapsed.
Click to expand it.
libraries/base/dp/src/vhdl/mms_dp_xonoff.vhd
+
5
−
1
View file @
7507a354
...
...
@@ -30,7 +30,8 @@ ENTITY mms_dp_xonoff IS
GENERIC
(
g_nof_streams
:
NATURAL
:
=
1
;
g_combine_streams
:
BOOLEAN
:
=
FALSE
;
g_bypass
:
BOOLEAN
:
=
FALSE
g_bypass
:
BOOLEAN
:
=
FALSE
;
g_default_value
:
STD_LOGIC
:
=
'1'
);
PORT
(
-- Memory-mapped clock domain
...
...
@@ -82,6 +83,9 @@ BEGIN
gen_reg
:
FOR
i
IN
0
TO
c_nof_ctrl_streams
-1
GENERATE
u_reg
:
ENTITY
work
.
dp_xonoff_reg
GENERIC
MAP
(
g_default_value
=>
g_default_value
)
PORT
MAP
(
-- Clocks and reset
mm_rst
=>
mm_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