see1223: digital electronicsfke.utm.my/.../3-logic_gates_and_boolean_algebra_1.pdf · see1223:...

17
SEE1223: Digital Electronics 2 Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of Microelectronics and Computer Engineering The Faculty of Electrical Engineering Universiti Teknologi Malaysia

Upload: others

Post on 06-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra

Zulkifil Md Yusof Dept. of Microelectronics and Computer Engineering

The Faculty of Electrical Engineering Universiti Teknologi Malaysia

Page 2: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

Logic Gates and Boolean Algebra

• Logic Gates – Inverter, OR, AND, Buffer, NOR, NAND, XOR, XNOR

• Universal Gates – NAND and NOR

• Boolean Theorem – Commutative, Associative, Distributive – Basic Rules

• DeMorgan’s Theorem • Canonical/Standard Forms of Logic

– Sum of Product (SOP) – Product of Sum (POS) – Minterm and Maxterm

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 2

Page 3: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

Inverter/Not Gate

• Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 3

XZ X

0 1

01

Logic Symbol

Truth Table

Logic Expression

X Z

Page 4: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

Inverter/Not Gate

• Timing Diagram

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 4

0

1

0

1

X

Z

X Z t

Time on the horizontal axis

Page 5: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

OR Gate

• Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 5

YXZ X

0 0

10

Y

01

11

0

1

1

1

Page 6: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

AND Gate

• Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 6

YXZ X

0 0

10

Y

01

11

0

0

0

1

Page 7: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

Buffer

XZ X

0 0

11

X XZ

• Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 7

Page 8: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

Buffer

• How to design buffers? Clue: NOT gates

• What is the use of buffers?

– Refresh weak signals

– Purposely put delays

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 8

X XX

Page 9: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

XOR

• Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 9

YXZ X

0 0

10

Y

01

11

0

1

1

0

YXZ X

Y

Result is ‘1’ when exactly one input is ‘1’

Page 10: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

XOR

• How to make XOR using basic gates (AND, OR, NOT)?

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 10

YXYX

YXZ

X

Z

Y

Page 11: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

XNOR • Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 11

YXZ X

0 0

10

Y

01

11

1

0

0

1

YXZ X

Y

Result is ‘1’ when both inputs are the same logic

Page 12: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

XNOR

• How to make XNOR using basic gates (AND, OR, NOT)?

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 12

YXYX

YXZ

X

Z

Y

Page 13: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

NOR • Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 13

YXZ X

0 0

10

Y

01

11

1

0

0

0

YXZ X

Y

Result is ‘1’ only when both inputs are ‘0’

Page 14: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

NOR

• How to make NOR gate using basic gates?

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 14

YXZ

X Z

Y

X + Y

Page 15: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

NAND • Logic Symbol and Truth Table

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 15

YXZ X

0 0

10

Y

01

11

1

1

1

0

YXZ X

Y

Result is ‘0’ only when both inputs are ‘1’

Page 16: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

NAND

• How to make NAND gate using basic gates?

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 16

YXZ

X Z

Y

X . Y

Page 17: SEE1223: Digital Electronicsfke.utm.my/.../3-Logic_Gates_and_Boolean_Algebra_1.pdf · SEE1223: Digital Electronics 2 – Logic Gates and Boolean Algebra Zulkifil Md Yusof Dept. of

Example

• Draw the timing diagram for the following

2/18/2012 A.A.H Ab-Rahman, Z.Md-Yusof 17

X

Z

Y

X

Z

Y

X Z

Y

X Z

Y