FSM Implementation of I2C Protocol and Its Verification Using Verilog
FSM Implementation of I2C Protocol and Its Verification Using Verilog
FSM Implementation of I2C Protocol and Its Verification Using Verilog
Simple mechanism for validation of data the logic „high‟ level by resistors connected to a
transferred single positive supply, usually +3.3 V or +5 V but
Uses 7-bit addressing system to target a designers are now moving to +2.5 V and towards
specific device/IC on the I2C bus 1.8 V in the near future. All the connected devices
I2C networks are easy to scale. New devices have open-collector (open drain for CMOS - both
can simply be connected to the two common terms mean only the lower transistor is included)
I2C bus line driver stages that can transmit data by pulling the
bus low, and high impedance sense amplifiers that
II. LITERATURE SURVEY monitor the bus voltage to receive data. Unless
I2C uses only two pins SCL, SDA to devices are communicating by turning on the lower
establish connection between various devices transistor to pull the bus low, both bus lines remain
considering one as master and other as slave. These „high‟. To initiate communication a chip pulls the
two pins communicate using particular commands SDA line low. It then has the responsibility to drive
like start, address, read/write, acknowledgement the SCL line with clock pulses, until it has finished,
and stop commands. Both 7-bit and 10-bit and is called the bus „master‟ [2].
addressing formats can be used. 10-bit addressing
supports more addressing lines i.e., 1024 compared III. METHODOLOGY
to 127 addressing lines in 7-bit mode [1]. The designed I2C protocol is based on FSM (Finite
The „bus‟ wires are named SDA (Serial State Machine) model. The different states are
data) and SCL (Serial clock), these two bus wires explained as follows.
have the same configuration. They are pulled-up to
DOI: 10.35629/5252-030910581060 Impact Factor value 7.429 | ISO 9001: 2008 Certified Journal Page 1059
International Journal of Advances in Engineering and Management (IJAEM)
Volume 3, Issue 9 Sep 2021, pp: 1058-1060 www.ijaem.net ISSN: 2395-5252
IV. RESULT using Verilog HDL using the Xilinx ISE tool. The
In this work, I2C communication protocol timing wave formsof the simulation is shown in
is demonstrated using FSM modeling approach and figure 4.
the functionality of the designed FSM is verified
REFERENCE
[1]. Lakshmi ManasaKappaganthu, Durga
Prakash M, “I2C Protocol and its Clock
Stretching Verification using System
Verilog and UVM”. International
Conference on Inventive Communication
and Computational Technologies (ICICCT
2017)
[2]. "I2C Licensing Information". nxp.com.
Archived from the original on 2017-01-10.
Retrieved 2018-04-29.
[3]. Imran Ali, Sung Hun Cho, Dong Gyu Kim,
Muhammad Riaz Ur Rehman and Kang-
Yoon Lee, “A Design of Ultra Low Power
I2C Synchronous Slave Controller with
Interface Voltage Level Independency in
180 nm CMOS Technology” 978-1-5386-
2285-8/17/$31.00 ©2017 IEEE
[4]. Zheng-wei HU, “I2C Protocol Design for
Reusability,” Third International
Symposium on Information Processing,
North China Electric Power University,
Baoding, China.
[5]. J. W. Bruce, “Personal Digital Assistant
(PDA) Based I2C Bus Analysis,” IEEE
DOI: 10.35629/5252-030910581060 Impact Factor value 7.429 | ISO 9001: 2008 Certified Journal Page 1060