Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
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
Conv TTL Blocking
Commits
a7c08dc8
Commit
a7c08dc8
authored
Aug 22, 2012
by
gilsoriano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating i2c slave
parent
af943bac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
517 additions
and
188 deletions
+517
-188
i2cSpecs.pdf
hdl/i2c_slave_wb_master/doc/i2cSpecs.pdf
+0
-0
i2cSpecs.tex
hdl/i2c_slave_wb_master/doc/i2cSpecs.tex
+381
-0
i2c_regs.vhd
hdl/i2c_slave_wb_master/rtl/i2c_regs.vhd
+127
-185
i2c_slave_core.vhd
hdl/i2c_slave_wb_master/rtl/i2c_slave_core.vhd
+9
-3
No files found.
hdl/i2c_slave_wb_master/doc/i2cSpecs.pdf
0 → 100755
View file @
a7c08dc8
File added
hdl/i2c_slave_wb_master/doc/i2cSpecs.tex
0 → 100755
View file @
a7c08dc8
This diff is collapsed.
Click to expand it.
hdl/i2c_slave_wb_master/rtl/i2c_regs.vhd
View file @
a7c08dc8
This diff is collapsed.
Click to expand it.
hdl/i2c_slave_wb_master/rtl/i2c_slave_core.vhd
View file @
a7c08dc8
...
...
@@ -54,7 +54,7 @@ library IEEE;
library
work
;
use
IEEE
.
STD_LOGIC_1164
.
ALL
;
use
IEEE
.
NUMERIC_STD
.
ALL
;
use
work
.
ctd
ha
_pkg
.
ALL
;
use
work
.
ctd
ah
_pkg
.
ALL
;
entity
i2c_slave_core
is
port
(
...
...
@@ -237,6 +237,7 @@ s_rx_fifo_din_rst_i <= wb_rst_i or s_rx_fifo_din_rst;
sda_o
<=
s_sda_o
;
bit_counter_8
:
gc_counter
generic
map
(
g_data_width
=>
c_DATA_WIDTH
)
port
map
(
clk_i
=>
s_done_d1
,
rst_i
=>
s_bit_cnt_rst_i
,
...
...
@@ -245,6 +246,7 @@ sda_o <= s_sda_o;
);
byte_counter_8
:
gc_counter
generic
map
(
g_data_width
=>
c_DATA_WIDTH
)
port
map
(
clk_i
=>
s_byte_tick
,
rst_i
=>
s_byte_cnt_rst
,
...
...
@@ -300,8 +302,10 @@ sda_o <= s_sda_o;
D
=>
s_done_d1
);
rx_fifo_i2c
:
FIFO_stack
port
map
(
rx_fifo_i2c
:
FIFO_stack
generic
map
(
g_data_width
=>
c_DATA_WIDTH
,
g_stack_depth
=>
c_RX_STACK_DEPTH
)
port
map
(
reg_i
=>
s_rx_fifo_din
,
clk
=>
wb_clk
,
push
=>
s_rx_fifo_push
,
...
...
@@ -317,6 +321,8 @@ sda_o <= s_sda_o;
DRX0_o
<=
s_DRX0_o
;
tx_fifo_i2c
:
FIFO_dispatcher
generic
map
(
g_data_width
=>
c_DATA_WIDTH
,
g_dispatcher_depth
=>
c_TX_STACK_DEPTH
)
port
map
(
reg_i
(
7
downto
0
)
=>
DTX3_i
,
reg_i
(
15
downto
8
)
=>
DTX2_i
,
...
...
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