Forums - Open Redstone Engineers
The CPU that broke 2 records!!! - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html)
+---- Forum: Completed Projects (https://forum.openredstone.org/forum-21.html)
+---- Thread: The CPU that broke 2 records!!! (/thread-10862.html)



The CPU that broke 2 records!!! - CrazyGuy108 - 09-10-2016

/warp nubcpu1

Records broken:
1. Deepest pipeline (4 stages)
2. Fastest clock (8 ticks)

After 10 unfininished CPUs, cray finally did it...

A couple weeks ago (didn't notice until capo pointed it out), I designed and implemented a very simple 4-bit CPU architecture, which I call NubCPU I.

[Image: ZGyrOiR.jpg]
Pls ignore the great wall of sans.
[Image: J3OIl2K.jpg]

It features 4 instructions (add, nand, load immediate, branch if zero flag). Forwarding and all that fancy stuff that is usually associated with pipelining was omitted for implementation simplicity, as well as memory access. There's 4 registers (including an implicit zero register), with reg1's contents mapped to a slightly hidden set of lamps. The CPU itself is 4bit.

Because there's no forwarding, you'll have to be smart with how you program it. A delay slot (or another independent instruction) must be put in between dependent operations, which is reflected in a program I put on its ROM, counting down from 5 to 0 then stopping.

Stages:
1. Fetch
- Increment/branch PC
- Load next instruction from ROM
2. Decode
- Parse opcode to generate control signals
- Read neccessary data
- Check flags if applicable
- Branch at the end of this cycle
3. Execute
- ALU does stuff or just does nothing Tongue
4. Writeback
- Write results (if applicable) to the specified register


RE: The CPU that broke 2 records!!! - josh03222 - 09-11-2016

omg crazy what's with all the undertale cancer shit


RE: The CPU that broke 2 records!!! - CrazyGuy108 - 09-12-2016

(09-11-2016, 06:37 AM)josh03222 Wrote: omg crazy what's with all the undertale cancer shit

Class made the sans wall and crim still has that pixel art


RE: The CPU that broke 2 records!!! - josh03222 - 09-12-2016

(09-12-2016, 11:31 PM)CrazyGuy108 Wrote:
(09-11-2016, 06:37 AM)josh03222 Wrote: omg crazy what's with all the undertale cancer shit

Class made the sans wall and crim still has that pixel art

I didn't know classy was an underfag


RE: The CPU that broke 2 records!!! - MW3_587786 - 11-21-2016

do I get a slice of the glory for offering companionship?


RE: The CPU that broke 2 records!!! - LambdaPI - 11-22-2016

Please stop bumping.