《组成习题答案》PPT课件.ppt
《《组成习题答案》PPT课件.ppt》由会员分享,可在线阅读,更多相关《《组成习题答案》PPT课件.ppt(27页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Computer Organizationexerciseexercise2-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 p o i
2、n t i s b e h i n d t h e L S B.(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 binary10111/10000000=0.0010111 sign mag:0.0010111 1s comp
3、l:0.0010111 2s compl:0.00101112-1 Solute:(3)-127 binarysign 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,1111
4、110)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,
5、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=-1150110.1001BCD=6.9,1CH=28,X2=01001101B=77X3=-0101011B=-43,X4=01000001B=65,X5=01011011B=91
6、small to large:X1,X3,0110.1001BCD,1010.11B,16,25.3Q,1CH,X4,X2,X5 3-1 设计一个一个A、B、C三人表决三人表决电路,当表决某路,当表决某个提案个提案时,多数人同意提案通,多数人同意提案通过,同,同时A具具有否决有否决权,用与非,用与非门实现。v设计步步骤1.列出真列出真值表表 设设A、B、C三个人,表决同意用三个人,表决同意用1表示,不同意表示,不同意时用时用0表示;表示;Y为表决结果,提案通过用为表决结果,提案通过用1表示,表示,提案未通过用提案未通过用0表示,同时还要考虑表示,同时还要考虑A的否决权。的否决权。2.写出写出逻
7、辑表达式表达式3.画出画出逻辑图3-1 Solute:输入输入输出输出A AB BC CY Y0 00 00 00 00 00 01 10 00 01 10 00 00 01 11 10 01 10 00 00 01 10 01 11 11 11 10 01 11 11 11 11 1写出逻辑表达式:写出逻辑表达式:Y=AB+AC3-1 Solute:ACYB6-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
8、 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 06-1 Solute:v规格化浮点数的最大正数值是由尾数的最大正数值与阶码的最大正数值组合而成的;最小正数值是由尾数的最小正数值与阶码的最小负数值组合而成的。在负数区间;最大负数值是由尾数的最大负数值与阶码的最小负数值组合而成的;最小负数值是由尾数的最小负数值与阶码的最大正数值组合而成的。6
9、-1 Solute:vf-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=1111110000
10、0 (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/646-2 Solute:vTransform the fo
11、llow decimal to IEEE754 32 bit float-point(1)27/64=11011X2-6=1.1011X2-2S=0;E=2127125=01111101B;M=1011 0000 0000 0000 0000 000result:0011 1110 1101 1000 0000 0000 0000 00003ED80000H6-2 Solute:vTransform the follow decimal to IEEE754 32 bit float-point(2)-27/64=-11011X2-6=-1.1011X2-2S=1;E=2127125=0111
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 组成习题答案 组成 习题 答案 PPT 课件
限制150内