SlideShare a Scribd company logo
1 of 9
Implementation of FPGA Devices with Digital Systems
Written By: Sachin Mehta
University of Nevada, Reno
2
Abstract: This laboratory experiment—conducted over a two week period—provided an
understanding and insight into the basics of digital logic and/or VHDL, Verilog circuit design.
The circuits that were constructed used various bits of digital logic design, such as decoders,
counters, and logic gates in order to obtain a specific output of LED’s on the Spartan 3-E board.
The designs we used took into account the system clock specifically in order to provide the
counters with the proper clock impulses—which helped give us our desired output of a
sequence of running lights. The importance of comprehending and understand digital logic
couldn’t be overstated for this laboratory experiment.
Results: The first portion of this laboratory experiment was to use the Spartan 3E FPGA
XC3S500E, a Xilinx FPGA board, to design and implement a digital circuit. There were two
routes to go by in order to complete the circuit—one was to use a hardware description
language (such as VHDL) and the other was to use digital logic. We used digital logic in order to
make a circuit that implements a running light of the eight light emitting diodes (or LED’s) on
the Xilinx board. If you look closely at Fig. 1, you can see the LEDs on the lower right corner of
the board.
Figure 1: Xilinx Spartan 3-E FPGA Board
LEDs
3
The circuit was constructed in the Integrated Synthesis Environment (ISE), where we could
input AND gates, decoders, clocks, and much more. In order to implement the sequence of
running lights we used various components, which allowed us to hone in on the exact circuit
that would give the desired output. Fig. 2 depicts the finished digital circuit for this portion of
the experiment.
Figure 2: Digital Circuit Schematic for Running LED’s
The circuit which we constructed used the following components: system clock, logic gates, a 3
to 8 decoder, various counters, and LED’s. In addition, it was important to input buffers
between the LED’s and the decoder, as well as between the switch and the logic gates. These
buffers were components that needed to be implemented since we were connecting a
‘symbolic’ component to a ‘board’ component.
Control of the onboard clock was a vital function that was required for the circuit to work
properly. The output of this clock, if left to a default, would essentially just keep the LED’s at a
‘1’ position—or ‘on’ position. This would result because the 3-E board systemclock has a
continuous 50 MHz run time and therefore, the lights would be constantly on and the circuit
useless. To alleviate this problem, we capitalized on the use of counters—which would serve to
4
integrate the onboard clock to the remaining digital circuit which we had in place. Four
counters were used in total and each is discussed shortly as follows:
1) CB16CE
The CB16CE was a 16 bit counter that had its ‘clock enable’ input connected to the Vcc and its
‘clock’ input connected to the system clock. Doing this connection allows the clock to remain
permanently high, which then allows each pulse the clock makes to increment the counter that
is being controlled. This 16 bit counter has the following amount of pulses:
216 = 65,563
When these 65,563 pulses have occurred, the terminal count (TC) pin will go active—allowing
cascade to occur to the next counter of the circuit: the 8 bit counter. Table 1 below discusses
the component summary of the counter and pin active/low designations.
Table 1: CB16CE Counter Summary
2) CB8CE
The CB8CE counter is designed as an 8 bit component that has the ability to work similarly to
that of the 16 bit counter discussed above. Since we are working with 8 bits, the maximum
number of clock pulse is 28 or 256. After 256 pulses the period of the clock reduces to 0.336 s.
This calculation is shown next:
50 𝑀𝐻𝑧
216+8
=
50 𝑀𝐻𝑧
224
=
50 𝑀𝐻𝑧
16777216
= 2.98 𝐻𝑧
2.98 Hz = 0.336 seconds
A summary of the 8 bit counter used for the digital circuit designed is shown in Table 2.
5
Table 2: 8 bit Counter Summary
3) CB4CE
The next portion of the circuit used two 4 bit counters. The output of the first counter is taken
at Q2 (Fig. 3) and has a maximum count of 23 = 8 pulses. The output count pulse of after the 16
bit, 8 bit and first 4 bit counter becomes: 216
× 28
× 24
= 134,217,728
This makes the clock input that arises at the second 4 bit counter:
50 𝑀𝐻𝑧
216+8+4
=
50 𝑀𝐻𝑧
228
=
50 𝑀𝐻𝑧
268435456
= 0.3725 𝐻𝑧
0.3725 Hz = 2.684 seconds
Figure 3: CB4CE Counter Pin-out
A summary of the 4 bit counter is shown below in Table 3.
6
Table 3: CB4CE Counter Summary
4) CB4CE
The second 4 bit counter is essentially the connection between the logic gates of the circuit and
all of the counters. Looking at Fig. 3, once Q0 – Q2 go high, they make a ‘high’ logic to all of the
AND2B1 gates (the six gates in Fig. 2).
The digital circuit that we designed uses double input AND2B1 gates with one inverted input
and one non-inverted input in order to provide the interface between the switch and the
output (Q0-Q2) of the second 4 bit counter, discussed above, and the three logic OR gates.
The schematic in Fig. 2 shows that the each of the Q0-Q2 outputs are fed to the following AND
terminals: the non-inverting input of one AND gate and the respective inverting terminal of its
neighboring AND gate. This allows the switch of the circuit to connect to the inverting input of
the former and the non-inverting input of the latter. Both the switch and the Q0-Q2 4 bit
counter outputs makes a combination that comprise a pair of AND gates. In order to construct
this design we made use of contemporary digital logic design and applied truth tables, which
show that the state of an AND gate pair, given an input from the second 4 bit counter’s Qx
terminal and the circuit switch. Table 4 discusses the truth table for an AND gate pair. The table
has a shaded region that clearly shows the state of the first two AND gates given the state of
the output Q0 from the second 4 bit counter and the state of the switch.
7
Table 4: AND Gate Pair Truth Table
Note that the remaining AND gates use the same logic as shown above.
The next portion of the circuit is the connection of the AND gates to the OR gates. The OR gate
triplet takes in and input of logic from the three pairs of AND gates. We have to remember that
the only output available in logic is a 1 or 0. The three OR gates make up the combinations that
make up the inputs to the 3-to-8 decoder. The truth table depicted in Table 5 shows the output
of the OR gates.
Table 5: Truth Table for OR Gate Logic
Discussion of the 3-to-8 decoder follows next. This decoder has inputs accepted at the pins A0-
A2 that are from the OR gate triplet. The respective LED will be selected and turned depending
upon the binary input to the 3-to-8 decoder. These outputs are discussed and shown in Table
6.
8
Table 6: 3-to-8 Decoder Truth Table
Part 6 of this laboratory experiment was the simple implementation of the circuit designed
discussed above. Two different designs were required:
1) Simply the running light sequence that moves in one direction and changes direction when a
button was pressed.
This design was discussed throughout the earlier parts of this lab report, and responded to a
button press of L13. This means that once the circuit starts running, pressing this button will
make the lights light up in the opposite direction (right to left -- left to right)
2) A bouncing light that changes direction when it reaches the last LED on both ends of the LED
bar.
The figure below (Fig. 4) shows this second design circuit schematic. Note, how the digital
circuit design is essentially the same as the first design, but by replacing the switch with the
second 4 bit counter output Q3.
9
Figure 4: Second Design Circuit Schematic
Summary
This laboratory experiment used the properties of digital logic in order to obtain a desired
circuit and output. Operating the FPGA board became somewhat complicated when pins
needed to be chosen in the implementation on the physical board. However, the design of the
two circuits relied solely upon digital logic and binary. Knowing this was critical for complete
design specifications, and all details lain out prior in this report discuss what component was
used and why that component was used. This laboratory experiment differed from the others
that we have completed in that, again, digital logic was used—and not simple electrical circuit
laws like Kirchoff’s Voltage or Current Law. All in all, this laboratory experiment tested our
ability to comprehend and analyze logic design to obtain a desired output—like running LED’s
on the Spartan 3-E FPGA board.

