SlideShare une entreprise Scribd logo
1  sur  10
Télécharger pour lire hors ligne
Katrina Little
Experiment #4:
Three- Bit Binary Adder
Katrina
Little
Page number 2
OBJECTIVES:
 To design a Binary Adder which will add two binary words (three bits
each) using discrete gates.
 To introduce iterative cell design techniques.
 Expand knowledge of Xilinx’s ISE using buses.
EQUIPMENT LIST:
 FPGA BASYS1 board (Spartan3e, device XC3S100E, package type TQ144)
 Xilinx ISE program
 Flash Drive
 BIT file
BLOCK DIAGRAM:
DESIGN SPECIFICATION PLAN:
A parallel adder is to be designed to add two binary digits (three bits each), X: (X2X1X0)
and Y: (Y2Y1Y0). The adder can be designed using “brute force” method in which, three
six variable Karnaugh Maps are used to implement the functions representing the
outputs of a three-bit addition. Since this method is not very efficient, the iterative cell
technique will be used. With this method, two binary numbers are presented in parallel
to the cell as inputs. The rightmost cell adds the least significant bit (LSB) X0 and Y0 to
form a sum digit S0 and carry digit C0. The next cell adds the carry digit C0 to bits X1 and
Y1 to form a sum digit S1 and a carry digit C1. The last cell adds the Carry C1 to bits X2
and Y2 to form a sum digit S2 and a carry digit Cout.
Figure (1)
One- Bit
Full Adder
Sin
Yin
Xin
Cout
Cin
One- Bit
Half Adder
Sin
Yin Cout
Xin
Figure (2)
Katrina
Little
Page number 3
To design a network, a typical cell should be designed which adds a carry Ci to bits Xi
and Yi to generate a sum digit Si and a new Carry Cout as shown in Figure 1 above. The
circuit that realizes this function is referred to as the “full adder” cell. NOTE: this does
not include the carry-in on the LSB of X and Y. Figure 2 represents the “Half-Adder” cell.
The full and half adder only represent 1-bit.
DESIGN METHODOLOGY:
Equations for Full and half adders are as follows:
Half Adder:
Si = Xi Yi
Ci = XiYi
Full Adder:
Si = Xi Yi Ci-1,
Ci= (XiYi) + (XiCi-1) + (YiCi-1)
From the Boolean Algebra it can be seen that the Sums will use an EXOR gate and the Carries will use a
series of AND/OR gates.
Xi Yi Ci Si Ci-1 Xi Yi Si Ci
0 0 0 0 0 0 0 0 0
0 1 0 1 0 0 1 1 0
1 0 0 1 0 1 0 1 0
1 1 1 0 0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Figure 3 (above- left) shows the truth table for the half adder and Figure 4 (above-right) shows
the truth table for the Full adder.
3-Bit Binary
Adder
Y2 X2 Y1 X0X1 Y0
Cout S2 S1 S0
Katrina
Little
Page number 4
DETAILED SCHEMATIC DIAGRAM:
Xi
Yi
Xi
Yi
Si
Ci
Xi
Ci-1
Yi
Si
Ci
Figure 5 (left ) shows the configuration for
the Half- Adder using 1 AND gate and 1 XOR
gate Half- Adder has two inputs: Xi and Yi
Figure 6 (below) shows the configuration for
the Full-Adder to connect the three inputs:
Xi, Yi, and Ci-1 using 3 AND gates and 2 XOR
gates.
Katrina
Little
Page number 5
VERILOG REPRESENTATION OF SCHEMATIC:
module(X,Y,S,C0;
input [2:0]X;
input [2:0]Y;
output [2:0]S;
output C;
wire[2:0] X;
wire[2:0]Y;
wire[2:0]S;
assign S[0] = X[0]^Y[0];
assign S[1] = (X[0]&Y[0]^(X[1]^Y[1]);
assign S[2] =(((X[0]&Y[0])&X[1])) + ((X[0]&Y[0])&Y[1]) +(X[1]&Y[1]))^(X[2]^Y[2]);
assign C = ((((X[0]&Y[0])&X[1]) + ((X[0]&Y[0])&Y[1]) + ((X[1]&Y[1])&X[2]) + ((((X[0]&Y[0])&X[1])
+((X[0]&Y[0])&Y[1]) + (X[1]&Y[1])&Y[2]) +(X[2]&Y[2]);
endmodule
Input/Output Switch LED Pin #
X[0] SW0 38
X[2] SW2 29
Y[0] SW5 12
Y[2] SW7 6
S[0] LED0 15
S[2] LED2 8
Cout LED7 2
Figure 7 (left) displays the Pin connections
for the Switches and LED’s of the inputs and
outputs of the Schematics.
Katrina
Little
Page number 6
TEST PLAN (PROCEDURE):
The test plan was broken into three parts essentially:
I. Use the schematic capture tool to create a one bit half adder.
II. Use the schematic capture tool to create a one bit full-adder
III. Using buses for X, Y, and S, connect the one-bit full/half adders
a. Generate a timing diagram (test bench) to cycle through all possible bit
combinations
b. Simulate model behavior
c. Assign Pin connections for LED’s and switches
d. Generate a bit file a program it to the BASYS board.
IV. Use the Verilog language to create the design (Repeat steps a-d in part III)
V. Test your design using switches on the BASYS board and make sure they match truth tables.
I.
Katrina
Little
Page number 7
II:
III.
Katrina
Little
Page number 8
III.b
IV.
Katrina
Little
Page number 9
IV.b:
RESULTS:
The results matched the truth tables in figures 3 and 4.
CONCLUSIONS (QUESTIONS):
1) Using full adder and half adder block diagrams, draw an 8-bit adder
2) Comment on the feasibility of designing an 8-bit adder.
The brute force method would be very time consuming because you would have to use many
Karnaugh maps. Using the iterative method makes more sense because you only have to build truth
tables for a half and full adder
3) Identify the advantages and disadvantages of the brute force method.
The advantage of using the brute force method is that the Karnaugh map would directly indicate
to you the outputs based on the inputs. However, this methodology, initially, is very time
consuming and can require the use of many Karnaugh maps. Karnaugh maps are much easier to
read.
Katrina
Little
Page number 10
4) Identify the advantages and disadvantages of the iterative cell method.
The iterative method would require use of Karnaugh maps repeatedly, but construction the 8-bit
adder takes a lot less time The 8 bit-adder is harder to read.
5) Have you met all requirements of the Design Specification plan?
Yes, the full and half adders were constructed and put together using buses. The Verilog
language schematic was also implemented successfully. The Plans were tested on the BASYS
board and functioned as predicted.
6) How should our design be tested (Test Plan)?
See Above
Half
X
0
Y
0
S
0
C
0 FullX
1Y
1
S
1
C
1
FullX
2Y
2
S
2
C
2
Full
C
2X
3Y
3
S
3
C
3 FullX
4Y
4
S
4
C
4 FullX
5Y
5
S
5
C
5
Full
C
5X
6Y
6
S
6
C
6 FullX
7Y
7
S
7
C
7

