已阅读5页,还剩22页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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 point 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.0010111 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 : 10000001 (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, generally 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.1001BCD = 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的否决权。 写出逻辑表达式 画出逻辑图,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 normalized 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 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 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-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 1101 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 result: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.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,exponent,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 1001 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 leading 1 (2)Sign of m: 1-bit Exponent: 7-bit, integer, biased code, radix =2 mantissa :6-bit, decimal, sign-mag, radix =16,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 leading 1 Solute: 0.1D 0.00011001100110011001 0.11001100110011001 23 S = 0;M 100 1100 1100 1100 1100 11004CCCCCH; E -3+128 = 125D 01111101 = 7DH; N 0 01111101 1001 1001 1001 1001 1001 100 3ECCCCCCH,Sign of mantissa,exponent,mantissa,6-6 Transform (0.1)10 to Normalized floating-point numbers representation阶码: (2)Sign of m: 1-bit Exponent: 7-bit, integer, biased code, radix =2 mantissa :6-bit, decimal, sign-mag, radix =16 Solute: 0.1D 0.00011001100110011001 0.199999999H 20 S = 0;M0001 1001 1001 1001 1001 1001 B199999H; E = 064 = 64D 1000000B = 40H; N 0 1000000 0001 1001 1001 1001 1001 1001 40199999H,Sign of mantissa,exponent,mantissa,6-7 Let X=2-0100.10010010, Y=2-011(-0.11110111), e=6 bits,m=10 bits(all with 2 sign bits , 2s c ) X+Y?,6-7 Let X=2-0100.10010010, Y=2-011(-0.11110111), exponent: 6 bits,with 2 sign bits , 2s compl representation mantissa: 0 bits ,with 2 sign bits , 2s compl repre
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 餐饮店加盟合同协议书
- 饭店团购加盟合同范本
- 鲜花花束订购合同范本
- 规范网络言行实施手段
- 规范餐饮员工服务标准流程
- 签订食品合同技术协议
- 精密吊装租赁合同范本
- 纹绣学院学费合同范本
- 给定金找车合同签协议
- 聘用律师授课合同范本
- 北京市2023-2024学年高二年级上册期中考试物理试卷
- 大学生职业规划机电一体化
- 北师大版数学六年级上册全册分层作业
- 电费电价基本知识讲解
- 催化剂工程课件
- 一年级数学上册专项练习-看图求和、+求差
- (三级)供应链管理师考试复习题库(浓缩200题)
- 信息化建设售后服务承诺书
- 定积分公开课一等奖市优质课赛课获奖课件
- 医院内静脉血栓栓塞症防治质量评价与管理指南(2022版)
- GB 17498.10-2008固定式健身器材第10部分:带有固定轮或无飞轮的健身车附加的特殊安全要求和试验方法
评论
0/150
提交评论