Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.61 KB

File metadata and controls

30 lines (20 loc) · 1.61 KB

Gates can make a circuit that adds numbers

This is a 3 bit adder created with logic.ly.

3 + 3

Adding up the numbers in a table.

3 + 3

This is how gates might look...more friendly than logic.ly

AND gates

Interaction would be clicking circles to turn on / off inputs to gates. Each of the two 3 bit inputs would also show the decimel value. The table would update too.

  • Is a 3 bit adder too many gates to easily understand, should it be 2 bits instead?
  • Will we be able to lay out this many gates in a neat way?
  • Doesn't seem like it'll be very easy to automate laying out the gates and wires, more likely we'll lay them out by hand so they look neat and easy to understand.
  • Group gates to show the repeating "full adder" unit that exists for each bit.

Next

  • draw adder in sketch to see how neatly we can lay it out
  • create React components for AND, OR, XOR gates

How this might work in React + Redux

  • Redux state keeping track of which gates are in a circuit, and how they're connected
  • Logic (is it a reducer...kind of want something that's pure javascript and abstracted from redux) that updates a network of gates
  • React components for gates, wires that are bound to redux store that draws gates, wires colored appropriately
  • Layout (x, y locations or gates and wires) is written by hand