Contenu connexe

Tendances

Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1vamshi krishna
 
Gate level design -For beginners
Gate level design -For beginnersGate level design -For beginners
Gate level design -For beginnersDr.YNM
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogSTEPHEN MOIRANGTHEM
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip FlopNahian Ahmed
 
Quine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodQuine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodSyed Saeed
 
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4Dr.YNM
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation finalAnkur Gupta
 
Concepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLConcepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLanand hd
 
Design options for digital systems
Design options for digital systemsDesign options for digital systems
Design options for digital systemsdennis gookyi
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey methodUnsa Shakir
 
Digital system design lab manual
Digital system design lab manualDigital system design lab manual
Digital system design lab manualSanthosh Poralu
 
DIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUIT
DIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUITDIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUIT
DIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUITsanjay kumar pediredla
 
Verilog coding of demux 8 x1
Verilog coding of demux  8 x1Verilog coding of demux  8 x1
Verilog coding of demux 8 x1Rakesh kumar jha
 
Verilog coding of mux 8 x1
Verilog coding of mux  8 x1Verilog coding of mux  8 x1
Verilog coding of mux 8 x1Rakesh kumar jha
 

Tendances (20)

Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1
 
4 bit uni shift reg
4 bit uni shift reg4 bit uni shift reg
4 bit uni shift reg
 
Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)
 
Gate level design -For beginners
Gate level design -For beginnersGate level design -For beginners
Gate level design -For beginners
 
Switch level modeling
Switch level modelingSwitch level modeling
Switch level modeling
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilog
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
Quine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) methodQuine Mc Clusky (Tabular) method
Quine Mc Clusky (Tabular) method
 
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation final
 
Concepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDLConcepts of Behavioral modelling in Verilog HDL
Concepts of Behavioral modelling in Verilog HDL
 
Design options for digital systems
Design options for digital systemsDesign options for digital systems
Design options for digital systems
 
