Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
Hdlmake
Commits
03047436
Commit
03047436
authored
Mar 10, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use generics in VHDL counter test to select sim and syn dividers
parent
7feedf4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
counter.vhd
tests/counter/modules/counter/vhdl/counter.vhd
+1
-1
counter_tb.vhd
tests/counter/testbench/counter_tb/vhdl/counter_tb.vhd
+6
-1
No files found.
tests/counter/modules/counter/vhdl/counter.vhd
View file @
03047436
...
...
@@ -11,7 +11,7 @@ use ieee.numeric_std.all;
entity
counter
is
generic
(
cycles_per_second
:
unsigned
:
=
12000000
);
generic
(
cycles_per_second
:
integer
:
=
12000000
);
port
(
clock
:
in
std_logic
;
...
...
tests/counter/testbench/counter_tb/vhdl/counter_tb.vhd
View file @
03047436
...
...
@@ -14,6 +14,9 @@ end counter_tb;
architecture
testbench
of
counter_tb
is
component
counter
generic
(
cycles_per_second
:
integer
);
port
(
clock
:
in
std_logic
;
clear
:
in
std_logic
;
...
...
@@ -29,7 +32,9 @@ architecture testbench of counter_tb is
begin
U_counter
:
counter
port
map
(
t_clock
,
t_clear
,
t_count
,
t_Q
);
U_counter
:
counter
generic
map
(
cycles_per_second
=>
500
)
port
map
(
t_clock
,
t_clear
,
t_count
,
t_Q
);
process
begin
...
...
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