Docsity

solutions for mano manual, Exams of Digital Electronics

Partial preview of the text

Download solutions for mano manual and more Exams Digital Electronics in PDF only on Docsity!

SOLUTIONS MANUAL

M. MORRIS MANO

COMPUTER SYSTEM

ARCHITECTURE

Third Edition

Solutions Manual

Computer System

Architecture

CHAPTER 1

A B C A•B•C (A•B•C)' A' B' C' A'+B'+C'

A B C A ⊕ B A ⊕ B ⊕ C

(a) A + AB = A(1 + B) = A (b) AB + AB' = A(B + B') = A (c) A'BC + AC = C(A'B + A) = C(A' + A) (B + A) = (A + B)C (d) A'B + ABC' + ABC = A' B + AB(C' + C) = A'B + AB = B(A' + A) = B

1. (a) AB + A (CD + CD') = AB + AC (D + D') = A (B + C) (b) (BC' + A'D) (AB' + CD')

ABB'C' A'AB'D BCC'D' A'CD'D

(a) (A + B)' (A' + B') = (A'B') (AB) = 0 (b) A + A'B + A'B' = A + A' (B + B') = A + A'= 1

1. (a) F = x’y + xyz’ F' = (x + y') (x' + y' + z) = x'y' + xy' + y' + xz + y'z = y' (1 + x' + x + z) + xz = y'+ xz (b) F•F' = (x'y + xyz') (y' + xz) = 0 + 0 + 0 + 0 = 0 (c) F + F' = x'y + xyz' + y' + xz (y + y') = x'y + xy(z' + z) + y' (1 + xz) = x'y + xy + y' = y(x' + x) + y' = y + y' = 1

(a)

x y z F 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

(c) F = xy'z + x'y'z + xyz (d) Same as (a) = y'z(x + x') + xz(y + y') = y'z + xz

(b)

(c)

(a) F = x'z' + w'z (b) = (x' + z) (w' + z')

S = x'y'z + x'yz' + xy'z' + xyz = x'(y'z + yz') + x(y'z' + yz) See Fig. 1. = x'(y ⊕ z) + x(y ⊕ z)' (Exclusive - NDR) = x ⊕ y ⊕ z

x y z F 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

x y z A B C 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

c = z' By inspection

When D = 0; J = 0, K = 1, Q → 0 When D = 1; J = 1, K = 0, Q → 1

See text, Section 1.6 for derivation.

(a) D (^) A = x'y + xA; D (^) B = x'B + xA; z = B

CHAPTER 2

TTL JC

(a) Inverters – 2 pins each 12/2 = 6 gates 7404 (b) 2-input XOR – 3 pins each 12/3 = 4 gates 7486 (c) 3-input OR – 4 pins each 12/4 = 3 gates (d) 4-input AND – 5 pins each 12/5 = 2 gates 7421 (e) 5-input NOR – 6 pins each 12/6 = 2 gates 74260 (f) 8-input NAND – 9 pins 1 gate 7430 (g) JK flip-flop – 6 pins each 12/6 = 2 FFs 74107

2. (a) 74155 – Similar to two decoders as in Fig. 2.2. (b) 74157 – Similar to multiplexers of Fig. 2.5. (c) 74194 – Similar to register of Fig. 2.9. (d) 74163 – Similar to counter of Fig. 2.

When the parallel load input = 1, the clock pulses go through the AND gate and the data inputs are loaded into the register when the parallel load input = 0, the output of the AND gate remains at 0.

2. The buffer gate does not perform logic. It is used for signal amplification of the clock input.

2.

One stage of Register Fig. 2.7 Load Clear D Operation 0 0 Q(t) no change 0 1 0 Clear to 0 1 x I 0 load I (^0)

Function table

2.

Serial transfer: One bit at a time by shifting. Parallel transfer: All bits at the same time. Input serial data by shifting–output data in parallel. Input data with parallel load–output data by shifting.

2.

2.16 (a) 4 ; (b) 9

After the count reaches N – 1 = 1001, the register loads 0000 from inputs.

Address Data lines lines (a) 2K × 16 = 2 11 × 16 11 16 (b) 64K × 8 = 2 16 × 16 16 8 (c) 16M × 32 = 2 24 × 32 24 32 (d) 4G × 64 = 2 32 × 64 32 64

= x^2 – (5 + 8) 10 x + (40) 10 x

(a) 000011010111 Binary (b) 000 011 010 111 Binary coded octal 0 3 2 7 (d) 0010 0001 0101 Binary coded decimal

  • Chapter 1 ………………………………………………………………………………
  • Chapter 2 ………………………………………………………………………………
  • Chapter 3 ………………………………………………………………………………
  • Chapter 4 ………………………………………………………………………………
  • Chapter 5 ………………………………………………………………………………
  • Chapter 6 ………………………………………………………………………………
  • Chapter 7 ………………………………………………………………………………
  • Chapter 8 ………………………………………………………………………………
  • Chapter 9 ………………………………………………………………………………
  • Chapter 10 …………………………………………………………………………….
  • Chapter 11 …………………………………………………………………………….
  • Chapter 12 …………………………………………………………………………….
  • Chapter 13 …………………………………………………………………………….
  • CHAPTER
  • (101110) 2 = 32 + 8 + 4 + 2 =
  • (1110101) 2 = 64 + 32 + 16 + 4 + 1 =
  • (110110100) 2 = 256 + 128 + 32 + 16 + 4 =
  • (12121) 3 = 3 4 + 2 × 3 3 + 3 2 + 2 × 3 + 1 = 81 + 54 + 9 + 6 + 1 =
  • (4310) 5 = 4 × 5 3 + 3 × 5^2 + 5 = 500 + 75 + 5 =
  • (50) 7 = 5 × 7 =
  • (198) 12 = 12^2 + 9 × 12 + 8 = 144 + 108 + 8 =
  • (1231) 10 = 1024 + 128 + 64 + 15 = 210 + 27 + 2^6 + 2^3 + 22 + 2 + 1 = (10011001111)
  • (673) 10 = 512 + 128 + 32 + 1 = 2 9 + 2 7 + 2^5 + 1 = (1010100001)
  • (1998) 10 = 1024 + 512 + 256 + 128 + 64 + 8 + 4 +
  • = 2 10 + 2^9 + 2 8 + 2 7 + 2^6 + 2 3 + 2 2 + 2 1 = (11111001110)
  • (7562) 10 = (16612)
  • (1938) 10 = (792)
  • (175) 10 = (10101111)
  • (F3A7C2) 16 = (1111 0011 1010 0111 1100 0010)
  • = (74723702)
  • (x^2 – 10x + 31) r = [(x – 5) (x – 8)]
  • Therefore: (10)r = (13) 10 r =
  • Also (31) r = 3 × 13 + 1 = (40)
    1. (r = 13)
  • (215) 10 = 128 + 64 + 16 + 7 = (11010111)
  • 0 D (c) 0000 1101 0111 Binary coded hexadecimal
  • (295) 10 = 256 + 32 + 7 = (100100111)
  • (a)
  • (b)
  • (c)

(a) 5250 (b) 1753 (c) 020 (d) 1200

  • 8679 + 1360 + 900 + 9750 1 3929 0 3113 0 920 1 0950 ↓ = 10’s complement 
  • 6887 – 080

(a) (b) (c) (d) 11010 11010 000100 1010100 +10000 +10011 + 010000 + 0101100 1 01010 1 01101 0 010100 1 0000000

3.17 01 ← last two carries → 1 0

  • 70 01000110 – 70 10111010
  • 80 01010000 – 80 10110000 +150 10010110 – 150 01101010 ↑ ↑ ↑ ↑ greater negative less than positive than – 128

(a) (–638) 9362 (b) (–638) 9362 (+785) + 0785 (–185) + 9815 (+147) 0147 (–823) 9177

(a) BCD 1000 0110 0010 0000 (b) XS-3 1011 1001 0101 0011 (c) 2421 1110 1100 0010 0000 (d) Binary 10000110101100 (8192 + 256 + 128 + 32 + 8 + 4)

BCD with BCD with Decimal even parity odd parity 0 00000 10000 1 10001 00001 2 10010 00010 3 00011 10011 4 10100 00100 5 00101 10101 6 00110 10110 7 10111 00111 8 11000 01000 9 01001 11001

A B Y = A ⊕ B

y z x = y ⊕ z ABCD

0 0 0 0001, 0010, 1101, 1110

0 1 1

AB = 00 or 11 CD = 01 or 10

AB = 01 or 10 CD = 00 or 11

Same as in Fig. 3.3 but without the complemented circles in the outputs of the gates. P = x ⊕ y ⊕ z Error = x ⊕ y ⊕ z ⊕ P

C D Z = C ⊕ D

Always odd number of 1’s

CHAPTER 4

S 1 = T 2 + T 3

S 0 = T 1 + T 3

load = T 0 + T 1 + T 2 + T 3

P: R1 ← R

P'Q: R1 ← R

Connect the 4-line common bus to the four inputs of each register. Provide a “load” control input in each register. Provide a clock input for each register.

To transfer from register C to register A: Apply S 1 S 0 = 10 (to select C for the bus.) Enable the load input of A Apply a clock pulse.

T 0 T 1 T 2 T 3 S 1 S 0 R 3 load 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1

X X 0