EEL3712L_AlvaroGrijalva_Experiment2_Final
docx
keyboard_arrow_up
School
Miami Dade College, Miami *
*We aren’t endorsed by this school
Course
3712
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
docx
Pages
19
Uploaded by Nickova96
Logic Design Lab EEL3712l Experiment 2
EXPERIMENT 2
Inverting Logic: NOT, NAND, &
NOR
Alvaro Grijalva 5495568 02/09/2024
OBJECTIVES:
Examine inverting logic circuits. • Demonstrate the characteristics of NOT, NAND, and
NOR gates.
Develop truth tables for NOT, NAND, and NOR gates. MATERIALS:
Xilinx Vivado software, student or professional edition V2018.2 or higher.
IBM or compatible computer with Pentium III or higher, 128 M-byte RAM or more, and
8 G-byte Or larger hard drive.
BASYS 3 Board.
DISCUSSION: The inverter (or NOT gate) represents logical complementation. A NOT gate can have only one
input and one output. The output of a NOT gate simply reverses (inverts) the logic value
presented at its input. The NOT gate can be combined with AND and OR gates to construct two
more basic gates: NAND and NOR gates. Both NAND and NOR gates are universal logic gates,
which means that either NAND gates or NOR gates can be used to construct any combinational
logic circuit. We will use gate symbols, truth tables, and Boolean equations to demonstrate
their characteristics. As with AND and OR gates, NAND and NOR gates can have two or more
inputs but only one output.
P a g e 1 | 19
Logic Design Lab EEL3712l Experiment 2
Gate Characteristics: 1.
The NOT Gate Symbol
Boolean Equation
Truth Table
Because the NOT gate has only one input, the truth table has two rows. Moreover, the output
inverts the logic level of the input. In addition to the overhead bar shown above (read as “X = A-
bar’), notation for logical inversion includes the following: 2.
The NAND Gate
Symbol
Boolean Equation
Truth Table
P a g e 2 | 19
Logic Design Lab EEL3712l Experiment 2
The behavior of a NAND gate can be summarized as follows: The output is LOW only
when all the inputs are HIGH. If one or more inputs are LOW (false or logic 0), the
output will be HIGH. Comparing the truth table for the NAND gate with that of the AND
gate, you will find out that each output of a NAND gate is exactly the opposite (inverted)
logic value of the corresponding output of an AND gate. In fact, a NAND gate is
functionally equivalent to an AND gate cascaded with a NOT gate as shown below.
3.
The NOR Gate
Symbol
Boolean Equation
Truth Table
As seen from the above truth table, the output of a NOR gate is HIGH only when all the
inputs are LOW. If one or more of the inputs are HIGH, then the output is LOW.
Similarly, a NOR gate can be constructed using an OR gate cascaded with a NOT gate. In
other words, a NOR gate is functionally equivalent to an OR gate followed by an
inverter.
P a g e 3 | 19
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Logic Design Lab EEL3712l Experiment 2
In the later part of this experiment, we will show how NAND and NOR gates can be used
to perform some useful functions such as enabling and disabling signals. Also, we will
show how to use NAND and NOR gates to perform the function of a NOT gate.
PROCEDURE:
1.
Open Xilinix Vivado. 2.
In the Xilinx-Project Navigator
window, Quick start, New Project
.
P a g e 4 | 19
Logic Design Lab EEL3712l Experiment 2
3.
Name the project.
4.
Choose “RTL Project” and check the “Do not specify sources at this time” as we will
configure all the settings manually through the navigator from inside the project.
P a g e 5 | 19
Logic Design Lab EEL3712l Experiment 2
5.
Select New Source… and the New window appears. In the New window, choose
Schematic, type your file name (such as source_1
) in the File Name editor box, click
on OK, and then click on the Next button.
P a g e 6 | 19
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Logic Design Lab EEL3712l Experiment 2
6.
In the Xilinx - Project Navigator window, select the following
Category: “General Purpose”
Family: “Artix-7”
Package: “cpg236”
Speed: “-1”
Choose “xc7a35tcpg236-1” that corresponds to the board we are using.
P a g e 7 | 19
Logic Design Lab EEL3712l Experiment 2
Then Choose Finish.
P a g e 8 | 19
Logic Design Lab EEL3712l Experiment 2
7.
The Define Module Window that will appear, we will choose the input and output
labels for the gates under investigation in this experiment. In this experiment, we are
investigating a 3-input NAND gate and 3-input NOR and a NOT (Inverse) gate. Then
Under “Port Name”, add “A0”, “A1” , “A2” as inputs for NAND gate, add “B0”,
“B1” , “B2” as inputs for NOR gate and add “C”, as inputs for the NOT gate. Then
add “X”, “Y” , “Z” as outputs for the mentioned gates and select OK.
P a g e 9 | 19
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Logic Design Lab EEL3712l Experiment 2
8.
In the “source_1.vhd” created file, type the gates equivalent VHDL code for the NAND, NOR and NOT gates between the “begin” and “end Behavioral” as follows and then save the file.
9.
Next, we need to add To add a constraint file with the”.xdc” extension, as following:
Go to “Flow Navigator” and from “Project Manager” select “Add Sources” then
“Add or create constraints”. Next, choose “Create File” and enter the file name
“lab_2” then “OK” followed by “Finish”.
P a g e 10 | 19
Logic Design Lab EEL3712l Experiment 2
10.
Then, we need to get a template xdc file that is going to be edited according to the
different experiments. Google “basys 3 xdc file” and choose the “xilinix” link that
appears
(
https://www.xilinx.com/support/documentation/university/Vivado-
Teaching/HDL-Design/2015x/Basys3/Supporting%20Material/Basys3_Master.xdc
).
Copy the whole file and paste it into the “lab_2.xdc” that you have just created in the
last step. Then uncomment and edit the input Switches and the output LEDs as in the
next step.
11.
Uncomment (by deleting the # sign) sw[0], sw[1], sw[3],….. led[0], led[1],… lines. Note that each of them has two successive lines (Uncomment both of them). Do
the following replacements: sw[0]
A0, sw[1]
A1,……, led[0]
X, led[1]
Y,…. , then Save the file
P a g e 11 | 19
Logic Design Lab EEL3712l Experiment 2
12.
From the tool tab choose the play button and then “Run Implementation”. Select ”Number of jobs” =1 and then press OK.
13.
The implementation errors window will appear if any or the successfully completed window. From this window select “Generate Bitstream” and then OK. This will make the software generate “.bin” file to be used in programing the hardware BAYAS 3.
P a g e 12 | 19
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Logic Design Lab EEL3712l Experiment 2
14.
The next window will appear in which choose “Open Hardware Manger”, connect
the Hardware Kit to the USB port and then press OK.
15.
A green tab will appear in the top of the Vivado window, from which choose “open target” to program the hardware.
P a g e 13 | 19
Logic Design Lab EEL3712l Experiment 2
16.
From the window appears, select the “.bin” file from the Project you create by browsing for the generated “.bit file” under the “.runs” folder and program
the board then press OK.
17.
Notice that the 7-segment on the hardware is counting up from 0 to 9 frequently until you download the program and it will stop. P a g e 14 | 19
Logic Design Lab EEL3712l Experiment 2
P a g e 15 | 19
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Logic Design Lab EEL3712l Experiment 2
18.
Fill in the following truth tables for all the gates by observing the inputs/outputs on the programmed board.
A. NAND Gate
Truth Table (1)
A0
A1
A2
X
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1
0
B.
NOR Gate
P a g e 16 | 19
X= A2A1A0
Boolean Equation
Symbol
Logic Design Lab EEL3712l Experiment 2
Truth Table (2)
B0
B1
B2
Y
0
0
0
1
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
0
a.
NOT Gate
Truth Table (3)
C
Z
0
1
1
0
19.
Verify that the experimental results are consistent
with the Discussion. P a g e 17 | 19
Y = B2+B1+B0
Boolean Equation
Symbol
Z=C
Boolean Equation
Symbol
Logic Design Lab EEL3712l Experiment 2
Checked by____________________________ Date ___________
Questions:
1.
Create a Xilinx project called LAB2 in the same way that you did the projects AND_OR3 and
INVERT In this new project prove the following: a) A 2-input NAND gate is equivalent to a 2-input AND gate followed by a NOT gate. b) A 2-input NOR gate is equivalent to a 2-input OR gate followed by a NOT gate. c) A 2-input NAND gate is equivalent to an inverter when the two inputs are tied together.
d) A 2-input NOR gate is equivalent to an inverter when one of the inputs is connected to ground. 2.
Draw the truth tables in the following to demonstrate your results obtained in the last step. Do they match what you expected? a)
b) c) d)
P a g e 18 | 19
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Logic Design Lab EEL3712l Experiment 2
P a g e 19 | 19
Related Documents
Related Questions
3d. will give thumbs up
arrow_forward
Below is an example of an NMOS logic circuit. For all of the MOSFETs in the circuit below,
assume V = 1 V and k = 50 mA/V².
th
W
R₂ = 5600
PEETHIPPIN
R₁ - 4700
M3
M₁
M.
0
a. Indicate and verify the state of each MOSFET and V for the following input
combinations. Fill-out the table below for each assumed state of the MOSFET for every
input combination. Use R approximation for linear operation and three significant
ds(on)
figures for the voltages.
오
Ao
SV
why
arrow_forward
5. Design a two-level NAND-gate logic circuit from the follow timing diagram
B
%3D
D
F
arrow_forward
Please may you give the solution to this computer science question!
Thank you
arrow_forward
Electrical Engineering
1. Illustrate (then describe briefly): Procedure in testing the seven basic logic gates: a.
AND; b. OR; c. XOR; d. NAND; e. NOR; f. XNOR; and g. the NOT.
Give common faults (defects) of the seven basic logic gates. For each fault, list
indicators that the gate is defective.
Please completely answer the question
arrow_forward
4. CMOS Logic Gate
The PUN of a CMOS Logic Gate is shown below
Vdd
Q1 B-
Q2 c -dPQ3
B-dCa5
Q6
D
Y
(a) Determine Y from the PUN. Express your answer in Sum-of-Product form.
(b) Sketch the PDN of this CMOS logic gate.
(c) Transistor sizing. If we set Peg = 5 for this CMOS logic gate, find W's for Q1 through Q7 if L is set at 0.25µm.
arrow_forward
What will be the boolean function (y) for the given CMOS logic circuit
as shown in the figure?
AMP, MP₂-B
MP3
A—IL MN,
BCMN₂
D-
V₂
HCMN₂
DD
MP
-D
MP-E
y
MN3C
GND
MNE
arrow_forward
5) Draw the circuit diagram using diode and write the truth table of a logic gates whose output will
be the logical OR operation of two inputs.
arrow_forward
need help with parts D, E
arrow_forward
Hi. Please may you give the solution to this question in a step by step form to help my understanding.
Both parts need to be completed in order to answer
arrow_forward
Exercise 3
a) Design a full-adder logic circuit using an active-low 2-to-4 decoder(s)
and suitable logic gates.
arrow_forward
What are the values of the inputs a, b, c, d, e, f and g for a Seven-Segment LED that
displays the number 2? Assume active high logic.
a) 1101101
b) 1010101
c) 1101110
d) None of the above
e) All of the above
arrow_forward
Can I get the written solution by hand and not ai
arrow_forward
Q1.
(a) Design a stick (layout) diagram for the following static CMOS logic gate,
where A, B, C, D are the logic gate inputs and O/P is the output:
VDD
D-d[Q8
A-Q5 B-Q6
c-d[Q7
O/P
CQ3 DQ4
B-Q2
A-Q1
Vss
Figure 1
Use dual-well, CMOS technology. Include wells, well-taps, contact cuts,
routing of power and GND in your diagram. Use colour coding and/or clear
and readable detailed annotations to represent the wires in the different
layers.
arrow_forward
Q1. (a) Design a stick (layout) diagram for the following static CMOS logic gate,
where A, B, C, D are the logic gate inputs and O/P is the output:
VDD
D-d[Q8
A-Q5 B-Q6
C-d [Q7
O/P
CQ3 DQ4
B-Q2
AQ1
Vss
Figure 1
Use dual-well, CMOS technology. Include wells, well-taps, contact cuts,
routing of power and GND in your diagram. Use colour coding and/or clear
and readable detailed annotations to represent the wires in the different
layers.
(b) The logic gate from (a) needs to drive a capacitive load of 150 fF with a
rise-time and fall-time of 1.2 ns. If the length of all transistors is 0.5 μm,
calculate the required widths for all P-type and all N-type MOSFETs in the logic
gate to achieve the required edge-speeds. Clearly show the calculation steps
of your solution.
Assume VDD = 5 V, K'n = 50 μA/V², K'p = 20 μA/V²
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Related Questions
- 3d. will give thumbs uparrow_forwardBelow is an example of an NMOS logic circuit. For all of the MOSFETs in the circuit below, assume V = 1 V and k = 50 mA/V². th W R₂ = 5600 PEETHIPPIN R₁ - 4700 M3 M₁ M. 0 a. Indicate and verify the state of each MOSFET and V for the following input combinations. Fill-out the table below for each assumed state of the MOSFET for every input combination. Use R approximation for linear operation and three significant ds(on) figures for the voltages. 오 Ao SV whyarrow_forward5. Design a two-level NAND-gate logic circuit from the follow timing diagram B %3D D Farrow_forward
- Please may you give the solution to this computer science question! Thank youarrow_forwardElectrical Engineering 1. Illustrate (then describe briefly): Procedure in testing the seven basic logic gates: a. AND; b. OR; c. XOR; d. NAND; e. NOR; f. XNOR; and g. the NOT. Give common faults (defects) of the seven basic logic gates. For each fault, list indicators that the gate is defective. Please completely answer the questionarrow_forward4. CMOS Logic Gate The PUN of a CMOS Logic Gate is shown below Vdd Q1 B- Q2 c -dPQ3 B-dCa5 Q6 D Y (a) Determine Y from the PUN. Express your answer in Sum-of-Product form. (b) Sketch the PDN of this CMOS logic gate. (c) Transistor sizing. If we set Peg = 5 for this CMOS logic gate, find W's for Q1 through Q7 if L is set at 0.25µm.arrow_forward
- What will be the boolean function (y) for the given CMOS logic circuit as shown in the figure? AMP, MP₂-B MP3 A—IL MN, BCMN₂ D- V₂ HCMN₂ DD MP -D MP-E y MN3C GND MNEarrow_forward5) Draw the circuit diagram using diode and write the truth table of a logic gates whose output will be the logical OR operation of two inputs.arrow_forwardneed help with parts D, Earrow_forward
- Hi. Please may you give the solution to this question in a step by step form to help my understanding. Both parts need to be completed in order to answerarrow_forwardExercise 3 a) Design a full-adder logic circuit using an active-low 2-to-4 decoder(s) and suitable logic gates.arrow_forwardWhat are the values of the inputs a, b, c, d, e, f and g for a Seven-Segment LED that displays the number 2? Assume active high logic. a) 1101101 b) 1010101 c) 1101110 d) None of the above e) All of the abovearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
