Top Banner
SOLUTIONS 11 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc. Exercise Solutions CHAPTER 2 Exercise 2.1 (a) (b) (c) (d) (e) Exercise 2.2 (a) (b) (c) (d) (e) Exercise 2.3 (a) Y AB AB AB + + = Y ABC ABC + = Y ABC ABC ABC ABC ABC + + + + = Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD + + + + + + = Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD + + + + + + + = Y AB AB AB + + = Y ABC ABC ABC ABC ABC + + + + = Y ABC ABC ABC + + = Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD + + + + + + = Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD + + + + + + = Y A B + =
36

CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

May 06, 2018

Download

Documents

lyngoc
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: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 11

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

CHAPTER 2

Exercise 2.1

(a)

(b)

(c) (d)

(e)

Exercise 2.2

(a)

(b)

(c)

(d)

(e)

Exercise 2.3

(a)

Y AB AB AB+ +=

Y ABC ABC+=

Y ABC ABC ABC ABC ABC+ + + +=

Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD+ + + + + +=

Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD+ + + + + + +=

Y AB AB AB+ +=

Y ABC ABC ABC ABC ABC+ + + +=

Y ABC ABC ABC+ +=

Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD+ + + + + +=

Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD+ + + + + +=

Y A B+ =

Page 2: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

12 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

(b)

(c) (d)

(e)

Exercise 2.4

(a)

(b)

(c) (d)

(e)

Exercise 2.5

(a)

(b)

(c)

(d) (e)

This can also be expressed as:

Exercise 2.6

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+ + =

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

=

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

=

Y A B+=

Y 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+ + =

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

=

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

=

Y A B+=

Y ABC ABC+=

Y AC AB AC+ +=

Y AB BD ACD+ +=

Y ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD+ + + + + + +=

Y A B C D A B C D +=

Page 3: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 13

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

(a) Y = A + B

(b) or

(c)

(d)

(e) or

Exercise 2.7

(a)

(b)

(c)

(d)

Y AC AC BC+ += Y AC AC AB+ +=

Y AB ABC+=

Y BC BD+=

Y AB ABC ACD+ += Y AB ABC BCD+ +=

A

B

Y

AB

YC

A

B

YC

A B

Y

C D

Page 4: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

14 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

(e)

Exercise 2.8

Exercise 2.9

AB

YCD

Y

(a)

AB

(b)BC

A

Y or

BA

C

Y

(c)CB

A

Y

(d)DB

C

Y

(e)

ABCD

Y

or

ABCD

Y

Page 5: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 15

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

(a) Same as 2.7(a)(b)

(c)

(d)

AB

YC

A B

Y

C

A B

Y

C D

Page 6: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

16 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

(e)

Exercise 2.10

Y

A B C D

Page 7: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 17

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.11

(a)

Y

(a)

AB

(b)

or

(c)

Y

(d)DB

C

Y

(e)

ABCD

Y

A B C

Y

A B C

Y

A B C

A

B Y

Page 8: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

18 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

(b)

(c)

(d)

(e)

Exercise 2.12

A

B Y

C

A

B

YC

AB

Y

C

D

AB

CD

Y

Page 9: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 19

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.13

(a) Y = AC + BC (b) Y = A(c) Y = A + B C + B D + BD

Exercise 2.14

(a)

(b)

Y

(a)

AB

(b)

(c)

Y

(d)DB

C

Y

(e)

ABCD

Y

A B C

Y

A B C

Y AB=

Y A B C+ + ABC= =

Page 10: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

20 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

(c)

Exercise 2.15

(a)

(b)

(c)

Exercise 2.16

Exercise 2.17

Y A B C D+ + BCD+ ABCD BCD+= =

AB YC

A Y

A

BY

C

D

Y

(a)

AB

(b)

ABC

Y

(c)

Y

ABCD

Page 11: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 21

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

(a)

(b)

(c)

Exercise 2.18

(a)

(b)

(c)

Exercise 2.19

