Image:
 Author: UnityDogGaming04 Group: Default Filesize: 29.33 kB Date added: 2021-07-03 Rating: 5 Downloads: 1118 Views: 321 Comments: 5 Ratings: 1 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
(seems to be suddenly malfunctioning, ill look at it soon)
Every 2-input logic gate has a truth table, in which there are four cases, those being inputs 00, 01, 10, and 11.
Given that any of those four cases can be 1 or 0, what if we create a circuit that can take in the truth table of any gate and simulate said gate?
Enter the AllGate, capable of simulating 16 different gates:
0000: always returns FALSE
0001: A AND B
0010: B ANDNOT A
0011: A
0100: A ANDNOT B
0101: B
0110: A XOR B
0111: A OR B
1000: A NOR B
1001: A XNOR B
1010: NOT A
1011: NOT (A ANDNOT B)
1100: NOT B
1101: NOT (B ANDNOT A)
1110: A NAND B
1111: always returns TRUE
Now I'm not certain, but I'd say this machine is a very, very simple ALU (although there's no arithmetics, so it's more of a LU), and as a matter of fact, I am designing a OISC that uses this tiny machine as the entirety of the ALU!
CONTROLS:
AB for gate input, drag light blue boxes for truth table input
Thamks bai x 23232000 |