Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
a4502ea7
Commit
a4502ea7
authored
Jun 29, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr2rf_vme: add new wr_eeprom ports.
parent
89f2d5ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
wr2rf_vme.vhd
hdl/top/wr2rf_vme.vhd
+11
-6
No files found.
hdl/top/wr2rf_vme.vhd
View file @
a4502ea7
...
...
@@ -141,8 +141,10 @@ entity wr2rf_vme is
spi_flash_mosi_o
:
out
std_logic
;
-- WR eeprom
wr_eeprom_scl_b
:
inout
std_logic
;
wr_eeprom_sda_b
:
inout
std_logic
;
wr_eeprom1_scl_b
:
inout
std_logic
;
wr_eeprom1_sda_b
:
inout
std_logic
;
wr_eeprom2_scl_b
:
inout
std_logic
;
wr_eeprom2_sda_b
:
inout
std_logic
;
-- Onewire
wr_onewire_b
:
inout
std_logic
;
...
...
@@ -650,10 +652,13 @@ begin
owr_i
(
0
)
<=
wr_onewire_b
;
owr_i
(
1
)
<=
'1'
;
wr_eeprom_scl_b
<=
'0'
when
wr1_scl_out
=
'0'
else
'Z'
;
wr_eeprom_sda_b
<=
'0'
when
wr1_sda_out
=
'0'
else
'Z'
;
wr1_scl_in
<=
wr_eeprom_scl_b
;
wr1_sda_in
<=
wr_eeprom_sda_b
;
wr_eeprom1_scl_b
<=
'0'
when
wr1_scl_out
=
'0'
else
'Z'
;
wr_eeprom1_sda_b
<=
'0'
when
wr1_sda_out
=
'0'
else
'Z'
;
wr1_scl_in
<=
wr_eeprom1_scl_b
;
wr1_sda_in
<=
wr_eeprom1_sda_b
;
wr_eeprom2_scl_b
<=
'Z'
;
wr_eeprom2_sda_b
<=
'Z'
;
process
(
clk_sys_62m5
)
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