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

Your browser does not support the HTML 5 Canvas.
Output is the inverse of the input.

Half Adder

Your browser does not support the HTML 5 Canvas.
Takes two binary inputs, and adds them together.

Non-Combinational Logic

Your browser does not support the HTML 5 Canvas.
Simple system with a feedback loop, so that the output is not a function of only the input.

Full Adder

Your browser does not support the HTML 5 Canvas.
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

Your browser does not support the HTML 5 Canvas.
Takes a 2-bit input, and uses it to select just one of the 4 outputs to be on.

4-to-1 Multiplexer

x
Uses a 4-to-2 encoder to pick one of the 4 inputs to pass through to the output.

Flip Flop

x
Set turns on Q, while Reset turns on Q'. With S and R both off, the last state is saved.

Alternate Flip-Flop

x
An alternate way to save data, which works by turning the inputs off

Protected Flip-Flop

x

D-Latch

x
With Write on, Data will be written to Q. With Write off, Q is saved and will remain unchanged.