Sign in with
Sign up | Sign in

VIDEO: Minecraft CPU Has Memory, Performs Division

By - Source: Minecraft Forums | B 26 comments

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

Display 26 Comments.
This thread is closed for comments
  • 5 Hide
    plznote , April 21, 2011 12:27 AM
    But can it play Crysis?
  • 1 Hide
    bugo30 , April 21, 2011 12:32 AM
    Quote:
    it is possible that mine is completely unique


    I see what you did there
  • 1 Hide
    11796pcs , April 21, 2011 12:34 AM
    Thank you for making me feel really stupid!
  • 0 Hide
    FloKid , April 21, 2011 12:44 AM
    The question is: CAN... you dig it? ha got ya.
  • 0 Hide
    Yuka , April 21, 2011 12:44 AM
    Virtual machine inside a Virtual machine is a little "fat" as a description IMO.

    Anyway, one hell of a job, rofl.

    Cheers!
  • 0 Hide
    Darkerson , April 21, 2011 12:46 AM
    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!
  • 0 Hide
    warmon6 , April 21, 2011 12:56 AM
    Now i wounder when hell go in the cpu business and compete with intel, amd, and arm. :lol:  (im joking)

    Although nice work!
  • 0 Hide
    Anonymous , April 21, 2011 1:06 AM
    pc within a pc, computation.
  • 0 Hide
    warmon6 , April 21, 2011 1:07 AM
    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
  • 3 Hide
    Anonymous , April 21, 2011 1:57 AM
    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..
  • 0 Hide
    jprahman , April 21, 2011 2:01 AM
    This is pretty amazing.
  • 0 Hide
    arlandi , April 21, 2011 2:13 AM
    "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!!!!!
  • 0 Hide
    eddieroolz , April 21, 2011 2:33 AM
    Great project. I'd love to create something like this one day.
  • 0 Hide
    pwrntspd , April 21, 2011 2:39 AM
    wow...yeah id do that too, but i realized ahead of time that it was a total waste of time.
  • 0 Hide
    megamanx00 , April 21, 2011 4:25 AM
    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 ^_^
  • 0 Hide
    danwat1234 , April 21, 2011 4:46 AM
    Crap I wish I thought of this. how awesome
  • 1 Hide
    Benihana , April 21, 2011 7:38 AM
    You know what, I may just buy a copy of MineCraft now, just so I can brush up on my circuitry work.
  • 1 Hide
    jcb82 , April 21, 2011 12:38 PM
    Wow I feel really dumb right now.
  • 0 Hide
    Anonymous , April 21, 2011 2:16 PM
    SSSSSSSSSSSssssssss......
  • 0 Hide
    virtualban , April 21, 2011 2:42 PM
    Amazing...
Display more comments