Logic Microoperations: Engr. Kamran
Logic Microoperations: Engr. Kamran
Logic Microoperations: Engr. Kamran
Logic Microoperations
Engr. Kamran
MICROOPERATIONS
LOGIC MICROOPERATIONS
• Specify binary operations on the strings of bits in registers
– Logic microoperations are bit-wise operations, i.e., they work on the
individual bits of data and treat them as binary variables
» e.g. R1 R2 R3
– useful for bit manipulation and for making logical decisions based on
the bit values
Ai
0
Bi
1
4X1 Ei
MUX
2
3 Select
S1
S0
Function table
S1 S0 Output Microoperation
0 0 E = A B AND
0 1 E=AB OR
1 0 E = A B XOR
1 1 E = A’ Complement
• P + Q: R1 R2 + R3