More Related Content

What's hot

04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16John Todora
 
03 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp1503 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp15John Todora
 
Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Techglyphs
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu Piyush Rochwani
 
Combinational logic circuits
Combinational logic circuitsCombinational logic circuits
Combinational logic circuitsAswiniT3
 
05 analog control_sp15
05 analog control_sp1505 analog control_sp15
05 analog control_sp15John Todora
 
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processorPriyatham Bollimpalli
 
12 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa1412 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa14John Todora
 
A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...Alexander Decker
 
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counterOmkar Rane
 
Counters ibrahem
Counters ibrahemCounters ibrahem
Counters ibrahemIbranoz1990
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuitsabina deshar
 

What's hot (19)

04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
03 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp1503 shift registers_and_more_data_manipulation_sp15
03 shift registers_and_more_data_manipulation_sp15
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
 
Combinational logic circuits
Combinational logic circuitsCombinational logic circuits
Combinational logic circuits
 
05 analog control_sp15
05 analog control_sp1505 analog control_sp15
05 analog control_sp15
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processor
 
12 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa1412 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa14
 
A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...A parallel 8 bit computer interface circuit and software for a digital nuclea...
A parallel 8 bit computer interface circuit and software for a digital nuclea...
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counter
 
Counters ibrahem
Counters ibrahemCounters ibrahem
Counters ibrahem
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Stld
StldStld
Stld
 
