《组成习题答案》ppt课件

上传人:tian****1990 文档编号:75594481 上传时间:2019-01-31 格式:PPT 页数:27 大小:2.17MB
返回 下载 相关 举报
《组成习题答案》ppt课件_第1页
第1页 / 共27页
《组成习题答案》ppt课件_第2页
第2页 / 共27页
《组成习题答案》ppt课件_第3页
第3页 / 共27页
《组成习题答案》ppt课件_第4页
第4页 / 共27页
《组成习题答案》ppt课件_第5页
第5页 / 共27页
点击查看更多>>
资源描述

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

1、Computer Organization,exercise,2-1Give the sign mag 、 1s compl 、 2s compl representation of the follow number(word length is 8), where MSB is the highest bit (sign bit),LSB is the lowest bit。If the number is decimal, the decimal point is behind the MSB; if the number is integer, then the decimal poi

2、nt is behind the LSB. (1)35/64 (2)23/128 (3) 127 (4) 1 (decimal representation) (5) 1 (integer representation),2-1 Solute: (1)-35/64 binary -100011/1000000= - 0.100011 = - 0.1000110 sign mag : 1.1000110 1s compl : 1.0111001 2s compl :1.0111010 (2)23/128 binary 10111/10000000=0.0010111 sign mag : 0.0

3、010111 1s compl : 0.0010111 2s compl :0.0010111,2-1 Solute: (3)-127 binary sign mag : 11111111 (1,1111111) 1s compl : 10000000 (1,0000000) 2s compl :10000001 (1,0000001) (4)-1 (decimal) There are no representation of -1 in sign mag and 1s compl 2s compl : 1.0000000 (5)-1 (integer) sign mag : 1000000

4、1 (1,0000001) 1s compl : 11111110 (1,1111110) 2s compl :11111111 (1,1111111),2-2 Rank these numbers:(small to large) 16,1010.11B,25.3Q,X1 2s compl =10001101,1CH,X2 1s compl =01001101,0110.1001BCD, X3 sign mag =10101011,-X4 2s compl =10111111, -X5 2s compl =10100101 Key : (1)unify all the forms, gene

5、rally decimal is selected (2)transformation between B, Q, H and BCD;,2-2 Solute: 16,1010.11B,25.3Q,X1 2s compl =10001101,0110.1001BCD, 1CH,X2 1s compl =01001101,X3 sign mag =10101011, -X4 2s compl =10111111, -X5 2s compl =10100101 AN: 1010.11B = 10.75, 25.3Q = 21.375, X1 =- 01110011B=-115 0110.1001B

6、CD = 6.9, 1CH = 28, X2 = 01001101B=77 X3 = -0101011B=-43, X4 = 01000001B=65, X5 = 01011011B=91 small to large: 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的否决权。

7、 写出逻辑表达式 画出逻辑图,3-1 Solute:,写出逻辑表达式:Y = AB+AC,3-1 Solute:,A,C,Y,B,6-1 Given a 32 bit floating-point number,1 bit for sign, 8 bit for E, represented by biased code, 23 bit for M, represented by 2s Complement;radix is 2: (1)Maximal binary; (2)Minimal binary; (3)range; (4)positive and negative normalize

8、d representation float-point that closest to 0,6-1 Solute : 规格化浮点数的 最大正数值是由尾数的最大正数值与阶码的最大正数值组合而成的; 最小正数值是由尾数的最小正数值与阶码的最小负数值组合而成的。在负数区间; 最大负数值是由尾数的最大负数值与阶码的最小负数值组合而成的; 最小负数值是由尾数的最小负数值与阶码的最大正数值组合而成的。,6-1 Solute : f-p format is X=2EM,8 bit E (biased code),with a range of -128+127;23 bit M(2s C),with it

9、 max positive value of Mmax=1-2-23, min positive is Mmin=2-23, max negative value of Mmax=-2-23, min positive value of Mmin = -1 (1)binary format of Maximum: Positive Xmax=2127(1-2-23)=2127 0.111111 = 11111100000 (23 bits 1,104 bits 0) Negative Xmax=2-128(-2-23)= - 0.0000001 (151 bits 0) (2) binary

10、format of Minimum: positive Xmin=2-1282-23= 0.0000001 ( 151 bits 0 ) Negative Xmin=2127(-1)=-10000000 ( 127 bits 0 ),6-2 Transform the follow decimal to IEEE754 32 bit float-point (1)27/64 (2)-27/64,6-2 Solute: Transform the follow decimal to IEEE754 32 bit float-point (1) 27/64 = 11011X2-6=1.1011X2

11、-2 S=0; E=2127125=01111101B; M=1011 0000 0000 0000 0000 000 result:0011 1110 1101 1000 0000 0000 0000 0000 3ED80000H,6-2 Solute: Transform the follow decimal to IEEE754 32 bit float-point (2) -27/64 = -11011X2-6=-1.1011X2-2 S=1; E=2127125=01111101B; M=1011 0000 0000 0000 0000 000 result:1011 1110 11

12、01 1000 0000 0000 0000 0000 BED80000H,6-3 Transform decimal -0.75 to IEEE754 32 bit single precision float-point number,6-3 Solute: Transform decimal -0.75 to IEEE754 32 bit single precision float-point number -0.75 = -3/4 = -11X2-2=-1.1X2-1 S=1; E=1127126=01111110B; M=1000 0000 0000 0000 0000 000 r

13、esult:1011 1111 0100 0000 0000 0000 0000 0000 BF400000H,6-4 Transform 0C0B00000H IEEE754 32 bit float-point number to Decimal,6-4 Solute: Transform 0C0B00000H IEEE754 32 bit float-point number to Decimal 0C0B00000H = 1 10000001 0100 0000 0000 0000 0000 000 S=1; e = E-127=(10000001 01111111)B(2)10; 1

14、.M=(1.01)B = (1.25)10 result:(-1)1 X(1.25)X 22 = -1 X 1.25 X 4=-5.0,6-5 Transform (0.15)10 to Normalized floating-point numbers representation阶码: Sign of m: 1-bit Exponent: 8-bit, integer, biased code, radix =2 mantissa :23-bit, decimal, sign-mag, radix =2, implied leading 1,Sign of mantissa,exponen

15、t,mantissa,6-5 Transform (0.15)10 to Normalized floating-point numbers representation阶码: Sign of m: 1-bit Exponent: 8-bit, integer, biased code, radix =2 mantissa :23-bit, decimal, sign-mag, radix =2, implied leading 1 Solute: 0.15D 0.001001100110011001 0.1001100110011001 22 S = 0;M001 1001 1001 100

16、1 1001 1001=199999H E = -2+128 = 126D 01111110 = 7EH N 0 01111110 001 1001 1001 1001 1001 1001 3F199999H,Sign of mantissa,exponent,mantissa,6-6 Transform (0.1)10 to Normalized floating-point numbers representation阶码: (1)Sign of m: 1-bit Exponent: 8-bit, integer, biased code, radix =2 mantissa :23-bit, decimal, sign-mag, radix =2, implied leadi

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号