Explanation:
Inputs and Outputs:
There are 3 inputs = I₁, I₂, and S
There are 2 outputs = O₁ and O₂
The given problem is solved in three major steps:
Step 1: Construct the Truth Table
Step 2: Obtain the logic equations using Karnaugh map
Step 3: Draw the logic circuit
Step 1: Construct the Truth Table
The given logic is
When S = 0 then O₁ = I₁ and O₂ = I₂
When S = 1 then O₁ = I₂ and O₂ = I₁
I₁ | I₂ | S | O₁ | O₂
0 | 0 | 0 | 0 | 0
0 | 0 | 1 | 0 | 0
0 | 1 | 0 | 0 | 1
0 | 1 | 1 | 1 | 0
1 | 0 | 0 | 1 | 0
1 | 0 | 1 | 0 | 1
1 | 1 | 0 | 1 | 1
1 | 1 | 1 | 1 | 1
Step 2: Obtain the logic equations using Karnaugh map
Please refer to the attached diagram where Karnaugh map is set up.
The minimal SOP representation for output O₁
The minimal SOP representation for output O₂
Step 3: Draw the logic circuit
Please refer to the attached diagram where the circuit has been drawn.