SlideShare a Scribd company logo
IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 390
FPGA IMPLEMENTATION OF MULTI-PROTOCOL DATA
ACQUISITION SYSTEM USING VHDL
Chetan.Umadi1
, G.V.Jayaramaiah2
1
PG Student, Dept. of ECE, Dr.AIT, Bangalore, Karnataka, India
2
Professor & HOD, Dept. of ECE, Dr.AIT, Bangalore, Karnataka, India
Abstract
This paper describes the implementation of multi-protocol data acquisition system on FPGA. Data acquisition system includes
four different bus protocols and storing element (FIFO). FPGA works as a data acquisition system and transfers data from the
sensors/ADC to the output device. As FPGA allows each module to work independently. Therefore, we can utilize FPGA as a
multi channeled data acquisition system. The four different protocols: Parallel bus protocol, SPI, I2
C and One-Wire. All modules
were designed in VHDL& simulated using Xilinx-ISE 12.4and Xilinx Spartan -3E.
Keywords: FPAG, Xilinx, Spartan-3E kit, Parallel bus, SPI, I2
C, One-Wire and FIFO.
--------------------------------------------------------------------***------------------------------------------------------------------
1. INTRODUCTION
The data acquisition systems are most widely employed as
measurement systems in many industries. Main part of the
data acquisition system is bus protocols used in it. Buses are
integral part of data transmission in electronic devices.
These buses are implemented in software so the main aim is
to collect data from sensors or ADC‟S. This paper describes
the implementation of parallel and serial data transfer
protocols along with comparison. Parallel protocol is alone
parallel data transfer protocol and remaining all are serial
data transfer protocols. Each protocol having their own
characteristics and applications. Some can be replaced by
other protocols and some applications needs particular bus
protocol like Display/printer connections needs parallel
lines.
All protocols implanted on FPGA kit and modeled using
VHDL. The digital signals are provided from multichannel
sensors and four different ADC protocols.
2. PROPOSED WORK
The proposed system is shown in Figure 1 & 2. It shows the
connection of the ADC‟s with Bus protocols. The Bus
protocol includes Parallel, SPI, I2
C and One-wire. Each one
having separate ADC connections and the FPGA would
collect data from ADC sensors.
Fig- 1: Proposed system diagram
The System would process all bus protocols separately and
produce data at the output. Which intern connected to the
CRO to visualize the output waveform.
IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 391
Fig-2: Complete system design
3. IMPLEMENTATIONS and RESULTS
3.1 Parallel Bus Protocol
Bus is important part of data transmission for any on and
off-board communication. Bus may either parallel or serial
type. Parallel bus enables a system to communicate
simultaneously 8-bit to 64-bit with other devices or systems.
The parallel bus protocol is most widely used protocol for
data transmission as it can data transfer rate is higher than
serial protocols. The proposed design uses ADC0820 as a
example. Figure 3 shows simulation results of the parallel
bus.
Main steps in conversion process
 FPGA sends „initial‟ signal to ADC to start and
waits for data.
 After conversion ADC sends an acknowledgement
signal to the FPGA. FPGA reads all data and repeat
the process.
3.2 Serial Peripheral Interface (SPI) Protocol
SPI is a serial communication bus developed by Motorola. It
is a full-duplex protocol that functions on a master-slave
relation that is ideally suited for on board communication.
This design uses MCP3201 as a example. Figure 4 shows
the master-slave paradigm block diagram.
Fig-3: Simulated waveform of parallel bus protocol
SDOUT: Serial data output signal that carries data out of the
device.
SDIN: Serial data input signal it carries data into the device.
SCLK: Serial clock generated by Master for
synchronization.
SS: Slave select line to select/ activate slave device.
As SPI protocol is a serial protocol FPGA will read data in
serial manner. Procedure remains same like previous
protocol i.e. FPGA sends initial command to ADC to start
conversion and ADC informs with a signal to the FPGA
after conversion. Figure 5 shows the simulated SPI protocol
waveforms.
IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 392
Fig- 4: Master/Slave Transfer Block Diagram
Fig-5: Simulated waveform of SPI bus protocol.
3.3 Inter-Integrated Circuit Protocol (I2C) protocol
I2
C is a communication protocol having less number I/O
ports compared to SPI. It requires only two signal
connection wires namely SDA and SCL. It is a multi-
master/ salve system. Figure 6 shows typical I2
C master-
slave arrangement. This design uses PCF8591 ADC as a
example.
Both SDA and SCL lines are tied to VDD before start of the
data transfer.
Fig-6: Master/Slave Block Diagram of the I2
C protocol
Few general procedures for data manipulation.
 Initial state: SCL=VDD, SDA=VDD.
 Start Condition : SDA 10, SCL=1.
 Stop Condition : SDA 0  1, SCL=1.
