IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

International Journal of Research in Information Technology (IJRIT)

www.ijrit.com

ISSN 2001-5569

Design and implementation of I2C with Bist Technique on FPGA Jayashri H M Department of ECE SIT Mangalore, India [email protected] Shilpa k Asst Professor, Department of ECE SIT Mangalore, India [email protected] Abstract—The I2C (Inter-Integrated Circuit) protocol is used to attach two devices for communicating with each other in a fast way excluding data losses. With the fast development of Integrated Circuits (ICs) technology, the complication of the circuits has also raised. Therefore, the complexity of the circuit requires self-testability in hardware to palliate the product failure. Built-in-self-test (BIST) is such a technique which can meet the necessity of self-testability with an effective solution over pricy circuit testing system. This project represents designing and implementation of Inter-Integrated Circuit (I2C) protocol with self-testing ability.

Index Terms— LFSR, BIST, FPGA, inter integrated circuit, Verilog HDL,

——————————  ——————————

1 INTRODUCTION The size and power requirement of IC get reduce over the year. As Moor’s law states that for every two years number of transistor integrated on chip doubles. The packaging of IC requires a larger area due to the interconnections in between ICs .these wire requirement can be reduced by using I2C protocol. I2C or I square C is commonly called as inter-integrated circuit. This I2C protocol is used for communication between the faster device and slower device without ant data loss. As the complexity of the circuit increase, it requires Self-testability. The self-testability is done using one the technique called BIST (built in self-testability). It eliminates the external test pattern generation and simulation process. Testing time and hardware requirements can be reduced and minimized respectively.

2. I2C SPECIFICATIONS I2C bus is built around a two wire serial bus. SDA(serial data) and SCL (serial clock line). I2C is a simple, low bandwidth, short distance protocol. Most available I2C devices operate at a speed of 400kbps. It defines the concept master and slave device. Master initiates a transfer of data by generating a clock signal. The device addressed by the master is called as slave device. If more than one master tries to attain the bus, there will be conflict. This conflict is solved by arbitration process. 2.1 I2C characters The SDA and SCL lines are bidirectional half duplex in nature carry information between master and slave device. These two lines are connected to the positive supply through a pull up resistor. Bus is free when both the lines are high. 2.2 Data transfer Data is transferred after start condition. The transmission is of byte oriented. The data is placed on SDA line. After sending data, SDA line is made free by master. Acknowledge is sent by pulling SDA line low. If data is not accepted by the slave device, slave will send nonacknowledge by leaving SDA line high. Master senses this NAK signal and it stops the data transfer or it will initiate restart.

Jayashri H M, IJRIT-428

IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

2.3 Features 1. Multi master operation. 2. Clock stretching and wait state generation. 3. Generation of start, repeated start, stop, acknowledge. 4. Detection of start, repeated start and stop. 5. Bus state detection. 6. Supports 7 and 10 bit addressing modes. 7. Operates for various range of clock frequency.

3 PROPOSED ARCHITECTURE The proposed architecture consists of two modes. One is normal mode and other BIST mode. In normal mode device works like usual synchronous I2C devie.where as in BIST mode the I2C test itsef.

3.1 BIST module One of the techniques that used to tset the circuit itself is know as Built-In-Self-Test (BIST). The embedded logic blocks, sequential logic, combinational logic, multipliers and memories can tsest to prevent ciruit failure by theis BIST technique. In SoC design most of the cores are integrated on the single chip so accessing thse embedded cores from outsie became great difficult, so testing of these SoC became a great challenge

Fig 1: I2C strcture with BIST The control signal block controls the BIST module. The BIST module consists of two sub blocks. They are comparator and random pattern generator. Random pattern generator: RPG is a part of BIST module, which is used for the verification of the circuits like I2C protocol. Many methods are used to design the BIST module. The bytes required to test the circuit is genetrated by the random pattern generator. Random pattern generator consists of two LFSRs. One LFSR is used to generate the register address and other LFSR gives the data. The byts generated by these LFSRs are given directly to I2C module. From I2C these bytes are given to thecomparator to attain the better fault coverage. Comparator: It is used to compare the transmitted bit pattern from randaom pattern generator and received bit pattern from the I2C module. If there is any error, the error signal wil be high. And if both the pattern matches it makes not error signal to high. By this way we can clearly get to know whether data transferd is succcessfull or not successful.

3.2 I2C module I2C module module consists of master and slave device. FPGA is used as master and EEProm as a slave device. I2C is implementaed using FSM( finite state machine). It is a sequential circuit. As the name idicates it uses finite states to keep track of history of operations. The EEPROM and the device which control EEPROM uses same clock. Minimum clock frequency is required for the serial chips. Serial EEPROM has the 8 pins • VCC and VSS for power and ground • SCL (Serial Clock) to keep track of the data. • SDA (Serial Data) used to transfer data from or to the device. The first three bits of the 8-bit slave address are set using select inputs S0, S1, S2. For embedded application, EEPROM uses serial inter-

