计算机系统组成与体系结构_答案.pdf
《计算机系统组成与体系结构_答案.pdf》由会员分享,可在线阅读,更多相关《计算机系统组成与体系结构_答案.pdf(123页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、SOLUTIONS MANUALComputer Systems Organizationand ArchitectureJohn D.CarpinelliCopyright 2001,Addison Wesley Longman-All Rights ReservedComputer Systems Organization and Architecture-Solutions ManualTable of ContentsChapter 11Chapter 28Chapter 318Chapter 421Chapter 533Chapter 645Chapter 759Chapter 88
2、0Chapter 992Chapter 10100Chapter 11106Chapter 12.116Copyright 2001 Addison Wesley-All Rights ReservedPage iiComputer Systems Organization and Architecture-Solutions ManualChapter 12.a)wXyzwxxzVwx+xz+yb)wXyzw+x+y+z000000110000000010011000110010000000101001100000011101000011010010101011101011011000000
3、1101011101010111110000011100011001001110011101000001010110110000101111100101111001110111111101111101001111011111110111111c)wXyzw xyz wxyzw yyz w 3 3z+w xyz+卬 *$z+w yyz0000000000001000000010001010011100010100000000101000000110000110111010011000000001001000001010000001011000001100000001101000001110000
4、00111100000Copyright 2001 Addison Wesley-All Rights ReservedPage 1Computer Systems Organization and Architecture-Solutions Manual工abab(abyab a +6.0001111010110110010111110000aba+b(a+ab ab0001111011010010100101110000a)b)c)4wxyz 00011110001|001011id1VlJ.000oo)000加,D00010k.i)011 00J1R10m0(E1a)5卬二夕+卬 +w
5、xy+wx 2 or卬夕 2+xyz+wyz,V+w 旷+xz+xyorx2+w 旷+xz+y26.a)vv zz+xywxyz 00011110()000n011 JX1,i11 0,1X010 0XX0b)wxyz 0001111000显1i,x j010XX011 00X010修XXX17.a)wxyW 00 01-0 011 1001111000001n0(L u71)0000wx+xz+w y zy z+孙,+wzwxyz,00 010001111011 100101101001011010Already tninitnal8.9.wx+xyCopyright 2001 Addiso
6、n Wesley-All Rights ReservedPage 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 each 2-input AND gate to a 3-input AND gate.Each gates
7、1 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-All Rights ReservedPage 3Computer Systems Organizatio
8、n and Architecture-Solutions Manual15.Set up Karnaugh maps fbr each output,then develop minimal logic expressions and design the appropriatelogic circuits.(X Y)=XJYI,+X。匕 +XM1(X=Y)=X,Yi,Yo+X/,X()YIrYo+Yo 1+X/X ohYo=(XI 匕)。%)(X +XllX o,e=X2Xl,+X0X3X X,X0 00 01 11 1000 0 I 0 I 0|Uo i-6 6 6 o-“XXX 国io|
9、o I o I x|X3XK,X 00 01 11 10C =X2%X。,f=XlX0+X3fX2X0+X2fXICopyright 2001 Addison Wesley-All Rights ReservedPage 5Computer Systems Organization and Architecture-Solutions Manual20.The four inputs can be in one of 24(=4!)possible orders.Since each sorter has two possible states(MAX=X MIN=X,or MAX =Y MI
10、N=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 bound;it does not guarantee the existence of a 5-sorternetwork that can sort four inp
11、uts.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 clock is driven by Q of the flip-flop to its right instead of Q.The clock of the right
12、most flip-flop isunchanged.All other signals are unchanged.XzXX/X。00 01 11 10Copyright 2001 Addison Wesley-All Rights ReservedPage 6Computer Systems Organization and Architecture-Solutions ManualCopyright 2001 Addison Wesley-All Rights ReservedPage 7Computer Systems Organization and Architecture-Sol
13、utions 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 diagram.Present StatechIoNext StateRGASNOCAR001s NOCAR100SNOCAR010SNOCAR100s NOCAR011sNO
14、CAR100SPMD101SP.M D010SPA II110SPAII,010SPA ID111SPA ID010s CHEAT001s CH EAT101S CHEAT010S CH EAT101S CHEAT011S CH EAT101Copyright 2001 Addison Wesley-All Rights ReservedPage 8Computer Systems Organization and Architecture-Solutions ManualCopyright 2001 Addison Wesley-All Rights ReservedPage 9Comput
15、er Systems Organization and Architecture-Solutions Manual5.6.Address Data(Mealy)Data(Moore)000000000000000100100010001001000100001101100110010010001000010110101010011011011100011111101110100000000000100100100010101001000100101101100110110010001001110110101011111011011100n il111011107.Present StateIN
16、ext StateM000000001010010000011100100110101100110001111011N=P/Pol+PF。NO=P/PO7+PFOT+P R JM=P RCopyright 2001 Addison Wesley-All Rights ReservedPage 10Computer Systems Organization and Architecture-Solutions Manual8.9.Address Data(Mealy)Data(Moore)000000000001010010010000000Oil100100100111110101100100
17、110000001111010Oil10.State value assignments(P3 P.S()=0000 S5=0001 S/o=0010 S15=0011 S20=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+匕 +PQ C。+PNPo+P2Pi)CIlI0,+P式 Po+P2PDCW
18、0+P3 尸。C/4/+P3Poe+2 3(尸2+匕 +尸0)。R=SPAIDG=SPAID4 =ScHEAT1 1.State value 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=匕(P2+匕 +PQCWo+PN
19、Po+P2PI)C1II(),+尸3 W+P2PI)CII 7。+尸3尸。0+P3Poe+尸3(尸2+匕+尸。)。R=GG=P3P2+PChlo+P;P2Poeh+P;P2PAh+Io)+P3T2PF0CA =匕(尸2+匕+尸。)仁Copyright 2001 Addison Wesley-All Rights ReservedPage 11Computer Systems Organization and Architecture-Solutions Manual12.AddressDataOOOOX X X 1001101 1001101 1001101 1001101 0000100 0
20、001100 0010100 01011000001X X X1001101 1001101 1001101 1001101 0001100 0010100 0011100 01101000010X X X1001101 1001101 1001101 1001101 0010100 0011100 0100100 01110100011X X X1001101 1001101 1001101 1001101 0011100 0100100 0101100 01110100100X X X1001101 1001101 1001101 1001101 0100100 0101100 01101
21、00 01110100101X X X1001101 1001101 1001101 1001101 0101100 0110100011101001110100110X X X1001101 1001101 1001101 1001101 01101000111010011101001110100111X X X1000100 1000100 1000100 1000100 0111010 0111010 0111010 01110101000X X X1000100 1000100 100010()1000100 0000100 000()10()0000100 00001001001X
22、X X1001101 1001101 1001101 1001101 000010()000010()0000100 00001001010X X X 1000100 1000100 1000100 1000100 1000100 1000100 1000100 100010010HX X X1000100 1000100 1000100 1000100 1000100 1000100 100010()1000100uooxxx1000100 1000100 1000100 1000100 1000100 1000100 1000100 10001001101X X X1000100 1000
23、100 1000100 1000100 1000100 1000100 1000100 10001001110X X X 1000100 1000100 1000100 1000100 1000100 1000100 1000100 10001001111X X X1000100 1000100 1000100 1000100 1000100 1000100 1000100 1000100N2=P2Po,+P2U,+PlPoUN1=PIPO,+PIU,+P2,P1,POUNo=PoU+PoUC=P2,PI,POV,+P2PI,POUv2=P2P1P0U+尸2匕了。+PzPfPMVy=PPiPo
24、U+PzHPo+PzPjPoU%=(尸2+PMoU+(P2+Pj)PoU15.All possible next state values are already used.Copyright 2001 Addison Wesley-All Rights ReservedPage 12Computer Systems Organization and Architecture-Solutions Manual16.State value assignments(P3-Po):So=0000 55=0001 5川=0010 5/5=0011$20=0100S25=0101$30=0110 Spi
25、D=0111 SOCAR=1000 SCHEAT=1001 54=1010ion sc=iioo sD=noi sE=mo sF=miAdd to state diagram:Add to state table:Present StateChIoNext StateRGA1010XXX10000001011XXX10000001100XXX10000001101XXX10000001110XXX10000001111XXX1000000N3=C,P3(P2+PI)M =P H+匕(尸2+匕)C/J +PAP2 +匕 P o)C/o +P2Ch,IoNi=P/(P2+P/+Po)CIlIo+尸
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机系统 组成 体系结构 答案
限制150内