Data has to transfer only between Start and Stop condition.
I2
C protocol is little complicated. This design uses PCF8591
ADC as a example. Figure 7 shows simulation result.
 The FPGA (Master) follows START procedure as
shown in the above condition. After this FPGA
writes Slave address on bus to identification and
waits for the acknowledgement.
 After acknowledgement FPGA sends register
address of the slave and waits for
acknowledgement.
 Now the FPGA sends read command to start
reading from slave. Each time acknowledgement is
must.
 Once completion of data transfer Master initiates
the STOP procedure by pulling SDA line to high.
Fig- 7: Simulated waveform of the I2
C bus protocol.
3.4 One-Wire Protocol
One-Wire communication protocol was developed by Dallas
Semiconductor owned by Maxim. This protocol allows
communication of multiple chips to one host with minimal
pin count. The protocol is called 1-Wire because it uses 1
wire to transfer data. 1-Wire architecture uses pull up
resistor to pull voltage of data line at master side. DS1820
used as the input of this One-Wire acquisition data protocol.
Conversion steps:
 The first step for this protocol is the „reset‟ from
the FPGA (master device).
 The FPGA would send a reset signal to the bus, and
wait for an presence pulse from sensor (slave
device). After receiving presence pulse.
 After that the FPGA would send the command to
sensor let it start data conversion.
 After series of commands FPGA reads scratch pad
memory of the slave device. That value indicates
temperature details.
IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 393
Figure 8 shows the simulated waveform of one-wire
protocol.
Fig-8: Simulated waveform of the one-wire bus protocol.
3.5 FIFO
A FIFO is a special type of buffer. The name FIFO stands
for first in first out and means that the data written into the
buffer first comes out of it first. They often called a stack
memory, and the shared memory. The choice of buffer
architecture depends on the application to be solved. Figure
9 shows generalized FIFO operation.
In this paper 8*512 size FIFO is designed, which is capable
of concurrent write and read operation.
1. Read Pointer and Write Pointer: Keep track of data
written/ read from memory/stack. Gray code counters
usually used to generate these pointers.
2. Write and Read Enable: These are used to start writing
or reading from buffer. Figure 10 shows FIFO write
operation.
Fig-9: General FIFO operation.
Fig-10: Simulation waveform of the FIFO.
3.6 Control Unit & Multiplexer
Control unit generates read_req signal and select line signal
for FIFO and Mux respectively. Once read signal activated
then FIFO outputs values and values reach as a mux input.
Based on select line mux produces output.
Multiplexer (or mux) is a device that selects one of several
analog or digital input signals and forwards the selected
input into a single line. A multiplexer of „2n‟ inputs has ‟n‟
select lines, which are used to select which input line to send
to the output. Mux designed for 4 (8 bit) lines with 3 bit
select line. Figure 11 shows final output waveform.
Fig-11: Final output waveform of the system
4. CONCLUSIONS
From the simulation results of the all bus protocol, we can
compare speed and pin count of all protocols. As parallel
bus having highest speed data transmission but alongside it
is having more pins. Similarly One-wire bus with only one
pin/line for communication but it is having limited
applications. I2
C having advantage of slave
acknowledgement feature but SPI does not support this
feature.
IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308
_______________________________________________________________________________________
Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 394
Finally, we may conclude that based on the application
requirement bus protocols can be chosen. Even more types
bus protocols can also be implementing on FPGA and
compare with these bus protocols & even system can be
interfaced to PC through USB interface.
REFERENCES
[1]. S.Thane, S.Somkuamanit, S.Khuntawee.
“Implementation of Multi-Protocol, Data Acquisition with
High Speed USB interface, Using FPGA”, The International
Multi Conference of Engineers and Computer Scientists
(IMECS)- Vol I, March 17-19, 2010. Hong Kong.
[2]. Frédéric Leens, “An Introduction to I2C and SPI
protocols”. IEEE Instrumentation & Measurement Magazine
February 2009.
[3]. Bollam Eswari, N.Onmagal, K.Preethi, S.G. Sreejeesh,
“Implementation of I2C Master Bus Controller on FPGA”.
International Conference on Communication and Signal
Processing, April 3-5, 2013, India.
[4]. Bernhard Linke, “Overview of 1-Wire Technology and
Its Use”, Jun 19, 2008, Maxim Integrated Products, Inc.
[5]. Volnei A.Pedroni, “Circuit Design with VHDL”,MIT
Press, England.
[6]. Douglas L. Perry, “VHDL: Programming by Example”
4th
Edition.
BIOGRAPHIES
Chetan Umadi completed his Bachelor of
Engineering at K.L.S Vishwanath Rao
Deshpande Rural Institute of Technology,
Haliyal. Karnataka India in 2012.He is
Pursuing Master in Technology at
Dr.Ambedkar Institute of Technology,
Bangalore, India. His areas of interest are Digital design and
Embedded System Design.
Dr. G.V. Jayaramaiah completed his
Ph.D. From IIT-Bombay. He has
published around 19 Papers in
international journals. He is working as
Professor and Head of the department of
ECE at Dr.Ambedkar Institute of
Technology. Bangalore. India. His areas of interest are
Power Electronics, Renewable Energy and Embedded
Systems.