4 gigarows = 4 x 230 rows = 232 rows, so the truth table has 32 inputs.

Exercise 2.20

Y B AC+=

BY

CA

Y AB=

BY

A

Y A BC DE+ +=

B

Y

A DC E

Y B C+=

Y A C+ D B+=

Y BDE BD A C +=

Page 12: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

22 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Exercise 2.21

Ben is correct. For example, the following function, shown as a K-map, has

two possible minimal sum-of-products expressions. Thus, although and

are both prime implicants, the minimal sum-of-products expression doesnot have both of them.

Exercise 2.22

(a)

B

A

Y

Y = A

ACD

BCD

01 11

1

0

0

0

1

1

1

001

0

1

0

0

0

0

0

0

11

10

00

00

10AB

CD

Y

ABD

ACD

ABC

Y = ABD + ABC + ACD

01 11

1

0

0

0

1

1

1

001

0

1

0

0

0

0

0

0

11

10

00

00

10AB

CD

Y

ABD

ABC

Y = ABD + ABC + BCD

BCD

B01

B B01

Page 13: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 23

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

(b)

(c)

Exercise 2.23

Exercise 2.24

Exercise 2.25

C D (B C) + (B D)0 00 11 01 1

B0000

0 00 11 01 1

1111

B (C + D)00000111

00000111

B C (B C) + (B C)0 00 11 01 1

0011

0 00 11 01 1

B2

0000

0 00 11 01 1

1111

11111110

11111110

B1 B0 B2 B1 B0 B2 + B1 + B0

Y AD ABC ACD ABCD+ + +=

Z ACD BD+=

Page 14: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

24 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Exercise 2.26

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

01 11

0

1

0

1

0

1

0

101

1

0

1

0

1

0

1

1

11

10

00

00

10AB

CD

Y

D

ABC

01 11

0

0

0

1

1

1

0

101

0

0

1

0

1

0

0

0

11

10

00

00

10AB

CD

Z

BD

Y = ABC + D

ACD

Z = ACD + BD

D

Y

BA C

Z

AB

CDE

Y

Page 15: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 25

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.27

Exercise 2.28

Two possible options are shown below:

Exercise 2.29

AB

D

E

F

Y

G

C

Y = ABC + D + (F + G)E

= ABC + D + EF + EG

01 11

X

X

0

X

1

1

1

001

0

X

X

0

1

X

1

X

11

10

00

00

10AB

CD

Y

Y = AD + AC + BD

01 11

X

X

0

X

1

1

1

001

0

X

X

0

1

X

1

X

11

10

00

00

10AB

CD

Y

Y = A(B + C + D)(a) (b)

Page 16: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

26 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Two possible options are shown below:

Exercise 2.30

Option (a) could have a glitch when A=1, B=1, C=0, and D transitions from1 to 0. The glitch could be removed by instead using the circuit in option (b).

Option (b) does not have a glitch. Only one path exists from any given inputto the output.

Exercise 2.31

Exercise 2.32

Exercise 2.33

The equation can be written directly from the description:

ABCD

Y

(b)(a)

CA

D

B

Y

Y AD ABCD BD CD+ + + ABCD D A B C+ + += =

Y

ABCD

E SA AL H+ +=

Page 17: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 27

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.34

(a)

01 11

1

0

0

0

0

0

1

001

0

1

0

1

0

0

0

0

11

10

00

00

10D3:2

Se

D1:001 11

1

0

1

1

0

0

1

101

0

0

0

1

0

0

0

0

11

10

00

00

10D3:2

Sf

Sf = D3D1D0 + D3D2D1+ D3D2D0 + D3D2D1

D1:0

01 11

1

1

1

1

0

0

1

101

1

0

1

1

0

0

0

0

11

10

00

00

10D3:2

Sc

Sc = D3D0 + D3D2 + D2D1

D1:001 11

1

0

0

1

0

0

1

001

1

1

0

1

0

0

0

0

11

