Title | Harris solutions chapter 2odd |
---|---|
Author | MING YI |
Course | Digital Design |
Institution | National University of Singapore |
Pages | 15 |
File Size | 519.4 KB |
File Type | |
Total Downloads | 22 |
Total Views | 137 |
Turorial...
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions SOLUTIONS
CHAPTER 2
2.1 (a) Y = AB + AB + AB (b) Y = ABC + ABC (c) Y = ABC + ABC + ABC + ABC + ABC (d) Y = ABCD + ABCD + ABCD + ABCD + ABCD + ABCD + ABCD (e) Y = ABCD + ABCD + ABCD + ABCD + ABCD + ABCD + ABCD + ABCD 2.3 (a) Y = A + B (b) Y = ABC + ABC (c) Y = AC + AB + AC (d) Y = AB + BD + ACD (e) Y = ABCD + ABCD + ABCD + ABCD + ABCD + ABCD + ABCD + ABCD This can also be expressed as: Y = ( A ⊕ B ) (C ⊕ D ) + ( A ⊕ B ) ( C ⊕ D) 2.5 (a) Same as 2.4(a).
11
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
12
SOLUTIONS
chapter 2
2.4 (b) A B C
Y
(c) A
B C
Y
(d) A
B C D
Y
(e) A
B
C
D
Y
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions SOLUTIONS
2.7 (a) Y = AC + BC (b) Y = A (c) Y = A + B C + B D + BD 2.9 (a) Y = B + AC B A C
Y
(b) Y = AB A B
(c)
Y
Y = AB + AC + AD + AE + BCD + BCE + DE A BC D
E
Y
13
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
14
SOLUTIONS
chapter 2
2.11 A Y B Y=A
2.13 (a) B 0 1
B B 0 1
(b) B 0 0 0 0 1 1 1 1
C 0 0 1 1 0 0 1 1
D 0 1 0 1 0 1 0 1
(B C) + (B D) B (C + D) 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1
(c) B 0 0 1 1
C 0 1 0 1
(B C) + (B C) 0 0 1 1
2.15 Y = AD + ABC + ACD + ABCD Z = ACD + BD
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions SOLUTIONS
2.17
A B C D E
Y
Y = (A + B)(C + D) + E
2.19 Two possible options are shown below: Y
Y AB
01
11
10
00
X
0
1
1
0
01
X
X
1
0
1
1
11
0
X
1
1
X
X
10
X
0
X
X
01
11
10
00
X
0
1
1
01
X
X
1
11
0
X
10
X
0
(a)
AB
00
00
CD
Y = AD + AC + BD
CD
(b)
Y = A(B + C + D)
2.21 Option (a) could have a glitch when A=1, B=1, C=0, and D transitions from 1 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 input to the output.
15
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
16
SOLUTIONS
chapter 2
2.23 (a) Sc
D3:2
Sd
D3:2 00 D1:0
01
11
10
1
0
0
1
01
0
1
0
0
0
11
1
0
0
0
0
10
1
1
0
0
00
01
11
10
00
1
1
0
1
00
01
1
1
0
1
11
1
1
0
10
0
1
0
D1:0
Sd = D3D1D0 + D3D2D0+ D3D2D1 + D3D2D1D0 + D3D2D1D0
Sc = D3D0 + D3D2 + D2D1 Sf
Se D3:2
D3:2 00 D1:0
01
11
10
1
1
0
1
01
0
1
0
1
0
11
0
0
0
0
0
10
0
1
0
0
00
01
11
10
00
1
0
0
1
00
01
0
0
0
0
11
0
0
0
10
1
1
0
D1:0
Se = D2D1D0 + D3D1D0
Sf = D3D1D0 + D3D2D1+ D3D2D0 + D3D2D1
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions SOLUTIONS
Sg
D3:2 00 D1:0
01
11
10
00
0
1
0
1
01
0
1
0
1
11
1
0
0
0
10
1
1
0
0
Sg = D3D2D1 + D3D1D0+ D3D2D1 + D3D2D1
17
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
18
SOLUTIONS
chapter 2
(b) Sa
D3:2
Sb
D3:2 00 D1:0
01
11
10
1
1
X
1
01
1
0
X
1
X
11
1
1
X
X
X
10
1
0
X
X
00
01
11
10
00
1
0
X
1
00
01
0
1
X
1
11
1
1
X
10
0
1
X
D1:0
Sa = D2D1D0 + D2D0 + D3 + D2D1 + D1D0 Sc
D3:2 00 D1:0
Sb = D1D0 + D1D0 + D2 Sd
01 = D D11 10 + D + D S D + D2D a 2 1 0 0 3 1
D3:2 00 D1:0
01
11
10
00
1
1
X
1
00
1
0
X
1
01
1
1
X
1
01
0
1
X
0
11
1
1
X
X
11
1
0
X
X
10
0
1
X
X
10
1
1
X
X
Sc = D1 + D0 + D2
Sd = D2D1D0 + D2D0+ D2D1 + D1D0
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
19
SOLUTIONS
Se
D3:2
Sf
00
01
11
10
00
1
0
X
1
01
0
0
X
11
0
0
10
1
1
D1:0
01
11
10
00
1
1
X
1
0
01
0
1
X
1
X
X
11
0
0
X
X
X
X
10
0
1
X
X
Sf = D1D0 + D2D1+ D2D0 + D3
Se = D2D0 + D1D0
Sg
D3:2 00 D1:0
D3:2
00
D1:0
01
11
10
00
0
1
X
1
01
0
1
X
1
11
1
0
X
X
10
1
1
X
X
Sg = D2D1 + D2D0+ D2D1 + D3
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
20
SOLUTIONS
chapter 2
(c) D3
D2
D1
D0
Sa
Sb
Sc
Sd
Se
Sf
Sg
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions SOLUTIONS
2.25 A7
A6
A5
A4 A3
A2
A1
A0
Y2
Y1
Y0
NONE
0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 1 X
0 0 0 0 0 0 1 X X
0 0 0 0 0 1 X X X
0 0 0 1 X X X X X
0 0 1 X X X X X X
0 1 X X X X X X X
0 0 0 0 0 1 1 1 1
0 0 0 1 1 0 0 1 1
0 0 1 0 1 0 1 0 1
1 0 0 0 0 0 0 0 0
0 0 0 0 1 X X X X
Y2 = A7 + A6 + A5 + A4 Y1 = A7 + A6 + A5 A4 A3 + A5 A4 A2 Y0 = A7 + A6 A5 + A6 A5 A4 A3 + A6 A5 A4 A2 A1 NONE = A7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 A7
A6
A5
A4
A3
A2
A1
A0
Y2 Y1
Y0
NONE
21
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
22
SOLUTIONS
chapter 2
2.27 Y6 = A2 A1 A0 Y5 = A2 A1 Y4 = A2 A1 + A2 A0 Y3 = A2 Y2 = A2 + A1 A0 Y 1 = A 2 +A 1 Y0 = A2 + A1 + A0
A2 A1 A0
Y6 Y5
Y4 Y3 Y2
Y1 Y0
2.29 Y = CD ( A ⊕ B ) + AB = ACD + BCD + AB
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
23
SOLUTIONS
2.31 A B C A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
C 0 1 0 1 0 1 0 1
Y 1 0 1 1 0 0 1 1
000 001 010 011 100 101 110 111
(a)
Y
0 1 0 1
1 B B B
A 0 1
B
A0
Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
00 01 10 11
Y B+C B A
AC
2.33 tpd = tpd_NOT + tpd_AND3 = 15 ps + 40 ps = 55 ps tcd = tcd_AND3 = 30 ps
A1
C
0 0 1 1
Y
(b)
A2
A
C B
Y
0 Y
1 (c)
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions
24
SOLUTIONS
chapter 2
2.35 A7 A6 A5 A4 A3 A2A1 A0 Y2
Y1
Y0
NONE
tpd = tpd_INV + 3tpd_NAND2 + tpd_NAND3 = [15 + 3 (20) + 30] ps = 105 ps tcd = 2tcd_NOR3 + tcd_AND3 = [35 + 30] ps = 65 ps
Question 2.1 A B
Y
David Money Harris and Sarah L. Harris, Digital Design and Computer Architecture, © 2007 by Elsevier Inc. Exercise Solutions SOLUTIONS
Question 2.3 A tristate buffer has two inputs and three possible outputs: 0, 1, and Z. One of the inputs is the data input and the other input is a control input, often called the enable input. When the enable input is 1, the tristate buffer transfers the data input to the output; otherwise, the output is high impedance, Z. Tristate buffers are used when multiple sources drive a single output at different times. One and only one tristate buffer is enabled at any given time. Question 2.5 A circuit’s contamination delay might be less than its propagation delay because 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 temperature increases and voltage decreases, circuit delay increases. Also, the circuit may have different paths (critical and short paths) from the input to the output. A gate itself may have varying delays between different inputs and the output, affecting 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 a LOW to HIGH transition requires a single pMOS transistor delay.
25...