More Related Content

DOCX
Interfacing of data converters & io devices
PDF
Microprocessor questions converted
PPTX
Chapter5
PPTX
I/o and memory interfacing
PPTX
Bus Structure, Memory and I/O Interfacing
PDF
Over view of Microprocessor 8085 and its application
PPT
MICROPROCESSOR INPUT OUTPUT OPERATIONS
PPSX
8085 Interfacing with I/O Devices or Memory
Interfacing of data converters & io devices
Microprocessor questions converted
Chapter5
I/o and memory interfacing
Bus Structure, Memory and I/O Interfacing
Over view of Microprocessor 8085 and its application
MICROPROCESSOR INPUT OUTPUT OPERATIONS
8085 Interfacing with I/O Devices or Memory

What's hot (17)

PDF
Multiple Channel Serial I/O Interfacing using FPGA Kit
PDF
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
DOCX
8085 microprocessor
PDF
Module 2 instruction set
PDF
A010240110
DOCX
8086 MICROPROCESSOR
PPSX
8086 microprocessor
PPTX
Interfacing with peripherals: analog to digital converters and digital to ana...
PDF
8086 modes
DOC
M.sc I-sem-8086 notes
PPTX
PIN Specification of 8086 Microprocessor
PDF
8085 microprocessor Architecture and Pin description
PPT
Chapter 5
PDF
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
DOCX
Microprocessor interview questions
PDF
Module 1 8086
PPTX
Minimum mode and Maximum mode Configuration in 8086
Multiple Channel Serial I/O Interfacing using FPGA Kit
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
8085 microprocessor
Module 2 instruction set
A010240110
8086 MICROPROCESSOR
8086 microprocessor
Interfacing with peripherals: analog to digital converters and digital to ana...
8086 modes
M.sc I-sem-8086 notes
PIN Specification of 8086 Microprocessor
8085 microprocessor Architecture and Pin description
Chapter 5
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor interview questions
Module 1 8086
Minimum mode and Maximum mode Configuration in 8086
Ad

Viewers also liked (20)

