Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit core collection
Commits
ff891eec
Commit
ff891eec
authored
Jan 21, 2021
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added AUXiliary I2C bus for general purpose use of I2C devices on FMC cards
parent
8241cb68
Pipeline
#821
failed with stage
in 2 minutes and 1 second
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
wr_spec7_pkg.vhd
board/spec7/wr_spec7_pkg.vhd
+2
-0
wrc_board_spec7.vhd
board/spec7/wrc_board_spec7.vhd
+8
-0
xwrc_board_spec7.vhd
board/spec7/xwrc_board_spec7.vhd
+13
-1
spec7_wr_ref_top.vhd
top/spec7_ref_design/spec7_wr_ref_top.vhd
+3
-0
No files found.
board/spec7/wr_spec7_pkg.vhd
View file @
ff891eec
...
...
@@ -104,6 +104,8 @@ package wr_spec7_pkg is
sfp_los_i
:
in
std_logic
:
=
'0'
;
eeprom_scl
:
inout
std_logic
;
eeprom_sda
:
inout
std_logic
;
aux_scl
:
inout
std_logic
;
aux_sda
:
inout
std_logic
;
onewire_i
:
in
std_logic
;
onewire_oen_o
:
out
std_logic
;
uart_rxd_i
:
in
std_logic
;
...
...
board/spec7/wrc_board_spec7.vhd
View file @
ff891eec
...
...
@@ -155,6 +155,12 @@ entity wrc_board_spec7 is
eeprom_sda
:
inout
std_logic
;
eeprom_scl
:
inout
std_logic
;
---------------------------------------------------------------------------
-- I2C AUXiliary
---------------------------------------------------------------------------
aux_sda
:
inout
std_logic
;
aux_scl
:
inout
std_logic
;
---------------------------------------------------------------------------
-- Onewire interface
---------------------------------------------------------------------------
...
...
@@ -464,6 +470,8 @@ begin -- architecture struct
sfp_los_i
=>
sfp_los_i
,
eeprom_scl
=>
eeprom_scl
,
eeprom_sda
=>
eeprom_sda
,
aux_scl
=>
aux_scl
,
aux_sda
=>
aux_sda
,
onewire_i
=>
onewire_i
,
onewire_oen_o
=>
onewire_oen_o
,
uart_rxd_i
=>
uart_rxd_i
,
...
...
board/spec7/xwrc_board_spec7.vhd
View file @
ff891eec
...
...
@@ -156,6 +156,12 @@ entity xwrc_board_spec7 is
eeprom_sda
:
inout
std_logic
;
eeprom_scl
:
inout
std_logic
;
---------------------------------------------------------------------------
-- I2C AUXiliary
---------------------------------------------------------------------------
aux_sda
:
inout
std_logic
;
aux_scl
:
inout
std_logic
;
---------------------------------------------------------------------------
-- Onewire interface
---------------------------------------------------------------------------
...
...
@@ -336,7 +342,7 @@ architecture struct of xwrc_board_spec7 is
(
c_slave_gpio
=>
x"00000f00"
);
constant
c_num_gpio_pins
:
integer
:
=
1
5
;
constant
c_num_gpio_pins
:
integer
:
=
1
7
;
signal
gpio_out
,
gpio_in
,
gpio_oen
:
std_logic_vector
(
c_num_gpio_pins
-1
downto
0
);
component
even_odd_det
is
...
...
@@ -818,6 +824,12 @@ begin -- architecture struct
gpio_in
(
13
)
<=
even_odd_n
;
-- 10MHz/1PPS phase w.r.t. clk_ref_125m
gpio_in
(
14
)
<=
sync_done
;
-- AUXiliary I2C tri-states
aux_scl
<=
'0'
when
(
gpio_out
(
15
)
=
'0'
)
else
'Z'
;
gpio_in
(
15
)
<=
aux_scl
;
aux_sda
<=
'0'
when
(
gpio_out
(
16
)
=
'0'
)
else
'Z'
;
gpio_in
(
16
)
<=
aux_sda
;
sfp_rate_select_o
<=
'1'
;
onewire_oen_o
<=
onewire_en
(
0
);
...
...
top/spec7_ref_design/spec7_wr_ref_top.vhd
View file @
ff891eec
...
...
@@ -589,6 +589,9 @@ AXI2WB : xwb_axi4lite_bridge
eeprom_scl
=>
scl_b
,
eeprom_sda
=>
sda_b
,
aux_scl
=>
fmc_la23_p
,
aux_sda
=>
fmc_la06_p
,
onewire_i
=>
'1'
,
-- No onewire, Unique ID now via
onewire_oen_o
=>
open
,
-- 24AA025EU48 (I2C Addr 1010.001x)
...
...
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