Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
8a2c68cf
Commit
8a2c68cf
authored
Dec 18, 2013
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eca: quell a warning; variable used as a constant
parent
39016fd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
eca.vhd
modules/wr_eca/eca.vhd
+5
-5
No files found.
modules/wr_eca/eca.vhd
View file @
8a2c68cf
...
...
@@ -289,12 +289,12 @@ architecture rtl of eca is
end
update
;
impure
function
toggle
(
x
:
std_logic
;
i
:
natural
)
return
std_logic
is
variable
v
_set
:
std_logic
:
=
c_slave_i
.
dat
(
i
+
0
)
and
c_slave_i
.
sel
(
0
);
variable
v
_clr
:
std_logic
:
=
c_slave_i
.
dat
(
i
+
8
)
and
c_slave_i
.
sel
(
1
);
constant
c
_set
:
std_logic
:
=
c_slave_i
.
dat
(
i
+
0
)
and
c_slave_i
.
sel
(
0
);
constant
c
_clr
:
std_logic
:
=
c_slave_i
.
dat
(
i
+
8
)
and
c_slave_i
.
sel
(
1
);
begin
return
((
not
v_set
)
and
(
not
v
_clr
)
and
(
x
))
or
-- unmodified
((
v_set
)
and
(
v
_clr
)
and
(
not
x
))
or
-- toggled
((
v_set
)
and
(
not
v
_clr
));
-- set
return
((
not
c_set
)
and
(
not
c
_clr
)
and
(
x
))
or
-- unmodified
((
c_set
)
and
(
c
_clr
)
and
(
not
x
))
or
-- toggled
((
c_set
)
and
(
not
c
_clr
));
-- set
end
toggle
;
function
f_all_names
return
t_all_name_array
is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment