PE Refresher Course Digital Systems and Computers Joanne Degroat - - PowerPoint PPT Presentation

pe refresher course
SMART_READER_LITE
LIVE PREVIEW

PE Refresher Course Digital Systems and Computers Joanne Degroat - - PowerPoint PPT Presentation

PE Refresher Course Digital Systems and Computers Joanne Degroat degroat.1@osu.edu ece.osu.edu/~degroat 3/1/20007 PE Refresher Computer Area - 1 Joanne DeGroat The Basics Basic Switching Algebra Truth Tables of Basic Functions AND


slide-1
SLIDE 1

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 1

PE Refresher Course

Digital Systems and Computers

Joanne Degroat degroat.1@osu.edu ece.osu.edu/~degroat

slide-2
SLIDE 2

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 2

The Basics

Basic Switching Algebra

  • Truth Tables of Basic Functions AND and OR

A B C=A+B 1 1 1 1 1 1 1 OR A B C=A*B 1 1 1 1 1 AND

slide-3
SLIDE 3

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 3

The Basics (cont)

Inversion – The not or

inverter gate

Exclusive OR - XOR

A B Χ=Α ⊕ Β 1 1 1 1 1 1 XOR - exclusive OR

A A 1 1 NOT - inversion

slide-4
SLIDE 4

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 4

And two other common gates

The NAND – NOT AND The NOR – NOT OR

A B C=A*B 1 1 1 1 1 NAND

slide-5
SLIDE 5

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 5

Some Basic Theorems

A+0 = A A+1 = 1 A+B = B+A A+BC = (A+B)(A+C) A+A’ = 1 A+AB = A A*1 = A A*0 = 0 A*B = B*A A(B+C) = AB+AC A*A’ = 0 A(A+B) = A

Equality Identity Commutative Distributive Involution Absorption

slide-6
SLIDE 6

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 6

More Theorems

A+AB = A + B

A(Α + B) = AB

(A + B) = AB

(AB) = A + B

A*A = A

A + A = A

(A) = A AB + AC + BC = AB + AC Dual:

(A+B)(A+C)(B+C) = (A+B)(A+C)

DeMorgan’s Law

slide-7
SLIDE 7

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 7

Truth Tables

A B A+B 1 1 1 1 1 1 Proof of DeMorgan's Law 1 1 1 (A+B) 1 A B 1 1 1 A*B = Truth tables can be used to prove equalities

slide-8
SLIDE 8

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 8

Venn Diagram and Karnaugh Maps

A=1 B=1 C=1 000 001 010

011

100

101 110 111

00 01 11 10 1 A B C

slide-9
SLIDE 9

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 9

Function Simplification

f(a,b,c) = ab + bc + abc Simplify using Karnaugh map

Start with each term

slide-10
SLIDE 10

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 10

Function Simplification

f(a,b,c) = ab + bc + abc

A term with a Single element results In 4 ones A term with 2 elements Gives two A term with 3 elements Gives a single 1

slide-11
SLIDE 11

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 11

Simplify K maps

Conbining the previous three maps Can represent what a K map shows by a sum

  • f products

Take the largest group possible

  • On one line, a square, two
  • Group needs to be a
  • power of 2

00 01 11 10 1 A 1 1 1 1 1 BC

f(a,b,c) = a + bc

slide-12
SLIDE 12

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 12

4 variable functions

Also expressed in minterm notation f(a,b,c,d) = Σm(7,13,14,15)

  • So function is a 1 when abcd = 0111 (7)

1101 (13) 1110 (14) 1111 (15) 00 01 11 10 AB 1 1

1

1 1 CD 00 01 11 10

2 3 5 6 7 4 13 14 15 12 9 10 11 8

slide-13
SLIDE 13

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 13

Form into largest groups

For 4 variables form

into groups of

  • 16 – function would be a

0 or a 1

  • 8 – 1 variable
  • 4 – 2 variables
  • 2 – 3 variables

Simplifies to

  • F = ABD + BCD + ABC
slide-14
SLIDE 14

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 14

Another Example of function simplification

From a Truth Table Step 1 – map to

K- maps

x y z F1 F2 0 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 1 1 1 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1

slide-15
SLIDE 15

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 15

Step 2 – Generate simplified equation

For F1 For f2

slide-16
SLIDE 16

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 16

Example Problem

Design a circuit having 1 output Z and 4

inputs A B C D which represents a BCD number, such that Z = 1 if the BCD number is greater than 5.

BCD stands for binary coded decimal

  • Takes 4 binary digits
  • Only 0 through 9 are used
slide-17
SLIDE 17

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 17

Map onto K map

Fill in a 1 whenever

  • utput should be a 1

Here that would be 6,

7, 8 or 9

And a 0 for blocks 0

through 5

slide-18
SLIDE 18

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 18

The K map cont

Filled in What should other

blocks be?

They would be don’t

cares as in BCD notation they will never occur

And final K map for

simplification is

slide-19
SLIDE 19

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 19

Simplified using don’t cares

Form the largest power

  • f 2 grouping from 1’s

and don’t cares

Cover all the 1’s but

don’t need to cover all the don’t cares

Get Z = A + BC Gate implementation

1 2 3 5 6 7 4 13 14 15 12 9 10 11 8

slide-20
SLIDE 20

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 20

PLAs

PLA – Programmable

Logic Array

PAL – Programmable

Array Logic – much like a PLA but restricted connections

Formed of an AND

plane and an OR plane

slide-21
SLIDE 21

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 21

PLAs

PLA – Programmable

Logic Array

PAL – Programmable

Array Logic – much like a PLA but restricted connections

Formed of an AND

plane and an OR plane

slide-22
SLIDE 22

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 22

PLA example

Problem: A sequence box to control

automatic starting of a jet engine is to be

  • designed. It has the following signals

Problem stated on next slide.

slide-23
SLIDE 23

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 23

Problem statement

xx

slide-24
SLIDE 24

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 24

Problem statement translated to a table

The table

slide-25
SLIDE 25

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 25

K maps for the sequencer

slide-26
SLIDE 26

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 26

The logic implementation in gates

slide-27
SLIDE 27

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 27

And a PLA implementation

You will most like be asked for this in a

table representation form like this

slide-28
SLIDE 28

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 28

The PLA

slide-29
SLIDE 29

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 29

Basic Sequential Logic

Flip Flops Set Reset FF

  • Q*=S+R’Q

Toggle FF

  • Q*=Q’
  • Q* is next value
  • Or next state
slide-30
SLIDE 30

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 30

Basic Sequential Logic

D F/F

  • Q* = D

JK F/F

  • Q*=JQ’+K’Q
slide-31
SLIDE 31

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 31

A Simple up/down counter

Start with a state

diagram

slide-32
SLIDE 32

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 32

A Simple up/down counter

Start with a state diagram And a state table for T F/Fs

slide-33
SLIDE 33

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 33

K Maps for the toggle F/Fs

T1 = x’y2 + x y2’ = x xor y2 T2 = 1

slide-34
SLIDE 34

3/1/20007 PE Refresher Computer Area - Joanne DeGroat 34

Implementation

Q Q

SET CLR

D

T

Q Q

SET CLR

D

T