0% found this document useful (0 votes)
12 views

Ec 1

Uploaded by

Akash Maurya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Ec 1

Uploaded by

Akash Maurya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Introduction To Logic Gates

Logic Gates

Figure Source:Google

Kamal K. Jha, IIIT Vadodara () July, 2019 2 / 35


Introduction To Logic Gates
Logic Gates

Figure Source:Google

Kamal K. Jha, IIIT Vadodara () July, 2019 3 / 35


Introduction To Logic Gates
Logic Gates

Positive and Negative Logic:

Kamal K. Jha, IIIT Vadodara () July, 2019 4 / 35


Introduction To Logic Gates
Logic Gates

Logic Gate: Quite similar to your home door gate.

Transistor is used as a switch to get functionality like gate.

The most basic building blocks of any digital system including


computers.

The logic Gates are used to represents the logic functions to design an
digital system.

Kamal K. Jha, IIIT Vadodara () July, 2019 5 / 35


Introduction To Logic Gates
Logic Gates

Basic building blocks:

Basic Gates:
NOT Gate
AND Gate
OR Gate

Universal Gates:
NAND Gate
NOR Gate

Kamal K. Jha, IIIT Vadodara () July, 2019 6 / 35


Introduction To Logic Gates
Logic Gates

Other Gates:
XOR Gate
XNOR Gate

XOR and XNOR Gates are used in air thematic circuits, Comparator
circuits, code converter etc.

Kamal K. Jha, IIIT Vadodara () July, 2019 7 / 35


Introduction To Logic Gates
Logic Gates

NOT Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 8 / 35


Introduction To Logic Gates
Logic Gates

AND Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 9 / 35


Introduction To Logic Gates
Logic Gates

3-input and 4-input AND Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 10 / 35


Introduction To Logic Gates
Logic Gates

OR Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 11 / 35


Introduction To Logic Gates
Logic Gates

3-input and 4-input OR Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 12 / 35


Introduction To Logic Gates
Logic Gates

Exercise:

Design an 3-input AND gate logic circuit using only 2-input AND
gates.

Design an 4-input OR gate logic circuit using only 2-input OR gates.

Design an 4-input AND gate logic circuit using only 2-input AND
gates.

Design chain of two inverter logic circuit.

Kamal K. Jha, IIIT Vadodara () July, 2019 13 / 35


Introduction To Logic Gates
Logic Gates

Exercise:

Kamal K. Jha, IIIT Vadodara () July, 2019 14 / 35


Introduction To Logic Gates
Logic Gates

NAND Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 15 / 35


Introduction To Logic Gates
Logic Gates

NOR Gate:

Kamal K. Jha, IIIT Vadodara () July, 2019 16 / 35


Introduction To Logic Gates
Logic Gates

NAND Gate: Universal

Kamal K. Jha, IIIT Vadodara () July, 2019 17 / 35


Introduction To Logic Gates
Logic Gates

NOR Gate: Universal

Kamal K. Jha, IIIT Vadodara () July, 2019 18 / 35


Introduction To Logic Gates
Logic Gates

Exercise:

Design an 3-input AND gate logic circuit using only 2-input NAND
gates.

Design an 4-input OR gate logic circuit using only 2-input NOR gates.

Design an 4-input NAND gate logic circuit using only 2-input NAND
gates.

Design an 4-input OR gate logic circuit using only 2-input NAND


gates.

Kamal K. Jha, IIIT Vadodara () July, 2019 19 / 35


Introduction To Logic Gates
Logic Gates

Exclusive-OR Gate or X-OR GATE:

Kamal K. Jha, IIIT Vadodara () July, 2019 20 / 35


Introduction To Logic Gates
Logic Gates

Exclusive-NOR Gate or X-NOR GATE:

Kamal K. Jha, IIIT Vadodara () July, 2019 21 / 35


Introduction To Logic Gates
Logic Gates

Problem (0):

Design an NOT logic circuit using a 2-input Ex-OR gate.

Kamal K. Jha, IIIT Vadodara () July, 2019 22 / 35


Introduction To Logic Gates
Logic Gates

Solution(0):

Kamal K. Jha, IIIT Vadodara () July, 2019 23 / 35


Introduction To Logic Gates
Logic Gates

Problem(1):

Design an 3-input Ex-NOR logic circuit using 2-input Ex-NOR gates.

Kamal K. Jha, IIIT Vadodara () July, 2019 24 / 35


Introduction To Logic Gates
Logic Gates

Solution(1):

Kamal K. Jha, IIIT Vadodara () July, 2019 25 / 35


Introduction To Logic Gates
Logic Gates

Exercise:

Design an 3-input X-OR gate logic circuit using only 2-input X-OR
gates.

Design an 4-input X-OR gate logic circuit using only 2-input X-OR
gates.

Design an 3-input X-NOR gate logic circuit using only 2-input X-NOR
gates.

Design an 4-input X-OR gate logic circuit using only 3-input X-OR
gates.

Kamal K. Jha, IIIT Vadodara () July, 2019 26 / 35


Introduction To Logic Gates
Logic Gates

Tristate Gates:

high-impedance state ’Z’.

Active states : Logic ’1’ and logic ’0’.

high-impedance state ’Z’ is controlled by an external input known as


ENABLE.

Kamal K. Jha, IIIT Vadodara () July, 2019 27 / 35


Introduction To Logic Gates
Logic Gates

ENABLE decides whether the gate is in active or high-impedance


state.

An advantage: Inputs and Outputs can be connected in parallel to a


common bus line.

Kamal K. Jha, IIIT Vadodara () July, 2019 28 / 35


Introduction To Logic Gates
Logic Gates

Active HIGH ENABLE:

Kamal K. Jha, IIIT Vadodara () July, 2019 29 / 35


Introduction To Logic Gates
Logic Gates

Active LOW ENABLE:

Kamal K. Jha, IIIT Vadodara () July, 2019 30 / 35


Introduction To Logic Gates
Logic Gates

Buffer Circuit:

Load driving capability.

Useful in bus-oriented systems.

Driving capability is higher than logic Gates.

Useful in bus-oriented systems.

Normally, the buffers are tristate devices.

Kamal K. Jha, IIIT Vadodara () July, 2019 31 / 35


Introduction To Logic Gates
Logic Gates

Types: Inverting and Non-inverting.

Driver is even larger load-driving capability than a buffer.

Kamal K. Jha, IIIT Vadodara () July, 2019 32 / 35


Introduction To Logic Gates
Logic Gates

Example:

Kamal K. Jha, IIIT Vadodara () July, 2019 33 / 35


Introduction To Logic Gates
Logic Gates

Application:

Kamal K. Jha, IIIT Vadodara () July, 2019 34 / 35


Introduction To Logic Gates
Logic Gates

Application:

Kamal K. Jha, IIIT Vadodara () July, 2019 35 / 35

You might also like