Group 7 combinational logic
Group 7 combinational logicGroup 7 combinational logic
Group 7 combinational logic
 
The I2C Interface
The I2C InterfaceThe I2C Interface
The I2C Interface
 

Similar to FPGA Implementation with Digital Devices

Design, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting CircuitDesign, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting CircuitIOSR Journals
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) inventionjournals
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Jikrul Sayeed
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan ReportPeeyush Pashine
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manualNitesh Dubey
 
ALU project(segma team)
ALU project(segma team)ALU project(segma team)
ALU project(segma team)Mohamed Seif
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amitAmith Bhonsle
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amitAmith Bhonsle
 
Iaetsd implementation of power efficient iterative logarithmic multiplier usi...
Iaetsd implementation of power efficient iterative logarithmic multiplier usi...Iaetsd implementation of power efficient iterative logarithmic multiplier usi...
Iaetsd implementation of power efficient iterative logarithmic multiplier usi...Iaetsd Iaetsd
 
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Mini Project 1 -  2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...Mini Project 1 -  2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...AIMST University
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Hari Prakash
 
Micro Processor Lab Manual!
Micro Processor Lab Manual!Micro Processor Lab Manual!
Micro Processor Lab Manual!PRABHAHARAN429
 
Digital electronics lab
Digital electronics labDigital electronics lab
Digital electronics labswatymanoja
 
Ecet 340 Your world/newtonhelp.com
Ecet 340 Your world/newtonhelp.comEcet 340 Your world/newtonhelp.com
Ecet 340 Your world/newtonhelp.comamaranthbeg100
 
Ecet 340 Motivated Minds/newtonhelp.com
Ecet 340 Motivated Minds/newtonhelp.comEcet 340 Motivated Minds/newtonhelp.com
Ecet 340 Motivated Minds/newtonhelp.comamaranthbeg60
 

Similar to FPGA Implementation with Digital Devices (20)

Bds lab 4
Bds lab 4Bds lab 4
Bds lab 4
 
project 3 full report
project 3 full reportproject 3 full report
project 3 full report
 
Design, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting CircuitDesign, Construction and Operation of a 4-Bit Counting Circuit
Design, Construction and Operation of a 4-Bit Counting Circuit
 
