组成习题答案ppt课件.ppt

上传人:b****9 文档编号:320382 上传时间:2022-10-08 格式:PPT 页数:27 大小:2.17MB
下载 相关 举报
组成习题答案ppt课件.ppt_第1页
第1页 / 共27页
组成习题答案ppt课件.ppt_第2页
第2页 / 共27页
组成习题答案ppt课件.ppt_第3页
第3页 / 共27页
组成习题答案ppt课件.ppt_第4页
第4页 / 共27页
组成习题答案ppt课件.ppt_第5页
第5页 / 共27页
点击查看更多>>
下载资源
资源描述

组成习题答案ppt课件.ppt

《组成习题答案ppt课件.ppt》由会员分享,可在线阅读,更多相关《组成习题答案ppt课件.ppt(27页珍藏版)》请在冰豆网上搜索。

组成习题答案ppt课件.ppt

ComputerOrganization,exercise,2-1Givethesignmag、1scompl、2scomplrepresentationofthefollownumber(wordlengthis8),whereMSBisthehighestbit(signbit),LSBisthelowestbit。

Ifthenumberisdecimal,thedecimalpointisbehindtheMSB;ifthenumberisinteger,thenthedecimalpointisbehindtheLSB.

(1)35/64

(2)23/128(3)127(4)1(decimalrepresentation)(5)1(integerrepresentation),2-1Solute:

(1)-35/64binary-100011/1000000=-0.100011=-0.1000110signmag:

1.10001101scompl:

1.01110012scompl:

1.0111010

(2)23/128binary10111/10000000=0.0010111signmag:

0.00101111scompl:

0.00101112scompl:

0.0010111,2-1Solute:

(3)-127binarysignmag:

11111111(1,1111111)1scompl:

10000000(1,0000000)2scompl:

10000001(1,0000001)(4)-1(decimal)Therearenorepresentationof-1insignmagand1scompl2scompl:

1.0000000(5)-1(integer)signmag:

10000001(1,0000001)1scompl:

11111110(1,1111110)2scompl:

11111111(1,1111111),2-2Rankthesenumbers:

(smalltolarge)16,1010.11B,25.3Q,X12scompl=10001101,1CH,X21scompl=01001101,0110.1001BCD,X3signmag=10101011,-X42scompl=10111111,-X52scompl=10100101Key:

(1)unifyalltheforms,generallydecimalisselected

(2)transformationbetweenB,Q,HandBCD;,2-2Solute:

16,1010.11B,25.3Q,X12scompl=10001101,0110.1001BCD,1CH,X21scompl=01001101,X3signmag=10101011,-X42scompl=10111111,-X52scompl=10100101AN:

1010.11B=10.75,25.3Q=21.375,X1=-01110011B=-1150110.1001BCD=6.9,1CH=28,X2=01001101B=77X3=-0101011B=-43,X4=01000001B=65,X5=01011011B=91smalltolarge:

X1,X3,0110.1001BCD,1010.11B,16,25.3Q,1CH,X4,X2,X5,3-1设计一个A、B、C三人表决电路,当表决某个提案时,多数人同意提案通过,同时A具有否决权,用与非门实现。

设计步骤列出真值表设A、B、C三个人,表决同意用1表示,不同意时用0表示;Y为表决结果,提案通过用1表示,提案未通过用0表示,同时还要考虑A的否决权。

写出逻辑表达式画出逻辑图,3-1Solute:

写出逻辑表达式:

Y=AB+AC,3-1Solute:

A,C,Y,B,6-1Givena32bitfloating-pointnumber,1bitforsign,8bitforE,representedbybiasedcode,23bitforM,representedby2sComplement;radixis2:

(1)Maximalbinary;

(2)Minimalbinary;(3)range;(4)positiveandnegativenormalizedrepresentationfloat-pointthatclosestto0,6-1Solute:

规格化浮点数的最大正数值是由尾数的最大正数值与阶码的最大正数值组合而成的;最小正数值是由尾数的最小正数值与阶码的最小负数值组合而成的。