quine mc cluskey method
 quine mc cluskey method quine mc cluskey method
quine mc cluskey method
 
Logic gates presentation
Logic gates presentationLogic gates presentation
Logic gates presentation
 
Digital system design lab manual
Digital system design lab manualDigital system design lab manual
Digital system design lab manual
 
DIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUIT
DIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUITDIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUIT
DIGITAL ELECTRONICS DESIGN OF 3 BIT MAJORITY CIRCUIT
 
Verilog coding of demux 8 x1
Verilog coding of demux  8 x1Verilog coding of demux  8 x1
Verilog coding of demux 8 x1
 
Verilog tutorial
Verilog tutorialVerilog tutorial
Verilog tutorial
 
Verilog coding of mux 8 x1
Verilog coding of mux  8 x1Verilog coding of mux  8 x1
Verilog coding of mux 8 x1
 

Similaire à Lab 4 Three-Bit Binary Adder

Comparison among Different Adders
Comparison among Different Adders Comparison among Different Adders
Comparison among Different Adders iosrjce
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptxamudhak10
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECESeshaVidhyaS
 
8 bit Multiplier Accumulator
8 bit Multiplier Accumulator8 bit Multiplier Accumulator
8 bit Multiplier AccumulatorDaksh Raj Chopra
 
Implementation of Low Power and Area Efficient Carry Select Adder
Implementation of Low Power and Area Efficient Carry Select AdderImplementation of Low Power and Area Efficient Carry Select Adder
Implementation of Low Power and Area Efficient Carry Select Adderinventionjournals
 
Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...
Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...
Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...Kunjan Shinde
 
kunjan elsevier paper
kunjan elsevier paperkunjan elsevier paper
kunjan elsevier paperKunjan Shinde
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractorUnsa Shakir
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manualNitesh Dubey
 
Unit 3 Arithmetic building blocks and memory Design (1).pdf
Unit 3 Arithmetic building blocks and  memory Design (1).pdfUnit 3 Arithmetic building blocks and  memory Design (1).pdf
Unit 3 Arithmetic building blocks and memory Design (1).pdfShreyasMahesh
 
IRJET- Wallace Tree Multiplier using MFA Counters
IRJET-  	  Wallace Tree Multiplier using MFA CountersIRJET-  	  Wallace Tree Multiplier using MFA Counters
IRJET- Wallace Tree Multiplier using MFA CountersIRJET Journal
 
implementation and design of 32-bit adder
implementation and design of 32-bit adderimplementation and design of 32-bit adder
implementation and design of 32-bit adderveereshwararao
 
a technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliersa technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliersINFOGAIN PUBLICATION
 
Paper id 37201520
Paper id 37201520Paper id 37201520
Paper id 37201520IJRAT
 

Similaire à Lab 4 Three-Bit Binary Adder (20)

Comparison among Different Adders
Comparison among Different Adders Comparison among Different Adders
Comparison among Different Adders
 
IJETT-V9P226
IJETT-V9P226IJETT-V9P226
IJETT-V9P226
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
 
8 bit Multiplier Accumulator
8 bit Multiplier Accumulator8 bit Multiplier Accumulator
8 bit Multiplier Accumulator
 
Implementation of Low Power and Area Efficient Carry Select Adder
Implementation of Low Power and Area Efficient Carry Select AdderImplementation of Low Power and Area Efficient Carry Select Adder
Implementation of Low Power and Area Efficient Carry Select Adder
 
Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...
Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...
Modeling design and_performance_analysis_of_various_8_bit_adders_for_embedded...
 
kunjan elsevier paper
kunjan elsevier paperkunjan elsevier paper
kunjan elsevier paper
 
cs 3351 dpco
cs 3351 dpcocs 3351 dpco
cs 3351 dpco
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
Unit 3 Arithmetic building blocks and memory Design (1).pdf
Unit 3 Arithmetic building blocks and  memory Design (1).pdfUnit 3 Arithmetic building blocks and  memory Design (1).pdf
Unit 3 Arithmetic building blocks and memory Design (1).pdf
 
IRJET- Wallace Tree Multiplier using MFA Counters
IRJET-  	  Wallace Tree Multiplier using MFA CountersIRJET-  	  Wallace Tree Multiplier using MFA Counters
IRJET- Wallace Tree Multiplier using MFA Counters
 
implementation and design of 32-bit adder
implementation and design of 32-bit adderimplementation and design of 32-bit adder
implementation and design of 32-bit adder
 
a technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliersa technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliers
 
