Logic Micro Operations
Logic Micro Operations
Logic operations are binary micro-operations implemented on the bits saved in the
registers. These operations treated each bit independently and create them as binary
variables.
For example, the exclusive-OR micro-operation with the contents of two registers R1 and
R2 is denoted by the statement
P: R1←R1⊕⊕R2
The exclusive-OR micro-operation stated above represent the following logic computation −
1010 Content of R1
1100 Content of R2
0110 Content of R1 after P = 1
The content of R1, after the implementation of the micro-operation, is similar to the bit-by-bit
exclusive-OR operation on pairs of bits in R2 and previous values of R1.
1. Clear
The Clear logic micro-operation is used to clear the register or set the bits of the register
to 0. To use this micro-operation, we need to feed 0 to the register. In the above truth
table, F0 represents the truth table of Clear logic micro-operation.
For example, F <- 0 means the value of the register F is set to 0 or is cleared. The
previous value of register F will be removed.
Boolean expression-
The boolean expression for the Clear logic micro-operation is F0 = 0
2. AND
stored in the two registers. The symbol to represent the logical AND is ∧ .
The AND logic micro-operation performs the logical AND between the bits of the data
Case 1: Both x and y values are true.
In the first case, if the values of both two registers are true then the result of AND
operation is 1; else, it is 0. F1 represents the truth table of AND logic micro-operation in
For example, F <- A ∧ B means the registers A and B value will undergo AND micro-
the above truth table.
For example, F <- A ∧ B’ means the value of the registers A and complement B will
table.
For example, F <- A’ ∧ B means the value of the complement register A and as it is B
table.
will undergo AND micro-operation, and the output will be stored in register F.
Boolean expression-
The boolean expression for the AND logic micro-operation will be F4 = x’.y
3. Transfer A
The Transfer A logic micro-operation transfers the contents of register A (first register)
to the output register.
F3 represents the truth table of Transfer A logic micro-operation in the above truth table.
Since there is a transfer of data from the first register to the output register in this micro-
operation, its truth table is the same as the taken values of the x variable (0, 0, 1, 1).
For example, F <- A means the value of register A is moved to register F. The previous
value of register F will be removed.
Boolean expression-
The boolean expression for the Transfer A logic micro-operation is F3 = x
4. Transfer B
The Transfer B logic micro-operation transfers the contents of register B (second
register) to the output register.
F5 represents the truth table of Transfer B logic micro-operation in the above truth table.
Since there is a transfer of data from the second register to the output register in this
micro-operation, its truth table is the same as the taken values of the y variable (0, 1, 0,
1).
For example, F <- B means the value of register B is moved to register F. The previous
value of register F will be removed.
Boolean expression-
The boolean expression for the Transfer B logic micro-operation is F5 = y
5. Exclusive OR
Also known as XOR, this logic micro-operation performs the logical XOR between the
F6 represents the truth table of Exclusive OR logic micro-operation in the above truth
For example, F <- A ⊕ B means the registers A and B value will undergo XOR micro-
table. The output will be 1 when either x =1 and y = 0 or x = 0 and y = 1.
For example, F <- A ∨ B means the registers A and B value will undergo OR micro-
OR logic micro-operation in the above truth table.
For example, F <- A ∨ B’ means the value of the registers A and complement B will
In the above truth table, F11 represents the truth table of this logic micro-operation.
For example, F <- A’ ∨ B means the complemented register A and B value will undergo
In the above truth table, F13 represents the truth table of this logic micro-operation.
For example, F <- (A ∨ B)’ means the registers A and B value will undergo NOR micro-
F8 represents the truth table of NOR logic micro-operation.
8. Exclusive NOR
If we perform the Exclusive NOR micro-operation, the output will be 1 when the values
of both the x and y registers will be the same. They can be true or false, but they have
to be the same.
F9 represents the truth table of Exclusive NOR logic micro-operation in the above truth
For example, F <- (A ⊕ B)’ means the registers A and B value will undergo Exclusive
table. The output will be 1 when either x = 0 and y = 0 or x = 1 and y = 1.
For example, F <- (A ∧ B)’ means the registers A and B value will undergo NAND
In the above truth table, F14 represents the truth table of NAND logic micro-operation.