Jayashri H M, IJRIT-429

IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

face protocol like I2C for data transfer. Other protocols which are used foe serial interface are SPI, micro wire and others.

Fig 2: shows the flow chart of I2C with BIST technique Fig: 2 low chart of I2C with BIST technique Step 1: The start condition is when the data line goeslow and immediately after the clock line goes low. Step 2: Master send the adress of the slave device. Step 3: Slave gives a acknowledgement signal to the Master the device. Step 4: After receiving the acknowledgement signal, the master then sends the address of the register where to save the data. Step 5: Slave again sends an acknowledgement signal to master device about the confirmation of word address reception. Step 6: Master then sends the data to the slave using the data bus. Step 7: After the reception of data the slave again gives an acknowledgement signal. Step 8: Master then send the stop bit. When the clock line goes high from low and immediately after the data line goes high then this indicates a stop bit.

4 SYSTEM SYNTHESIS AND IMPLEMENTATION 4.1 circuit schematic

Jayashri H M, IJRIT-430

IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

Fig 3: Pin diagram of I2C with BIST Fig: 3 shows the pin diagram of I2C with the BIST capability.it shows the input applied to the device and corresponding outputs got at the output side of the device. In fig 4: the top level schematic of BIST module is shown.Its shows that two LFSRs are used in the BIST module for the pattern generation.

Fig 4 Top level schematic of BIST module

4.2 simulation results The timing diagram achieved from the testbencher showed that the received data in the receiver. Simulation results for BIST mode

Jayashri H M, IJRIT-431

IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

Fig 5: BIST mode output Fig 5 shows BIST mode simulation result, where we can see that received and transmitted are equal. Hence not error signal is high, shows that data transferred without any dat loss. Simulation result for normal mode In normal mode devie works like usual I2C device. Writing data from master to slave and reding data from slave to write happens in the normal mode.

Start

register add ACK

Fig 6: write operation In write operation, WR bit is made high. After sending the register address from the master slave acknowledges by ACK signal. Once ACK signal is received data is written to the slave.

Jayashri H M, IJRIT-432

IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

Fig 7: read operation In read operation, RD is made high and data is read from the slave to master.

4.3

FPGA implementation

FPGAs can be used to implement any logical function that can be performed by an ASIC, and it should also be noted that FPGA design is more cost-effective than that of ASIC. They have lots of advantages over microcontrollers, such as greaterspeed, number of I/O ports and performance. The proposed design is implemented on Xilinx Spartan-3 FPGA (XC2S150). So here, the master device is Xilinx Spartan-3 FPGA. The slave device used here is EEPROM in FPGA. Here, EEPROM means electrically erasable programmable read only memory. EEPROM is a non-volatile memory. It is used as a slave device to store small amounts of configuration information.

Fig. 10 shows the FPGA implementation with Clock and Data bus

Xilinx Spartan3 FPGA(XC3S400)

Slave device (EEPROM) I2C clock

The Device utilization summary is given in Table 1 and. From the table it is seen that only 21% if the flip flops are used. In case of input output buffers it is 28%. So that, there are many more feathers can be added with the proposed architecture. In the timing summary, it is seen that the maximum delay is 5.936ns which is much lesser than conventional UARTs. Table 1: Device utilization summary name Number of slices Number of sslice flip flops Number of LUTs Number of bonded IOBs Number of GCLKS

Used blocks 41 out 0f 192 44 out of 384

Percentages (%) 21 11

72 out of 384 26 out of 90

18 28

2 out of 4

50

Jayashri H M, IJRIT-433

IJRIT International Journal of Research in Information Technology, Volume 3, Issue 5, May 2015, Pg. 428-434

5 CONCLUSION I2C bus is used by many integrated circuits and is simple to implement. Any microcontroller can communicate with I2C devices even if it has no special I2C interface. I2C specifications are flexlible - I2C bus can communicate with slow devices and can also use high speed modes to transfer large amounts of data. Because of many advantages, I2C bus will remain as one of the most popular serial interfaces to connect integrated circuits on the board.

REFERENCES [1] I2C Bus Specification, Version 2.1, Philips Semiconductors, 2000. [2] P. Venkateswaran, M. Mukherjee, A. Sanyal, S. Das, and R. Nandi, “Design and Implementation of FPGA Based Interface Model for Scale- Free Network using I2C Bus Protocol on Quartus II 6.0,” in Proc. 4th International Conference on Computers and Devices for Communication, Dec. 2009, pp. 1-4. [3] R. Singh, and N. Sharma, “Prototyping of On-chip I2C Module for FPGA Spartan 3A series using Verilog,” International Journal of Computer Applications, vol. 68, no. 16, April 2013. [4] M. Bushnell and V.D. Agarwal, Essentials of electronic testing for digital, memory and mixed-signal VLSI circuits, Kluwer Academic Publishers, 2000. [5] S. Jamuna and Dr. V.K. Agrawal, “Implementation of BIST structure using VHDL for VLSI circuits,” International Journal of Engineering Science and Technology, vol. 3, no. 6, pp. 5041-5048, June 2011. [6] V.K. Agrawal, C.R. Kime and K.K., Saluja, “A tutorial on BIST, part 1: Principles,” IEEE Design & Test of Computers, vol. 10, No.1, pp.73-83, March 1993. [7] J. Bhasker, Verilog® HDL synthesis: a practical primer, Star Galaxy Publishing, 1998. [8] M.Y.I. Idris, M. Yaacob, “A VHDL implementation of BIST technique in UART design," in Proc. Conference on Convergent Technologies for the Asia-Pacific Region (TENCON), Oct. 2003, pp.1450-1454 [9] S. Saha, M. A. Rahman, A. Thakur, “Design and Implementation of a BIST Embedded High Speed RS-422 Utilized UART over FPGA,” in Proc. of 4th IEEE International Conference on Computing.

