Skip to content

Releases

v0.2.0: first verified release

Choose a tag to compare

@HafizMutahirAhmed HafizMutahirAhmed released this 10 Nov 10:02
f8e8194

The first verified release of ooo-core: a 2-wide out-of-order RISC-V processor (RV32IM), written in SystemVerilog at the Micro Electronics Research Lab (MERL), UITU.

v0.1.0 (July 2026) had all 12 pipeline stages written in RTL. In v0.2.0 the whole core is checked against Spike, the official RISC-V simulator: every instruction it commits and every memory write is compared, and they match on every test.

ooo-core datapath

What the core does

  • 2-wide superscalar: fetches, renames and commits two instructions per clock.
  • Out of order: instructions wait in a 32-entry issue queue and start as soon as their inputs are ready; a 64-entry reorder buffer finishes them in program order.
  • Register renaming: 32 architectural registers mapped onto 64 physical registers.
  • Fast branch recovery: up to 8 branches in flight, each with a saved copy of the rename table. A wrong prediction removes only the instructions after that branch.
  • Branch prediction: gshare (12-bit history), 256-entry 2-way BTB and a return address stack, repaired after every wrong prediction.
  • Speculative loads: loads can run before older stores. Data is forwarded from the store queue byte by byte, and the core recovers if a load ran too early.
  • Execution units: two ALUs, two address units, a pipelined multiplier (FPGA DSP or ASIC Booth) and a divider.
  • Configurable: queue sizes, branch count and predictor sizes are parameters.

How it was verified

Test Result
Directed assembly and C programs + 100 random programs, compared against Spike 111 / 111, in three configurations (default, small, Booth multiplier)
RISCOF RV32I + RV32M architectural tests 47 / 47 (report.html below)
CoreMark and Dhrystone, every commit and memory write compared against Spike identical
Module testbenches 8 / 8

Performance (simulation, ideal one-cycle memories)

Benchmark Score
CoreMark 3.53 CoreMark/MHz
Dhrystone 2.1 1.30 DMIPS/MHz

Not in this version yet

  • No CSRs or traps (ecall, ebreak, interrupts): planned for v0.5.0.
  • Ideal memories, no caches: planned for v0.6.0.
  • Not on the FPGA yet: timing closure on the Artix-7 xc7a100t-1 is the next version, v0.3.0 (target 150 MHz), followed by IPC work in v0.4.0 (target above 5 CoreMark/MHz).

Try it

sim/scripts/run_all.sh          # unit tests + the core against Spike
sim/scripts/run_all.sh --full   # also all configurations, CoreMark and Dhrystone

Needs Verilator 5, riscv32-unknown-elf-gcc, Spike and Python 3. See the README.


Changes since v0.1.0

Changed

  • Repository restructured: rtl/<section>/, sim/, fpga/, docs/ (see STRUCTURE.md for old → new paths).
  • One file list (rtl/rtl.f) now feeds the simulations, the CI lint and Vivado.
  • PHT trained by the BIQ when a branch commits (wrong-path branches no longer train it).
  • BTB is 2-way set associative (BTB_WAYS), 256 entries; gshare 12-bit history; 8 branch tags; IQ 32, LQ 16, SQ 32 entries.
  • Free list recovers from a memory order flush by following the committed head instead of rebuilding from the AMT.
  • CDB arbiter stalls issue only after a LSQ / MUL / DIV result has waited one cycle (STALL_DELAY).

Added

  • MUL_DSP: 3-stage pipelined multiplier for FPGA DSPs (USE_DSP_MUL = 1, default); the Booth MUL_Unit stays for ASIC.
  • DMEM_DUAL_PORT option: separate store and load ports on the data memory (default off).
  • Observation ports on main_datapath (commits, memory writes).
  • New datapath diagram matching the current RTL: docs/diagrams/ooo_core_datapath.drawio (editable) and docs/images/ooo_core_datapath.png.
  • Verification: module testbenches, co-simulation of the whole core against Spike (directed and random programs, three configurations), RISCOF RV32I / RV32M, CoreMark and Dhrystone ports checked against Spike.
  • Vivado scripts for the Artix-7 xc7a100tcsg324-1: synthesis, place and route, timing maps.
  • sim/scripts/run_all.sh: the whole regression, exit code 1 on failure.
  • README, STRUCTURE, CONTRIBUTING, git workflow and versions, issue / PR templates, CODEOWNERS, CI, pre-commit checks, specification, design decisions, scorecard.

Fixed

  • LSQ no longer writes the data memory while reset is high (a random store queue entry could be written before the first clock edge; not visible on the FPGA, where flip-flops start at 0).
  • MUL / DIV units: iteration count and high word; results held until the CDB takes them; waiting results flushed on a misprediction.
  • EX stage: jalr target and not-taken redirect; branches and stores report completion.

Full changelog: v0.1.0...v0.2.0

v0.1.0: all 12 pipeline stages in RTL

Choose a tag to compare

@HafizMutahirAhmed HafizMutahirAhmed released this 10 Nov 10:06
41afc37

First version of ooo-core: all 12 pipeline stages written in RTL and merged stage by stage (PRs #1 to #6): prediction, fetch, decode, rename, dispatch, issue, register read, execute, LSQ, memory, writeback, commit.

Not yet verified against Spike, and it still has bugs fixed in v0.2.0 (MUL/DIV units, jalr target, not-taken redirect). Use v0.2.0 or later.