Professional Documents
Culture Documents
for
I2C Protocol
PRESENTED BY:
Project Guide:
PADMANABAN
Aim:
To verify I2C master
Objectives:
1.To conduct a literature survey to understand the functionality of I2C.
2.To define specifications.
3.To develop the simulation model of the I2C master DUT.
4.To develop the reusable verification Environment.
5.To analyze functional & code coverage reports.
1/21/2015
Introduction:
1/21/2015
Features:
1/21/2015
I2C specification
Synchronous
1/21/2015
Master:
Slave:
1/21/2015
MICRO
PROCESSOR
CLOC
K
RESE
T
ADDRES
S
DATA_IN
DATA_OUT
I2C
MASTER
CONTROLL
ER
SCL
SDA
R/W
1/21/2015
Pin Description
SIGNAL
NAME
SIGNAL
DIRECTION
DEFINITION
ACTIVE STATE
Clock
Input
Microprocessor
clock
N/A
Reset
Input
System reset
Active Low
Address
Input
Address bits
reading and
writing to
configuration
and data
registers
N/A
Data
Bi-directional
Data bus
N/A
RW
Input
SDA
Bi-directional
1/21/2015
SCL
1 = RD
0 = WR
I2C Data bus
line
Uni-directional
N/A
N/A
Start Condition
Stop Condition
SDA
ACK from
Slave
ACK from
Receiver
SCL
Start
1/21/2015
Stop
9
WRITE OPERATION:
1/21/2015
10
Read operation:
generate start bit
Read slave address + read bit
receive acknowledge from slave
Read data
Send acknowledge to slave
write no acknowledge (NACK) to slave,
indicating end of transfer
generate stop signal
1/21/2015
11
TIMING DIAGRAM
CLK
RESE
T
R=1/W
=0
DATA_IN
D0
D1
D2
xxxx
xxxx
xxxx
ADD
A0
A1
A2
A3
A4
A5
xxxx
xxxx
xxxx
D7
D8
D9
DATA_OUT
Schedule:-Gantt chart
1/21/2015
Objectives
Phase-I
Survey
20-1-2015
specifications
27-1-2015
simulation
Will complete
by 6-2-2015
Phase-II
environment
14-2-2015
coverage
15-2-2015
Copyright CoreEL Technologies (I)
Pvt. Ltd.
13
Deliverables
1/21/2015
14
References
www.nxp.com
SPI vs I2C pdf
www.ti.com
www.opencores.org
1/21/2015
15
1/21/2015
16