10

00

00

10D3:2

Sd

Sd = D3D1D0 + D3D2D1 +

D2D1D0 + D3D2D1D0

D1:0

Se = D2D1D0 + D3D1D0

Page 18: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

28 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

01 11

0

0

1

1

0

0

1

101

1

1

0

1

0

0

0

0

11

10

00

00

10D3:2

Sg

Sg = D3D2D1 + D3D1D0+ D3D2D1 + D3D2D1

D1:0

Page 19: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 29

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

(b)

01 11

1

1

1

1

X

X

1

101

1

0

1

1

X

X

X

X

11

10

00

00

10D3:2

Sc

Sc = D1 + D0 + D2

D1:001 11

1

0

0

1

X

X

1

001

1

1

0

1

X

X

X

X

11

10

00

00

10D3:2

Sd

Sd = D2D1D0 + D2D0+ D2D1 + D1D0

D1:0

01 11

1

0

0

1

X

X

1

101

1

0

1

1

X

X

X

X

11

10

00

00

10D3:2

Sa

Sa = D2D1D0 + D2D0 + D3 + D2D1 + D1D0

D1:001 11

1

1

1

0

X

X

1

101

1

1

1

0

X

X

X

X

11

10

00

00

10D3:2

Sb

D1:0

Sb = D1D0 + D1D0 + D2

Sa = D2D1D0 + D2D0 + D3 + D1

Page 20: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

30 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

01 11

1

0

0

0

X

X

1

001

0

1

0

1

X

X

X

X

11

10

00

00

10D3:2

Se

D1:001 11

1

0

1

1

X

X

1

101

0

0

0

1

X

X

X

X

11

10

00

00

10D3:2

Sf

Sf = D1D0 + D2D1+ D2D0 + D3

D1:0

01 11

0

0

1

1

X

X

1

101

1

1

0

1

X

X

X

X

11

10

00

00

10D3:2

Sg

Sg = D2D1 + D2D0+ D2D1 + D3

D1:0

Se = D2D0 + D1D0

Page 21: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 31

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

(c)

Exercise 2.35

D3 D1D2 D0

Sa Sb Sc Sd Se Sf Sg

Page 22: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

32 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

P has two possible minimal solutions:

Hardware implementations are below (implementing the first minimalequation given for P).

0 00 11 01 1

0000

0 00 11 01 1

1111

00110101

0 00 11 01 1

0000

0 00 11 01 1

1111

0000000011111111

00010100

A3 A1A2 A0 PD

0001001001001001

DecimalValue

0123456789101112131415

01 11

0

0

0

0

1

0

0

101

1

0

0

1

1

0

0

0

11

10

00

00

10A3:2

D

A1:001 11

0

0

0

1

0

1

0

001

1

1

1

0

0

0

1

0

11

10

00

00

10A3:2

P

A1:0

D = A3A2A1A0 + A3A2A1A0 + A3A2A1A0

+ A3A2A1A0 + A3A2A1A0

P = A3A2A0 + A3A1A0 + A3A2A1

+ A2A1A0

P = A3A1A0 + A3A2A1 + A2A1A0

+ A2A1A0

Page 23: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 33

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.36

A3 A1A2 A0

D

P

0 11 XX X

001

X XX XX XX X

XXXX

X XX

0001XXXX

A3 A1A2 A0 Y2

00001111

0 00 00 0

000

0 00 11 XX X

0001

X XX

00000001

A7 A5A6 A4 Y1

00110011

Y0

01010101

0 000 00 000 0 0

NONE

00000000

1

Y2 A7 A6 A5 A4+ + +=

Y1 A7 A6 A5A4A3 A5A4A2+ + +=

Y0 A7 A6A5 A6A4A3 A6A4A2A1+ + +=

NONE A7A6A5A4A3A2A1A0=

Page 24: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

34 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Exercise 2.37

The equations and circuit for Y2:0 is the same as in Exercise 2.25, repeated

