Q. Implementation of Logic Micro-operations?
For implementationlet's first ask questions how many logic operations can be performed with two binary variables. We can have 4 possible combinations of input of two variables. These are 00, 01, 10, and 11. Now for eachof these 4 input combinations we can have 2^{4} = 16 output combinations of truthvalues for a specific function. This suggests that for two variables we can have 16 logical operations. Above stated fact would be clearer by going through the given figure.
Figure: Logic micro-operations on two inputs
Please consider that in figure above micro-operations are derived by replacing x and y of Boolean function with registers R1 and R2 on every corresponding bit of registers R1 and R2. Every one of these bits will be treated just like binary variables.
In various computers only four: AND, OR, XOR (exclusive OR) and complement micro-operations are implemented. Other 12 micro-operations can be derivedfrom these four micro-operations. Figure belowdisplays one bit that is the i^{th} bit stage of four logic operations. Please consider that circuit comprises 4 gates and a 4 × 1 MUX. The i^{th} bits of Register R1 and R2 are passed through circuit. On the base of selection inputs S_{0} and S_{1} desired micro-operation is attained.
Figure: Logic diagram of one stage of logic circuit