English

Branch Prediction in Hardcaml for a RISC-V 32im CPU

Hardware Architecture 2024-01-05 v2

Abstract

Accurate branch prediction is a critical part of high performance instruction stream processing. In this paper, I present a hardware implementation of branch prediction for a RV32IM CPU, starting with static decode stage predictions and culminating in the use of BATAGE. In addition, I detail my experience writing the RTL in Hardcaml, a hardware description library for the functional programming language OCaml.

Keywords

Cite

@article{arxiv.2312.10426,
  title  = {Branch Prediction in Hardcaml for a RISC-V 32im CPU},
  author = {Alex Saveau},
  journal= {arXiv preprint arXiv:2312.10426},
  year   = {2024}
}