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

0 Members and 1 Guest are viewing this topic.

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 #15 on: April 08, 2011, 04:42:26 pm »
Are you going to make your own keyboard or are you going to use a standard PS/2 interface?
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 #16 on: April 08, 2011, 04:44:01 pm »
no, that stuff is too complex for my point in this -- think of a PC from 1950, with 64 bytes of RAM and 2-4 bit ALU's.  That's what this is like ;)

The goal is to make it completely out of household products ;)

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 #17 on: April 08, 2011, 04:45:54 pm »
Does that include blue lobsters?
Lobster Abacus!
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 #18 on: April 08, 2011, 04:49:34 pm »
I should look in my fridge :) hmm, maybe to store data I can have lobster chunks and setting bits adds lemons to the lobster "bits" and to reset them you eat them.

I think I'll write up a decent ALU design later today, so I can do 4 bit math fast and with little wire ;)

EDIT: and that "AND" machine is actually an "OR" machine -- sorry, I had my foot in my mouth ;)
« Last Edit: April 08, 2011, 04:50:12 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: 4 Bit Homemade Computer
« Reply #19 on: April 08, 2011, 04:51:44 pm »
What are you going to do with the rest of the wire? Maybe you could use the lobsters for power?
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: 128 Bit Homemade Computer
« Reply #20 on: April 08, 2011, 04:52:37 pm »
I bet they give off more electricity than the electric eels I tried, so that would actually be a good idea :)

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #21 on: April 08, 2011, 09:05:10 pm »
Well, after some fabulous input from runer, I have ideas for tons of different instructions and registers.  The opcode table is still far from complete, but I can explain the registers:

A - the primary arithmetic register.  Used in tons of instructions involving math and logic.  4 bit.
B - fulfills the role of A, less instructions support it, but its good for when A is tied up.  4 bit.
C - General use register, connected closely to the O output register for quicker transport of values for shipping.  4 bit.
D - General use register, connected closely to the I input register for quicker transport of values in shipping.  4 bit.
E - general use register, can be used to complement other registers to make 8 bit values. 4 bit.
F - flag register -- includes the C, Z, N bit flags and another general use bit used in more complex instructions.  4 bit.
G - (proposed, unsure if I'll keep it) includes more flags such as parity/overflow, and a few extra bits for really complex instructions.  4 bit.
I - input register, directly deals with the input received from a port in 4 wire form, transfers data quickly to D and slower to other registers.  4 bit.
O - output register, directly deals without the output sent out to a port in 4 wire form, transfers data quickly to C and slower to other registers.  4 bit.
PC$ - the program counter register, determines where in a 2048 bit program the instructions are to be read from.  8 bit.
PG$ - the page counter register, determines what page of a 256 page (each page 2048 bits) program instructions are to be read from.  Used in calculations and for easy management of pages without many ports -- however it relies on a port to actually swap pages. 8 bit.
N - the frequency register.  Directly deals with the speed at which a program can run.  The higher the number, the slower the program goes.  4 bit.
U8 - no use specified 8 bit register.
U16 - no use specified 16 bit register.
U32 - no use specified 32 bit register.
U64 - no use specified 64 bit register.

The no use ones can be accessed with a few more complex instructions, and can be used if you wanna use large numbers for some unknown reason.  Keep in mind, these would be very slow (unlike the other less used registers, which are really fast -- these are accessed in a different way than the others due to their size, with exception of A8 being connected like PC$ (fast) and PG$ (medium fast))

:)

Edit: I just realized I should have some more, but I'm sure people will point out things like a double word one like HL and an offset one.  Give any suggestions :)
Edit2: and maybe another more general use one or two?
« Last Edit: April 08, 2011, 09:10:27 pm by Ashbad »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: 4 Bit Homemade Computer
« Reply #22 on: April 09, 2011, 12:41:11 am »
I love this idea to make a processor out of household items :P

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #23 on: April 09, 2011, 10:34:35 am »
Well apparently after telling my friend about the new and complex opcode table, he lost interest in making this completely out of household items x.x

So, instead, I told him about logism, so we're gonna just fool around with that for now ;)

So.... He says that if we just draw stuff up for logism, it should be around 64 bits... I said we should make a 4 bit processor first ;) what do you guys think?
« Last Edit: April 09, 2011, 10:34:54 am by Ashbad »

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #24 on: April 09, 2011, 10:39:26 am »
Sounds like a cool project!  Good luck. ;D

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #25 on: April 09, 2011, 10:41:10 am »
Thanks zTrumpet!  We'll try to make it the fastest 4 bit processor ever ;)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #26 on: April 10, 2011, 02:34:25 pm »
will you explain what you use for switches. Is it the magnets?
What are you using as a power supply?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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 #27 on: April 10, 2011, 02:43:17 pm »
*Cough* 64 bit is a pain to wire *cough*

You could shoot for 8 bit, though.

Also, completely ignore my tutorial if you'd like to make the next 4 bit i7 ;)
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #28 on: April 10, 2011, 02:44:58 pm »
Thanks for that tutorial qwerty, it helped :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #29 on: April 10, 2011, 03:37:39 pm »
Interesting. I'm currently working on a base-4 2 bit processor, so it also has 16 commands. I have 4 addressing bits, though, so I can do a lot more with said commands :P BTW, 4 quaternary bits = up to 256 options :)

Sounds like a cool project! Mine's still in the design phase :P I've only managed some of the base circuits, like a multiplexer to choose the command, the memory, and the three base logic gates. XOR is not happening :P