arai.rv

CPU & compiler engineer

One instruction per clock, on a good day.

See the silicon →Open to architecture and compiler contracts

Kenji Arai·CPU & compiler engineer

cycle0
retired0
CPI–
stalls0
flushes0

Press run, or step one clock at a time.

projects

Cores, compilers, cycles

Eight projects from RTL to the compiler backend. The badge is the number each one moved.

Hikari RV64 core
Microarchitecture

Hikari RV64 core

Sakura Silicon+38% IPC

An out-of-order RISC-V core with a 6-wide front end and a TAGE predictor.

2025
TAGE-lite predictor
Branch prediction

TAGE-lite predictor

Sakura Silicon−41% MPKI

A smaller TAGE variant that fits the area budget of an embedded core.

2024
RVV auto-vectoriser
Compiler

RVV auto-vectoriser

LLVM upstream3.1× loops

Loop vectorisation improvements for the RISC-V vector extension.

2023
Stride prefetcher
Memory

Stride prefetcher

Fujimi Systems−27% stalls

An L2 stride prefetcher that learns from load PCs without polluting the cache.

2022
FPGA soft core
FPGA

FPGA soft core

Open source · 2.6k ★120 MHz

A 5-stage RV32IM core for teaching, with a cycle-accurate visual debugger.

2021
Emulator JIT
Emulation

Emulator JIT

Retro Labs9× faster

A dynamic binary translator for a 1990s console, built on a tiny IR.

2020
Power model
Modelling

Power model

Fujimi Systems±4% error

An activity-based power model correlated against silicon measurements.

2019
Superscalar sim
Simulation

Superscalar sim

University of Tokyo1M IPS

A cycle-level simulator used to teach computer architecture to 600 students.

2018
services

Down to the cycle

From RTL to the compiler backend — for teams building chips, simulators and the toolchains that target them.

Microarchitecture

From · ¥2.4M — Pipelines, predictors and caches, modelled before RTL.

Performance modelling

From · ¥1.6M — Cycle-level simulators correlated to silicon.

Compiler backends

From · ¥2M — Scheduling, vectorisation and new ISA extensions in LLVM.

Architecture review

Fixed · ¥900k — A week on your design with a ranked list of risks.

compiler explorer

What the compiler did

RISC-V output for two small functions. Hover a line of C to see the instructions it became, or a line of assembly to find its source.

source.cC11
    rv64gcv
      how I work

      Measured at every stage

      1. Profile the workload

        Traces and instruction mixes from the code your users actually run.

      2. Model first

        A fast performance model to compare options before any RTL is written.

      3. Build & correlate

        RTL or compiler changes, correlated against the model every week.

      4. Sign off

        Benchmarks, area and power numbers, and documentation your team can own.

      Kenji Arai
      Kenji Arai · CPU & compiler engineer
      about

      Between the transistor and the type checker.

      I'm Kenji, a CPU and compiler engineer in Tokyo. I've designed branch predictors and pipelines for RISC-V cores and written the compiler passes that keep them fed.

      I like problems that span the hardware–software line: why a loop stalls, which instruction mix a core really sees, and what one more pipeline stage costs in practice.

      RISC-VSystemVerilogLLVMgem5C++ / Rust
      13 yrsin architecture
      4cores taped out
      60+LLVM commits
      code review

      In their own words

      Kenji's predictor cut our mispredicts nearly in half without blowing the area budget.
      Yuki TanakaLead architect, Sakura Silicon
      His model told us which feature to cut six months before tape-out. It was right.
      Daniel OkoroVP hardware, Fujimi Systems
      Clear reviews, careful patches, real numbers. A joy to work with upstream.
      Maria LopezLLVM maintainer
      clients

      Teams I've built silicon with

      • Sakura Silicon
      • Fujimi Systems
      • Retro Labs
      • LLVM project
      • University of Tokyo
      • RISC-V International
      • Kaze Robotics
      • Hoshi Auto

      talks & awards

      2025TAGE on a budgetTalk · RISC-V Summit
      2023Vectorising for RVVTalk · LLVM Dev Meeting
      2021Best PaperComputer architecture workshop
      2018Teaching awardUniversity of Tokyo
      contact

      Send me your trace

      Tell me about the core, the compiler or the stall you can't explain. I reply within a day.

      Based in
      Tokyo, Japan · remote
      Phone
      +81 3 0000 0005
      Local time
      · local
      Elsewhere
      InstagramBehanceDribbbleLinkedIn
      I'm looking for
      Start

      Made withSitesfareReport