PDF
Qoe enhanced social live interactive streaming
PDF
Optimization of extrusion process for production of
PPT
20160219 F. Malvestiti - DAL CARIOTIPO AL NGS: COME STA CAMBIANDO LA DIAGNOSI...
PPT
20160219 - F. Grati - Toma - Maternal Malignancies
PDF
Optimization of process parameters for vinegar
PDF
Deceitful and instigating a aerobics itinerary for twinsteered
PDF
Implementation of lru algorithm for location update in wireless m2 m communic...
PDF
Effect and optimization of machining parameters on
PDF
Effect of basic pretreatment on saccharification of
PDF
Evaluation of the impact of oil spillage on izombe community and their produc...
PDF
Study of shear walls in multistoried buildings with different thickness and r...
PDF
Compressed sensing system for efficient ecg signal
PDF
Ensuring secure transfer, access and storage over the cloud storage
PDF
Pwm generation to control variable frequency power source
PDF
Irrational node detection in multihop cellular
PDF
Emi free dc-dc buck converter for aerospace
PDF
Experimental study of behaviour of poultry feather fiber a reinforcing mate...
PDF
Design of wheelchair using finger operation with image processing algorithms
PDF
Geometric efficient matching algorithm for firewalls
PDF
Study of characteristics of partial replacement of
Qoe enhanced social live interactive streaming
Optimization of extrusion process for production of
20160219 F. Malvestiti - DAL CARIOTIPO AL NGS: COME STA CAMBIANDO LA DIAGNOSI...
20160219 - F. Grati - Toma - Maternal Malignancies
Optimization of process parameters for vinegar
Deceitful and instigating a aerobics itinerary for twinsteered
Implementation of lru algorithm for location update in wireless m2 m communic...
Effect and optimization of machining parameters on
Effect of basic pretreatment on saccharification of
Evaluation of the impact of oil spillage on izombe community and their produc...
Study of shear walls in multistoried buildings with different thickness and r...
Compressed sensing system for efficient ecg signal
Ensuring secure transfer, access and storage over the cloud storage
Pwm generation to control variable frequency power source
Irrational node detection in multihop cellular
Emi free dc-dc buck converter for aerospace
Experimental study of behaviour of poultry feather fiber a reinforcing mate...
Design of wheelchair using finger operation with image processing algorithms
Geometric efficient matching algorithm for firewalls
Study of characteristics of partial replacement of
Ad

Similar to Fpga implementation of multi protocol data (20)

PDF
Custom Hardware design for serial communication.pdf
PDF
A Survey on System-On-Chip Bus Protocols
PDF
High speed customized serial protocol for IP integration on FPGA based SOC ap...
PDF
Paper id 27201415
PPT
Introduction to microcontrollers
PDF
Communication Protocols Augmentation in VLSI Design Applications
PDF
Serial interface module for ethernet based applications
PDF
Ip interfaces by faststream technologies
PPT
Communication Interface of The Embedded Systems
PDF
Presentation_Final
PPTX
Interfacing
PDF
Jy3717961800
PPTX
MicroProcessors and MicroControllersUnit3
PPTX
Microcontroller.pptx
PPT
serial.ppt
PPT
serial.ppt
PDF
CMOS Image Sensor Design_00h20_11_io.pdf
PDF
PPTX
Embedded networking
PDF
EJ5I Embedded system chapter 2 of diploma Chapter 3.pdf
Custom Hardware design for serial communication.pdf
A Survey on System-On-Chip Bus Protocols
High speed customized serial protocol for IP integration on FPGA based SOC ap...
Paper id 27201415
Introduction to microcontrollers
Communication Protocols Augmentation in VLSI Design Applications
Serial interface module for ethernet based applications
Ip interfaces by faststream technologies
Communication Interface of The Embedded Systems
Presentation_Final
Interfacing
Jy3717961800
MicroProcessors and MicroControllersUnit3
Microcontroller.pptx
serial.ppt
serial.ppt
CMOS Image Sensor Design_00h20_11_io.pdf
Embedded networking
EJ5I Embedded system chapter 2 of diploma Chapter 3.pdf

More from eSAT Publishing House (20)

