0:00 / 0:00
CHUNGUS 2 - A very powerful 1Hz Minecraft CPU
sammyuri
166K subscribers • 1 video on Hallway
- Recommended by 1 person: 1 on Lobsters.
- Presented by Sammyuri
- Linked in the descriptionsammyuri/chungus-2-assemblerMCHPR/MCHPRS
Intermediate. Assumes working knowledge.
2M views4 years ago1 recommendation
HardwareComputer scienceCPUs and computer architectureRetro computing
Sammyuri demonstrates an 8-bit CPU built inside Minecraft featuring a 4-stage pipeline, branch prediction, and a data cache.
CHUNGUS 2: Electric Boogaloo - A Minecraft CPU capable of running Tetris, snake, connect 4, graph rendering... and more! CHUNGUS stands for Computational Humongous Unconventional Number and Graphics Unit by Sammyuri. The CPU is also very large. In order to achieve a 10 tick clock speed despite its enormous size, the CPU makes use of techniques such as an instruction pipeline, automatic data cache and simple branch prediction. ------------------------------------------------------------------- CPU specs - 8 bit data, 16 bit fixed size instruction length - 1Hz clock speed, 4 stage instruction pipeline (fetch - decode - execute - writeback) - 64 byte automatic 8-way associative data cache and 256 bytes RAM - Up to 256 addressable I/O ports - 7 general purpose registers - Over 40 ALU functions, including a hardware barrel shifter, multiplier, divider and square rooter - 32x128 byte program pages for a total of 4KiB program storage Other hardware used in video - 32x32 buffered pixel screen, draw and erase pixels, rectangles, up to 8 4x4 sprites - 12x2 character ASCII text display - 2x 8-bit integer display (signed or unsigned) - 8-input NES-style controller - 3 bit pseudo-RNG ------------------------------------------------------------------- Links Instruction set - docs.google.com/spreadsheets/d/10_ZERVmsKr0uqQXXbHxMQW-aBpHn… Assembler and example programs - github.com/sammyuri/chungus-2-assembler ------------------------------------------------------------------- Full CPU explanation as well as individual program showcase and explanation coming soon™ Want to see the CPU itself? Hop onto mc.openredstone.org, head to /build and teleport to /warp CHUNGUS2 Example programs were recorded on MCHPRS, a server that speeds up redstone by up to 180x, which proved essential to make some of the slower games (such as Tetris) playable in real time. github.com/MCHPR/MCHPRS Replay mod was also used to record programs running. ------------------------------------------------------------------- Intro Showcase Assembler Programs Music: MDK - Jelly Castle (Evan King retro mix) I do NOT own the music #Minecraft #RedstoneWhy it's here
1 person recommends thisWhat people say. Recommended as an impressive demonstration of building a functional, pipelined CPU inside Minecraft.