Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL RS485 - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 - Testing
Commits
c9d6d24b
Commit
c9d6d24b
authored
Oct 31, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl: Added logic for thermometer test
parent
99466d54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
pts.vhd
hdl/top/pts.vhd
+45
-0
No files found.
hdl/top/pts.vhd
View file @
c9d6d24b
...
...
@@ -494,6 +494,11 @@ architecture arch of pts is
signal
rtm_lines
:
std_logic_vector
(
5
downto
0
);
signal
switches
:
std_logic_vector
(
7
downto
0
);
-- one-wire master signals
signal
owr_pwren
:
std_logic_vector
(
0
downto
0
);
signal
owr_en
:
std_logic_vector
(
0
downto
0
);
signal
owr_in
:
std_logic_vector
(
0
downto
0
);
-- TTL pulse test signals
signal
ttl_pulse_en
:
std_logic
;
signal
ttl_trigs_a
:
std_logic_vector
(
9
downto
0
);
...
...
@@ -720,6 +725,46 @@ begin
end
if
;
end
process
p_rst_fr_reg
;
--============================================================================
-- Thermometer test logic
--============================================================================
-- The one-wire master component is used to control the on-board DS18B20
-- thermometer
cmp_onewire_master
:
wb_onewire_master
generic
map
(
g_interface_mode
=>
CLASSIC
,
g_address_granularity
=>
WORD
,
g_num_ports
=>
1
,
g_ow_btp_normal
=>
"5.0"
,
g_ow_btp_overdrive
=>
"1.0"
)
port
map
(
clk_sys_i
=>
clk_20_i
,
rst_n_i
=>
rst_20_n
,
wb_cyc_i
=>
xbar_master_out
(
c_slv_onewire_mst
)
.
cyc
,
wb_sel_i
=>
xbar_master_out
(
c_slv_onewire_mst
)
.
sel
,
wb_stb_i
=>
xbar_master_out
(
c_slv_onewire_mst
)
.
stb
,
wb_we_i
=>
xbar_master_out
(
c_slv_onewire_mst
)
.
we
,
wb_adr_i
=>
xbar_master_out
(
c_slv_onewire_mst
)
.
adr
(
4
downto
2
),
wb_dat_i
=>
xbar_master_out
(
c_slv_onewire_mst
)
.
dat
,
wb_dat_o
=>
xbar_master_in
(
c_slv_onewire_mst
)
.
dat
,
wb_ack_o
=>
xbar_master_in
(
c_slv_onewire_mst
)
.
ack
,
wb_int_o
=>
open
,
wb_stall_o
=>
xbar_master_in
(
c_slv_onewire_mst
)
.
stall
,
owr_pwren_o
=>
owr_pwren
,
owr_en_o
=>
owr_en
,
owr_i
=>
owr_in
);
-- Generate tri-state buffer for thermometer
thermometer_b
<=
'0'
when
(
owr_en
(
0
)
=
'1'
)
else
'Z'
;
owr_in
(
0
)
<=
thermometer_b
;
--============================================================================
-- TTL pulse test logic
--============================================================================
...
...
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