Logic Gates
NOT
Output is the opposite of the input
OR
Output is on if any inputs are on, otherwise output is off
NOR
Opposite of OR: Output is off if any inputs are on, otherwise output is on
AND
Output is only on if all inputs are on, otherwise output is off
NAND
Opposite of AND: Output is only off if all inputs are on, otherwise output is on
XOR
Output is on if inputs are not equal, otherwise output is off
XNOR
Opposite of XOR: Output is off if inputs are not equal, otherwise output is on
Logic Gate Simulator Gates
User Input
Clicking the gate will toggle the output
User Output
Displays the state of its input
Bus Transmitter
Converts an array of normal inputs into one single bus output
Bus Receiver
Converts a bus input into an array of normal outputs
Clock
Outputs a constant square pulse (on and off repeatedly)
Decoder
Takes a bus input (binary address) and sets the corresponding output on. Number of capable outputs = 2^(number of bits in the input bus)
Display
Takes a bus input and displays the decimal equivalent
Screen
Takes an array of bus inputs, where each one corresponds to a row of pixels. each bit in the bus corresponds to a specific pixel
Comment
Rename for your own purposes
ROM
Takes a bus input (binary address) and outputs the corresponding column of set bits. See "Loading ROM from file"