Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Ads

VIDEO: Minecraft CPU Has Memory, Performs Division

by - source: Minecraft Forums

It's a virtual machine performing inside of a virtual machine. Excellent.

Over on the Minecraft forums, user "Salaja" spent the last month creating a virtual redstone CPU within the popular block-building game Minecraft. According to Salaja, the virtual machine (within a virtual machine) can actually hold up to 16 lines of code in its memory, execute said code, and then print out the result in hexadecimal onto 7 segment displays.

"This CPU was made with extensive use of INVedit, MCedit and peaceful difficulty, and wouldn't have been possible without them," he said, adding that anyone can use his designs as long as (1) he receives some credit, and (2) they're used for non-commercial purposes. "What I want to avoid is people claiming that they made this CPU, when they really didn't."

Other than the video seen below, Salaja offers other videos to demonstrate his Minecraft brilliance including "Random Number Generator," "Add and Subtract," and "Division."

"I only had a basic understanding of logic gates, flipflops, and adders before starting this project," he said when asked how he figured out how to build the working CPU. "I built it step by step, adding whatever I thought it need. I didn't follow any existing CPU architecture, so it is possible that mine is completely unique."

Salaja started by deciding on sizes for instruction (16-bit) and ALU (8-bit). He then built a giant block of memory and a way to write values for each one-- this can be done by numerous levers or a counter that selects which line you're writing to. Next he built a bus along the outputs of the memory flip flops, and added another counter to select only one instruction to be sent onto the bus at any one time.

"The counter activates a heap on AND gates on only one of the memory slots, meaning all the other slots are having their output blocked from getting onto the bus," he said, adding that builders should keep going "until it does stuff."

Minecraft Virtual CPU with Memory

Share:
26
Comments
X
Submit

Comments
Add your comment
plznote 04/21/2011 2:27 AM
Hide
-5+

But can it play Crysis?

bugo30 04/21/2011 2:32 AM
Hide
-1+

Quote :it is possible that mine is completely unique


I see what you did there

11796pcs 04/21/2011 2:34 AM
Hide
-1+

Thank you for making me feel really stupid!

FloKid 04/21/2011 2:44 AM
Hide
-0+

The question is: CAN... you dig it? ha got ya.

Yuka 04/21/2011 2:44 AM
Hide
-0+

Virtual machine inside a Virtual machine is a little "fat" as a description IMO.

Anyway, one hell of a job, rofl.

Cheers!

Darkerson 04/21/2011 2:46 AM
Hide
-0+

Someone did something like this in Dwarf Fortress a while back, although I dont remember if it was as complex as this or not.. Pretty damn neat none the less!

warmon6 04/21/2011 2:56 AM
Hide
-0+

Now i wounder when hell go in the cpu business and compete with intel, amd, and arm. :lol: (im joking)

Although nice work!

Anonymous 04/21/2011 3:06 AM
Hide
-0+

pc within a pc, computation.

warmon6 04/21/2011 3:07 AM
Hide
-0+

omg! 0.0..... look at this video just to see how large this thing really is!

http://www.youtube.com/watch?v=HnrO3cStWOI&NR=1

Anonymous 04/21/2011 3:57 AM
Hide
-3+

yo we heard you like pcs so we put a pc within your pc so you can compute while you spend way too much time on minecraft..

jprahman 04/21/2011 4:01 AM
Hide
-0+

This is pretty amazing.

arlandi 04/21/2011 4:13 AM
Hide
-0+

"I only had a basic understanding of logic gates, flipflops, and adders before starting this project,"

i bet he now knows A LOT MORE!!

awesome stuff.
maybe somewhere in the future, this minecraft platform can grow into something advance enough to even have a fully operational computer!
maybe even an Altair Emulator???? or an Atari emulator complete with joystick and TV!!!!!

eddieroolz 04/21/2011 4:33 AM
Hide
-0+

Great project. I'd love to create something like this one day.

pwrntspd 04/21/2011 4:39 AM
Hide
-0+

wow...yeah id do that too, but i realized ahead of time that it was a total waste of time.

megamanx00 04/21/2011 6:25 AM
Hide
-0+

This guy is going to design alot of CPUs. Some ask why, he asks "why the hell not". To me this is like speanding a heap of time to write something in QBasic that would take a couple of hours in C++ or Java just to show you can do it. Well, to each his own ^_^

danwat1234 04/21/2011 6:46 AM
Hide
-0+

Crap I wish I thought of this. how awesome

Benihana 04/21/2011 9:38 AM
Hide
-1+

You know what, I may just buy a copy of MineCraft now, just so I can brush up on my circuitry work.

jcb82 04/21/2011 2:38 PM
Hide
-1+

Wow I feel really dumb right now.

Anonymous 04/21/2011 4:16 PM
Hide
-0+

SSSSSSSSSSSssssssss......

virtualban 04/21/2011 4:42 PM
Hide
-0+

Amazing...

Anonymous 04/21/2011 4:59 PM
Hide
-0+

Dude needs a girlfriend.

RabidFace 04/21/2011 6:40 PM
Hide
-1+

chokaho :
Dude needs a girlfriend.



Who says he doesn't.

Dude needs a job at a "big name" company. And this could be his portfolio.

guruofchem 04/21/2011 7:39 PM
Hide
-0+

Pretty amazing, yet simultaneously pointless - I love it!

maestintaolius 04/21/2011 8:17 PM
Hide
-1+

mouse24 :
UGH i had trouble making double doors open with a pressure block! now i feel retarded


It is amazing how difficult something can be that is so seemingly simple on the surface. It gives you a healthy respect for the magic that is modern day electronics.
pWnD :
SSSSSSSSSSSssssssss......


Creeper says, "That's a nice CPU you have there. It'd be a shame if something were to happen to it..." (yes, I realize he was playing on peaceful difficulty)

bavman 04/21/2011 9:08 PM
Hide
-0+

This is freaking amazing. Nice job dude

redeadfred 04/21/2011 9:33 PM
Hide
-1+

There is a free simple 2D simulation version of this feature of minecraft available as a standalone game from "Zach", the originator of "infiniminer", the concept game upon which minecraft was based.

Just go to Zachtronics Industries website and pick it up. It's called "Kohctpyktop".

Ads

Best offers

Newsletters


OK
Ads