D0532025
D0532025D0532025
D0532025
 
Paper id 37201520
Paper id 37201520Paper id 37201520
Paper id 37201520
 

Plus de Katrina Little

Electronics ii hand written formula sheets
Electronics ii hand written formula sheetsElectronics ii hand written formula sheets
Electronics ii hand written formula sheetsKatrina Little
 
Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator Katrina Little
 
MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart Katrina Little
 
MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems Katrina Little
 
Lab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and ApplicationsLab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and ApplicationsKatrina Little
 
Lab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt TriggersLab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt TriggersKatrina Little
 
Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators Katrina Little
 
Lab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage RegulatorsLab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage RegulatorsKatrina Little
 
Lab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational AmplifiersLab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational AmplifiersKatrina Little
 
Experiment 2, Diode Applications
Experiment 2, Diode ApplicationsExperiment 2, Diode Applications
Experiment 2, Diode ApplicationsKatrina Little
 
Experiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design ProjectExperiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design ProjectKatrina Little
 
Experiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal AmplifiersExperiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal AmplifiersKatrina Little
 
Experiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC AmplifiersExperiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC AmplifiersKatrina Little
 
Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter Katrina Little
 
Lab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB SimulationsLab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB SimulationsKatrina Little
 
RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams Katrina Little
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterKatrina Little
 
Senior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cadSenior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cadKatrina Little
 
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations Katrina Little
 
Semiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheetsSemiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheetsKatrina Little
 

Plus de Katrina Little (20)

Electronics ii hand written formula sheets
Electronics ii hand written formula sheetsElectronics ii hand written formula sheets
Electronics ii hand written formula sheets
 
Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator
 
MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart
 
MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems
 
Lab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and ApplicationsLab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and Applications
 
Lab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt TriggersLab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt Triggers
 
Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators
 
Lab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage RegulatorsLab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage Regulators
 
Lab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational AmplifiersLab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational Amplifiers
 
Experiment 2, Diode Applications
Experiment 2, Diode ApplicationsExperiment 2, Diode Applications
Experiment 2, Diode Applications
 
Experiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design ProjectExperiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design Project
 
Experiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal AmplifiersExperiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal Amplifiers
 
Experiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC AmplifiersExperiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC Amplifiers
 
Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter
 
Lab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB SimulationsLab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
 
RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
Senior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cadSenior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cad
 
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
 
Semiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheetsSemiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheets
 

Dernier

US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxNiranjanYadav41
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 

Dernier (20)

US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptx
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 

