Top Banner
Gates and Circuits
24

Gates and Circuits. Three Main Gates AND OR NOT.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Gates and Circuits

Page 2: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Three Main Gates

AND OR NOT

Page 3: Gates and Circuits. Three Main Gates  AND  OR  NOT.

NAND Gates

NOT AND

TFF

TTF

TFT

FTT

A NAND BBA

Page 4: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Gate Diagrams

Example: MR + S

Page 5: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Gate Diagrams

Example:

Page 6: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Gate Diagrams

Example: (MR + S) (RS)’

Page 7: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Gate Diagrams

Exercise:

Page 8: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Truth Table (to Expression) to Gates

First, build the Boolean algebra expression that gives Z Z = AB + A’B’

TFF

FTF

FFT

TTT

ZBA

Page 9: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Truth Table to Gates

Z = AB + A’B’ Next, build the

circuit that goes with the Boolean algebra expression Z

TFF

FTF

FFT

TTT

ZBA

Page 10: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Z = AB + A’B’

Page 11: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Boolean Expression to Gates

Exercise: (A + B’) A

Page 12: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Boolean Expression to Gates

Exercise: (A + B’) A

Page 13: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Multi-input AND and OR

What circuit corresponds to ABC? A+B+C?

Page 14: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Binary Addition

The first step in building our computer…

Page 15: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Binary Addition

TrueFalseFalseFalse

FalseTrueTrueFalse

10110

+ 1+ 0+ 1+ 0

1100

Sum

Carry

Page 16: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Binary Addition

000

010

001

111

CarryBA

000

110

101

011

SumBA

Page 17: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Sum Circuit

000

110

101

011

SumBA

Sum = AB’ + A’B

Page 18: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Carry Circuit

000

010

001

111

CarryBA

Carry = AB

Page 19: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Half Adder - Sum and Carry

Page 20: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Full Adder

Page 21: Gates and Circuits. Three Main Gates  AND  OR  NOT.

4 Bit Adder

Computers represent numbers in parallel.

Page 22: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Exercises

Give Boolean expressions and construct circuits with the following properties (using AND, OR or NOT gates):

Page 23: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Exercises

A) B)

100

110

101

011

ZBA

0000

1100

1010

0110

1001

0101

0011

1111

ZCBA

Page 24: Gates and Circuits. Three Main Gates  AND  OR  NOT.

Exercises

2 - Fill in a truth table and give a Boolean expression for the following circuit.