[P AND Q AND (NOT R)]
OR [P AND (NOT Q) AND R]
OR [(NOT P) AND Q AND R]
OR [(NOT P) AND (NOT Q) AND (NOT R)]
represents the output. Use the three-way AND gate and four-way OR gate as subcircuits to design a circuit which represents the above expression.
P | Q | R | Majority(P,Q,R) |
1 | 1 | 1 | |
1 | 1 | 0 | |
1 | 0 | 1 | |
1 | 0 | 0 | |
0 | 1 | 1 | |
0 | 1 | 0 | |
0 | 0 | 1 | |
0 | 0 | 0 |
Construct the logical expression using the algorithm which was presented last class. That is:
Once you have found a logical expression which represents the Majority operator, build the corresponding circuit using the three-way AND and four-way OR operators you built.
Save your circuit.
Add the 2-way MUX as a subcircuit. Then use the MUX along with the majority and parity circuits to design a circuit which has 3 inputs and one output. Depending on the setting of the MUX, the output will be either
Call one of us over and show us your circuit.
The palette of circuit elements also contains a soldering iron for connecting components and a pair of wire cutters for cutting connections. The Tools menu allows you to choose between them. When the soldering iron is selected, clicking on a lead out of an element and dragging to another lead will connect them with a wire as long as this does not connect two output leads together. When the wire cutters are selected, clicking on a wire where it comes out of the element (clicking in the middle of the wire will not work) will cut it out of the circuit. Clicking on a blank piece of screen and dragging will create a selection box. All the circuits in this box can be dragged together around the screen, and this group of circuits can be copied, cut and pasted.
Input switches and output lights are used to control the circuit after it is built. Clicking on an input switch will toggle its state from 0 to 1 or 1 to 0, and this value will be fed to the gates connected to it. Output lights will light up if they are connected to a 1 and stay dark if connected to a 0.
After you have built a circuit and saved it, its name will appear under the Sub-Circuits menu. You can now use that circuit as a sub-circuit inside any other circuit so that you can have much more complicated building blocks than are in the palette. To use a subcircuit which you have saved, simply select the sub-circuit you want from the Sub-Circuits menu, and a box labeled with the sub-circuit name will appear in the middle of the window. This box will have one input lead for every input switch the original circuit had and an output lead for every output light. It can now be used just like any circuit element. Double clicking on the box will open a circuit window showing the innards of the sub-circuit.