Some Logic Gates
The following animations are used in class to demonstrate circuits and logic gates. They are used in teaching computer architecture.
Click on the circled numbers to turn inputs on or off. Outputs will change in response to inputs.
Not Gate Demo
Output is the inverse of the input.
Half Adder
Takes two binary inputs, and adds them together.
Non-Combinational Logic
Simple system with a feedback loop, so that the output is not a function of only the input.
Full Adder
Adds 3 bits: input, output, and carry-in. Many can be chained together to create an adder for arbitrarily-sized numbers.
2-to-4 Encoder
Takes a 2-bit input, and uses it to select just one of the 4 outputs to be on.
4-to-1 Multiplexer
Uses a 4-to-2 encoder to pick one of the 4 inputs to pass through to the output.
Flip Flop
Set turns on Q, while Reset turns on Q'. With S and R both off, the last state is saved.
Alternate Flip-Flop
An alternate way to save data, which works by turning the inputs off
Protected Flip-Flop
D-Latch
With Write on, Data will be written to Q. With Write off, Q is saved and will remain unchanged.