2080 8

CSC213 ยท 2080 ยท 5 marks

What is micro operation? Explain different arithmetic microoperations.

What is micro operation? Explain different arithmetic microoperations. [5]

Computer ArchitectureChapter 2: Register Transfer and MicrooperationsArithmetic Microoperations

Quick answer

Micro operation is an elementary operation performed on data stored in registers. It is the basic operation executed on the data held in one or more registers during a single clock pulse.

Micro Operation and Arithmetic Micro Operations

What is Micro Operation? (1 mark)

Example: add, subtract, load, store, clear, shift, etc.

In Register Transfer Language (RTL), a micro operation is expressed as:

R1 โ† R1 + R3

This means the contents of R1 and R3 are added and the result is stored back in R1.


Arithmetic Micro Operations (4 marks)

Arithmetic micro operations perform basic arithmetic operations on numeric data stored in registers. The common arithmetic micro operations are:


1. Addition

The contents of two registers are added and the result is stored in a destination register.

RTL notation:

R3 โ† R1 + R2

Example:

R1 = 1010
R2 = 0101
R3 = 1111

2. Subtraction

The contents of one register are subtracted from another. This is typically implemented using 2's complement addition.

RTL notation:

R3 โ† R1 - R2

Which is equivalent to:

R3 โ† R1 + (2's complement of R2)
     = R1 + R2' + 1

Example:

R1 = 1010  (10)
R2 = 0011  (3)
R3 = 0111  (7)

3. Increment

The content of a register is increased by 1.

RTL notation:

R1 โ† R1 + 1

Example:

R1 = 1010  โ†’  R1 = 1011

4. Decrement

The content of a register is decreased by 1.

RTL notation:

R1 โ† R1 - 1

Example:

R1 = 1010  โ†’  R1 = 1001

5. Multiplication

The contents of two registers are multiplied and the result is stored in a destination register.

RTL notation:

R3 โ† R1 * R2

6. Division

The content of one register is divided by another.

RTL notation:

R3 โ† R1 / R2

7. Negation (2's Complement)

The value in a register is negated (sign is changed) using 2's complement.

RTL notation:

R1 โ† R1' + 1

Example:

R1 = 0101 (5)  โ†’  R1 = 1011 (-5 in 2's complement)

Summary Table

OperationRTL NotationDescription
AdditionR3 โ† R1 + R2Sum of two registers
SubtractionR3 โ† R1 - R2Difference of two registers
IncrementR1 โ† R1 + 1Add 1 to register
DecrementR1 โ† R1 - 1Subtract 1 from register
MultiplicationR3 โ† R1 * R2Product of two registers
DivisionR3 โ† R1 / R2Quotient of two registers
NegationR1 โ† R1' + 12's complement of register

Note: The arithmetic circuit for these operations is implemented using full adders, where the output is computed as: D = A + Y + Cin, and the function is selected by control inputs.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.