K010137378
K010137378K010137378
K010137378
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI) International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan Report
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
ALU project(segma team)
ALU project(segma team)ALU project(segma team)
ALU project(segma team)
 
DIGITAL ELECTRONICS TRAINER KIT
DIGITAL ELECTRONICS TRAINER KITDIGITAL ELECTRONICS TRAINER KIT
DIGITAL ELECTRONICS TRAINER KIT
 
Designing Of Time and Power Efficient Model for Controlling Of Critical Process
Designing Of Time and Power Efficient Model for Controlling Of Critical ProcessDesigning Of Time and Power Efficient Model for Controlling Of Critical Process
Designing Of Time and Power Efficient Model for Controlling Of Critical Process
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amit
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates  by_amitIeee project reversible logic gates  by_amit
Ieee project reversible logic gates by_amit
 
Iaetsd implementation of power efficient iterative logarithmic multiplier usi...
Iaetsd implementation of power efficient iterative logarithmic multiplier usi...Iaetsd implementation of power efficient iterative logarithmic multiplier usi...
Iaetsd implementation of power efficient iterative logarithmic multiplier usi...
 
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Mini Project 1 -  2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...Mini Project 1 -  2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
Micro Processor Lab Manual!
Micro Processor Lab Manual!Micro Processor Lab Manual!
Micro Processor Lab Manual!
 
Digital electronics lab
Digital electronics labDigital electronics lab
Digital electronics lab
 
Ecet 340 Your world/newtonhelp.com
Ecet 340 Your world/newtonhelp.comEcet 340 Your world/newtonhelp.com
Ecet 340 Your world/newtonhelp.com
 
Ecet 340 Motivated Minds/newtonhelp.com
Ecet 340 Motivated Minds/newtonhelp.comEcet 340 Motivated Minds/newtonhelp.com
Ecet 340 Motivated Minds/newtonhelp.com
 

More from Sachin Mehta

Wire Routing System
Wire Routing SystemWire Routing System
Wire Routing SystemSachin Mehta
 
Color Filtering using Polystyrene Microspheres
Color Filtering using Polystyrene Microspheres Color Filtering using Polystyrene Microspheres
Color Filtering using Polystyrene Microspheres Sachin Mehta
 
Introduction to Electrical Circuits for K-12 in Reno, Nevada
Introduction to Electrical Circuits for K-12 in Reno, NevadaIntroduction to Electrical Circuits for K-12 in Reno, Nevada
Introduction to Electrical Circuits for K-12 in Reno, NevadaSachin Mehta
 
Sinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL CircuitsSinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL CircuitsSachin Mehta
 
Resonant Response of RLC Circuits
Resonant Response of RLC Circuits Resonant Response of RLC Circuits
Resonant Response of RLC Circuits Sachin Mehta
 
ATP Sensitive Potassium Channel Mediated Lactate Effect
ATP Sensitive Potassium Channel Mediated Lactate Effect ATP Sensitive Potassium Channel Mediated Lactate Effect
ATP Sensitive Potassium Channel Mediated Lactate Effect Sachin Mehta
 
Simple Circuit Design Draft
Simple Circuit Design DraftSimple Circuit Design Draft
Simple Circuit Design DraftSachin Mehta
 
Integration of Advanced Protocols for Detection and Communication
Integration of Advanced Protocols for Detection and CommunicationIntegration of Advanced Protocols for Detection and Communication
Integration of Advanced Protocols for Detection and CommunicationSachin Mehta
 
Brief Overview of Thermistor Sensors and their Applications in Engineering & ...
Brief Overview of Thermistor Sensors and their Applications in Engineering & ...Brief Overview of Thermistor Sensors and their Applications in Engineering & ...
Brief Overview of Thermistor Sensors and their Applications in Engineering & ...Sachin Mehta
 
