State the logic instruction you would use when you want to a
Solution
a) If you want to know, when one or both matching bits in two different words are 1, you need to use logic instruction “OR”.
Let us consider the two different bit patterns A and B and the logic instruction “OR” . We can clearly say when one or both matching bits in two different words are 1, “OR” operation gives result 1.
b) When you want to reverse the state of bits in a word, you need to use logic instruction “NOT”.
Reason NOT operation will reverse the value at a particular bit position. Hence if we wanted to match then we will use NOT as logical NOT of 0 is 1 and 1 is 0.
c). If you want to know, when both matching bits in two different words are 1, you need to use logic instruction “AND”.
Reason AND operation will be high only when the states of two bits are 1.
d) \"XOR\" Logic Instruction when we wanted to know one or other bits in same positions are different.
Reason XOR operation will be high only when the states of two bits are different.
