Docsity

Boolean Logic - Introduction to Computer Architecture - Lecture Slides, Slides of Computer Science

Toggle sidebar
bg1
1
Boolean๎˜ƒLogicBoolean๎˜ƒLogic
Introduction๎˜ƒto๎˜ƒComputer๎˜ƒArchitecture
Difficult๎˜ƒTextbook๎˜ƒTopic s
โ€ขHow๎˜ƒto๎˜ƒuse๎˜ƒthe๎˜ƒBoolean๎˜ƒIdentities๎˜ƒto๎˜ƒsimplify๎˜ƒ
li ti
l
og
i
c๎˜ƒequa
ti
ons
โ€ขI๎˜ƒdon't๎˜ƒfully๎˜ƒunderstand๎˜ƒthe๎˜ƒimplementation๎˜ƒof๎˜ƒ
the๎˜ƒbrute๎˜ƒforce๎˜ƒmethod
โ€ขDetermining๎˜ƒwhich๎˜ƒidentity๎˜ƒlaws๎˜ƒwere๎˜ƒused๎˜ƒin๎˜ƒ
each step
each
๎˜ƒ
step
โ€ขBetter๎˜ƒexamples๎˜ƒof๎˜ƒsumโ€ofโ€products๎˜ƒand๎˜ƒ
productsโ€ofโ€sum
Boolean๎˜ƒExpression๎˜ƒForms
โ€ขYou ๎˜ƒcan๎˜ƒexpress๎˜ƒa๎˜ƒBoolean๎˜ƒequation๎˜ƒin๎˜ƒmany๎˜ƒ
ways.
โ€ขThe๎˜ƒSum๎˜ƒof๎˜ƒProducts๎˜ƒform๎˜ƒORs๎˜ƒtogether๎˜ƒsubโ€
expressions๎˜ƒthat๎˜ƒare๎˜ƒANDed
F๎˜ƒ=๎˜ƒABC๎˜ƒ+๎˜ƒAโ€™Bโ€™C๎˜ƒ+๎˜ƒABโ€™
โ€ขThe๎˜ƒProduct๎˜ƒof๎˜ƒSums๎˜ƒform๎˜ƒANDs๎˜ƒtogether๎˜ƒsubโ€
expressions๎˜ƒthat๎˜ƒare๎˜ƒORed
F๎˜ƒ=๎˜ƒ(A+B+C)๎˜ƒ*๎˜ƒ(Bโ€™๎˜ƒ+๎˜ƒCโ€™)
Standard๎˜ƒForms
โ€ขUsing๎˜ƒthe๎˜ƒstandard๎˜ƒforms๎˜ƒcan๎˜ƒmake๎˜ƒit๎˜ƒeasier๎˜ƒto๎˜ƒ
Bl ti
use๎˜ƒa๎˜ƒ
B
oo
l
ean๎˜ƒequa
ti
on
โ€ขIt๎˜ƒmay๎˜ƒbe๎˜ƒpossible๎˜ƒto๎˜ƒsimplify๎˜ƒan๎˜ƒequation๎˜ƒif๎˜ƒ
you๎˜ƒdo๎˜ƒnot๎˜ƒuse๎˜ƒthe๎˜ƒstandard๎˜ƒforms.
F A * (B C)
F
๎˜ƒ=๎˜ƒ
A
๎˜ƒ
*
๎˜ƒ
(B
๎˜ƒ+๎˜ƒ
C)
F๎˜ƒ=๎˜ƒAB๎˜ƒ+๎˜ƒAC
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Boolean Logic - Introduction to Computer Architecture - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Boolean

Logic

Boolean

Logic

Introduction

to^ Computer

Architecture

Difficult

Textbook

Topics

-^ How^ to

use^ the^ Boolean

Identities

to^ simplify

l^ i^

ti logic^ equations โ€ข I^ don't^ fully

understand

the^ implementation

of

the^ brute

force^ method

-^ Determining

which^ identity

laws^ were

used^ in

each stepeach^ step โ€ข Better^ examples

of^ sumโ€of

โ€products

and

productsโ€

ofโ€sum

Boolean

Expression

Forms

-^ You^ can

express^ a

Boolean^

equation^

in^ many

ways. โ€ข The^ Sum^ of

Products

form^ ORs

together

subโ€

expressions

that^ are^ ANDedF =^ ABC^ +

Aโ€™Bโ€™C^ +

ABโ€™

-^ The^ Product

of^ Sums^ form

ANDs^ together

subโ€

expressions

that^ are^ ORedF =^ (A+B+C)

*^ (Bโ€™^ +^

Cโ€™)

Standard

Forms

-^ Using^ the

standard

forms^ can

make^ it^ easier

to

B^ l^

ti use^ a^ Boolean

equation

-^ It^ may^ be

possible^

to^ simplify

an^ equation

if

you^ do^ not

use^ the^ standard

forms.

F^ A * (B

C)

F^ =^ A^ *^ (B

+^ C)

F^ =^ AB^ +

AC

Docsity.com

Converting

Truth^ Table

to^ Expressions

-^ To^ create

a^ Sum^ of

Products

equation

-^ For^ each

row^ where

the^ output

is^ โ€œ1โ€,^ AND

together^ the

input^ variables.

NOT^ the

input

variables^

that^ are^ zero.

-^ OR^ together

all^ of^ the

AND^ statements.

Truth^ Table

to^ Equation

A^ B^ C^

F 0 0 0

1 0 0 0

1 0 0 1

0 0 1 0

0 0 1 1

1 1 0 0

F^ =^ Aโ€™Bโ€™Cโ€™ 0

+^ Aโ€™BC^ +

ABโ€™C^ +^ ABC

1 0 0

0 1 0 1

1 1 1 0

