1.5_Unit1_Types of Microoperations, Arithmetic Shift Logic Unit
1.5_Unit1_Types of Microoperations, Arithmetic Shift Logic Unit
ORGANIZATI
ON AND
ARCHITECTU
RE (COA)
Ms. Umang Kant
AP, KIET, CSE-AIML Department
Ph.D Research Scholar, DTU,
CSE
)
CONTENTS
1. Types of Microoperations
1. Register Transfer Microoperations
2. Arithmetic Microoperations
3. Logical Microoperations
4. Shift Microoperations
3. Increment 4. Decrement
When S1S0=10, the inputs from When S1S0=11, the inputs from
B are neglected, and all 0’s are B are neglected, and all 1’s are
inserted into the Y inputs. Here, inserted into the Y inputs.
D=A+0+Cin. If Cin=0, D=A-1 which is the
If Cin=0, D=A. It refers to the decrement operation. This is
direct transfer from input A to because a number with all 1’s is
output D. equal to the 2’s compliment of 1.
LOGIC
MICROOPERATIONS
Logic microoperations specify binary operations for strings of bits
stored in registers.
These microoperations consider each bit of the register separately
and treat them as binary variables.
For example, the EX-OR microoperation with the contents of two
registers R1 and R2 is symbolized by the statement .
It specifies a logic microoperation to be executed on the individual bits
of the registers R1 and R2 provided that the control variable P=1.
We have a total of 16 microoperations, which can be performed on
two binary variables.
These 16 microoperations can be determined from all possible truth
tables obtained with two binary variables as shown in the figure.
LOGIC
MICROOPERATI
ONS
The 16 logic
microoperations are derived
from these functions by
replacing variable x by the
binary content of register A
and variable y by the binary
content of register B.
The 16 logic microoperations
listed in the second column
represent the relationship
between the binary content of
two registers A and B.
LOGIC MICROOPERATIONS
HARDWARE
IMPLEMENTATION
The hardware implementation of logic
microoperations requires that logic gates be inserted
for each bit or pair of bits in the registers to perform
the required logic function.
Although there are 16 logic microoperations, most
computer systems use only four gates-AND, OR, EX-
OR, and NOT, from which other logic functions can be
derived.
Figure shows one stage of a circuit that generates
the four basic logic microoperations.
It consists of four gates and a multiplexer. Each of
the four logic operations is generated through a gate
that performs the required logic.
The outputs of the gates are applied to the data
inputs of the multiplexer.
The two selection inputs S1S0 choose one of the
data inputs of the multiplexer and direct its value to
the output.
1. Selective Set
This operation sets to 1 the