Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
18 May, 2013, 15:50:51 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: 4 Bit Homemade Computer -  (Read 3358 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Ashbad
Guest
« on: 08 April, 2011, 21:16:49 »
+2

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

Smiley

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 Smiley using switches Tongue

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 Grin and more copper wire, we already use a full roll Tongue
« Last Edit: 08 April, 2011, 22:53:01 by Ashbad » Logged
aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Online Online

Gender: Male
Last Login: Today at 15:43:23
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3106


Total Post Ratings: +120

View Profile
« Reply #1 on: 08 April, 2011, 21:20:14 »
0

Sounds freakin' awesome!
and haha, your avatar reminds me of one of my teachers O.x
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
Binder News
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 22:50:58
Date Registered: 26 October, 2010, 22:05:05
Location: In a pit on an island somewhere in the Atlantic.
Posts: 779


Total Post Ratings: +43

View Profile
« Reply #2 on: 08 April, 2011, 21:20:39 »
0

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. Smiley

EDIT: And I still got 3 problems on my homework done! Smiley Smiley
« Last Edit: 08 April, 2011, 21:21:14 by Binder News » Logged

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
« Reply #3 on: 08 April, 2011, 21:24:21 »
0

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 Smiley 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 Cheesy
« Last Edit: 08 April, 2011, 21:43:29 by Ashbad » Logged
Freyaday
The One And Only Serial Time Killing Catboy-Loli-Ballerino
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:43:40
Date Registered: 24 February, 2011, 17:10:56
Location: ¿¿¿
Posts: 1887


Total Post Ratings: +108

View Profile WWW
« Reply #4 on: 08 April, 2011, 22:00:01 »
0

This isn't a microprocessor. It's a macroprocessor.
Logged

In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


Beware the Bitulator! ,.,./`My Artwork!
Ashbad
Guest
« Reply #5 on: 08 April, 2011, 22:04:49 »
0

O.o good point Tongue

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 Wink

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: Grin

EDIT: and yes it's much more complex now Tongue this was like the very first edition Big smile


* Four schematic.png (11.01 KB, 563x437 - viewed 584 times.)
« Last Edit: 08 April, 2011, 22:05:24 by Ashbad » Logged
Freyaday
The One And Only Serial Time Killing Catboy-Loli-Ballerino
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:43:40
Date Registered: 24 February, 2011, 17:10:56
Location: ¿¿¿
Posts: 1887


Total Post Ratings: +108

View Profile WWW
« Reply #6 on: 08 April, 2011, 22:07:30 »
0

So this is a circuitous diagram?
Logged

In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


Beware the Bitulator! ,.,./`My Artwork!
Ashbad
Guest
« Reply #7 on: 08 April, 2011, 22:10:22 »
0

somewhat Wink 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
Logged
Freyaday
The One And Only Serial Time Killing Catboy-Loli-Ballerino
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:43:40
Date Registered: 24 February, 2011, 17:10:56
Location: ¿¿¿
Posts: 1887


Total Post Ratings: +108

View Profile WWW
« Reply #8 on: 08 April, 2011, 22:33:19 »
0

What's the power source?
Logged

In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


Beware the Bitulator! ,.,./`My Artwork!
Ashbad
Guest
« Reply #9 on: 08 April, 2011, 22:35:44 »
0

at the moment, simple AAA's Wink

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 Smiley
Logged
Freyaday
The One And Only Serial Time Killing Catboy-Loli-Ballerino
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:43:40
Date Registered: 24 February, 2011, 17:10:56
Location: ¿¿¿
Posts: 1887


Total Post Ratings: +108

View Profile WWW
« Reply #10 on: 08 April, 2011, 22:36:29 »
0

Wait-that's three nibbles!
Logged

In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


Beware the Bitulator! ,.,./`My Artwork!
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 00:41:29
Date Registered: 15 August, 2010, 09:18:54
Posts: 3187


Total Post Ratings: +218

View Profile
« Reply #11 on: 08 April, 2011, 22:37:30 »
0

If he's using a 4 bit word size, that's not a problem Wink

EDIT: Topic name change  Tongue
« Last Edit: 08 April, 2011, 22:38:05 by Qwerty.55 » Logged

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ
Ashbad
Guest
« Reply #12 on: 08 April, 2011, 22:37:49 »
0

3 nibbles would be nice, but there's only one prefix and one suffix nibble == 2 nibbles Wink

maybe I should've said "Prefix and fields nibble" Tongue my bad
Logged
Freyaday
The One And Only Serial Time Killing Catboy-Loli-Ballerino
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:43:40
Date Registered: 24 February, 2011, 17:10:56
Location: ¿¿¿
Posts: 1887


Total Post Ratings: +108

View Profile WWW
« Reply #13 on: 08 April, 2011, 22:38:27 »
0

That seems to be the case, given the new title of this topic.
Logged

In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


Beware the Bitulator! ,.,./`My Artwork!
Ashbad
Guest
« Reply #14 on: 08 April, 2011, 22:40:03 »
0

yep Wink

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

I wonder if I should also make an assembler that changes stuff from mnemonics to a diagram of bits... Smiley though for right now, construction and such.
Logged
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.188 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.