here for convenience.

A7 A5A6 A4 A3 A1A2 A0

Y2

Y1

Y0

NONE

0 11 XX X

001

X XX XX XX X

XXXX

X XX

0001XXXX

A3 A1A2 A0 Y2

00001111

0 00 00 0

000

0 00 11 XX X

0001

X XX

00000001

A7 A5A6 A4 Y1

00110011

Y0

01010101

0 000 00 000 0 0

Y2 A7 A6 A5 A4+ + +=

Y1 A7 A6 A5A4A3 A5A4A2+ + +=

Y0 A7 A6A5 A6A4A3 A6A4A2A1+ + +=

Page 25: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 35

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

A7 A5A6 A4 A3 A1A2 A0

Y2

Y1

Y0

NONE

Page 26: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

36 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

The truth table, equations, and circuit for Z2:0 are as follows.

1 10 10 1

010

0 10 10 10 1

0000

1 X1 X1 X1 X

1000

1 X0

001000001000

A3 A1A2 A0 Z2

000000000000

0 00 00 0

000

0 11 00 00 0

0010

0 00 00 11 0

0000

01

000000100000

A7 A5A6 A4

0

Z1

000000000000

Z0

000000011111

1 XX XX X

011

X XX XX XX X

111X

X XX XX XX X

XXXX

X XX

0100001111XX

000000000011

0 00 00 1

000

1 00 00 00 1

0100

1 00 00 01 1

0100

01

100001000100 1

01111

111100

100000111100

1

1111

0001

0110

X XX XX X

XXX

X XX

XXXX

0 11 X1 X

010

X1

1011 X

Z2 A4 A5 A6 A7+ + A5 A6 A7+ A6A7+ +=

Z1 A2 A3 A4 A5 A6 A7+ + + + A3 A4 A5 A6 A7+ + + A6A7

++

=

Z0 A1 A2 A3 A4 A5 A6 A7+ + + + + A3 A4 A5 A6 A7+ + + A5 A6 A7+

++

=

Page 27: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 37

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.38

A7 A5A6 A4 A3 A1A2 A0

Z2

Z1

Z0

Y6 A2A1A0=

Y5 A2A1=

Y4 A2A1 A2A0+=

Y3 A2=

Y2 A2 A1A0+=

Y1 A2 A1+=

Y0 A2 A1 A0+ +=

Page 28: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

38 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Exercise 2.39

Exercise 2.40

Exercise 2.41

A2A1A0

Y6

Y5

Y4

Y3

Y2

Y1

Y0

Y A C D+ A CD CD+ += =

Y CD A B AB+ ACD BCD AB+ += =

Page 29: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 39

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Exercise 2.42

Exercise 2.43

tpd = 3tpd_NAND2 = 60 ps

tcd = tcd_NAND2 = 15 ps

Exercise 2.44

tpd = tpd_AND2 + 2tpd_NOR2 + tpd_NAND2

= [30 + 2 (30) + 20] ps = 110 pstcd = 2tcd_NAND2 + tcd_NOR2

= [2 (15) + 25] ps = 55 ps

A B Y

0 00 1 01 0 01 1

00

Y0110

11

A B

A Y

01

0

1

A

Y

BCA B Y

0 0 10 1 01 0 01 1 0

0000

0 00 11 01 1

1111

0001

C

A B

(a)

000001010011100101110111

CC

C

C

BC

BC

(b) (c)

Y

B

A C Y

0 00 11 0

1

1 1

00

Y0110

11

A C

A Y

01

0

1

A

Y

BA B Y

0 0 10 1 01 0 11 1 1

0000

0 00 11 01 1

1111

0011

C

A B

(a)

000001010011100101110111

C

B

B+C

BC

(b) (c)

Y

BB

Page 30: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

40 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Exercise 2.45

tpd = tpd_NOT + tpd_AND3

= 15 ps + 40 ps = 55 pstcd = tcd_AND3

= 30 ps

