在定点数计算中,是否采取双符号位还是单符号位,它都必须有( C ),它经常使用( C )来实现
解码电路,与非门 译码电路,或非门 溢出检测电路,异或门 移位电路,与或门
一般来说,使用检测符号进位信号和最高数位进位信号的异或结果来进行溢出判断,因此需要异或门。
9. Arithmetic shift 2‘s complement of a positive, sign bit remains unchanged, and the blank bit fills in ?0‘. Arithmetic left shift 2‘s complement of a negative, sign bit remains unchanged, and the low bit fills 0 . Arithmetic right shift 2‘s complement of a negative, sign bit remains unchanged, and the high bit fills 1 and truncate low bit. 对正数的补码进行算术移位,符号位保持不变,空余位填‘0’;对负数的补码进行算术左移,符号位保持不变,低位填‘0’, 对负数的补码进行算术右移,符号位保持不变,高位填‘1’,并且舍弃低位。
10.Let the word length is 8, the fixed point integer with 2‘s complement representation of -1 is 11111111 . ―-1‖,则最高位为“1”,后7位的真值为“0000001”,按位取反得“1111110”,再加一得到“1111111”,合起来为:“11111111”。注意,这是对于整数,对于定点小数来说,“-1”是“10000000”
11.In fixed point operation, it will be overflow when the result exceeds the represent range of the computer.( A ) True False
在定点数操作中,当结果超出了计算机所能表示的范围时将会发生溢出。显然是对的
12. For a 8-bit 2‘s complement representation integer number, its minimal value is -128 , its maximal value is 127 . 对于一个八位的补码表示的整数,最小值是-128,最大值是127。
13.A fixed point number is composed of sign bit and numerical part.( B ) True False
11
14. The range of representation for a 2‘s complement number system of 16 bits (including the sign bit) is ( A ).
-215 ~ + (215 -1)
- (215 –1) ~ + (215 –1) -215 ~ + 215
- (215 + 1) ~ + 215
对于一个16位(包含符号位)的系统,补码的表示范围为- 215 ~ + (215 –1)
15.8-4-2-1 BCD code of a number is 0111 1000 1001, then its true value is 789
16. The addition/subtraction algorithm for sign magnitude representation is rather simple.( B ) True False
原码用于乘除法比较简单,补码用于加减法比较简单。因此错误。
18.The number represented in the computer sometimes will be overflow, the fundamental reason is the limited computer word length.( A ) True False
计算机中的数字表示有时候会溢出,其基本原因是计算机字长限制。
19.For fixed point binary calculator, subtraction is implemented through ( B ).
2‘s complement binary subtractor 2‘s complement binary adder sign magnitude decimal adder sign magnitude binary subtractor
对于定点数二进制运算器,减法通过补码的加法来实现。
20.In 2‘s complement addition/subtraction, using 2 sign bits for overflow detection, when the 2 sign bits ?S1S2‘ equals ?10‘, it means that ( C ).
result is positive, with no overflow result is negative, with no overflow result is overflow result is underflow
在补码加减法中,使用双符号位进行溢出检测,当双符号位为“10”时,意味着结果已经溢出,并且是负溢出,当双符号位为“01”时,结果为正溢出。“00”或“11”时,表示结果正确。
12
21.The 2‘s complement representation of -127 is 10000000.( B ) True False
-127的补码为:10000001,10000000为-128的补码。
22. The minimal number of the following numbers is ( D ). A. (100101)2 B. (100010)BCD C. (50)8 D. (625)16 换算成10进制,A.37 B.22 C.40 D.1573
23. 2‘s complement representation of ?0‘ equals to 1‘s complement representation of ?-1‘.( B ) True False
补码对“0”的表示:“00000000”,反码对“-1”的表示:“11111110”
24. If [X] 2‘s complement = 1.1101010,then [X]sign-magnitude = ( B )
1.0010101 1.0010110 0.0010110 0.1101010
显然,X是负数,对.1101010减一,得.1101001,按位取反得.0010110,因此得1.0010110 25.For sign magnitude representation, 1‘s complement representation, 2‘s complement representation, sign magnitude and 1‘s complement has 2 representations of ?0‘ ―0‖的表示在原码和反码中均不唯一,都有“+0”和“-0”之分。
26. The use of 2‘s complement operation is adopted to simplify the design of computer.( A ) True
13
False
正确,为了简化加减法的运算。
27. Fixed point calculator is used for ( C ).
fixed point operation floating point operation
fixed point operation and floating point operation decimal addition
C正确,浮点数运算中的阶码运算是定点数的加减运算,还是会用到定点数运算器。因此选C
28. When -1 (2-2-n)-|x| 2+x X 因为x<0,所以1-x = 1+|x|,且-1 29. The maximal number of the following numbers is ( A ). (227)8 (96)16 (10010101)2 (143)5 以上各数换算成十进制后的值为:A.151 B.150 C.149 D.48 30. 8-4-2-1 code is binary number.( B ) True False 8421码确实是十进制数的二进制表示,说到底还是十进制数,牢记。 31. A decimal number is 137.5, then its octal form is 211.4 , its hexadecimal form is 89.8 Octal:八进制;hexadecimal:十六进制 14 33. The ( C )representation of ?0‘ is unique. A. sign magnitude and 1‘s complement; B. 1‘s complement C. 2‘s complement D. sign magnitude 只有补码对0的表示是唯一的,原码和反码的表示中,都有“+0”和“-0”之分 34. The range of representation for a unsigned binary number system of 16bits is 0 ~ 65535 . 题中说明是无符号数,因此范围为0~216 35. Given [x1] 2‘s complement =11001100, [x2 ]sign magnitude=1.0110, the decimal value of x1 and x2 are -52 and -0.375 . 第五章知识总结 · 现今使用中的大多数计算机系统都是在冯·诺依曼计算机模型上构造的。该模型于1946年由冯·诺依曼提出。 · 冯·诺依曼计算机模型中计算机被看作是一个存储程序计算机。 · 一道程序是一个指令序列,其中每一条指令执行一个基本操作。执行前,程序和将要由它加工的数据一起存放到存储器中。 · 在程序执行中,它的指令一条一条地从存储器读出,送到处理单元中去。处理单元译码、取数,执行,并写回结果。 · 冯·诺依曼机型典型组成包含:存储器,CPU(运算器,控制器),I/O · 算术逻辑单元(ALU)是CPU的心脏。通常ALU有一个二进制加法器,而ALU的性能主要取决于它的加法器 · 半加器只是对位进行运算,不考虑进位,全加器考虑进位。 · 串行级联的4位全加器,又称为行波进位加法器(Ripple-carry adder),这种加法器因为进位延迟以及门延迟的累加,速度较慢。 · 采用―超前进位产生电路‖同时形成各位进位,从而实现快速加法。我们称这种加法器为超前进位加法器。 · 算术逻辑单元(ALU)是一种功能较强的组合逻辑电路。它能进行多种算术运算和逻辑运算。ALU的基本逻辑结构是超前进位加法器。 · 在一个全加器中,第i位的进位产生变量G是Xi·Yi 的结果,即Xi 和Yi 均为1时,才产生进位;第i位的进位传递变量P是Xi+Yi的结果,即Xi 和Yi 两者中有一个为1时,进 15