PDA

View Full Version : Memory Addressing System



Chippiewill
05-07-2011, 04:21 PM
I've spent the past couple of hours designing and building a memory addressing system for a bank system I'm making. Each address is 5bits in length so in total I'll be able to address 32bits (2^5) of memory.

Currently I've only built 8 bits of the system, once I'm done I'm going to stack 8-10 of these on top of each other so that I can store a lot of data (Each stack will hold one bit of each person's bank code).

http://img706.imageshack.us/img706/4420/memoryaddresing.png

(The glowstone is to cover up the redstone which delivers the state of the bit of the address to the gates, it also indicates which gates are working in pairs.)

If I'm really clever I might work out a way to use mcedit to edit it so it's 8bits of addressing which is far more useful for general purposes.

Chippiewill
05-07-2011, 05:30 PM
Finished :D
http://img232.imageshack.us/img232/925/memoryaddresing2.png

If you really want an explanation of it then just ask.

dbgtz
05-07-2011, 05:35 PM
Wow that looks pretty epic, what does it do, store values of how much there is or...?

Chippiewill
05-07-2011, 05:45 PM
Wow that looks pretty epic, what does it do, store values of how much there is or...?
Basically I can give it a 5bit binary number such as

11111
or
10101

And it'll deliver me the value at that address, it's just a simple matter of adding an rsnor latch to the end of each row and building one of these in reverse so it can also write values for it to become proper memory, but this is most of the hard work.

I might make a video of it working later.

Johno
05-07-2011, 07:38 PM
It always amazes me the kind of things people can do with redstone :)

Chippiewill
05-07-2011, 07:40 PM
It always amazes me the kind of things people can do with redstone :)

In comparison to something like an ALU this is really basic. Just tons of upon tons of "And" gates and various other gates.

Recursion
05-07-2011, 08:02 PM
Now make me a 2MHz processor.

Chippiewill
05-07-2011, 08:15 PM
Now make me a 2MHz processor.

I can make you a 1HZ x1 processor, it's sole function is as an and gate.

Chippiewill
05-07-2011, 09:09 PM
http://www.youtube.com/watch?v=1d0u-fXrlsA
Little video of it in action. I show where the address is entered, then I go and flip the state of a particular bit, walk back and enter the address into it and you can see that the output changes to the state outputted by the bit. I do it a second time so you can't call shenanigans. I didn't actually notice my mic was plugged in whilst recording otherwise I would have just commentated it.

Trinity
05-07-2011, 10:37 PM
I'll be honest, I have no idea what that video is supposed to show, I just barely understand memory systems in minecraft when the creator goes over them with commentary.
Here's something that might interest you though/give you ideas, jump to 8:40 >> http://www.youtube.com/watch?v=Oc6spHvGPtQ

Chippiewill
05-07-2011, 11:10 PM
Here's something that might interest you though/give you ideas, jump to 8:40 >> http://www.youtube.com/watch?v=Oc6spHvGPtQ

Ahh, that's very interesting, it's not very practical for use as RAM (I need the speed and you'd need to cycle this entire thing for identification) and because you'd have to have some way of detecting which bit of the loop you're on so you'd end up wasting a lot of storage on identification. It's interesting because it has 48 bytes on each of the loops and there are thirty loops. I'd need five loops for identification (2^6 = 64), but then I'd be left with 24 bits on each row for data storage which is pretty snazzy I guess. There's no *real* way to edit the data though so only really good for static data. It's also quite nice having the address right next to the data.

Edit: Actually, they said it could be a maximum of 30 long but no doubt there's a way around that so maybe I can find I way to get 64 bits on each row.


What I really meant to say:
Thanks for the link, I'll see if I can find a use for that tomorrow ;P

Recursion
07-07-2011, 04:30 PM
I can make you a 1HZ x1 processor, it's sole function is as an and gate.

1Hz just isn't the same :(

Want to hide these adverts? Register an account for free!