Exercise 2.46

A2 A1 A0

Y7

Y6

Y5

Y4

Y3

Y2

Y1

Y0

Page 31: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 41

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

tpd = tpd_NOR2 + tpd_AND3 + tpd_NOR3 + tpd_NAND2

= [30 + 40 + 45 + 20] ps = 135 pstcd = 2tcd_NAND2 + tcd_OR2

= [2 (15) + 30] ps = 60 ps

Exercise 2.47

A3 A1A2 A0

D

P

Page 32: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

42 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

tpd = tpd_INV + 3tpd_NAND2 + tpd_NAND3

= [15 + 3 (20) + 30] ps = 105 pstcd = tcd_NOT + tcd_NAND2

= [10 + 15] ps = 25 ps

Exercise 2.48

A7 A5A6 A4A3 A1A2 A0

Y2

Y1

Y0

NONE

Page 33: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 43

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

tpd_dy = tpd_TRI_AY

= 50 ps

Note: the propagation delay from the control (select) input to the output isthe circuit’s critical path:

tpd_sy = tpd_NOT + tpd_AND3 + tpd_TRI_SY

= [30 + 80 + 35] ps = 145 psHowever, the problem specified to minimize the delay from data inputs to

output, tpd_dy.

Y

S0

D0

D2

D3

D1

S1S2

D4

D6

D7

D5

Page 34: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

44 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions

Question 2.1

Question 2.2

Question 2.3

A tristate buffer has two inputs and three possible outputs: 0, 1, and Z. Oneof the inputs is the data input and the other input is a control input, often calledthe enable input. When the enable input is 1, the tristate buffer transfers the datainput to the output; otherwise, the output is high impedance, Z. Tristate buffersare used when multiple sources drive a single output at different times. One andonly one tristate buffer is enabled at any given time.

AB

Y

0 11 01 1

000

0 00 11 01 1

1111

0 00 11 01 1

0000

0 01

000000011111

A3 A1A2 A0 Y

101010110101

Month

Jan

01 11

X

1

0

1

1

X

1

001

1

0

1

0

X

X

0

1

11

10

00

00

10A3:2

Y

A1:0

Y = A3A0 + A3A0 = A3 + A0

FebMarAprMayJunJulAugSepOctNovDec

A3

A0Y

Page 35: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

S O L U T I O N S 45

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, 2nd Edition © 2012 by Elsevier Inc.Exercise Solutions

Question 2.4

(a) An AND gate is not universal, because it cannot perform inversion(NOT).

(b) The set {OR, NOT} is universal. It can construct any Boolean function.For example, an OR gate with NOT gates on all of its inputs and output per-forms the AND operation. Thus, the set {OR, NOT} is equivalent to the set{AND, OR, NOT} and is universal.

(c) The NAND gate by itself is universal. A NAND gate with its inputs tiedtogether performs the NOT operation. A NAND gate with a NOT gate on itsoutput performs AND. And a NAND gate with NOT gates on its inputs per-forms OR. Thus, a NAND gate is equivalent to the set {AND, OR, NOT} andis universal.

Question 2.5

A circuit’s contamination delay might be less than its propagation delay be-cause the circuit may operate over a range of temperatures and supply voltages,for example, 3-3.6 V for LVCMOS (low voltage CMOS) chips. As temperatureincreases and voltage decreases, circuit delay increases. Also, the circuit mayhave different paths (critical and short paths) from the input to the output. A gateitself may have varying delays between different inputs and the output, affect-ing the gate’s critical and short paths. For example, for a two-input NAND gate,a HIGH to LOW transition requires two nMOS transistor delays, whereas aLOW to HIGH transition requires a single pMOS transistor delay.

Page 36: CHAPTER 2 - Oregon State Universityclasses.engr.oregonstate.edu/eecs/spring2016/ece271/...SOLUTIONS 13 David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture,

46 S O L U T I O N S c h a p t e r 2

David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc.Exercise Solutions