Geological Investigation of the Mono Basing using ArcGIS
Geological Investigation of the Mono Basing using ArcGISGeological Investigation of the Mono Basing using ArcGIS
Geological Investigation of the Mono Basing using ArcGISSachin Mehta
 
Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...
Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...
Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...Sachin Mehta
 
Transfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational AmplifiersTransfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational AmplifiersSachin Mehta
 
Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies Sachin Mehta
 
Practical Active Filter Design
Practical Active Filter Design Practical Active Filter Design
Practical Active Filter Design Sachin Mehta
 
Collision Communication System
Collision Communication SystemCollision Communication System
Collision Communication SystemSachin Mehta
 
Novel Analysis of Mono Basin using ArcGIS
Novel Analysis of Mono Basin using ArcGISNovel Analysis of Mono Basin using ArcGIS
Novel Analysis of Mono Basin using ArcGISSachin Mehta
 

More from Sachin Mehta (17)

Wire Routing System
Wire Routing SystemWire Routing System
Wire Routing System
 
Color Filtering using Polystyrene Microspheres
Color Filtering using Polystyrene Microspheres Color Filtering using Polystyrene Microspheres
Color Filtering using Polystyrene Microspheres
 
Introduction to Electrical Circuits for K-12 in Reno, Nevada
Introduction to Electrical Circuits for K-12 in Reno, NevadaIntroduction to Electrical Circuits for K-12 in Reno, Nevada
Introduction to Electrical Circuits for K-12 in Reno, Nevada
 
Sinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL CircuitsSinusoidal Response of RC & RL Circuits
Sinusoidal Response of RC & RL Circuits
 
Resonant Response of RLC Circuits
Resonant Response of RLC Circuits Resonant Response of RLC Circuits
Resonant Response of RLC Circuits
 
ATP Sensitive Potassium Channel Mediated Lactate Effect
ATP Sensitive Potassium Channel Mediated Lactate Effect ATP Sensitive Potassium Channel Mediated Lactate Effect
ATP Sensitive Potassium Channel Mediated Lactate Effect
 
Simple Circuit Design Draft
Simple Circuit Design DraftSimple Circuit Design Draft
Simple Circuit Design Draft
 
Integration of Advanced Protocols for Detection and Communication
Integration of Advanced Protocols for Detection and CommunicationIntegration of Advanced Protocols for Detection and Communication
Integration of Advanced Protocols for Detection and Communication
 
Electroporation
ElectroporationElectroporation
Electroporation
 
Brief Overview of Thermistor Sensors and their Applications in Engineering & ...
Brief Overview of Thermistor Sensors and their Applications in Engineering & ...Brief Overview of Thermistor Sensors and their Applications in Engineering & ...
Brief Overview of Thermistor Sensors and their Applications in Engineering & ...
 
Geological Investigation of the Mono Basing using ArcGIS
Geological Investigation of the Mono Basing using ArcGISGeological Investigation of the Mono Basing using ArcGIS
Geological Investigation of the Mono Basing using ArcGIS
 
Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...
Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...
Implentation of Inverse Distance Weighting, Local Polynomial Interpolation, a...
 
Transfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational AmplifiersTransfer Functions and Linear Active Networks Using Operational Amplifiers
Transfer Functions and Linear Active Networks Using Operational Amplifiers
 
Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies Design & Construction of Switched Mode Power Supplies
Design & Construction of Switched Mode Power Supplies
 
Practical Active Filter Design
Practical Active Filter Design Practical Active Filter Design
Practical Active Filter Design
 
Collision Communication System
Collision Communication SystemCollision Communication System
Collision Communication System
 
Novel Analysis of Mono Basin using ArcGIS
Novel Analysis of Mono Basin using ArcGISNovel Analysis of Mono Basin using ArcGIS
Novel Analysis of Mono Basin using ArcGIS
 

Recently uploaded

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

