Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Platform-independent core collection
Commits
3bbcf4a3
Commit
3bbcf4a3
authored
6 years ago
by
Tristan Gingold
Browse files
Options
Downloads
Patches
Plain Diff
Generalize f_reduce_or.
parent
34142e4c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/common/gencores_pkg.vhd
+3
-5
3 additions, 5 deletions
modules/common/gencores_pkg.vhd
with
3 additions
and
5 deletions
modules/common/gencores_pkg.vhd
+
3
−
5
View file @
3bbcf4a3
...
...
@@ -239,7 +239,7 @@ package gencores_pkg is
freq_o
:
out
std_logic_vector
(
g_counter_bits
-1
downto
0
);
freq_valid_o
:
out
std_logic
);
end
component
gc_multichannel_frequency_meter
;
------------------------------------------------------------------------------
-- Time-division multiplexer with round robin arbitration
------------------------------------------------------------------------------
...
...
@@ -783,10 +783,8 @@ package body gencores_pkg is
variable
rv
:
std_logic
;
begin
rv
:
=
'0'
;
for
n
in
0
to
x
'length
-1
loop
if
(
x
(
n
)
=
'1'
)
then
rv
:
=
'1'
;
end
if
;
for
n
in
x
'range
loop
rv
:
=
rv
or
x
(
n
);
end
loop
;
return
rv
;
end
f_reduce_or
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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