Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

78
Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School

Transcript of Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Page 1: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Digital Circuits Design

Chin-Sung Lin

Eleanor Roosevelt High School

Page 2: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Digital Circuits Design

• From Logic Gates to Boolean Functions

• From Boolean Functions to Truth Tables

• From Truth Tables to Logic Gates (Sum-of-Products)

• Logic Circuits Simulation

• Properties of AND and OR Gates

• Properties of NAND and NOR Gates

• Digital Logic Circuits Implementation

• Digital Building Blocks

Page 3: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Page 4: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Page 5: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

A + BOR

Page 6: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Y = C (A + B)

A + B

AND

OR

Page 7: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Page 8: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

A BAND

Page 9: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Y = C + A B

A B

OR

AND

Page 10: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Page 11: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

A BAND

Page 12: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

A BAND

AND

C D

Page 13: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Y = A B + C D

A B

OR

AND

AND

C D

Page 14: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Page 15: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Y = A B + C D

A B

OR

AND

AND

C D

B

C

Page 16: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Page 17: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Logic Gates to Boolean Functions

Y = A B C + A B C + B C D

A B C

ORAND

AND

B

C

AND

A B C

B C D

Page 18: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Page 19: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = C + A B

A B

OR

AND

Page 20: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = C + A B

A B

OR

AND

A B C Y

Page 21: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = C + A B

A B

OR

AND

A B C Y

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Page 22: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = C + A B

A B

OR

AND

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

Page 23: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B + C D

Page 24: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B + C DA B C D Y

0 0 0 0

0 0 0 1

0 0 1 0

0 0 1 1

0 1 0 0

0 1 0 1

0 1 1 0

0 1 1 1

1 0 0 0

1 0 0 1

1 0 1 0

1 0 1 1

1 1 0 0

1 1 0 1

1 1 1 0

1 1 1 1

A B

OR

AND

AND

C D

Page 25: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B + C DA B C D Y

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

A B

OR

AND

AND

C D

Page 26: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B + A B A B Y

0 0

0 1

1 0

1 1

Page 27: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B + A B A B Y

0 0 0

0 1 1

1 0 1

1 1 0

Page 28: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B C + A B C A B C Y

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Page 29: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B C + A B C A B C Y

0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 0

1 1 1 0

Page 30: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

Y = A B C + A B C A B C Y

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Page 31: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Boolean Functions to Truth Tables

A B C Y

0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 0

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 0

Y = A B C + A B C

Page 32: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates

Page 33: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Sum of Products)

A B Y

0 0 0

0 1 1

1 0 1

1 1 0

Y = A B + A B

Product Product

Sum of Products (SOP)

Page 34: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Sum of Products)

A B C D Y

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

Page 35: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Sum of Products)

Y = A B + C DA B C D Y

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

A B

OR

AND

AND

C D

Page 36: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Sum of Products)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

Y = A B C + A B C + A B C + A B C + A B C

Page 37: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Sum of Products)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

Y = C + A B

Y = A B C + A B C + A B C + A B C + A B C

Y = A B C + A B C + A B C + A B C + A B C + A B C

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

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

Y = A C + A B + A C

Y = A C + A C + A B

Y = (A + A) C + A B

A B

OR

AND

Page 38: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Sum of Products)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

Y = A B C + A B C + A B C + A B C + A B C

A B

OR

AND

Y = C + A B

Logic SimplificationIs there a better way?

Page 39: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00

01

11

10

AB C

K-Map

• Karnaugh Map (K-Map) is a graphical tool for simplifying Boolean functions

• Coordinates of each cell are the input variables, which are ordered in Gray code to ensure that only one variable changes between adjacent cells

• Each cell represents a row in the truth table• The number of cells is always a power of 2

Page 40: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00

01

11

10

AB C

K-Map

• Load the cell values from the truth table

Page 41: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00 0 1

01 0 1

11 1 1

10 0 1

AB C

K-Map

• Load the cell values from the truth table

Page 42: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00 0 1

01 0 1

11 1 1

10 0 1

AB C

K-Map

