Week4 Lecture

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

Week 4

Logic Gates and Circuits

Dr Mohsan Waseem

December 12, 2022


Logic Gates
AND

2 / 20
Logic Gates
OR

3 / 20
Logic Gates
Inverter

4 / 20
Logic Gates
Buffer/Transfer

5 / 20
Logic Gates
NAND

6 / 20
Logic Gates
NOR

7 / 20
Logic Gates
Exclusive-OR (XOR)

8 / 20
Logic Gates
Exclusive-NOR

9 / 20
Basic Combinational Logic Circuits

We have learned that sum of products SOP expressions are


implemented with an AND gate for each product term and one OR
gate for summing all of the product terms.
This SOP implementation is called AND-OR logic and is the basic
form for realizing standard Boolean functions.

10 / 20
Basic Combinational Logic Circuits
AND-OR Logic

An AND-OR circuit consisting of two 2-input AND gates and one


2-input OR gate.

The Boolean expressions for the AND gate outputs and the resulting
SOP expression for the output X are shown on the diagram.
In general, an AND-OR circuit can have any number of AND gates,
each with any number of inputs.

11 / 20
Basic Combinational Logic Circuits
AND-OR Logic

The truth table for a 4-input AND-OR logic circuit,

12 / 20
Basic Combinational Logic Circuits
AND-OR Logic

13 / 20
Basic Combinational Logic Circuits
AND-OR Logic

Example

14 / 20
Basic Combinational Logic Circuits
AND-OR Logic

15 / 20
Basic Combinational Logic Circuits
AND-OR Invert Logic

When the output of an AND-OR circuit is complemented (inverted),


it results in an AND-OR- Invert circuit.
Recall that AND-OR logic directly implements SOP expressions.
POS expressions can be implemented with AND-OR-Invert logic.

16 / 20
Basic Combinational Logic Circuits
AND-OR Invert Logic

Example
The sensors in the chemical tanks of previous example are being replaced
by a new model that produces a LOW voltage instead of a HIGH voltage
when the level of the chemical in the tank drops below a critical point.
Modify the circuit to operate with the different input levels and still
produce a HIGH output to activate the indicator when the level in any
two of the tanks drops below the critical point. Show the logic diagram.

17 / 20
Basic Combinational Logic Circuits
AND-OR Invert Logic

Example
The sensors in the chemical tanks of previous example are being replaced
by a new model that produces a LOW voltage instead of a HIGH voltage
when the level of the chemical in the tank drops below a critical point.
Modify the circuit to operate with the different input levels and still
produce a HIGH output to activate the indicator when the level in any
two of the tanks drops below the critical point. Show the logic diagram.

18 / 20
Basic Combinational Logic Circuits
Exclusive-OR Logic

Exclusive-OR is actually a combination of two AND gates, one OR


gate, and two inverters,

19 / 20
Basic Combinational Logic Circuits
Exclusive-NOR Logic

Exclusive-NOR is the complement of the exclusive-OR function.

20 / 20

You might also like