Logic Gate Switch

PrinceOfCreation's picture
Build image: 
In-game name (NO VISITORS! Must be LEARNER rank or higher!): 
PrinceOfCreation
Builder name(s) and current ranks: 
PrinceOfCreation: Learner
Creation location: 
(357,83,20) XYZ repectively
Machine Features: 

This machine takes two different on/off states and applies the logic selected, then gives an answer with an optional invert. The way the user enters the two inputs is quite special: They first select the input they want to write to, (A/B), and then toggle it on/off. The machine also displays the state of the current input selected.

Then the user chooses the logic gate they want to apply. There are 8 in total: OR, NOR, AND, NAND, XOR, XNOR, NOT A and NOT B. Choosing the logic is quite simple: the main component is a simple cauldron / comparator selector with auto reset.

Once the user has selected his/her input and logic, the answer is displayed with an optional invert. The inverter in question is a simple 1-wide design using a piston.

All in all the UI is simple and user friendly and it is really quite fast. It takes about 4-6 ticks for the answer to come through, although I was testing it on a day with lag problems!

How To Use: 

Using the machine is quite simple. First of all, head over to the far left until you get to the 'Input' panel. Locate the lever and flick it to which ever input you would like to change. Once you have selected the Input you would like to write to, hit the 'Toggle input selected' button. You should see a light come on above the button if you are toggling it on, otherwise it should go off. Note that the light above the button will display the state of the input selected by the lever.

After you have selected your two inputs, go right until you come to the 'Logic' panel. Simply press the button to select the logic gate displayed by the sign above. If you would like to change your selection, simply press the button you would like to change it to and the machine will clear your previous selection and select the one you have just pressed. If you would like to clear your selection and not select a new one simply press the 'RESET' button to the right of the last gate selection button. The 'RESET' button will only clear the logic gate selection, NOTHING ELSE!

After both inputs have been set to on or off AND the gate has been selected go to the right until you get to the 'Output' panel. the lamp there will display your result. If you would like to invert the answer simply flick the lever to the left of 'Output' lamp to the invert setting you would like to use; e.g. up will invert, down will not.

I hope that is all clear to you, if you have any further questions please leave a sign because I check on the machine daily.

Request status: 
Not approved

Comments

PrinceOfCreation's picture

You can also use the warp: /warp gate-switch , Eccon.

By PrinceOfCreation

Reasons: Regulars should be able to build ALUs, you build the logic part here, but you need to combine the gates with an adder for a nice ALU. You basically just pocessed 1 Bit, you also should expand that to at least 4 Bit width numbers.

By Ecconia