# A Student Built an Out-of-Order RISC-V CPU from Scratch in Bluespec

Original title: Building an Order RISC-V CPU from scratch

> Hacker News story 50392528 · language: en · submitted 2026-11-06
> Web version: https://zeli.app/story/50392528
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 34 · by [random__duck](<https://news.ycombinator.com/user?id=random__duck>) · 💬 6
[original](<https://prawns.dev/blogs/specula>) · [HN discussion](<https://news.ycombinator.com/item?id=50392528>)

## Summary

Bored with his engineering courses, a student set out to replicate the out-of-order execution inside his Ryzen 9 laptop. The result, Specula, is a 32-bit speculative RISC-V core written in Bluespec SystemVerilog, with register renaming, a 32-entry reorder buffer, a gshare branch predictor, and Sv32 virtual memory. It also boots xv6 and synthesizes for an Artix-7 FPGA. The write-up walks through the frontend, dispatch, and retirement machinery in plain language.

## Key quote

> The way I learn is to read about something, and try and replicate it to see what falls apart along the way, as that moment teaches far more than any theoretical class a person could attend.

## HN discussion (6 comments)

### [Joker_vD](<https://news.ycombinator.com/item?id=50441992>)

> For a general reference, here [0] (PDF) is a somewhat detailed description (that is, it actually discusses how this particular implementation solves the problems that arise before it) of an out-of-order implementation for a simplistic RISC ISA. Suffice to say, it doesn't really have all that much in common with the classical 5-stage RISC pipeline.
>
> [0] https://user.eng.umd.edu/~blj/risc/RiSC-oo.1.pdf

### [Narishma](<https://news.ycombinator.com/item?id=50441648>)

> Title should be "Out of Order RISC-V core from scratch - Specula". Don't know why it was changed.

### [lp92](<https://news.ycombinator.com/item?id=50446482>)

> \>  11.9 MHz (meaning it is as slow as a herd of snails traveling through peanut butter)
>
> To be fair, this is almost 6x faster than the Apollo Guidance Computer and running on hardware accessible for a low cost.

---

## Cite

- Page: https://zeli.app/story/50392528
- Date: 2026-11-06
- Source: prawns.dev (https://prawns.dev/blogs/specula)
- Hacker News: https://news.ycombinator.com/item?id=50392528

## Other languages

- zh: https://zeli.app/zh/story/50392528 · markdown: https://zeli.app/zh/story/50392528.md
- ja: https://zeli.app/ja/story/50392528 · markdown: https://zeli.app/ja/story/50392528.md
- ko: https://zeli.app/ko/story/50392528 · markdown: https://zeli.app/ko/story/50392528.md
- de: https://zeli.app/de/story/50392528 · markdown: https://zeli.app/de/story/50392528.md
- es: https://zeli.app/es/story/50392528 · markdown: https://zeli.app/es/story/50392528.md
- ru: https://zeli.app/ru/story/50392528 · markdown: https://zeli.app/ru/story/50392528.md