• Load the cell values from the truth table• Group adjacent cells with 1’s into pairs, quad,

and octet (powers of 2)

Page 43: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00 0 1

01 0 1

11 1 1

10 0 1

AB C

K-Map

• Load the cell values from the truth table• Group adjacent cells with 1’s into pairs, quad,

and octet (powers of 2)

Page 44: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00 0 1

01 0 1

11 1 1

10 0 1

AB C

K-Map

• Load the cell values from the truth table• Group adjacent cells with 1’s into pairs, quad,

and octet (powers of 2)• A cell can be grouped more than once• All cells need to be grouped if possible• Group cells around the outer edge of the map• Find the sum of these groups

Page 45: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00 0 1

01 0 1

11 1 1

10 0 1

AB C

K-Map

Page 46: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 1

1 1 0 1

1 1 1 1

0 1

00 0 1

01 0 1

11 1 1

10 0 1

AB C

Y = A B + C

A B

OR

AND

K-Map

Page 47: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

00 01 11 10

00

01

11

10

AB CD

K-Map

Page 48: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 0

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 0

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 1

1 1 0 0 1

1 1 0 1 1

1 1 1 0 1

1 1 1 1 1

00 01 11 10

00 0 0 1 0

01 0 0 1 0

11 1 1 1 1

10 0 0 1 0

AB CD

K-Map

Y = A B + C D

A B

OR

AND

ANDC D

Page 49: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 1

0 0 0 1 0

0 0 1 0 1

0 0 1 1 0

0 1 0 0 0

0 1 0 1 1

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 0

1 1 0 0 0

1 1 0 1 1

1 1 1 0 0

1 1 1 1 1

00 01 11 10

00

01

11

10

AB CD

K-Map

Page 50: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 1

0 0 0 1 0

0 0 1 0 1

0 0 1 1 0

0 1 0 0 0

0 1 0 1 1

0 1 1 0 0

0 1 1 1 1

1 0 0 0 0

1 0 0 1 0

1 0 1 0 0

1 0 1 1 0

1 1 0 0 0

1 1 0 1 1

1 1 1 0 0

1 1 1 1 1

00 01 11 10

00 1 0 0 1

01 0 1 1 0

11 0 1 1 0

10 0 0 0 0

AB CD

K-Map

Y = A B D + B D

Page 51: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 0

0 0 0 1 1

0 0 1 0 0

0 0 1 1 1

0 1 0 0 1

0 1 0 1 0

0 1 1 0 1

0 1 1 1 0

1 0 0 0 0

1 0 0 1 1

1 0 1 0 1

1 0 1 1 1

1 1 0 0 1

1 1 0 1 0

1 1 1 0 1

1 1 1 1 1

AB CD

K-Map

Page 52: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 0

0 0 0 1 1

0 0 1 0 0

0 0 1 1 1

0 1 0 0 1

0 1 0 1 0

0 1 1 0 1

0 1 1 1 0

1 0 0 0 0

1 0 0 1 1

1 0 1 0 1

1 0 1 1 1

1 1 0 0 1

1 1 0 1 0

1 1 1 0 1

1 1 1 1 1

00 01 11 10

00

01

11

10

AB CD

K-Map

Page 53: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 0

0 0 0 1 1

0 0 1 0 0

0 0 1 1 1

0 1 0 0 1

0 1 0 1 0

0 1 1 0 1

0 1 1 1 0

1 0 0 0 0

1 0 0 1 1

1 0 1 0 1

1 0 1 1 1

1 1 0 0 1

1 1 0 1 0

1 1 1 0 1

1 1 1 1 1

00 01 11 10

00 0 1 1 0

01 1 0 0 1

11 1 0 1 1

10 0 1 1 1

AB CD

K-Map

Page 54: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

From Truth Tables to Logic Gates(Karnaugh Map, K-Map)

A B C D Y

0 0 0 0 0

0 0 0 1 1

0 0 1 0 0

0 0 1 1 1

0 1 0 0 1

0 1 0 1 0

0 1 1 0 1

0 1 1 1 0

1 0 0 0 0

