Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Conv TTL RS485 - Gateware
Commits
7d1e1f2c
Commit
7d1e1f2c
authored
Feb 21, 2018
by
Evangelia Gousiou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added TTL bar test
parent
8301a504
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
67 deletions
+83
-67
testbench.vhd
sim/testbench.vhd
+79
-64
testbench_pkg.vhd
sim/testbench_pkg.vhd
+4
-3
No files found.
sim/testbench.vhd
View file @
7d1e1f2c
This diff is collapsed.
Click to expand it.
sim/testbench_pkg.vhd
View file @
7d1e1f2c
...
...
@@ -142,6 +142,7 @@ package testbench_pkg is
-- Components declarations
--============================================================================
component
conv_ttl_rs485
is
generic
(
g_simul
:
boolean
:
=
FALSE
);
port
(
-- Clocks
...
...
@@ -301,21 +302,21 @@ package body testbench_pkg is
signal
pcbrev
:
out
std_logic_vector
(
5
downto
0
);
signal
rtm
:
out
std_logic_vector
(
5
downto
0
))
is
begin
sw_gp_n
(
7
)
<=
glitch_filter_en
;
sw_gp_n
(
0
)
<=
not
glitch_filter_en
;
if
glitch_filter_en
=
'1'
then
print_now
(
"Glitch filter enabled"
);
else
print_now
(
"Glitch filter disabled"
);
end
if
;
sw_gp_n
(
0
)
<=
ttl_out_bar_en
;
sw_gp_n
(
7
)
<=
ttl_out_bar_en
;
if
ttl_out_bar_en
=
'1'
then
print_now
(
"TTL output BAR enabled"
);
else
print_now
(
"TTL output BAR disabled"
);
end
if
;
print_now_s_std
(
"RTMP & RTMM set to x"
,
C_RTM
);
--
print_now_s_std("RTMP & RTMM set to x", C_RTM);
sw_gp_n
(
6
downto
1
)
<=
(
others
=>
'0'
);
-- not used
sw_other
<=
(
others
=>
'0'
);
-- not used
...
...
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