PDF
Likely impacts of hudhud on the environment of visakhapatnam
PDF
Impact of flood disaster in a drought prone area – case study of alampur vill...
PDF
Hudhud cyclone – a severe disaster in visakhapatnam
PDF
Groundwater investigation using geophysical methods a case study of pydibhim...
PDF
Flood related disasters concerned to urban flooding in bangalore, india
PDF
Enhancing post disaster recovery by optimal infrastructure capacity building
PDF
Effect of lintel and lintel band on the global performance of reinforced conc...
PDF
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
PDF
Wind damage to buildings, infrastrucuture and landscape elements along the be...
PDF
Shear strength of rc deep beam panels – a review
PDF
Role of voluntary teams of professional engineers in dissater management – ex...
PDF
Risk analysis and environmental hazard management
PDF
Review study on performance of seismically tested repaired shear walls
PDF
Monitoring and assessment of air quality with reference to dust particles (pm...
PDF
Low cost wireless sensor networks and smartphone applications for disaster ma...
PDF
Coastal zones – seismic vulnerability an analysis from east coast of india
PDF
Can fracture mechanics predict damage due disaster of structures
PDF
Assessment of seismic susceptibility of rc buildings
PDF
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
PDF
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Likely impacts of hudhud on the environment of visakhapatnam
Impact of flood disaster in a drought prone area – case study of alampur vill...
Hudhud cyclone – a severe disaster in visakhapatnam
Groundwater investigation using geophysical methods a case study of pydibhim...
Flood related disasters concerned to urban flooding in bangalore, india
Enhancing post disaster recovery by optimal infrastructure capacity building
Effect of lintel and lintel band on the global performance of reinforced conc...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to buildings, infrastrucuture and landscape elements along the be...
Shear strength of rc deep beam panels – a review
Role of voluntary teams of professional engineers in dissater management – ex...
Risk analysis and environmental hazard management
Review study on performance of seismically tested repaired shear walls
Monitoring and assessment of air quality with reference to dust particles (pm...
Low cost wireless sensor networks and smartphone applications for disaster ma...
Coastal zones – seismic vulnerability an analysis from east coast of india
Can fracture mechanics predict damage due disaster of structures
Assessment of seismic susceptibility of rc buildings
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...

Recently uploaded (20)

PPT
Mechanical Engineering MATERIALS Selection
PPTX
UNIT 4 Total Quality Management .pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
composite construction of structures.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Welding lecture in detail for understanding
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
additive manufacturing of ss316l using mig welding
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPT
Project quality management in manufacturing
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
web development for engineering and engineering
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Well-logging-methods_new................
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
Mechanical Engineering MATERIALS Selection
UNIT 4 Total Quality Management .pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
composite construction of structures.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Welding lecture in detail for understanding
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
additive manufacturing of ss316l using mig welding
Automation-in-Manufacturing-Chapter-Introduction.pdf
Project quality management in manufacturing
Lecture Notes Electrical Wiring System Components
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Well-logging-methods_new................
Model Code of Practice - Construction Work - 21102022 .pdf

Fpga implementation of multi protocol data

  • 1. IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 390 FPGA IMPLEMENTATION OF MULTI-PROTOCOL DATA ACQUISITION SYSTEM USING VHDL Chetan.Umadi1 , G.V.Jayaramaiah2 1 PG Student, Dept. of ECE, Dr.AIT, Bangalore, Karnataka, India 2 Professor & HOD, Dept. of ECE, Dr.AIT, Bangalore, Karnataka, India Abstract This paper describes the implementation of multi-protocol data acquisition system on FPGA. Data acquisition system includes four different bus protocols and storing element (FIFO). FPGA works as a data acquisition system and transfers data from the sensors/ADC to the output device. As FPGA allows each module to work independently. Therefore, we can utilize FPGA as a multi channeled data acquisition system. The four different protocols: Parallel bus protocol, SPI, I2 C and One-Wire. All modules were designed in VHDL& simulated using Xilinx-ISE 12.4and Xilinx Spartan -3E. Keywords: FPAG, Xilinx, Spartan-3E kit, Parallel bus, SPI, I2 C, One-Wire and FIFO. --------------------------------------------------------------------***------------------------------------------------------------------ 1. INTRODUCTION The data acquisition systems are most widely employed as measurement systems in many industries. Main part of the data acquisition system is bus protocols used in it. Buses are integral part of data transmission in electronic devices. These buses are implemented in software so the main aim is to collect data from sensors or ADC‟S. This paper describes the implementation of parallel and serial data transfer protocols along with comparison. Parallel protocol is alone parallel data transfer protocol and remaining all are serial data transfer protocols. Each protocol having their own characteristics and applications. Some can be replaced by other protocols and some applications needs particular bus protocol like Display/printer connections needs parallel lines. All protocols implanted on FPGA kit and modeled using VHDL. The digital signals are provided from multichannel sensors and four different ADC protocols. 2. PROPOSED WORK The proposed system is shown in Figure 1 & 2. It shows the connection of the ADC‟s with Bus protocols. The Bus protocol includes Parallel, SPI, I2 C and One-wire. Each one having separate ADC connections and the FPGA would collect data from ADC sensors. Fig- 1: Proposed system diagram The System would process all bus protocols separately and produce data at the output. Which intern connected to the CRO to visualize the output waveform.
  • 2. IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 391 Fig-2: Complete system design 3. IMPLEMENTATIONS and RESULTS 3.1 Parallel Bus Protocol Bus is important part of data transmission for any on and off-board communication. Bus may either parallel or serial type. Parallel bus enables a system to communicate simultaneously 8-bit to 64-bit with other devices or systems. The parallel bus protocol is most widely used protocol for data transmission as it can data transfer rate is higher than serial protocols. The proposed design uses ADC0820 as a example. Figure 3 shows simulation results of the parallel bus. Main steps in conversion process  FPGA sends „initial‟ signal to ADC to start and waits for data.  After conversion ADC sends an acknowledgement signal to the FPGA. FPGA reads all data and repeat the process. 3.2 Serial Peripheral Interface (SPI) Protocol SPI is a serial communication bus developed by Motorola. It is a full-duplex protocol that functions on a master-slave relation that is ideally suited for on board communication. This design uses MCP3201 as a example. Figure 4 shows the master-slave paradigm block diagram. Fig-3: Simulated waveform of parallel bus protocol SDOUT: Serial data output signal that carries data out of the device. SDIN: Serial data input signal it carries data into the device. SCLK: Serial clock generated by Master for synchronization. SS: Slave select line to select/ activate slave device. As SPI protocol is a serial protocol FPGA will read data in serial manner. Procedure remains same like previous protocol i.e. FPGA sends initial command to ADC to start conversion and ADC informs with a signal to the FPGA after conversion. Figure 5 shows the simulated SPI protocol waveforms.
  • 3. IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 392 Fig- 4: Master/Slave Transfer Block Diagram Fig-5: Simulated waveform of SPI bus protocol. 3.3 Inter-Integrated Circuit Protocol (I2C) protocol I2 C is a communication protocol having less number I/O ports compared to SPI. It requires only two signal connection wires namely SDA and SCL. It is a multi- master/ salve system. Figure 6 shows typical I2 C master- slave arrangement. This design uses PCF8591 ADC as a example. Both SDA and SCL lines are tied to VDD before start of the data transfer. Fig-6: Master/Slave Block Diagram of the I2 C protocol Few general procedures for data manipulation.  Initial state: SCL=VDD, SDA=VDD.  Start Condition : SDA 10, SCL=1.  Stop Condition : SDA 0  1, SCL=1. Data has to transfer only between Start and Stop condition. I2 C protocol is little complicated. This design uses PCF8591 ADC as a example. Figure 7 shows simulation result.  The FPGA (Master) follows START procedure as shown in the above condition. After this FPGA writes Slave address on bus to identification and waits for the acknowledgement.  After acknowledgement FPGA sends register address of the slave and waits for acknowledgement.  Now the FPGA sends read command to start reading from slave. Each time acknowledgement is must.  Once completion of data transfer Master initiates the STOP procedure by pulling SDA line to high. Fig- 7: Simulated waveform of the I2 C bus protocol. 3.4 One-Wire Protocol One-Wire communication protocol was developed by Dallas Semiconductor owned by Maxim. This protocol allows communication of multiple chips to one host with minimal pin count. The protocol is called 1-Wire because it uses 1 wire to transfer data. 1-Wire architecture uses pull up resistor to pull voltage of data line at master side. DS1820 used as the input of this One-Wire acquisition data protocol. Conversion steps:  The first step for this protocol is the „reset‟ from the FPGA (master device).  The FPGA would send a reset signal to the bus, and wait for an presence pulse from sensor (slave device). After receiving presence pulse.  After that the FPGA would send the command to sensor let it start data conversion.  After series of commands FPGA reads scratch pad memory of the slave device. That value indicates temperature details.
  • 4. IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 393 Figure 8 shows the simulated waveform of one-wire protocol. Fig-8: Simulated waveform of the one-wire bus protocol. 3.5 FIFO A FIFO is a special type of buffer. The name FIFO stands for first in first out and means that the data written into the buffer first comes out of it first. They often called a stack memory, and the shared memory. The choice of buffer architecture depends on the application to be solved. Figure 9 shows generalized FIFO operation. In this paper 8*512 size FIFO is designed, which is capable of concurrent write and read operation. 1. Read Pointer and Write Pointer: Keep track of data written/ read from memory/stack. Gray code counters usually used to generate these pointers. 2. Write and Read Enable: These are used to start writing or reading from buffer. Figure 10 shows FIFO write operation. Fig-9: General FIFO operation. Fig-10: Simulation waveform of the FIFO. 3.6 Control Unit & Multiplexer Control unit generates read_req signal and select line signal for FIFO and Mux respectively. Once read signal activated then FIFO outputs values and values reach as a mux input. Based on select line mux produces output. Multiplexer (or mux) is a device that selects one of several analog or digital input signals and forwards the selected input into a single line. A multiplexer of „2n‟ inputs has ‟n‟ select lines, which are used to select which input line to send to the output. Mux designed for 4 (8 bit) lines with 3 bit select line. Figure 11 shows final output waveform. Fig-11: Final output waveform of the system 4. CONCLUSIONS From the simulation results of the all bus protocol, we can compare speed and pin count of all protocols. As parallel bus having highest speed data transmission but alongside it is having more pins. Similarly One-wire bus with only one pin/line for communication but it is having limited applications. I2 C having advantage of slave acknowledgement feature but SPI does not support this feature.
  • 5. IJRET: International Journal of Research in Engineering and Technology ISSN: 2319-1163 | pISSN: 2321-7308 _______________________________________________________________________________________ Volume: 03 Issue: 07 | Jul-2014, Available @ http://www.ijret.org 394 Finally, we may conclude that based on the application requirement bus protocols can be chosen. Even more types bus protocols can also be implementing on FPGA and compare with these bus protocols & even system can be interfaced to PC through USB interface. REFERENCES [1]. S.Thane, S.Somkuamanit, S.Khuntawee. “Implementation of Multi-Protocol, Data Acquisition with High Speed USB interface, Using FPGA”, The International Multi Conference of Engineers and Computer Scientists (IMECS)- Vol I, March 17-19, 2010. Hong Kong. [2]. Frédéric Leens, “An Introduction to I2C and SPI protocols”. IEEE Instrumentation & Measurement Magazine February 2009. [3]. Bollam Eswari, N.Onmagal, K.Preethi, S.G. Sreejeesh, “Implementation of I2C Master Bus Controller on FPGA”. International Conference on Communication and Signal Processing, April 3-5, 2013, India. [4]. Bernhard Linke, “Overview of 1-Wire Technology and Its Use”, Jun 19, 2008, Maxim Integrated Products, Inc. [5]. Volnei A.Pedroni, “Circuit Design with VHDL”,MIT Press, England. [6]. Douglas L. Perry, “VHDL: Programming by Example” 4th Edition. BIOGRAPHIES Chetan Umadi completed his Bachelor of Engineering at K.L.S Vishwanath Rao Deshpande Rural Institute of Technology, Haliyal. Karnataka India in 2012.He is Pursuing Master in Technology at Dr.Ambedkar Institute of Technology, Bangalore, India. His areas of interest are Digital design and Embedded System Design. Dr. G.V. Jayaramaiah completed his Ph.D. From IIT-Bombay. He has published around 19 Papers in international journals. He is working as Professor and Head of the department of ECE at Dr.Ambedkar Institute of Technology. Bangalore. India. His areas of interest are Power Electronics, Renewable Energy and Embedded Systems.