1 of 23

Problem 2: Sticks and Stones

Sahil Bhalla and Selim Zoorob

2 of 23

Prompt

Using Sticks on seesaws to create various logic gates and circuits

0

1

1

0

3 of 23

OR, AND, XOR, and NOT Gates

How do we make two input gates out of toothpicks on a 2D plane?

4 of 23

The 10 = 01 Simplification

  • All Gates are Symmetrical (input of 10 = 01)
  • Since this circuit is hand operated we can switch 10 to 01 manually, allowing us to not care about 10 inputs
  • Simplifications
  • A AND B = A
  • A OR B = B
  • A XOR B = (NOT A) AND B

5 of 23

4-Bit Adder

A Full Adder Adds two bits (plus a carray) and computes the sum and carry out

S = A XOR B XOR Cin

Cout = A AND B OR Cin AND (A XOR B)

4-Bit is just Full Adder 4 Times

6 of 23

1 Bit Adder and physical design of other logic gates

7 of 23

8 of 23

Add 0 1

What do we get?

9 of 23

D = 1

10 of 23

S = 1

11 of 23

E = 0

12 of 23

F = 0

13 of 23

C out = 0

14 of 23

Final results:

S=1

C = 0 (by default)

C out = 0

15 of 23

Programming Framework

-Example Calculation through each step of the 4-bit adder

-Gates modelled after toothpick design to simulate

16 of 23

17 of 23

2x1 MUX and 1 bit adder: Script testing

18 of 23

2-1 MUX

Chooses Between two inputs based on selector input

Using this formula we can prototype the MUX in code

19 of 23

2-1 MUX Design

20 of 23

40cm

40cm

21 of 23

Input of 0 1 1 in the 2x1 MUX:

We obtain 1 (Y=1)

22 of 23

Conclusions

  • Modern computers are built on simple mathematical concepts
  • Even the most complex algorithms have a relatively simple foundation
  • We barely scratched the surface of binary understanding and its possibilities
  • It is interesting to see that the concepts were translated into a physical device
  • This science has truly paved the our modern future and has changed the understanding of the world around us

23 of 23

Sources: