SlideShare a Scribd company logo
1 of 10
Download to read offline
Katrina Little
Experiment #3:
Multi-Function Gate
Katrina Little
Experiment #3
OBJECTIVES:
 Design a Multi-Function gate using Xilinx’s FPGA design tools and to document
the design.
 Design, simulate, and implement the multi-function gate to the BASYS(1) FPGA
board.
EQUIPMENT LIST:
 FPGA BASYS1 board
 Xilinx ISE program
 Flash Drive
 BIT file
BLOCK DIAGRAM:
DESIGN SPECIFICATION PLAN:
The idea is to design a multi-function gate that will have sets of inputs, and one output
F. The function F will be instructed to perform four different logic operations. A and B
are the data inputs. X and Y control what the gate will do. X and Y are the operation
selection lines.
Multi-Function
Gate
A
B
F
FIGURE(1)
YX
Katrina Little
Experiment #3
DESIGN METHODOLOGY
A and B tell the gate what operation to perform. If A and B both are 0, the gate will act
as an and gate. If A=0, B=1, the gate will operate as or. If A=1, B=0, the gate will
operate as NOR. If A and B are both 1, the gate operates as NAND. Refer to figure 2.
AB XY XY AND NAND XY OR NOR
00 AND 00 0 1 00 0 1
01 OR 01 0 1 01 1 0
10 NOR 10 0 1 10 1 0
11 NAND 11 1 0 11 1 0
X and Y depend upon what A and B are doing. The truth tables for AND, NAND, OR,
and NOR can be seen in figures 3 and 4. The three above figures can be condensed
into a lengthy truth table as shown below in figure 5.
AB XY Z
00 00 0
00 01 0
00 10 0
00 11 1
01 00 0
01 01 1
01 10 1
01 11 1
10 00 1
10 01 0
10 10 0
10 11 0
11 00 1
11 01 1
11 10 1
11 11 0
Figure 2 Figure 3 Figure 4
Figure 5 (left)
Full truth table of the multi- function gate.
Notice that the values depicted in red
AB=00, therefore XY will act as an AND
gate. For the blue values AB=01, therefore
XY will act as an OR gate. For the yellow
values, AB =10, therefore XY acts as a NOR
gate. For the purple values AB=11,
therefore, XY acts as a NAND gate. Refer
back to figure to regarding The color.
Coordination. The output Z follows the truth
tables depicted in figures 3 & 4.
Katrina Little
Experiment #3
It can easily be seen how the truth table can get rather complicated. A Karnaugh Map
would be a more convenient way to represent the multi-function gate.
By using the ones on the table, the function can be written as a sum of products
(SOPS). To do this you need ABXY to multiply out to equal 1. Therefore, the un-
simplified equation for f is:
F = AX’Y’ + BX’Y’+ A’XY + BXY’
0 0
0
0 0
0 0
0
1
1 1
11
1
1
1
ab
xy
00
01
11
10
10
00 01 10 11
11 Figure 6
Karnaugh map of the multi-function
gate. To write the function pairs of
ones must be grouped together.
Note:
For orange: B is changing ignore it.
For purple: A is changing, ignore it.
For pink: B is changing, ignore it
For green: A is changing, ignore it.
Katrina Little
Experiment #3
DETAILED SCHEMATIC DIAGRAM:
INPUT/OUTPUT SWITCH PIN
#
LED
#
A SW0 38
B SW1 36
X SW6 10
Y SW7 6
F 2 7
Figure 8
A
Y
X
B
Y
X
A
Y
X
B
Y
X
F
Figure 7
● ● ●
modulelab3little(A, B, X, Y, F);
output F;
input A;
input B;
input X;
input Y;
wire A,B,X,Y,F;
assign F = (A&~X&~Y)|(B&~X~Y)|(~A&X&Y)|(B&X&~Y);
endmodule
● ● ●
Figure 9
Katrina Little
Experiment #3
Figures 7 depicts the schematic diagram of the function f. Figure 8 shows the pin
numbers for the switches and LED of the system. Figure 9 shows the verilog
interpretation of the function.
TEST PLAN (PROCEDURE):
I. Test the plan using the schematic capture tool.
a. Generate a timing diagram (test bench) to represent all possible bit
combinations.
b. Set both the test bench and the simulation time to 4000 nanoseconds to
allow enough time to cycle through all possible inputs.
c. Simulate behavior model
d. Generate a bit file and download to the BASYS board using the Diligent
Export program.
II. Test the plan using the Verilog language (Repeat steps a-d from part I.)
III. Verify that the circuit design from parts I & II behaves appropriately by checking
when the LED was triggered on the BASYS board. (Which would be the output
F). See the “Results Section.”
I:
Katrina Little
Experiment #3
I.a:
II:
Katrina Little
Experiment #3
II.a:
II.c:
Figure 7
Katrina Little
Experiment #3
CONCLUSIONS (QUESTIONS):
1) Can this multi-function gate be run on an inverter? If yes, explain how.
A: Yes, the multi-function gate can be run on an inverter. The min-term
expansion of F can be written from the karnaugh map in figure 6. The min-terms
of f would be:
F = ∑m(3,5,6,7,8,12,13,14)
Therefore, the min-term expansion of an inverter would be:
F’ = ∑m(0,1,2,4,9,10,11,1)
The Karnaugh map of the function run on an inverter would be seen in figure 10
below.
1 1
1
1 1
1 1
1
0
0 0
00
0
0
0
ab
xy
00
01
11
10
10
00 01 10 11
11
Figure 10
Katrina Little
Experiment #3
2) Will the change in the number of inputs or outputs affect the number of operation
select lines? Explain.
A: No, If you add another data input bit you can still use the operation lines X&Y
to AND, OR, NOR, or NAND three bits together as opposed to two.
3) Have you met all the requirements of this lab (Design Specification Plan)
A:Yes.

More Related Content

What's hot

Binary multipliers
Binary multipliersBinary multipliers
Binary multipliersSyed Saeed
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesVerilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesE2MATRIX
 
Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1vamshi krishna
 
1.ripple carry adder, full adder implementation using half adder.
1.ripple carry adder, full adder implementation using half adder.1.ripple carry adder, full adder implementation using half adder.
1.ripple carry adder, full adder implementation using half adder.MdFazleRabbi18
 
What is Adder-Half and Full Adder
What is Adder-Half and Full AdderWhat is Adder-Half and Full Adder
What is Adder-Half and Full AdderAdeel Rasheed
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 
Binary multiplier
Binary multiplierBinary multiplier
Binary multipliereldhomv1
 
VLSI subsystem design processes and illustration
VLSI subsystem design processes and illustrationVLSI subsystem design processes and illustration
VLSI subsystem design processes and illustrationVishal kakade
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractorUnsa Shakir
 
Design and implementation of high speed baugh wooley and modified booth multi...
Design and implementation of high speed baugh wooley and modified booth multi...Design and implementation of high speed baugh wooley and modified booth multi...
Design and implementation of high speed baugh wooley and modified booth multi...eSAT Publishing House
 
fpga programming
fpga programmingfpga programming
fpga programmingAnish Gupta
 

What's hot (20)

Binary multipliers
Binary multipliersBinary multipliers
Binary multipliers
 
Verilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with ExamplesVerilog Tutorial - Verilog HDL Tutorial with Examples
Verilog Tutorial - Verilog HDL Tutorial with Examples
 
Adder ppt
Adder pptAdder ppt
Adder ppt
 
Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1Wallace tree multiplier.pptx1
Wallace tree multiplier.pptx1
 
1.ripple carry adder, full adder implementation using half adder.
1.ripple carry adder, full adder implementation using half adder.1.ripple carry adder, full adder implementation using half adder.
1.ripple carry adder, full adder implementation using half adder.
 
Ripple adder
Ripple adderRipple adder
Ripple adder
 
What is Adder-Half and Full Adder
What is Adder-Half and Full AdderWhat is Adder-Half and Full Adder
What is Adder-Half and Full Adder
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
8 bit alu design
8 bit alu design8 bit alu design
8 bit alu design
 
Binary multiplier
Binary multiplierBinary multiplier
Binary multiplier
 
Lambda design rule
Lambda design ruleLambda design rule
Lambda design rule
 
Ripple Carry Adder
Ripple Carry AdderRipple Carry Adder
Ripple Carry Adder
 
VLSI subsystem design processes and illustration
VLSI subsystem design processes and illustrationVLSI subsystem design processes and illustration
VLSI subsystem design processes and illustration
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Design and implementation of high speed baugh wooley and modified booth multi...
Design and implementation of high speed baugh wooley and modified booth multi...Design and implementation of high speed baugh wooley and modified booth multi...
Design and implementation of high speed baugh wooley and modified booth multi...
 
fpga programming
fpga programmingfpga programming
fpga programming
 
full subtractor
full subtractorfull subtractor
full subtractor
 
Vlsi design flow
Vlsi design flowVlsi design flow
Vlsi design flow
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 

Similar to Lab 3 Multi-Function Gate

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
 
Boolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGHBoolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGHSukhdeep Bisht
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1jntuworld
 
Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...
Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...
Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...ijcisjournal
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxTaoqeerRajput
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementationssuserca5764
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptAlbin562191
 
A109210503 digitallogicdesign1
A109210503 digitallogicdesign1A109210503 digitallogicdesign1
A109210503 digitallogicdesign1jntuworld
 
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docxEEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docxSALU18
 
Digital logic design1
Digital logic design1Digital logic design1
Digital logic design1jntuworld
 

Similar to Lab 3 Multi-Function Gate (20)

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
 
Boolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGHBoolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGH
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Chapter-3.pptx
Chapter-3.pptxChapter-3.pptx
Chapter-3.pptx
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1
 
Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...
Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...
Implementation of Low-Complexity Redundant Multiplier Architecture for Finite...
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptx
 
Combinational logic
Combinational logicCombinational logic
Combinational logic
 
Chapter 3 2
Chapter 3 2Chapter 3 2
Chapter 3 2
 
Combinational logic circuits design and implementation
Combinational logic circuits design and implementationCombinational logic circuits design and implementation
Combinational logic circuits design and implementation
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
 
A109210503 digitallogicdesign1
A109210503 digitallogicdesign1A109210503 digitallogicdesign1
A109210503 digitallogicdesign1
 
Amit vish
Amit vishAmit vish
Amit vish
 
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docxEEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
EEN 1200 L – Digital FundamentalsMerrimack CollegeLaborato.docx
 
12.Digital Logic.pdf
12.Digital Logic.pdf12.Digital Logic.pdf
12.Digital Logic.pdf
 
Digital logic design1
Digital logic design1Digital logic design1
Digital logic design1
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
3306565.ppt
3306565.ppt3306565.ppt
3306565.ppt
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
 

More from 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
 

More from 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
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
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
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
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
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 

Recently uploaded (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
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
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
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
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
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...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 

Lab 3 Multi-Function Gate

  • 2. Katrina Little Experiment #3 OBJECTIVES:  Design a Multi-Function gate using Xilinx’s FPGA design tools and to document the design.  Design, simulate, and implement the multi-function gate to the BASYS(1) FPGA board. EQUIPMENT LIST:  FPGA BASYS1 board  Xilinx ISE program  Flash Drive  BIT file BLOCK DIAGRAM: DESIGN SPECIFICATION PLAN: The idea is to design a multi-function gate that will have sets of inputs, and one output F. The function F will be instructed to perform four different logic operations. A and B are the data inputs. X and Y control what the gate will do. X and Y are the operation selection lines. Multi-Function Gate A B F FIGURE(1) YX
  • 3. Katrina Little Experiment #3 DESIGN METHODOLOGY A and B tell the gate what operation to perform. If A and B both are 0, the gate will act as an and gate. If A=0, B=1, the gate will operate as or. If A=1, B=0, the gate will operate as NOR. If A and B are both 1, the gate operates as NAND. Refer to figure 2. AB XY XY AND NAND XY OR NOR 00 AND 00 0 1 00 0 1 01 OR 01 0 1 01 1 0 10 NOR 10 0 1 10 1 0 11 NAND 11 1 0 11 1 0 X and Y depend upon what A and B are doing. The truth tables for AND, NAND, OR, and NOR can be seen in figures 3 and 4. The three above figures can be condensed into a lengthy truth table as shown below in figure 5. AB XY Z 00 00 0 00 01 0 00 10 0 00 11 1 01 00 0 01 01 1 01 10 1 01 11 1 10 00 1 10 01 0 10 10 0 10 11 0 11 00 1 11 01 1 11 10 1 11 11 0 Figure 2 Figure 3 Figure 4 Figure 5 (left) Full truth table of the multi- function gate. Notice that the values depicted in red AB=00, therefore XY will act as an AND gate. For the blue values AB=01, therefore XY will act as an OR gate. For the yellow values, AB =10, therefore XY acts as a NOR gate. For the purple values AB=11, therefore, XY acts as a NAND gate. Refer back to figure to regarding The color. Coordination. The output Z follows the truth tables depicted in figures 3 & 4.
  • 4. Katrina Little Experiment #3 It can easily be seen how the truth table can get rather complicated. A Karnaugh Map would be a more convenient way to represent the multi-function gate. By using the ones on the table, the function can be written as a sum of products (SOPS). To do this you need ABXY to multiply out to equal 1. Therefore, the un- simplified equation for f is: F = AX’Y’ + BX’Y’+ A’XY + BXY’ 0 0 0 0 0 0 0 0 1 1 1 11 1 1 1 ab xy 00 01 11 10 10 00 01 10 11 11 Figure 6 Karnaugh map of the multi-function gate. To write the function pairs of ones must be grouped together. Note: For orange: B is changing ignore it. For purple: A is changing, ignore it. For pink: B is changing, ignore it For green: A is changing, ignore it.
  • 5. Katrina Little Experiment #3 DETAILED SCHEMATIC DIAGRAM: INPUT/OUTPUT SWITCH PIN # LED # A SW0 38 B SW1 36 X SW6 10 Y SW7 6 F 2 7 Figure 8 A Y X B Y X A Y X B Y X F Figure 7 ● ● ● modulelab3little(A, B, X, Y, F); output F; input A; input B; input X; input Y; wire A,B,X,Y,F; assign F = (A&~X&~Y)|(B&~X~Y)|(~A&X&Y)|(B&X&~Y); endmodule ● ● ● Figure 9
  • 6. Katrina Little Experiment #3 Figures 7 depicts the schematic diagram of the function f. Figure 8 shows the pin numbers for the switches and LED of the system. Figure 9 shows the verilog interpretation of the function. TEST PLAN (PROCEDURE): I. Test the plan using the schematic capture tool. a. Generate a timing diagram (test bench) to represent all possible bit combinations. b. Set both the test bench and the simulation time to 4000 nanoseconds to allow enough time to cycle through all possible inputs. c. Simulate behavior model d. Generate a bit file and download to the BASYS board using the Diligent Export program. II. Test the plan using the Verilog language (Repeat steps a-d from part I.) III. Verify that the circuit design from parts I & II behaves appropriately by checking when the LED was triggered on the BASYS board. (Which would be the output F). See the “Results Section.” I:
  • 9. Katrina Little Experiment #3 CONCLUSIONS (QUESTIONS): 1) Can this multi-function gate be run on an inverter? If yes, explain how. A: Yes, the multi-function gate can be run on an inverter. The min-term expansion of F can be written from the karnaugh map in figure 6. The min-terms of f would be: F = ∑m(3,5,6,7,8,12,13,14) Therefore, the min-term expansion of an inverter would be: F’ = ∑m(0,1,2,4,9,10,11,1) The Karnaugh map of the function run on an inverter would be seen in figure 10 below. 1 1 1 1 1 1 1 1 0 0 0 00 0 0 0 ab xy 00 01 11 10 10 00 01 10 11 11 Figure 10
  • 10. Katrina Little Experiment #3 2) Will the change in the number of inputs or outputs affect the number of operation select lines? Explain. A: No, If you add another data input bit you can still use the operation lines X&Y to AND, OR, NOR, or NAND three bits together as opposed to two. 3) Have you met all the requirements of this lab (Design Specification Plan) A:Yes.