1 0 0 1 1

1 0 1 0 1

1 0 1 1 1

1 1 0 0 1

1 1 0 1 0

1 1 1 0 1

1 1 1 1 1

00 01 11 10

00 0 1 1 0

01 1 0 0 1

11 1 0 1 1

10 0 1 1 1

AB CD

K-Map

Y = B D + B D + AC= (B ⊕ D) + AC

Page 55: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Properties of AND and OR Gates

Page 56: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Properties of AND Gates

Enable

X Y

0 X 0

1 X X

• Any zero input of AND gate will zero the output

• One of the inputs of AND gate can be used as Enable pin

• When Enable is ‘1’, Y = X• When Enable is ‘0’, Y = 0

Enable

X Y

0 0 0

0 1 0

1 0 0

1 1 1

Page 57: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Properties of AND Gates

Select A B Y

0 A B B

1 A B A

• 2-to-1 Multiplexer• Select pin used to enable one of

the AND gates• When Select is ‘1’, Y = A• When Select is ‘0’, Y = B

Select A B Y

0 0 0 0

0 0 1 1

0 1 0 0

0 1 1 1

1 0 0 0

1 0 1 0

1 1 0 1

1 1 1 1

Page 58: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Properties of OR Gates

Disable X Y

0 X X

1 X 1

• Any ‘1’ input of OR gate will make the output equal to ‘1”

• One of the inputs of OR gate can be used as Disable pin

• When Disable is ‘1’, Y = 1• When Disable is ‘0’, Y = X

Disable X Y

0 0 0

0 1 1

1 0 1

1 1 1

Page 59: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Properties of NAND and NOR Gates

Page 60: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Properties of NAND and NOR Gates

• Any Boolean function can be implemented by a

combination of AND, OR, or NOT functions.

• Any Boolean function can be implemented using only

NAND gates.

• Any Boolean function can be implemented using only

NOR gates.

Page 61: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Universal Property of NAND Gates

• Any Boolean function can be implemented using only

NAND gates.

OR

NOT

AND

De Morgan’s laws

NAND: x · y = x + y

Page 62: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Universal Property of NOR Gates

• Any Boolean function can be implemented using only

NOR gates.

OR

NOT

AND De Morgan’s laws

NOR: x + y = x · y

Page 63: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Digital Logic Circuits Implementation

Page 64: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Half-Adder Example• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

A B C S

0 0

0 1

1 0

1 1

Page 65: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Half-Adder Example• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

A B C S

0 0 0 0

0 1 0 1

1 0 0 1

1 1 1 0

Page 66: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Half-Adder Example• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

A B C S

0 0 0 0

0 1 0 1

1 0 0 1

1 1 1 0

S = ~AB + A~B = A ⊕ B

C = AB

Page 67: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Logic Circuits Simulation

Page 68: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Logic Circuits Simulation

Page 69: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Digital Building Blocks

Page 70: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Digital Building Blocks• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

Page 71: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Arithmetic Logic Unit (ALU)• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

OPCODE

Operands

Page 72: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Instruction Format• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

Page 73: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Central Processing Unit (CPU)• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

Page 74: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Central Processing Unit (CPU)• Select• A• B• Y• 0• 0• 0• 0• 0• 0• 1• 1• 0• 1• 0• 0• 0• 1• 1• 1• 1• 0• 0• 0• 1• 0• 1• 0• 1• 1• 0• 1• 1• 1• 1• 1

OPCODE

Operands

Program

Page 75: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Computational Thinking

through Digital Hardware

Page 76: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Reflections on Lessons

Page 77: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Reflections on Lessons

• Binary number system has been adopted as the machine

language (it can do everything the decimal system did).

• Digitization & quantization methods can convert all the real-

world information into binary data.

• Digital computer hardware are made of millions/billions of

switches (which have only two states: 1 & 0).

• Logic gates (which are made of switches) form the basic

building blocks of digital logic circuits.

• Logic circuits can perform arithmetic, logic, and data flow

control functions on binary data.

• Building a “thinking machine” purely in hardware.

Page 78: Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.

Q & A