Lab 4 Three-Bit Binary Adder

  • 2. Katrina Little Page number 2 OBJECTIVES:  To design a Binary Adder which will add two binary words (three bits each) using discrete gates.  To introduce iterative cell design techniques.  Expand knowledge of Xilinx’s ISE using buses. EQUIPMENT LIST:  FPGA BASYS1 board (Spartan3e, device XC3S100E, package type TQ144)  Xilinx ISE program  Flash Drive  BIT file BLOCK DIAGRAM: DESIGN SPECIFICATION PLAN: A parallel adder is to be designed to add two binary digits (three bits each), X: (X2X1X0) and Y: (Y2Y1Y0). The adder can be designed using “brute force” method in which, three six variable Karnaugh Maps are used to implement the functions representing the outputs of a three-bit addition. Since this method is not very efficient, the iterative cell technique will be used. With this method, two binary numbers are presented in parallel to the cell as inputs. The rightmost cell adds the least significant bit (LSB) X0 and Y0 to form a sum digit S0 and carry digit C0. The next cell adds the carry digit C0 to bits X1 and Y1 to form a sum digit S1 and a carry digit C1. The last cell adds the Carry C1 to bits X2 and Y2 to form a sum digit S2 and a carry digit Cout. Figure (1) One- Bit Full Adder Sin Yin Xin Cout Cin One- Bit Half Adder Sin Yin Cout Xin Figure (2)
  • 3. Katrina Little Page number 3 To design a network, a typical cell should be designed which adds a carry Ci to bits Xi and Yi to generate a sum digit Si and a new Carry Cout as shown in Figure 1 above. The circuit that realizes this function is referred to as the “full adder” cell. NOTE: this does not include the carry-in on the LSB of X and Y. Figure 2 represents the “Half-Adder” cell. The full and half adder only represent 1-bit. DESIGN METHODOLOGY: Equations for Full and half adders are as follows: Half Adder: Si = Xi Yi Ci = XiYi Full Adder: Si = Xi Yi Ci-1, Ci= (XiYi) + (XiCi-1) + (YiCi-1) From the Boolean Algebra it can be seen that the Sums will use an EXOR gate and the Carries will use a series of AND/OR gates. Xi Yi Ci Si Ci-1 Xi Yi Si Ci 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 Figure 3 (above- left) shows the truth table for the half adder and Figure 4 (above-right) shows the truth table for the Full adder. 3-Bit Binary Adder Y2 X2 Y1 X0X1 Y0 Cout S2 S1 S0
  • 4. Katrina Little Page number 4 DETAILED SCHEMATIC DIAGRAM: Xi Yi Xi Yi Si Ci Xi Ci-1 Yi Si Ci Figure 5 (left ) shows the configuration for the Half- Adder using 1 AND gate and 1 XOR gate Half- Adder has two inputs: Xi and Yi Figure 6 (below) shows the configuration for the Full-Adder to connect the three inputs: Xi, Yi, and Ci-1 using 3 AND gates and 2 XOR gates.
  • 5. Katrina Little Page number 5 VERILOG REPRESENTATION OF SCHEMATIC: module(X,Y,S,C0; input [2:0]X; input [2:0]Y; output [2:0]S; output C; wire[2:0] X; wire[2:0]Y; wire[2:0]S; assign S[0] = X[0]^Y[0]; assign S[1] = (X[0]&Y[0]^(X[1]^Y[1]); assign S[2] =(((X[0]&Y[0])&X[1])) + ((X[0]&Y[0])&Y[1]) +(X[1]&Y[1]))^(X[2]^Y[2]); assign C = ((((X[0]&Y[0])&X[1]) + ((X[0]&Y[0])&Y[1]) + ((X[1]&Y[1])&X[2]) + ((((X[0]&Y[0])&X[1]) +((X[0]&Y[0])&Y[1]) + (X[1]&Y[1])&Y[2]) +(X[2]&Y[2]); endmodule Input/Output Switch LED Pin # X[0] SW0 38 X[2] SW2 29 Y[0] SW5 12 Y[2] SW7 6 S[0] LED0 15 S[2] LED2 8 Cout LED7 2 Figure 7 (left) displays the Pin connections for the Switches and LED’s of the inputs and outputs of the Schematics.
  • 6. Katrina Little Page number 6 TEST PLAN (PROCEDURE): The test plan was broken into three parts essentially: I. Use the schematic capture tool to create a one bit half adder. II. Use the schematic capture tool to create a one bit full-adder III. Using buses for X, Y, and S, connect the one-bit full/half adders a. Generate a timing diagram (test bench) to cycle through all possible bit combinations b. Simulate model behavior c. Assign Pin connections for LED’s and switches d. Generate a bit file a program it to the BASYS board. IV. Use the Verilog language to create the design (Repeat steps a-d in part III) V. Test your design using switches on the BASYS board and make sure they match truth tables. I.
  • 9. Katrina Little Page number 9 IV.b: RESULTS: The results matched the truth tables in figures 3 and 4. CONCLUSIONS (QUESTIONS): 1) Using full adder and half adder block diagrams, draw an 8-bit adder 2) Comment on the feasibility of designing an 8-bit adder. The brute force method would be very time consuming because you would have to use many Karnaugh maps. Using the iterative method makes more sense because you only have to build truth tables for a half and full adder 3) Identify the advantages and disadvantages of the brute force method. The advantage of using the brute force method is that the Karnaugh map would directly indicate to you the outputs based on the inputs. However, this methodology, initially, is very time consuming and can require the use of many Karnaugh maps. Karnaugh maps are much easier to read.
  • 10. Katrina Little Page number 10 4) Identify the advantages and disadvantages of the iterative cell method. The iterative method would require use of Karnaugh maps repeatedly, but construction the 8-bit adder takes a lot less time The 8 bit-adder is harder to read. 5) Have you met all requirements of the Design Specification plan? Yes, the full and half adders were constructed and put together using buses. The Verilog language schematic was also implemented successfully. The Plans were tested on the BASYS board and functioned as predicted. 6) How should our design be tested (Test Plan)? See Above Half X 0 Y 0 S 0 C 0 FullX 1Y 1 S 1 C 1 FullX 2Y 2 S 2 C 2 Full C 2X 3Y 3 S 3 C 3 FullX 4Y 4 S 4 C 4 FullX 5Y 5 S 5 C 5 Full C 5X 6Y 6 S 6 C 6 FullX 7Y 7 S 7 C 7