Author Topic: 4 Bit Homemade Computer  (Read 19592 times)

0 Members and 1 Guest are viewing this topic.

Ashbad

  • Guest
4 Bit Homemade Computer
« on: April 08, 2011, 03:16:49 pm »
Me and my friend spent last weekend making a 2 bit computer out of ONLY household items.

What we used:

-6 nails
-3 miniature cardboard boxes
-6 low charge magnets
-tons of wire

:)

anyways, no picture yet, my friend is gonna give me a few pictures on monday -- hopefully by then we can allow for writing of programs in nibble hex :) using switches :P

Here's the plan on what the possible opcode table will be:

0 - NOP
1 - ADD O, A, B
2 - SUB O, A, B
3 - ADD A, B
4 - SUB A, B
5 - OUT A
6 - OUT B
7 - IN A
8 - IN B
9 - AND A, B
A - LD A, PC$ + 1
B - LD B, PC$ + 1
C - OUT PC$ + 1
D - AND A, B
E - IN PC$
F - RET

To do this program writing however, we'll need more materials -- we'll try to find the cheapest switches available ;D and more copper wire, we already use a full roll :P
« Last Edit: April 08, 2011, 04:53:01 pm by Ashbad »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: 2 Bit Homemade Computer
« Reply #1 on: April 08, 2011, 03:20:14 pm »
Sounds freakin' awesome!
and haha, your avatar reminds me of one of my teachers O.x
I'm not a nerd but I pretend:

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: 2 Bit Homemade Computer
« Reply #2 on: April 08, 2011, 03:20:39 pm »
Ohhh. Sounds like fun! I just spent half my math class diagnosing the problems with 4 of the schools "broken" calcs. 1 had battery acid. 3 had messed up LCDs, and one of those was still usable w/o getting the LCD replaced. :)

EDIT: And I still got 3 problems on my homework done! :) :)
« Last Edit: April 08, 2011, 03:21:14 pm by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Ashbad

  • Guest
Re: 2 Bit Homemade Computer
« Reply #3 on: April 08, 2011, 03:24:21 pm »
lol O.X

yeah it's pretty awesome.  I actually think it's possible that the calculations are considered really fast compared to other microprocessors -- you hook up the right wires, and then turn on the power wire, then BOOM! you hear a click of the bits setting to the result in the O register.

Right now we only have addition and subtraction "machines", but and AND one will be even easier :) the harder one was the SUB one x.x took an hour of figuring out a diagram.  Though, with 2 bit, it's possible that we can use the ADD operator for AND operations -- but then ADD will have no overload looping.  We still are figuring out how to do that.

I think Xeda will like the opcode table :D
« Last Edit: April 08, 2011, 03:43:29 pm by Ashbad »

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 2 Bit Homemade Computer
« Reply #4 on: April 08, 2011, 04:00:01 pm »
This isn't a microprocessor. It's a macroprocessor.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Ashbad

  • Guest
Re: 2 Bit Homemade Computer
« Reply #5 on: April 08, 2011, 04:04:49 pm »
O.o good point :P

Anyways, I found the schematic for an earlier design of this, which formed the basis for the AND machine (my friend called and said it's now working)

this was going to be an ADD machine, but now since we're gonna try to deal with overflow, we'll use it instead for AND operations ;)

And, we're discussing to see if going from 4 bit instructions (hex) to 5 bit instructions (base 32) will make this more awesome and allow for things such as conditionals and such.  those will be hard to make though x.x

Well, schematic: ;D

EDIT: and yes it's much more complex now :P this was like the very first edition XD
« Last Edit: April 08, 2011, 04:05:24 pm by Ashbad »

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 2 Bit Homemade Computer
« Reply #6 on: April 08, 2011, 04:07:30 pm »
So this is a circuitous diagram?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Ashbad

  • Guest
Re: 2 Bit Homemade Computer
« Reply #7 on: April 08, 2011, 04:10:22 pm »
somewhat ;) I suck at making those, so many symbols, so I kinda just represented things with pictures and such. 

Also, apparently, jumping around the program WILL be possible -- but I have no idea about conditionals -- I know how to wire up to the logic machines themselves, but how I'll make them DO the operations will be harder x.x

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 2 Bit Homemade Computer
« Reply #8 on: April 08, 2011, 04:33:19 pm »
What's the power source?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Ashbad

  • Guest
Re: 2 Bit Homemade Computer
« Reply #9 on: April 08, 2011, 04:35:44 pm »
at the moment, simple AAA's ;)

Also, I think I'll think about thinking about using both 4 bit registers (not THAT much more work thinking wise) and 8 bit RISC instructions, with a prefix and suffix nibble :)

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 2 Bit Homemade Computer
« Reply #10 on: April 08, 2011, 04:36:29 pm »
Wait-that's three nibbles!
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #11 on: April 08, 2011, 04:37:30 pm »
If he's using a 4 bit word size, that's not a problem ;)

EDIT: Topic name change  :P
« Last Edit: April 08, 2011, 04:38:05 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #12 on: April 08, 2011, 04:37:49 pm »
3 nibbles would be nice, but there's only one prefix and one suffix nibble == 2 nibbles ;)

maybe I should've said "Prefix and fields nibble" :P my bad

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #13 on: April 08, 2011, 04:38:27 pm »
That seems to be the case, given the new title of this topic.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #14 on: April 08, 2011, 04:40:03 pm »
yep ;)

I realized that since it wouldn't be horribly hard to up the bit number (past a certain extent), I might as well ;)

I wonder if I should also make an assembler that changes stuff from mnemonics to a diagram of bits... :) though for right now, construction and such.