在负数区间;最大负数值是由尾数的最大负数值与阶码的最小负数值组合而成的;最小负数值是由尾数的最小负数值与阶码的最大正数值组合而成的。

6-1Solute:

f-pformatisX=2EM,8bitE(biasedcode),witharangeof-128+127;23bitM(2sC),withitmaxpositivevalueofMmax=1-2-23,minpositiveisMmin=2-23,maxnegativevalueofMmax=-2-23,minpositivevalueofMmin=-1

(1)binaryformatofMaximum:

PositiveXmax=2127(1-2-23)=21270.111111=11111100000(23bits1,104bits0)NegativeXmax=2-128(-2-23)=-0.0000001(151bits0)

(2)binaryformatofMinimum:

positiveXmin=2-1282-23=0.0000001(151bits0)NegativeXmin=2127(-1)=-10000000(127bits0),6-2TransformthefollowdecimaltoIEEE75432bitfloat-point

(1)27/64

(2)-27/64,6-2Solute:

TransformthefollowdecimaltoIEEE75432bitfloat-point

(1)27/64=11011X2-6=1.1011X2-2S=0;E=2127125=01111101B;M=10110000000000000000000result:

001111101101100000000000000000003ED80000H,6-2Solute:

TransformthefollowdecimaltoIEEE75432bitfloat-point

(2)-27/64=-11011X2-6=-1.1011X2-2S=1;E=2127125=01111101B;M=10110000000000000000000result:

10111110110110000000000000000000BED80000H,6-3Transformdecimal-0.75toIEEE75432bitsingleprecisionfloat-pointnumber,6-3Solute:

Transformdecimal-0.75toIEEE75432bitsingleprecisionfloat-pointnumber-0.75=-3/4=-11X2-2=-1.1X2-1S=1;E=1127126=01111110B;M=10000000000000000000000result:

10111111010000000000000000000000BF400000H,6-4Transform0C0B00000HIEEE75432bitfloat-pointnumbertoDecimal,6-4Solute:

Transform0C0B00000HIEEE75432bitfloat-pointnumbertoDecimal0C0B00000H=11000000101000000000000000000000S=1;e=E-127=(1000000101111111)B

(2)10;1.M=(1.01)B=(1.25)10result:

(-1)1X(1.25)X22=-1X1.25X4=-5.0,6-5Transform(0.15)10toNormalizedfloating-pointnumbersrepresentation阶码:

Signofm:

1-bitExponent:

8-bit,integer,biasedcode,radix=2mantissa:

23-bit,decimal,sign-mag,radix=2,impliedleading1,Signofmantissa,exponent,mantissa,6-5Transform(0.15)10toNormalizedfloating-pointnumbersrepresentation阶码:

Signofm:

1-bitExponent:

8-bit,integer,biasedcode,radix=2mantissa:

23-bit,decimal,sign-mag,radix=2,impliedleading1Solute:

0.15D0.0010011001100110010.100110011001100122S=0;M00110011001100110011001=199999HE=-2+128=126D01111110=7EHN001111110001100110011001100110013F199999H,Signofmantissa,exponent,mantissa,6-6Transform(0.1)10toNormalizedfloating-pointnumbersrepresentation阶码:

(1)Signofm:

1-bitExponent:

8-bit,integer,biasedcode,radix=2mantissa:

23-bit,decimal,sign-mag,radix=2,impliedleading1

(2)Signofm:

1-bitExponent:

7-bit,integer,biasedcode,radix=2mantissa:

6-bit,decimal,sign-mag,radix=16,Signofmantissa,exponent,mantissa,6-6Transform(0.1)10toNormalizedfloating-pointnumbersrepresentation阶码:

(1)Signofm:

1-bitExponent:

8-bit,integer,biasedcode,radix=2mantissa:

23-bit,decimal,sign-mag,radix=2,impliedleading1Solute:

0.1D0.000110011001100110010.1100110011001100123S=0;M100110011001100110011004CCCCCH;E-3+128=

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1