0 1 1 1

1

Create^

a^ SoP Expression

A^ B^ C^

F 0 0 0

0 0 0 0

0 0 0 1

1 0 1 0

0 0 1 1

0 1 0 0

1 1 0 0

1 1 0 1

0 1 1 0

0 1 1 1

1

Create^

a^ SoP Expression

A^ B^ C^

F 0 0 0

0 F

=^ Aโ€™Bโ€™C

+^ ABโ€™Cโ€™

+^ ABC

0 0 0

0 0 0 1

1 0 1 0

0 0 1 1

0 1 0 0

1 1 0 0

1 1 0 1

0 1 1 0

0 1 1 1

1

Docsity.com

Inverse

Implementation โ€ข Sometimes

the^ equation

has^ a l t^ f t A^ B^ C^

F 0 0 0

1 lot^

of^ terms. โ€ข It may^ be^ simpler

to^ solve^

the inverse^ and

then^ NOT

it. F^ =^ Aโ€™Bโ€™Cโ€™

+^ Aโ€™BCโ€™^ +

Aโ€™BC^ + ABโ€™Cโ€™ + ABโ€™C + ABCโ€™ + ABC 0 0 0

1 0 0 1

0 0 1 0

1 0 1 1

1 1 0 0

1 ABโ€™Cโ€™

+^ ABโ€™C^ +

ABCโ€™^ +^ ABC F = (Aโ€™Bโ€™C)โ€™

1 0 0

1 1 0 1

1 1 1 0

1 1 1 1

1

Basic^ Truth

Tables

X^ Y^

X^ AND^ Y 0 0

0

X^ Y^

X^ OR^ Y 0 0

0

0 0

0 0 1

0 1 0

0 1 1

1

0 0

0 0 1

1 1 0

1 1 1

1

Boolean

Identities

Name^

AND^ version

OR^ version

Identity^

X^ *^1 =^ X^

X^ +^0 =^ X

Complement

X^ *

Xโ€™^ =^0

X^ +^ Xโ€™^ =^1

Commutative

X^ *^ Y

=^ Y^ *^ X^

X^ +^ Y^ =^ Y^ +^ X

Distribution^

X^ ^ (Y +^ Z)^ =^ XY

+^ X*Z^ X^ +

(Y*Z) =^ (X+Y)

*^ (X+Z)

Idempotent^

X^ *^ X^ =^ X^

X^ +^ X^ =^ X

Null^

X^ *^0 =^0

X^ +^1 =^1

Involution^

(Xโ€™)โ€™^ =^ X^

โ€โ€

Absorption^

X^ *^ (X^ +^ Y)^ =^ X

X^ +^ (X^ *^ Y)^ =^ X

Associative^

X *^ (Y^ *^ Z)^ =^ (X

*^ Y)^ *^ Z^

X^ +^ (Y^ +^ Z)^ =^ (X

+^ Y)^ +^ Z

de^ Morgan^

(X^ *^ Y)โ€™^ =^ Xโ€™^ +

Yโ€™^

(X^ +^ Y)โ€™^ =^ Xโ€™^ *

Yโ€™

Boolean

Simplification

-^ Just^ like

regular^ algebra,

you^ can^ use

Boolean

l^ b^ t^

i^ lif^

ti algebra^ to

simplify^ an

equation.

-^ The^ identities

can^ be^ used

to^ remove

terms

and^ variables

that^ do^ not

make^ a^ difference. A^ *^ (^ Aโ€™^ +^

B )^ rule AAโ€™^ +^ AB

Distribution 0 +^ A*B^

Complement A*B^

Identity

Docsity.com

Simplification

Example

(A^ +^ B)^ *^ (A

+^ Bโ€™)^ *^ (Aโ€™^

+^ B) [A^ (B * Bโ€™)] * (Aโ€™

B)^ OR Di

ib^ i [A^ + (B^ *^ Bโ€™)]

*^ (Aโ€™^ +^ B)^

OR^ Distribution (A^ + 0)^ *^ (Aโ€™

+^ B)^

AND^ Complement A^ *^ (Aโ€™^ +^ B)

OR

Identity A^ *^ Aโ€™^ +^ A^ *

B^ AND

Distribution 0 +^ A^ *^ B^

AND^ Complement 0 A^ B^

AND^ Complement A^ *^ B^

OR^ Identity

What^ rule

is^ being

used? 25%^

25%25% 25%

(A^ +^ B)^ *^ (A^ +

Bโ€™)A + (B * Bโ€™)^ Distribution A^ +^ (B^ ^ B ) 1. Identity 2 Complement Distribution A + 0?* A Identity

Identity^ Complement

Morgan (^) de Distribution

  1. Complement3. Distribution4. de^ Morgan

Logic^ Circuit

Design^

Process

-^ A^ simple

logic^ design

process^

involves

-^ Problem specificationโ€ข^ Problem^

specification

-^ Truth^ table

derivation

-^ Derivation

of^ logical^ expression

-^ Simplification

of^ logical^ expression

-^ Implementation

TTL^ Chips GND^ is^ groundVcc is^ power

Docsity.com

Death^ of

Mooreโ€™s

Law

-^ Libraries

could^ be^

filled^ with

articles^ written th^ d^ d

di ti

th^

d^ f

over^ the^ d

ecades^ predicting

the^ end^ of

Mooreโ€™s^ Law. โ€ข Mooreโ€™s^ Law

continues

to^ hold

-^ Obviously

Mooreโ€™s^

Law^ must

end^ sometime.

Transistors cannot be smaller than an atomTransistors

cannot^ be

smaller^ than

an^ atom.

-^ Some^ have

written^ welcoming

the^ end^ of

Mooreโ€™s^ law

so^ hardware

would^ stablize.

Docsity.com