计算机系统组成与体系结构答案.pdf
《计算机系统组成与体系结构答案.pdf》由会员分享,可在线阅读,更多相关《计算机系统组成与体系结构答案.pdf(123页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、SOLUTIONS MANUALComputer Systems Organizationand ArchitectureJohn D.CarpinelliCopyright 2001,Addison Wesley Longman-All Rights ReservedTable of ContentsChapter 1 1Chapter 2 8Chapter 3 18Chapter 4 21Chapter 5 33Chapter 6 45Chapter 7 59Chapter 8 80Chapter 9 92Chapter 10 100Chapter 11 106Chapter 12.116
2、Computer Systems Organization and Architecture-Solutions ManualChapter 12.a)w Xyz wx xz Vwx+xz+yb)w Xyz w+x+y+z0 0 0 0 0 0 1 1 0 0 0 0 00 0 0 1 0 0 1 1 0 0 0 1 10 0 1 0 0 0 0 0 0 0 1 0 10 0 1 1 0 0 0 0 0 0 1 1 10 1 0 0 0 0 1 1 0 1 0 0 10 1 0 1 0 1 1 1 0 1 0 1 10 1 1 0 0 0 0 0 0 1 1 0 10 1 1 1 0 1 0
3、1 0 1 1 1 11 0 0 0 0 0 1 1 1 0 0 0 11 0 0 1 0 0 1 1 1 0 0 1 11 0 1 0 0 0 0 0 1 0 1 0 11 0 1 1 0 0 0 0 1 0 1 1 11 1 0 0 1 0 1 1 1 1 0 0 11 1 0 1 1 1 1 1 1 1 0 1 11 1 1 0 1 0 0 1 1 1 1 0 11 1 1 1 1 1 0 1 1 1 1 1 1c)wX y z w x y z wxyz w y y z w 3 3z+w xyz+卬*$z+w y y z0 0 0 0 0 0 0 0 00 0 0 1 0 0 0 0 0
4、0 0 1 0 0 0 1 0 10 0 1 1 1 0 0 0 10 1 0 0 0 0 0 0 00 1 0 1 0 0 0 0 00 1 1 0 0 0 0 1 10 1 1 1 0 1 0 0 11 0 0 0 0 0 0 0 01 0 0 1 0 0 0 0 01 0 1 0 0 0 0 0 01 0 1 1 0 0 0 0 01 1 0 0 0 0 0 0 01 1 0 1 0 0 0 0 01 1 1 0 0 0 0 0 01 1 1 1 0 0 0 0 0Copyright 2001 Addison Wesley-All Rights Reserved Page 1Comput
5、er Systems Organization and Architecture-Solutions Manual工 a b ab(aby a b a+6.0 0 0 1 1 1 10 1 0 1 1 0 11 0 0 1 0 1 11 1 1 0 0 0 0a b a+b(a+a b ab0 0 0 1 1 1 10 1 1 0 1 0 01 0 1 0 0 1 01 1 1 0 0 0 0a)b)c)4wxyz 00 01 1 1 1000 1|001 01 1161V lJ.00 0o o)000C t,D 0 001 0 k.i)011 0 0J1 R10m0a)5卬 二 夕+卬+wx
6、y+wx 2 or卬 夕 2+xyz+wyz,V+w 旷+xz+xyorx 2+w 旷+xz+y26.a)v v zz+xywxyz 00 01 11 10()0 0 0 n011 JX 1,i11 0,1 X010 0 X X 0b)wxyz 00 01 1 1 1000显 1 iX)01 0 X X 01 1 0 0 X 010修 X XX17.a)w xyW 00 01-0 011 100111100 0 00 1n 0(L u 7 1)0 0 0 0wx+xz+w y z y z+孙,+wzwxyz,00 0100011 11011 100 1 0 11 0 1 00 1 0 11 0
7、 1 0Already tninitnal8.9.wx+xyCopyright 2001 Addison Wesley-All Rights Reserved Page 2Computer Systems Organization and Architecture-Solutions Manual10.a)11.Change the AND gates to NAND gates.The rest of the circuit is unchanged.12.Remove the tri-state buffers and do one of the following:a)Change ea
8、ch 2-input AND gate to a 3-input AND gate.Each gates1 inputs should be its two originalinputs and E,orb)Have each AND gates output serve as an input to another 2-input AND gate,one gate fbr each originalAND gate.The second input to the new 2-input AND gates is E.13.14.Copyright 2001 Addison Wesley-A
9、ll Rights Reserved Page 3Computer Systems Organization and Architecture-Solutions Manual15.Set up Karnaugh maps for each output,then develop minimal logic expressions and design the appropriatelogic circuits.(XY)=XiYIl+XoY/Yo1 X/X。(X=Y)=Xj XoYiYo+X,XoYirY0+XIXO,YIYo 1+X/XohYo=(X,力)。%)(XY)=X/tYl+XJ,X
10、o,Y o+Xo,Y/Yo16.。3=X2Y2+(X2 Y2)(XIYI+(X/YiXXoYo+(X。%)C。)C4=X3Y3+(X.,Y3)(X2Y2+(X 2 Y2)(XlYl+(Xi YXoYo+(X。%)Q)17.Copyright 2001 Addison Wesley-All Rights ReservedPage 4Computer Systems Organization and Architecture-Solutions Manual18d=X2X0+XX+X/X。+X2X1X0X3X2NX0 00 01 11 10c o Q|0H O10UT 10()1000 x0f=X
11、3+X2Xo,+X2Xi+XllXo,e=X2Xl,+X0X3XX,X0 00 01 11 1000 0 I 0 I 0|Uo i-6 6 6 o-“X X X 国 io|o I o I x|C=X2%X。,X3X K,X 00 01 11 10f=XlX0+X3fX2X0+X2fXICopyright 2001 Addison Wesley-All Rights Reserved Page 5Computer Systems Organization and Architecture-Solutions Manual20.The four inputs can be in one of 24
12、(=4!)possible orders.Since each sorter has two possible states(MAX=X MIN=X,or MAX=Y MIN=X),sorters can have up to T states.Four sorters can have only 24=16states,not enough to sort all 24 possible input orders.Five sorters have 25=32 states,which could besufficient.(This argument establishes a lower
13、 bound;it does not guarantee the existence of a 5-sorternetwork that can sort four inputs.Since the sorting network of Figure 1.24(b)matches this bound,it is aminimal network.)21.a)22.A flip-flop is clocked if the increment signal and clock are asserted,and all flip-flops to its right are 1.23.Each
14、clock is driven by Q of the flip-flop to its right instead of Q.The clock of the rightmost flip-flop isunchanged.All other signals are unchanged.XzXX/X。00 01 11 10Copyright 2001 Addison Wesley-All Rights Reserved Page 6Computer Systems Organization and Architecture-Solutions ManualCopyright 2001 Add
15、ison Wesley-All Rights Reserved Page 7Computer Systems Organization and Architecture-Solutions ManualChapter 22.Present State SgKTTTR Next Stateuu _UTT2TT2T3g2TuoTV五 yTggigKTU 1 1 u3.Add the following states to the state table.Since all additions are self-loops,it is not necessary to changethe state
16、 diagram.Present State ch IoNext State R G AS NOCAR0 0 1s NOCAR1 0 0S NOCAR0 1 0SNOCAR1 0 0s NOCAR0 1 1sNOCAR1 0 0SPMD 1 0 1S P.M D0 1 0S PA I I 1 1 0SPAII,0 1 0SPA ID1 1 1SPA ID0 1 0s CHEAT0 0 1s CH EAT1 0 1S CHEAT0 1 0S CH EAT1 0 1S CHEAT0 1 1S CH EAT1 0 1Copyright 2001 Addison Wesley-All Rights R
17、eserved Page 8Computer Systems Organization and Architecture-Solutions ManualCopyright 2001 Addison Wesley-All Rights Reserved Page 9Computer Systems Organization and Architecture-Solutions Manual5.6.Address Data(Mealy)Data(Moore)0000 0000 00000001 0010 00100010 0100 01000011 0110 01100100 1000 1000
18、0101 1010 10100110 1101 11000111 1110 11101000 0000 00001001 0010 00101010 0100 01001011 0110 01101100 1000 10011101 1010 10111110 1101 1100n i l 1110 11107.Present State I Next State M00 0 00 000 1 01 001 0 00 001 1 10 010 0 1 1 010 1 10 01 1 0 00 11 1 1 01 1N=P/Pol+P F。NO=P/PO7+P F O T+P R JM=P RC
19、opyright 2001 Addison Wesley-All Rights Reserved Page 10Computer Systems Organization and Architecture-Solutions Manual8.9.Address Data(Mealy)Data(Moore)000 000 000001 010 010010 000 000Oil 100 100100 111 110101 100 100110 000 001111 010 Oil10.State value assignments(P3 P.S()=0000 S5=0001 S/o=0010 S
20、 1 5=0011 S 2 0=010025=0101 S30=00 SPAID=0 SN0CAR=1000 SCHEAT=1001M=c,M=P/Chlo+尸 3(匕+尸/)C/o+P/(P2+PFo)C“Io+P2CII,IO,N尸 P3P2+匕+Po)ChIo+匕(尸 2+P/K W+PNPiP。+P/PJ+P2PlPo)CIl,Io+P.PoChIoN=PAP2+匕+P Q C。+PNPo+P2Pi)CIlI0,+P式 Po+P2PDCW0+P3 尸。C/4/+P3Poe+2 3(尸 2+匕+尸 0)。R=SPAIDG=SPAID4=S cH E A T1 1.State value
21、assignments(Pj-Po):S()=0000 S5=0001 Sl0=0010=0011 520=010025=0101 S30=0110 SPAID=0111 SNOCAR=1000 SCHEAT=1001N3=CM=P H+P/(P2+尸 3(尸 2+P/P o)C/0+P2Ch,Io,N】=P3P2+匕+P0)ChI0+PNP2+尸+PAP1P0+PFo+P2PiPo)CIl,Io+PiPoChVN0=匕(P 2+匕+PQCWo+PNPo+P2PI)C1II(),+尸 3 W+P2PI)CII 7。+尸 3尸。0+P3Poe+尸 3(尸 2+匕+尸。)。R=GG=P3P2+PC
22、hlo+P;P2Poeh+P;P2PA h+Io)+P3T2PF0CA=匕(尸 2+匕+尸。)仁 Copyright 2001 Addison Wesley-All Rights Reserved Page 1 1Computer Systems Organization and Architecture-Solutions Manual12.Address DataOOOOXXX 1001101 1001101 1001101 1001101 0000100 0001100 0010100 01011000001XXX 1001101 1001101 1001101 1001101 0001
23、100 0010100 0011100 01101000010XXX 1001101 1001101 1001101 1001101 0010100 0011100 0100100 01110100011XXX 1001101 1001101 1001101 1001101 0011100 0100100 0101100 01110100100XXX 1001101 1001101 1001101 1001101 0100100 0101100 0110100 01110100101XXX 1001101 1001101 1001101 1001101 0101100 011010001110
24、1001110100110XXX 1001101 1001101 1001101 1001101 01101000111010011101001110100111XXX 1000100 1000100 1000100 1000100 0111010 0111010 0111010 01110101000XXX 1000100 1000100 100010()1000100 0000100 000()10()0000100 00001 001001XXX 1001101 1001101 1001101 1001101 000010()000010()0000100 00001 001010XXX
25、 1000100 1000100 1000100 1000100 1000100 1000100 1000100 100010010HXXX 1000100 1000100 1000100 1000100 1000100 1000100 100010()1000100u o o x x x 1000100 1000100 1000100 1000100 1000100 1000100 1000100 10001001101XXX 1000100 1000100 1000100 1000100 1000100 1000100 1000100 10001001110XXX 1000100 1000
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机系统 组成 体系结构 答案
限制150内