Coreblocks is an experimental, modular out-of-order RISC-V core generator implemented in Amaranth. Its design goals are:
- Simplicity. Coreblocks is an academic project, accessible to students. It should be suitable for teaching essentials of out-of-order architectures.
- Modularity. We want to be able to easily experiment with the core by adding, replacing and modifying modules without changing the source too much. For this goal, we designed a transaction system called Transactron, which is inspired by Bluespec.
- Fine-grained testing. Outside of the integration tests for the full core, modules are tested individually. This is to support an agile style of development.
- Wide RISC-V support. The core can currently a mainline Linux kernel.
Our current goals are:
- Performance (up to a point, on FPGAs). We would like Coreblocks not to be too sluggish, without compromising the simplicity goal. We don't wish to compete with high performance cores like BOOM though.
- Implementation of widely-expected RISC-V extensions including floating point, 64-bit support.
The core currently supports the full unprivileged RV32I instruction set and a number of extensions, including:
- M - integer multiplication and division, with Zmmul only as an option,
- A - atomic instructions, comprising of Zaamo and Zalrsc (without multi-core support),
- C - compressed instructions (Zca). Additionally we support Zcb,
- B - bit manipulation, comprising of Zba, Zbb and Zbs, extensions Zbc, Zbkx and Zbkc are implemented too.
Full privileged architecture support is implemented, including virtual memory, some additional extensions, like Sstc.
Full list of supported extensions can be found in full configuration's UDB.
Coreblocks is highly configurable, providing multiple configuration points and several predefined configurations.
Coreblocks can be easily integrated with LiteX SoC generator.
As for microarchitectural features, Coreblocks implements:
- Fully superscalar flow (front-end and back-end) with out-of-order execution,
- Checkpointing for fast recovery from branch mispredictions,
- Simple branch predictors,
- Reservation stations snoop the Tomasulo bus, thus removing the need for read port per RS,
- In ROB instructions are not packed into groups,
- Exception data (xcause, xtval) is generated by FUs and retirement selects earliest one.
We have an community IRC channel - #coreforge at libera.chat bridged with Matrix chat #coreforge:fossi-chat.org. You are welcome to join and ask questions, discuss development, or share feedback about Coreforge projects :)
Coreblocks is maintained under the Coreforge Foundation and is looking for new contributors! - Want to get involved? We will be happy to help you.
The documentation for our project is automatically generated using Sphinx. It is currently a bit outdated.
Resource usage and maximum clock frequency is automatically measured and recorded.
Set up the development environment following the project documentation.
For larger changes, please discuss your plans with us first, so you can ensure that the contribution fits the project and will be merged sooner. You are welcome to submit pull requests for simple contributions directly.
Coreblocks project is financially supported by NGI0 Commons Fund made possible by NLNet and European Commission.
Contact us at Coreforge Foundation if you want to support development of Coreforge projects!
This project is three-clause BSD licensed.