Jayashri H M, IJRIT-434

Design and implementation of I2C with Bist ...

and implementation of Inter-Integrated Circuit (I2C) protocol with self-testing ability. ... Most available I2C devices operate at a speed of 400kbps. .... FPGA Based Interface Model for Scale- Free Network using I2C Bus Protocol on Quartus II 6.0 ...

316KB Sizes 1 Downloads 249 Views

Recommend Documents

Design and Implementation of MPICH2 over InfiniBand with RDMA ...
from Intel Corporation, and National Science Foundation's grants #CCR-. 0204429 and ... the best of our knowledge, this is the first high performance design and implementation of ... data and the receive queue holds instructions that describe.

Design and implementation of Interactive ...
Processing can be deployed within the development environment, in Java projects, as well as in HTML/JSP pages in tags. For web pages integration, processing.js extension is needed. Its main purpose is to translate the whole sketch into the Javascrip

Design & Implementation of Adaptive NLMS Filter with ...
developed based on Linear Programming, Quadratic Programming and Heuristic methods in Artificial Intelligence. Remez. Exchange Algorithm(to design equiripple filter) and linear Programming (to design adaptive filter) are optimum in the sense that the

Design and Implementation of High Performance and Availability Java ...
compute engine object that is exported by one JAVA RMI (JRMI) server, it will take ... addition, to build such a system, reliable multicast communication, grid ...

Design and Implementation of High Performance and Availability Java ...
compute engine object that is exported by one JAVA RMI (JRMI) server, it will take .... Test an application, such as a huge computation on this system. 2. Test the ...

Design and implementation of Interactive visualization of GHSOM ...
presented the GHSOM (Growing Hierarchical Self Organizing Map) algorithm, which is an extension of the standard ... frequently labeled as text mining) is in comparison with classic methods of knowledge discovery in .... Portal provides a coherent sys

Improved learning of I2C distance and accelerating the ...
Dec 28, 2010 - also call positive match. Similarly, we ..... located at the center, so spatial division is able to maintain the common spatial layout in each .... is only 1.8 hours, which would make the I2C distance practical for applying to large sc

Page 1 Programming Languages Design and Implementation ...
Include. C. ) software simulation. : (. ) .... software simulation. (. ). 24 я я я ...... SiP j i. C. SB. SA. S end i output y output xx j begin integer j char y integer. xP ... Global param begin param integer param. SuB procedure. List array. In

Design and Implementation Statewide Pandemic Triage Line.pdf ...
Page 3 of 9. Design and Implementation Statewide Pandemic Triage Line.pdf. Design and Implementation Statewide Pandemic Triage Line.pdf. Open. Extract.

Relational Database Design and Implementation ...
[Read PDF] Relational Database Design and ... administration, this book provides practical information necessary to develop a design and management scheme ...

database systems design implementation and ...
database systems design implementation and management 10th edition contains important information and a detailed explanation about database systems ...

design and implementation of a high spatial resolution remote sensing ...
Therefore, the object-oriented image analysis for extraction of information from remote sensing ... Data Science Journal, Volume 6, Supplement, 4 August 2007.

vlsi design and implementation of reconfigurable ...
Apr 10, 2009 - In this paper a reconfigurable cryptographic system is proposed. .... the RAM blocks which are used for keys storage, and the. RCS. Core that is.

The Design and Implementation of a Large-Scale ...
a quadratic analytical initial step serving to create a quick coarse placement ..... GORDIAN [35] is another tool that uses a classical quadratic objective function ...... porting environment of software components with higher levels of functionality

Design and Implementation of e-AODV: A Comparative Study ... - IJRIT
IJRIT International Journal of Research in Information Technology, Volume 2, Issue 6, ... In order to maximize the network life time, the cost function defined in [9] ...

design and implementation of a high spatial resolution remote sensing ...
Aug 4, 2007 - 3College of Resources Science and Technology, Beijing Normal University, Xinjiekou Outer St. 19th, Haidian ..... 02JJBY005), and the Research Foundation of the Education ... Photogrammetric Record 20(110): 162-171.