egr240 d5.1 basiclogicgates info
DESCRIPTION
logic gates projectTRANSCRIPT
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 1/31
Basic Logic Gates
Discussion D5.1
Section 8.6.2Sections 13-3, 13-4
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 2/31
Basic Logic Gates
and Basic Digital Design
• NOT, AND, and OR Gates
• NAND and N! Gates
• De"o#gan$s %&eo#e'
• ()clusi*e-! +! Gate
• "ultile-inut Gates
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 3/31
N% Gate -- /n*e#te# X Y
01
10
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 4/31
• Y = ~X (Verilog)
• Y = !X (ABEL)
• Y = not X (VHDL)
• Y = X’
• Y = X• Y = X (textook)
• not(Y,X) (Verilog)
N%
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 5/31
N%
X ~X ~~X = X
X ~X ~~X
0 1 0
1 0 1
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 6/31
AND GateAND
X
Y
Z
Z = X & Y
X Y Z
0 0 0
0 1 01 0 0
1 1 1
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 7/31
• X & Y (Verilog " ABEL)
• X and Y (VHDL)
• X Y
• X Y
•X # Y
• XY (text$ook)
• and (Z%X%Y) (Verilog)
AND
U
V
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 8/31
! Gate
'
X
Y Z
Z = X Y
X Y Z
0 0 0
0 1 11 0 1
1 1 1
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 9/31
!
• X Y (Verilog)
• X Y (ABEL)
• X or Y (VHDL)
• X * Y (text$ook)
•X
V Y
• X U Y
• or(Z%X%Y) (Verilog)
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 10/31
Basic Logic Gates
and Basic Digital Design
• N%, AND, and ! Gates
• NAND and NOR Gates
• De"o#gan$s %&eo#e'
• ()clusi*e-! +! Gate
• "ultile-inut Gates
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 11/31
NAND GateNAND
X
Y
Z
X Y Z
0 0 1
0 1 11 0 1
1 1 0
Z = ~(X & Y)
nand (Z%X%Y)
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 12/31
NAND Gate
N+,AND
X
Y
Z
- = X & Y
Z = ~- = ~(X & Y)
X Y - Z
0 0 0 1
0 1 0 11 0 0 1
1 1 1 0
-
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 13/31
N! Gate
N'
X
YZ
X Y Z
0 0 1
0 1 01 0 0
1 1 0Z = ~(X Y)
nor(Z%X%Y)
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 14/31
N! Gate
N+,'
X
Y
- = X Y
Z = ~- = ~(X Y)
X Y - Z
0 0 0 1
0 1 1 01 0 1 0
1 1 1 0
Z-
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 15/31
Basic Logic Gates
and Basic Digital Design
• N%, AND, and ! Gates
• NAND and N! Gates
• DeMorgan’s Theorem
• ()clusi*e-! +! Gate
• "ultile-inut Gates
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 16/31
NAND Gate
X
Y
X
Y
Z Z
Z = ~(X & Y) Z = ~X ~Y
=
X Y - Z
0 0 0 10 1 0 1
1 0 0 1
1 1 1 0
X Y ~X ~Y Z
0 0 1 1 10 1 1 0 1
1 0 0 1 1
1 1 0 0 0
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 17/31
De "o#gan$s %&eo#e'-1
~(X & Y) = ~X ~Y
• N% all *a#iales• &ange to and to • N% t&e #esult
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 18/31
N! Gate
X
YZ
Z = ~(X Y)
X Y Z
0 0 1
0 1 0
1 0 0
1 1 0
X
Y
Z
Z = ~X & ~Y
X Y ~X ~Y Z
0 0 1 1 1
0 1 1 0 0
1 0 0 1 0
1 1 0 0 0
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 19/31
De "o#gan$s %&eo#e'-2
~(X Y) = ~X & ~Y
• N% all *a#iales• &ange to and to • N% t&e #esult
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 20/31
De "o#gan$s %&eo#e'
• N% all *a#iales
• &ange to and to
• N% t&e #esult
• --------------------------------------------
• 7 + 7 +
• + 7 + 7 • 7 + 7 +
• + 7 + 7
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 21/31
Basic Logic Gates
and Basic Digital Design
• N%, AND, and ! Gates
• NAND and N! Gates
• De"o#gan$s %&eo#e'
• Exclusive-OR (OR! Gate
• "ultile-inut Gates
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 22/31
()clusi*e-! Gate
X Y ZXOR
XY
Z 0 0 0
0 1 1
1 0 1
1 1 0
Z = X . Y
xor(Z%X%Y)
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 23/31
!
• X . Y (Verilog)
• X / Y (ABEL)
• X Y
• xor(Z%X%Y) (Verilog)
, 6 +te)t1oo9-⊕g
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 24/31
()clusi*e-N! Gate
X Y ZXNOR
XY
Z 0 0 1
0 1 0
1 0 0
1 1 1
Z = ~(X . Y)
Z = X ~. Y
xnor(Z%X%Y)
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 25/31
N!
• X ~. Y (Verilog)
• !(X / Y) (ABEL)
• X Y
• xnor(Z%X%Y) (Verilog)
, 6g e
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 26/31
Basic Logic Gates
and Basic Digital Design
• N%, AND, and ! Gates
• NAND and N! Gates
• De"o#gan$s %&eo#e'
• ()clusi*e-! +! Gate
• Multi"le-in"ut Gates
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 27/31
"ultile-inut Gates
Z1 2
3 4Z Z
Z
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 28/31
"ultile-inut AND Gate
Z1
utut is :/G: onl; i< all inuts a#e :/G:Z1
An oen inut =ill <loat :/G:
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 29/31
"ultile-inut ! Gate
utut is L> onl; i< all inuts a#e L>Z2
2Z
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 30/31
"ultile-inut NAND Gate
utut is L> onl; i< all inuts a#e :/G:Z3
3Z
7/21/2019 EGR240 D5.1 BasicLogicGates info
http://slidepdf.com/reader/full/egr240-d51-basiclogicgates-info 31/31
"ultile-inut N! Gate
utut is :/G: onl; i< all inuts a#e L>Z4
4Z