数字逻辑一英文.pptVIP

  • 31
  • 0
  • 约7.11千字
  • 约 52页
  • 2017-12-13 发布于江苏
  • 举报
数字逻辑一英文

Chapter 2 Number Systems and Codes Preface 2.1Positional Number Systems 2.Binary-to-decimal 3.Binary-to-octal and hexadecimal Binary-to-Octal Binary-to-Hexadecimal Octal-to-Binary Hexadecimal-to-Binary 4.Decimal-to-Radix-r Radix-r1-to-Radix-r2 2.2 Addition and Subtraction of Nondecimal Numbers 2.Addition of Hexadecimal Numbers 3.Subtraction of Binary Numbers 4.Subtraction of Hexadecimal Numbers 2.3 Representation of Negative Numbers 1.Signed-Magnitude Representation 2.Radix-Complement Representation 3.Dinimished Radix-Complement Representation 4.Two’s-Complement Addition and Subtraction Subtraction Rules: 5.Ones’-Complement Addition and Subtraction 6. Sign extension 7.Signed Fractional and Floating-Point 2.4 Binary Codes 2. Addition of 8421BCD 3.Gray Code Construct Gray Code 4.Codes for Characters, Actions, Conditions and States D: n-digit number If then Fixed 51 99 98 97 96 95 50 49 48 04 03 02 01 00 +1 +2 +3 +4 2 digit decimal numbers -1 -2 -3 -4 +48 +49 -49 -50 +0 … … … … -5 Positive numbers Negative numbers Ex.2-13 1410 1810 - 14Complement 1410+(-1810) 82Complement + 6 9 Complement (-410) Ex.2-14 -1410 1810 + 86Complement 18Complement + -1410+1810 4 1 0 1 1 n=2 Complement Ex.2-15 -1410 1810 - -1410+(-1810) 86Complement 82Complement + 8 6 1 1 Complement (-3210) Ex.2-16 4310 4510 + 8810 43Complement 45Complement + 8 8 Complement (-1210) Range: Range:[-50,49] Overflow Two’s-Complement D: n-digit number Fixed 51 99 98 97 96 95 50 49 48 04 03 02 01 00 +1 +2 +3 +4 2 digit decimal numbers -1 -2 -3 -4 +48 +49 -48 -49 +0 … … … … Positive numbers Negative numbers -0 Range: Range:[-49,49] Two zeros:+0 and -0 Ones’-Complement 0000 0001 0010 0011 0100 0101 1000 1001 1010 1101 1111 1110 1011 1100 0111 0110 +0 +1 +2 +3 +4 +5 ?8 ?7 ?6 ?3 ?1 ?2 ?5 ?4 +7 +6 Overflow +1 -1 4bit MSB weight:-2n-1 Range:[-2n-1,2n-1-1] Ex.2-17 C X Y +3 +4 + +7 0011 0100 + 1 1 1 0 C X Y -2 -6 + -8 1110 1010 + 0 0 0 1 1 1 1 1 4bit C X Y +6 -3 + +3 0110 1101 + 1 1 0 0 C X Y +4 -7 + -3 0100 1001 + 1 0 1

文档评论(0)

1亿VIP精品文档

相关文档