微机原理与接口技术(92页).doc
《微机原理与接口技术(92页).doc》由会员分享,可在线阅读,更多相关《微机原理与接口技术(92页).doc(91页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、-习题解第1章1.1 写出下列十进制数的8位二进制补码表示 解: (1) 54 = 00110110B (2) 37 = 00100101B (3) 111 = 01101111B (4) 253 超过8位补码范围(5) 0.1 = 0.0001101 (6) 0.63 = 0.1010001B (7) 0.34 = 0.0101100 (8) 0.21 = 0.0011011 1.2 转换下列二进制数为十进制数 解:(1) 10111101 = 189 (2) 10001001 = 137 (3) 0.1011111 = 95 / 128 = 0.7421875 (4) 0.0011010
2、= 13 / 64 = 0.203125 (5) 10011001 .110011 = 153 +51/64 =153.796873 (6) 111000111 = 455 1.3 写出下列带符号数的原码、反码、补码和移码表示(用8位二进制代码表示) 解:(1) +112 = 12715 +112 原 = 01110000B +112 反 = 01110000B +112 补 = 01110000B +112 移 = 11110000B(2) 0.625 = 0.1010000B 0.625 原 = 0.625 反= 0.625 补 =0.1010000B 小数无移码(3) 124 =1273
3、 =01111100B124 原 = 11111100B124 反 = 10000011B124 补 = 10000100B124 移= 00000100B(4) 0.375 =48/128 =0.0110000B0.375 原=1.0110000B0.375 反=1.1001111B0.375 补=1.1010000B小数无移码(5) 117= 12710 =1110101117原=11110101B117反=10001010B117补=10001011B117移=00001011B(6) +0.8125 =104/128 =0.1101000B+0.8125原=+0.8125反=+0.81
4、25补= 0.1101000B小数无移码1.4 给出以下机器数,求其真值(用二进制和十进制数)表示 解:(1) X=+(32+7) =+39 =+0100111B(2) x补=10101101B x原=11010011BX=1010011B =( 64+16+3)=-83(3) X = +1000110B =+70(4) X原=10101101BX= 0101101B =(32+13) =451.5 已知x补和y补的值,用补码加减法计算x+y补和xy补,指出结果是否溢出 (1) x补=0.11011 , y补=0.00011 (2) x补=0.10111 y补=1.00101 (3) x补=1
5、.01010 y补=1.10001 (4) x补=1.10011 y补=0.11001 解: (1) x补=0.11011 , y补=0.00011X+Y补=x补+y补=0.11110X+Y= +15/16 =+0.1111B XY补=x补+y补= 0.11000XY= +12/16 =+0.1111B(2) x补=0.10111 , y补=1.00101 X+Y补=x补+y补= 1.11100X+Y= -0.001B=1/8 XY补=x补+y补= 1.10010 (上溢)(3) x补=1.01010 , y补=1.10001 X+Y补= 10.11011 XY补=x补+y补= 11.1100
6、1X+Y=0.11011B下溢XY=0.00111B=7/32 (4) x补=1.10011 , y补=0.11001X+Y补= 00.01100XY补=x补+y补= 10.11010X+Y = (13+25)/32 =12/32=3/8XY下溢1.6 给出x和y的二进制值,用补码加减法计算x+y补和xy补,并指出结果是否溢出解:(1) X=0.10111 Y=0.11011 X+Y补= 01.10010 XY补=x补+y补= 11.11100 X+Y 正溢 XY=1/8(2) X=0.11101 Y=0.10011 X+Y补= 01.10000 XY补=x补+y补= 00.01010 X+Y
7、 正溢 XY=10/32(3) X=0.11011 Y=0.1010X+Y补=00.00111XY补=x补+y补= 01.01111 X+Y =7/32XY (上溢)(4) X=0.11111 Y=0.11011 X+Y补= 11.11100 XY补=x补+y补= 10.00110 X+Y =0.00100=1/8XY (下溢)(5) X=0.11011 Y=0.10100 X+Y补=11.11011 XY补=x补+y补= 10.10001 X+Y =0.00111=7/32XY (下溢)(6) X=0.11010 Y=0.11001 X+Y补= 10.01101 XY补=x补+y补= 11.
8、11111X+Y (下溢) XY=0.00001= 1/32 (7) X=1011101 Y=+1101101X+Y补= 000010000XY补=x补+y补= 100110110 X+Y =00010000=16XY=54 (下溢) (8) X=+1110110 Y=1001101X+Y补= 000101001XY补=x补+y补= 011000011 X+Y =41XY=61 (上溢) (9) X=+1101110 Y=+1010101X+Y补= 011000011XY补=x补+y补= 000011001 X+Y (上溢)XY=25 (10) X=1111111 Y=1101101 X+Y补
9、= 100010100 XY补=x补+y补= 111101110 X+Y (下溢)XY=0010010=181.7 写出下列数据的浮点数表示,基数为2,设阶码为5位(含1位阶符),尾数为11位(含1位尾符),要求尾数用补码,阶码用移码。(1) 12510 (2) 101012(3) 0.0013810 (4) 23710(5) 1101012 (6) 10111112解(1) 12510=011111012=0.111110127表示为00111,1111101000(2) 101012=0.1010125表示为00101,1010100000(3) 0.0013810=1447.03488
10、/ 220=1447 / 220=0.00000,00001,01101,00111B (1024+256+128+32+7=1447)=0.1011010011129=1,10111.01001011001 ( 9原=11001)=1,10111.01001011001(4) 23710= 111011012=0.1110110128=0,01000.1110110111(5) 1101012=0.11010128=1,00110.0010110000(6) 10111112=0.101111127=0,00111,10111111.8 用32位二进制浮点数表示,阶码9位(其中1位为阶符),
11、尾数23位(其中1位为尾符),要求阶码为移码表示,尾数为补码表示。请问:(1) 最大正数是多少?(2) 最小正数是多少?(3) 绝对值最大的负数是多少?解:(1) 最大正数X ,XXXXXXXXX . XXXXXXXXXXXXXXXXXXXXXX9位 22位 + 2255 0 .111111111111111111111122位 =+ 2255 (2221) /222=2233(2221)(2) 最小正数+2256 0.0000000000000000000001= 2256 1/222= 2278(3) 绝对值最大的负数 (最小数)1 , 011111111 . 00000000000000
12、00000000= 2255第2章2.1 用真值表验证下列公式:(1) A + BC =(A+B) 解: A B C A+BC(A+B)(A+C) 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1 0 01 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1(2) A += A + B解: A BA + A + B 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1(3) 解: A B 0 0 0 0 0 1 1 1 1 0 1 1 1 1 0 0(4) 解: A B 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 1(
13、5) ABC解: A BCABC 0 0 0 00 0 0 1 11 0 1 0 11 0 1 1 00 1 0 0 11 1 0 1 00 1 1 0 00 1 1 1 11(6) 解: A B C 0 0 01 1 0 0 10 0 0 1 01 1 0 1 10 0 1 0 00 0 1 0 10 0 1 1 00 0 1 1 10 02.2写出下列表达式的对偶式:(1) F =(A + B)(C + DE)+ G解:F=(AB)(C(DE)G(2) F = 解:F= (3) F = 解:F = (AC)F= (4) F = 解:F =(AB)(CD)+(AB)(CD) =(AB)(CD
14、) =(AB)(CD)=(AB)(CD) =(AB)(CD)2.3写出下列函数的“反”函数:(1)F = AB + 解:(2)F =解:(3)F = 解:(4)F = 解:F = = X = = XY = = 2.4应用公式化简法化简下列各函数式:(1)F = 解:F = = = = = (2)F =(A + B)C +解:F = AC + BC + = = C + C + AB = AB + C(3)F = 解:F = = = = = (4)F = AB + ABD +BCD解:F = AB + ABD +BCD= AB + +BCD= AB + 2.5利用卡诺图,化简下列逻辑函数:(1)F
15、 = (2)F = (3)F = (4)F =(A + B + C + D)(A + B + D)(A + C + D)(A + D)(+)(5)f(A,B,C)=m(0,2,4,6) (6)f(A,B,C,D)=m(0,1,2,3,4,6,8,9,10,11,12,14)(7)f(A,B,C,D)=m(2,3,6,7,8,10,12,14)(8)f(A,B,C,D)=m(0,1,4,5,12,13) AB C 00011110 011 111(9)f(A,B,C,D)=m(0,1,2,3,4,6,8,10,12,13,14)(10)f(A,B,C,D)=m(1,4,9,13)+d(5,6,7
16、,10)(1)F = 解:F = AB C 00011110 01011 11110(2)F = 解:= = = AB CD 00011110 0011 011111111011(3) F=解:F = (4)F =(A + B + C + D)(A + B + D)(A + C + D)(A + D)(+) AB CD 00011110 000011 011100111100100011解= = = AB C 00011110 01111 1(5)f(A,B,C)=m(0,2,4,6) 解:f(A,B,C)= (6)f(A,B,C,D)=m(0,1,2,3,4,6,8,9,10,11,12,1
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 微机 原理 接口 技术 92
限制150内