Documente Academic
Documente Profesional
Documente Cultură
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
ALUs
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
ALU
Each processor has an ALU At ALU the arithmetic and logic operations performed. ALU performs two types of operations. 1. Fixed point operations 2. Floating point operations
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
ALU Design
Combinational Logic Circuits-based ALUs
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
ALUs
Fixed Point ALUs Floating Point Point ALUs Bit Slice Processors Based ALUs
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
ALU Operations
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
AND TEST
XOR NOT
OR L-Shift R-Shift
Unsigned Multiply
Multiply
Arth R-Shift
9
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
FAdd
FSub
FMul
FDiv
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
10
MAC
VLIW operations
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
11
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
12
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
13
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
14
Logical Shift
0b00100111 after logical left shift = 0b01001110 0b00100111 after logical right shift = 0b00010011
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
15
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
16
Arithmetic Shift
0b00100111 after arth. left shift = 0b01001110 0b00100111 after arth. right shift = 0b00010011 0b10100111 after arth. right shift = 0b11010011
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
17
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
18
Logic Operations
0b00100111 after NOT = 0b11011000 0b00100111 and 0b11011001 after AND = 0b00000001 0b00100111 and 0b11011001 after OR = 0b11111111 0b00100111 and 0b11011001 after XOR = 0b11111110
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
19
Compare Operations
0b00100111 and 0b11011001 after operation Sign Flag = 1, Zero Flag = 0 0b11011001 and 0b 00100111 after operation Sign Flag = 0, Zero Flag = 0 0b 00100111 and 0b 00100111 after operation Sign Flag = 0, Zero Flag = 1
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
20
TEST Operations
0b00100111 and 0b11011000 after operation Test Flag = 0, Zero Flag = 1 0b11011001 and 0b 11011001 after operation Test Flag = 1, Zero Flag = 0 0b 00100111 and 0b 00000111 after operation Test Flag = 0, Zero Flag = 0
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
21
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
22
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
23
Result
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
24
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
25
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
26
Flags
Control Unit
Result
Registers
AND
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
OR
ADD
27
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
28
Bus
k-Input X k-Input Y Select/Control
For intermediate results
Flags
P1
Result
P2 P3
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
P5
29
Bit Slice
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
30
Summary
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
31
ALUs
Fixed Point ALUs Floating Point Point ALUs Bit Slice Processors Based ALUs
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
32
ALU Operations
Add
AND TEST
XOR NOT
OR L-Shift R-Shift
Unsigned Multiply
Multiply
Arth R-Shift
33
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
Schaums Outline of Theory and Problems of Computer Architecture Copyright The McGraw-Hill Companies Inc. Indian Special Edition 2009
34