§6 计算机的运算方法

type
status
date
slug
summary
tags
category
icon
password

§6.1 无符号和有符号数

一、无符号数

二、有符号数

  1. 原码
符号位数值位,整数逗号,小数小数点
  1. 反码
正数不变,负数除符号位每位取反
  1. 补码
正数不变
notion image
notion image
notion image
  1. 移码
补码与移码只差一个符号位
用移码表示浮点数的阶码

§6.2 数的定点表示和浮点表示

一、定点表示

二、浮点表示

notion image
notion image
notion image
notion image
notion image
notion image

三、举例

四、IEEE754标准

notion image
notion image
notion image
notion image
阶码-127=真值的指数
notion image

§6.3 定点运算

一、移位运算

notion image
notion image

二、加减法运算

notion image
溢出判断
notion image
notion image
notion image
硬件配置

三、乘法运算

notion image
  1. 无符号数乘法
notion image
  1. 原码乘法(一位乘)
notion image
notion image
notion image
硬件配置
  1. 补码乘法(一位乘)
Booth算法
notion image
notion image
硬件配置
notion image
notion image
notion image

四、除法运算

  1. 原码除法
notion image
  • 恢复余数法
notion image
notion image
  • 不恢复余数法(加减交替法)
notion image
notion image
硬件配置

§6.4 浮点四则运算

一、浮点加减运算

notion image
notion image
notion image
notion image
notion image
notion image
notion image

二、浮点乘除运算

notion image
notion image

§6.5 算术逻辑单元

一、ALU电路

二、快速进位链

  1. 串行进位的并行加法器(行波进位加法器)
  1. 串行进位链
  1. 并行进位链(先行进位,跳跃进位)
    1. (1) 单重分组跳跃进位链
      (2) 双重分组跳跃进位链
      (3) 双重分组跳跃进位链 大组进位分析
      (4) 双重分组跳跃进位链 大组进位线路
      (5) 双重分组跳跃进位链 小组进位线路
      (6) n=16双重分组跳跃进位链
      (7) n=32双重分组跳跃进位链
notion image

期末真题

24春
  1. 浮点数的阶码是用什么表示的?
移码
  1. m=1,1110100,n=1,0110000,补码。p=2*m+n/2,则p=(),用补码表示。
1,1101000
1,1011000
1,1000000
  1. (11011000)补码,算数移位和逻辑移位。
  1. 浮点数计算,A=2^100×(-0.1010101),B=2^010×(0.1101010)。求A+B,用补码计算。
22秋
notion image
不同 最高位
notion image
notion image
Loading...