This is a part of a project to construct a 4 BIT CPU from scratch. I will be starting with a simple NOR gate and building it up to a working model with ALU registers, RAM and ROM. I will be designing an op code and assembler to go with it. Progress and detail can be found on my blog here

This file cotains 4 bit versions of basic logic gates.

This is part of a project to construct a 4 BIT CPU from scratch. I will be starting with a simple NOR gate and building it up to a working model with ALU registers, RAM and ROM. I will be designing an op code and assembler to go with it. Progress and detail can be found on my blog here.

This file contains the basic logic gates.

This is a summary of basic logic gates with logic circuits, and a truth table of the next gates: NOT, OR, AND, NOR, NAND, XOR, and XNOR. All the logic gates have 2 inputs (A, B) and 1 output (Out), except NOT gate that has 1 input (In) and 1 output (Out).

The inputs in each gate (A, B) can be 0 or 1, and the users can change (0 to 1 or 1 to 0) the value, with a click on each small box of each input.

The output in each gate (Out) has connected a red led to signal if the output is 1 or 0 (1 is red led, 0 is led without color).

Add numbers from zero to three at the top (input 1) and bottom (input 2) and see what you get on the other end.

My first experiment with Subcircuits.