计算机组成远离英文材料.pdf
《计算机组成远离英文材料.pdf》由会员分享,可在线阅读,更多相关《计算机组成远离英文材料.pdf(40页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、“计算机组成原理”英文教材 1 1 IN THIS CHAPTER 2-1 Data Types 2-2 Complements 2-3 Fixed-Point Representation 2-4 Floating-Point Representation 2-5 Other Binary Codes 2-6 Error Detection Codes 2-1 Data Types Binary information in digital computers is stored in memory or processor registers.Registers contain eithe
2、r data or control information.Control information is a bit or a group of bits used to specify the sequence of command signals needed for manipulation of the data in other registers.Data are numbers and other binary-coded information that are operated on to achieve required computational results.In t
3、his chapter we present the most common types of data found in digital computers and show how the various data types are represented in binary-coded form in computer registers.The data types found in the registers of digital computers may be classified as being one of the following categories:(1)numb
4、ers used in arithmeticcomputations,(2)letters of the alphabet used in data processing,and(3)otherdiscrete symbols used for specific purposed.All types of data,except binary numbers,are represented in computer registers in binary-coded form.This is because registers are made up of flip-flops and flip
5、-flops are two-state devices that can store only 1 s and 0 s.The binary number system is the most natural system to use in a digital computer.But sometimes it is convenient to employ different number systems,especially the decimal number system,since it is used by people to perform arithmetic comput
6、ations.Number Systems A numbersystem of base,or radix,r is a system that uses distinct symbols for r digits.Numbers are representeed by a string of digit symbols.To determine the quantity that the number represents,it is necessary to multiply each digit by an integer power of r and then form the sum
7、 of all weighted digits.For example,the decimal number system in everyday use employs the radix 10system.The 10 symbols are 0,1,2,3,4,5,6,7,8,and 9.The string of digits 724.5 is interpreted to represent the quantity.7102+2101+4100+510-1 that is,7 hundreds,plus 2 tens,plus 4 units,plus 5 tenths.Every
8、 decimal number can be similarly interpreted to find the quantity it represents.CHAPTER TWO Data Representation(选自 M.M O R R I S M A N O C O M P U T E R S Y S T E M A R C H I T E C T U R E T H I R D E D I T I O N )“计算机组成原理”英文教材 2 2 The binary number system uses the radix 2.The two digit symbols used
9、 are 0 and 1.The string of digits 101101 is interpreted to represent the quantity 125+024+123+122+021+120=45 To distinguish between different radix numbers,the digits will be enclosed in parentheses and the radix of the number inserted as a subscript.For example,to show the equality between decimal
10、and binary forty-five we will write(101101)2=(45)10 Besides the decimal and binary number systems,the octal(radix 8)and hexadecimal(radix 16)are important in digital computer work.The eight symbols of the octal system are 0,1,2,3,4,5,6,and 7.The 16 symbols of the hexadecimal system are 0,1,2,3,4,5,6
11、,7,8,9,A,B,C,D,E,and F.The last six symbols are,unfortunately,identical to the letters of the alphabet and can cause confusion at times.However,this is the convention that has been adopted.When used to represent hexadecimal digits,the symbols A,B,C,D,E,F correspond to the decimal numbers 10,11,12,13
12、,14,15,respectively.A number in radix r can be converted to the familiar decimal system by forming the sum of the weighted digits.For example,octal 736.4 is converted to decimal as follows:(736.4)8=782+381+680+48-1 =764+38+61+4/8=(478.5)10 The equivalent decimal number of hexadecimal F3 is obtained
13、from the following calculation:(F3)16=F16+3=1516+3=(243)10 Conversion from decimal to its equivalent representation in the radix r system is carried out by separating the number into its integer and fraction parts and converting each part separately.The conversion of a decimal integer into a base r
14、representation is done by successive divisions by r and accumulation of the remainders.The conversion of a decimal fraction to radix r representation is accomplished by successive multiplications by r and accumulation of the integer digits so obtained.Figure 2-1 demonstrates these procedures.The con
15、version of decimal 41.6875 into binary is done by first separating the number into its integer part 41 and fraction part.6875.The integer part is converted by dividing 41 by r=2 to give an integer quotient of 20 and a remainder of 1.The quotient is again divided by 2 to give a new quotient and remai
16、nder.This process is repeated until the integer quotient becomes 0.The coefficients of the binary number are obtained from the remainders with the first remainder giving the low-order bit of the converted binary number.The fraction part is converted by multiplying it by r=2 to give an integer and a
17、fraction.The 2-1“计算机组成原理”英文教材 3 3 new fraction(without the integer)is multiplied again by 2 to give a new integer and a new fraction.This process is repeated until the fraction part becomes zero or until the number of digits obtained gives the required accuracy.The coefficients of the binary fractio
18、n are obtained from the integer digits with the first integer computed being the digit to be placed next to the binary point.Finally,the two parts are combined to give the total required conversion.Octal and Hexadecimal Numbers The conversion from and to binary,octal,and hexadecimal representation p
19、lays and important part in digital computers.Since 23=8 and 24=16,each octal digit corresponds to three binary digits and each hexadecimal digit corresponds to four binary digits.The conversion from binary to octal is easily accomplished by partitioning the binary number into groups of three bits ea
20、ch.The corresponding octal digit is then assigned to each group of bits and the string of digits so obtained gives the octal equivalent of the binary number.Consider,for example,a 16-bit register.Physically,one may think of the register as composed of 16 binary storage cells,with each cell capable o
21、f holding either a 1 or a 0.Suppose that the bit configuration stored in the register is as shown in fig.2-2.Since a binary number consists of a string of 1 s and 0 s,the 16-bit register can be used to store any binary number from 0 to 216-1.For the particular example shown,the binary number stored
22、in the register is the equivalent of decimal 44899.Starting from the low-order bit,we partition the register into groups of three bits each(the sixteenth bit remains in a group by itself).Each group of three bits is assigned its octal equivalent and placed on top of the register.The string of octal
23、digits so obtained represents the octal equivalent of the binary number.Conversion from binary to hexadecimal is similar except that the bits are divided into groups of four.The corresponding hexadecimal digit for each group of four bits is written as shown below the register of Fig.2-2.The string o
24、f hexadecimal digits so obtained represents the hexadecimal equivalent of the binary number.The corresponding octal digit for each group of three bits is easily remembered after studying the first eight entries listed in table 2-1.The correspondence between a hexadecimal digit and its equivalent 4-b
25、it code can be found in the first 16 entries of Table 2-2.Table 2-1 lists a few octal numbers and their representation in registers in binary-coded form.The binary code is obtained by the procedure explained above.Each octal digit is assigned a 3-bit code as specified by the entries of the first eig
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 组成 远离 英文 材料
限制150内