FPGA Implementation with Digital Devices

  • 1. Implementation of FPGA Devices with Digital Systems Written By: Sachin Mehta University of Nevada, Reno
  • 2. 2 Abstract: This laboratory experiment—conducted over a two week period—provided an understanding and insight into the basics of digital logic and/or VHDL, Verilog circuit design. The circuits that were constructed used various bits of digital logic design, such as decoders, counters, and logic gates in order to obtain a specific output of LED’s on the Spartan 3-E board. The designs we used took into account the system clock specifically in order to provide the counters with the proper clock impulses—which helped give us our desired output of a sequence of running lights. The importance of comprehending and understand digital logic couldn’t be overstated for this laboratory experiment. Results: The first portion of this laboratory experiment was to use the Spartan 3E FPGA XC3S500E, a Xilinx FPGA board, to design and implement a digital circuit. There were two routes to go by in order to complete the circuit—one was to use a hardware description language (such as VHDL) and the other was to use digital logic. We used digital logic in order to make a circuit that implements a running light of the eight light emitting diodes (or LED’s) on the Xilinx board. If you look closely at Fig. 1, you can see the LEDs on the lower right corner of the board. Figure 1: Xilinx Spartan 3-E FPGA Board LEDs
  • 3. 3 The circuit was constructed in the Integrated Synthesis Environment (ISE), where we could input AND gates, decoders, clocks, and much more. In order to implement the sequence of running lights we used various components, which allowed us to hone in on the exact circuit that would give the desired output. Fig. 2 depicts the finished digital circuit for this portion of the experiment. Figure 2: Digital Circuit Schematic for Running LED’s The circuit which we constructed used the following components: system clock, logic gates, a 3 to 8 decoder, various counters, and LED’s. In addition, it was important to input buffers between the LED’s and the decoder, as well as between the switch and the logic gates. These buffers were components that needed to be implemented since we were connecting a ‘symbolic’ component to a ‘board’ component. Control of the onboard clock was a vital function that was required for the circuit to work properly. The output of this clock, if left to a default, would essentially just keep the LED’s at a ‘1’ position—or ‘on’ position. This would result because the 3-E board systemclock has a continuous 50 MHz run time and therefore, the lights would be constantly on and the circuit useless. To alleviate this problem, we capitalized on the use of counters—which would serve to
  • 4. 4 integrate the onboard clock to the remaining digital circuit which we had in place. Four counters were used in total and each is discussed shortly as follows: 1) CB16CE The CB16CE was a 16 bit counter that had its ‘clock enable’ input connected to the Vcc and its ‘clock’ input connected to the system clock. Doing this connection allows the clock to remain permanently high, which then allows each pulse the clock makes to increment the counter that is being controlled. This 16 bit counter has the following amount of pulses: 216 = 65,563 When these 65,563 pulses have occurred, the terminal count (TC) pin will go active—allowing cascade to occur to the next counter of the circuit: the 8 bit counter. Table 1 below discusses the component summary of the counter and pin active/low designations. Table 1: CB16CE Counter Summary 2) CB8CE The CB8CE counter is designed as an 8 bit component that has the ability to work similarly to that of the 16 bit counter discussed above. Since we are working with 8 bits, the maximum number of clock pulse is 28 or 256. After 256 pulses the period of the clock reduces to 0.336 s. This calculation is shown next: 50 𝑀𝐻𝑧 216+8 = 50 𝑀𝐻𝑧 224 = 50 𝑀𝐻𝑧 16777216 = 2.98 𝐻𝑧 2.98 Hz = 0.336 seconds A summary of the 8 bit counter used for the digital circuit designed is shown in Table 2.
  • 5. 5 Table 2: 8 bit Counter Summary 3) CB4CE The next portion of the circuit used two 4 bit counters. The output of the first counter is taken at Q2 (Fig. 3) and has a maximum count of 23 = 8 pulses. The output count pulse of after the 16 bit, 8 bit and first 4 bit counter becomes: 216 × 28 × 24 = 134,217,728 This makes the clock input that arises at the second 4 bit counter: 50 𝑀𝐻𝑧 216+8+4 = 50 𝑀𝐻𝑧 228 = 50 𝑀𝐻𝑧 268435456 = 0.3725 𝐻𝑧 0.3725 Hz = 2.684 seconds Figure 3: CB4CE Counter Pin-out A summary of the 4 bit counter is shown below in Table 3.
  • 6. 6 Table 3: CB4CE Counter Summary 4) CB4CE The second 4 bit counter is essentially the connection between the logic gates of the circuit and all of the counters. Looking at Fig. 3, once Q0 – Q2 go high, they make a ‘high’ logic to all of the AND2B1 gates (the six gates in Fig. 2). The digital circuit that we designed uses double input AND2B1 gates with one inverted input and one non-inverted input in order to provide the interface between the switch and the output (Q0-Q2) of the second 4 bit counter, discussed above, and the three logic OR gates. The schematic in Fig. 2 shows that the each of the Q0-Q2 outputs are fed to the following AND terminals: the non-inverting input of one AND gate and the respective inverting terminal of its neighboring AND gate. This allows the switch of the circuit to connect to the inverting input of the former and the non-inverting input of the latter. Both the switch and the Q0-Q2 4 bit counter outputs makes a combination that comprise a pair of AND gates. In order to construct this design we made use of contemporary digital logic design and applied truth tables, which show that the state of an AND gate pair, given an input from the second 4 bit counter’s Qx terminal and the circuit switch. Table 4 discusses the truth table for an AND gate pair. The table has a shaded region that clearly shows the state of the first two AND gates given the state of the output Q0 from the second 4 bit counter and the state of the switch.
  • 7. 7 Table 4: AND Gate Pair Truth Table Note that the remaining AND gates use the same logic as shown above. The next portion of the circuit is the connection of the AND gates to the OR gates. The OR gate triplet takes in and input of logic from the three pairs of AND gates. We have to remember that the only output available in logic is a 1 or 0. The three OR gates make up the combinations that make up the inputs to the 3-to-8 decoder. The truth table depicted in Table 5 shows the output of the OR gates. Table 5: Truth Table for OR Gate Logic Discussion of the 3-to-8 decoder follows next. This decoder has inputs accepted at the pins A0- A2 that are from the OR gate triplet. The respective LED will be selected and turned depending upon the binary input to the 3-to-8 decoder. These outputs are discussed and shown in Table 6.
  • 8. 8 Table 6: 3-to-8 Decoder Truth Table Part 6 of this laboratory experiment was the simple implementation of the circuit designed discussed above. Two different designs were required: 1) Simply the running light sequence that moves in one direction and changes direction when a button was pressed. This design was discussed throughout the earlier parts of this lab report, and responded to a button press of L13. This means that once the circuit starts running, pressing this button will make the lights light up in the opposite direction (right to left -- left to right) 2) A bouncing light that changes direction when it reaches the last LED on both ends of the LED bar. The figure below (Fig. 4) shows this second design circuit schematic. Note, how the digital circuit design is essentially the same as the first design, but by replacing the switch with the second 4 bit counter output Q3.
  • 9. 9 Figure 4: Second Design Circuit Schematic Summary This laboratory experiment used the properties of digital logic in order to obtain a desired circuit and output. Operating the FPGA board became somewhat complicated when pins needed to be chosen in the implementation on the physical board. However, the design of the two circuits relied solely upon digital logic and binary. Knowing this was critical for complete design specifications, and all details lain out prior in this report discuss what component was used and why that component was used. This laboratory experiment differed from the others that we have completed in that, again, digital logic was used—and not simple electrical circuit laws like Kirchoff’s Voltage or Current Law. All in all, this laboratory experiment tested our ability to comprehend and analyze logic design to obtain a desired output—like running LED’s on the Spartan 3-E FPGA board.