Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Gateware
Commits
e683378c
Commit
e683378c
authored
Sep 09, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[switch-optimization]: multiplex 3 i2c interfaces to single i2c master
parent
e44d45dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
43 deletions
+15
-43
general-cores
ip_cores/general-cores
+1
-1
scb_top_bare.vhd
top/bare_top/scb_top_bare.vhd
+14
-42
No files found.
general-cores
@
6720a737
Subproject commit
0ec5f930ebab450f86d1be4edbbae56d751bd5ad
Subproject commit
6720a737d477224da42ea21d1d9565d4c2eac963
top/bare_top/scb_top_bare.vhd
View file @
e683378c
...
...
@@ -916,56 +916,28 @@ begin
gpio_o
(
0
)
<=
gpio_out
(
0
);
gpio_in
(
0
)
<=
gpio_i
(
0
);
U_MiniBackplane_I2C
0
:
xwb_i2c_master
U_MiniBackplane_I2C
:
xwb_i2c_master
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
)
g_address_granularity
=>
BYTE
,
g_num_interfaces
=>
3
)
port
map
(
clk_sys_i
=>
clk_sys
,
rst_n_i
=>
rst_n_periph
,
slave_i
=>
cnx_master_out
(
c_SLAVE_MBL_I2C0
),
slave_o
=>
cnx_master_in
(
c_SLAVE_MBL_I2C0
),
desc_o
=>
open
,
scl_pad_i
=>
i2c_scl_i
(
0
),
scl_pad_o
=>
i2c_scl_o
(
0
),
scl_padoen_o
=>
i2c_scl_oen_o
(
0
),
sda_pad_i
=>
i2c_sda_i
(
0
),
sda_pad_o
=>
i2c_sda_o
(
0
),
sda_padoen_o
=>
i2c_sda_oen_o
(
0
));
U_MiniBackplane_I2C1
:
xwb_i2c_master
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
)
port
map
(
clk_sys_i
=>
clk_sys
,
rst_n_i
=>
rst_n_periph
,
slave_i
=>
cnx_master_out
(
c_SLAVE_MBL_I2C1
),
slave_o
=>
cnx_master_in
(
c_SLAVE_MBL_I2C1
),
desc_o
=>
open
,
scl_pad_i
=>
i2c_scl_i
(
1
),
scl_pad_o
=>
i2c_scl_o
(
1
),
scl_padoen_o
=>
i2c_scl_oen_o
(
1
),
sda_pad_i
=>
i2c_sda_i
(
1
),
sda_pad_o
=>
i2c_sda_o
(
1
),
sda_padoen_o
=>
i2c_sda_oen_o
(
1
));
U_Sensors_I2C
:
xwb_i2c_master
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
)
port
map
(
clk_sys_i
=>
clk_sys
,
rst_n_i
=>
rst_n_periph
,
slave_i
=>
cnx_master_out
(
c_SLAVE_SENSOR_I2C
),
slave_o
=>
cnx_master_in
(
c_SLAVE_SENSOR_I2C
),
desc_o
=>
open
,
scl_pad_i
=>
i2c_scl_i
(
2
),
scl_pad_o
=>
i2c_scl_o
(
2
),
scl_padoen_o
=>
i2c_scl_oen_o
(
2
),
sda_pad_i
=>
i2c_sda_i
(
2
),
sda_pad_o
=>
i2c_sda_o
(
2
),
sda_padoen_o
=>
i2c_sda_oen_o
(
2
));
scl_pad_i
=>
i2c_scl_i
,
scl_pad_o
=>
i2c_scl_o
,
scl_padoen_o
=>
i2c_scl_oen_o
,
sda_pad_i
=>
i2c_sda_i
,
sda_pad_o
=>
i2c_sda_o
,
sda_padoen_o
=>
i2c_sda_oen_o
);
cnx_master_in
(
c_SLAVE_MBL_I2C1
)
.
ack
<=
'1'
;
cnx_master_in
(
c_SLAVE_MBL_I2C1
)
.
int
<=
'0'
;
cnx_master_in
(
c_SLAVE_SENSOR_I2C
)
.
ack
<=
'1'
;
cnx_master_in
(
c_SLAVE_SENSOR_I2C
)
.
int
<=
'0'
;
--=====================================--
-- PSTATS --
...
...
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