1. Trang chủ
  2. » Công Nghệ Thông Tin

Bài giảng Computer Organization and Architecture: Chapter 9

41 75 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 41
Dung lượng 484,99 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Computer Arithmetic thuộc Chapter 9 của Bài giảng Computer Organization and Architecture tập trung trình bày các vấn đề cơ bản về Arithmetic & Logic Unit; ALU Inputs and Outputs; Integer Representation; Sign-Magnitude;...

Trang 1

William Stallings

Computer Organization and Architecture

6th Edition

Chapter 9

Computer Arithmetic

Trang 2

Arithmetic & Logic Unit

• Does the calculations

• Everything else in the computer is there to service this unit

• Handles integers

• May handle floating point (real) numbers

• May be separate FPU (maths co­processor)

• May be on chip separate FPU (486DX +)

Trang 3

ALU Inputs and Outputs

Trang 8

Geometric Depiction of Twos Complement Integers

Trang 9

Negation Special Case 1

Trang 10

Negation Special Case 2

Trang 12

Conversion Between Lengths

Trang 13

Addition and Subtraction

Trang 14

Hardware for Addition and Subtraction

Trang 17

Unsigned Binary Multiplication

Trang 18

Execution of Example

Trang 19

Flowchart for Unsigned Binary Multiplication

Trang 20

Multiplying Negative Numbers

Trang 21

Booth’s Algorithm

Trang 22

Example of Booth’s Algorithm

Trang 23

• More complex than multiplication

• Negative numbers are really bad!

• Based on long division

Trang 24

Division of Unsigned Binary Integers

1011

00001101 10010011 1011

001110 1011

1011 100

Quotient Dividend

Remainder

Partial

Remainders

Divisor

Trang 25

Flowchart for Unsigned Binary Division

Trang 28

Floating Point Examples

Trang 29

Signs for Floating Point

Trang 30

• FP numbers are usually normalized

• i.e. exponent is adjusted so that leading bit (MSB) of mantissa is 1

Trang 32

Expressible Numbers

Trang 33

Density of Floating Point Numbers

Trang 35

IEEE 754 Formats

Trang 37

FP Addition & Subtraction Flowchart

Trang 39

Floating Point Multiplication

Trang 40

Floating Point Division

Trang 41

Required Reading

• Stallings Chapter 9

• IEEE 754  on IEEE Web site

Ngày đăng: 30/01/2020, 00:07

TỪ KHÓA LIÊN QUAN