State the logic instruction you would use when you want to a

State the logic instruction you would use when you want to: a. Know when one or both matching bits in two different words are 1. b. Reverse the state of bits in a word. c. Know when matching bits in two different words are both 1. d. Know when one or the other bit of matching bits, but not both, in two different words is 1.

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.

 State the logic instruction you would use when you want to: a. Know when one or both matching bits in two different words are 1. b. Reverse the state of bits i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site