SiFive has announced its P870-D core, but personally, I think this shows that SiFive has effectively stopped developing its main cores.

The vertical axis of this graph seems to represent performance, but it isn't clear. The reason is that the graph with the P870-D added, which I'll get to later, has a vertical axis that is no longer performance but a completely meaningless metric.
So, to look back and review what kind of core the P870 was, I'll read a report based on the Hot Chips 2023 presentation materials.
The P870 core that SiFive presented at Hot Chips 2023 is expected to achieve performance comparable to ARM's Cortex X2 and ARM's Zen 4c.
Microarchitecture Overview
- Out-of-order execution, 6-wide core
- Large reorder buffer and powerful instruction fusion capabilities
- Decoupled branch prediction
- Non-scheduling queues (dispatch queues)
- Vector execution capability
From SiFive's pipeline diagram, the P870's misprediction penalty appears to be 8 cycles, which is quite short compared with the latest CPUs from ARM, AMD, and Intel.
If a misprediction is detected in the Ex stage and the pipeline can be restarted from the instruction cache lookup stage, the misprediction penalty is only 7 cycles.
The P870 has a very short pipeline, and is said to be able to reach a clock frequency of 3 GHz.
Branch Predictor
The P870's branch predictor includes a TAGE branch predictor made up of eight tables, with a total of 16K entries. In addition, it uses at least eight other sub-predictors.
The P870's branch predictor generates fetch targets across multiple pipeline stages.
- The Fast Zero Bubble predictor generates the target address
- It is passed to the instruction cache, and the fetch process begins
- The TAGE predictor completes its prediction and can override the zero-bubble predictor with a 2-cycle penalty.
- Indirect branch prediction takes place in the next cycle, overlapping with instruction decode
- Indirect prediction incurs a 3-cycle penalty.
- For comparison, AMD's Zen 4 has a similar 3-cycle penalty for indirect prediction and L2 BTB overrides.
- It has 1024 entries for zero-bubble prediction, which is comparable to AMD's Zen 3.
- The 64-entry return address stack is very large, bordering on overkill.
- AMD's Zen line has only a 32-entry return stack.
- The indirect predictor has a capacity of 2.5K entries
- Zen 4 has a 3072-entry indirect predictor
- Zen 3 has 1536 entries.
- So the P870's indirect prediction capability sits right between these two Zen generations.
Instruction Fetch
Once the branch predictor generates a fetch address, the P870's front end can fetch 36 bytes per cycle from a 64KB instruction cache.
- 36 bytes per cycle is not a typo
- The P870 can fetch nine instructions' worth of RISC-V code every cycle and feed it to a 6-wide decoder.
- It has a 32-entry iTLB.
- That is a bit smaller than the 64-entry iTLB in AMD's Zen 4
- Instruction fusion in the P870's instruction decoder
- SiFive did not go into specifics.
- We have seen x86 cores fuse compares and conditional branches, or NOPs with adjacent instructions.
- SiFive hints that the P870 is capable of more than that.
- "Some people might push back with, 'Why doesn't RISC-V have more complex memory addressing modes?' I think the philosophy is an interesting one: rather than simply eating up opcode space, you take the instructions it's built from and fuse them." — Brad Burgess at Hot Chips 2023
Instruction fusion is very intuitive to understand. For example, a German might read an English phrase with five tokens such as "financial market stabilization act" and fuse it into a single micro-op (finanzmarktstabilisierungsgesetz) to use their brain resources more efficiently. Instruction fusion does require the fused instructions to be adjacent, though. The compiler has to lay out instructions so that this is possible.
Once an instruction is decoded, all register references are renamed as appropriate to refer to the corresponding physical register file entries. Other back-end resources are allocated as needed, and the instruction is tracked by the out-of-order execution engine.
Execution Engine
The P870 has a large back end, with resources roughly on par with ARM's Cortex X series and AMD's Zen 4.
The reorder buffer and register file capacities are about the same across the three cores, but the P870's load queue and store queue are a bit lighter.
| Resource | Applies When | SiFive P870 | AMD Zen 4 | ARM Cortex X2 |
|---|---|---|---|---|
| Reorder buffer | exists | 280 entry? Can hold 4 fused instructions per entry? | 320 entry. Can hold 4 fused instructions per entry | 288 entry. Can hold 2 fused instructions per entry |
| Integer register file | Writes to an integer register | 228 entry | 224 entry | ~213 entry |
| Floating-point register file | Writes to a floating-point register | 240 entry | 192 entry | ~249 renames measured. Can fuse |
| Vector register file | Writes to a vector register | 128 entry | 192 entry | ~156 entry |
| Load queue | Reads from memory | 48 entry | 136 entry | 174 entry |
| Store queue | Writes to memory | 48 entry | 64 entry | 72 entry |
- SiFive's execution port strategy: similar to ARM's Cortex X2 strategy:
- It deploys lots of small distributed schedulers, producing a large number of execution ports
- Distributed schedulers can be hard to tune, because a stall can result when one scheduling queue fills up.
- To counter this, SiFive uses a strategy similar to Apple's Firestorm.
- Non-scheduling queues
- The integer execution units have a total of 6 ports
- The same number as the Cortex-X2
- Each has its own dedicated scheduling queue
- One of the P870's branch ports is also made usable for general ALU operations.
Floating-Point Execution
- The P870 has two FP pipelines
- Each can handle the most common operations
- SiFive emphasizes that FP add and multiply have a latency of 2 cycles
- The P870 has separate FP and vector register files
- This differs from many other CPUs today
- The number of available rename registers differs between them
- Neither is a multiple of the other (so a fused case is unlikely).
- If it were, the floating-point and vector register files could each have fewer ports.
- Feeding two multiply-add units requires six inputs, and having fewer ports should make for a more area-efficient register file.
Vector Execution
- The P870 supports vector execution using a pair of 128-bit-wide pipelines
- This is a weak point of the P870's architecture, but it is still a solid step forward in the RISC-V world.
- Other RISC-V chips, such as Ventana's Veyron V1, have only scalar FP execution and no vector execution capability at all.
- A pair of 128-bit vector pipes is about the same as what is in ARM's Neoverse N1 and N2, and can deliver passable vector performance.
- The P870 has a unique mechanism, called the vector sequencer, aimed at handling RISC-V's LMUL feature.
- A crazy programmer can set LMUL to a value greater than 1 and have a vector instruction address a block of consecutive registers.
- Normally, complex instructions are handled by the decoder splitting them into multiple micro-ops.
- However, doing that would consume a large amount of decoder and renamer bandwidth whenever LMUL ≠ 1.
So when LMUL > 1, SiFive splits vector instructions further downstream in the pipeline. That is, an instruction with LMUL = 2 consumes only one decode slot. After the sequencer, it consumes multiple scheduler slots, and micro-ops are issued over as many cycles as are needed.
- We can see that the sequencer can split a vector operation in just one cycle.
- Because it has its own register rename stage placed after the sequencer, physical registers are allocated after the vector operation has been split.
- As with any new architectural feature, we will have to wait a while to see how useful RISC-V's LMUL turns out to be.
This is an English translation of the original Japanese post: SiFive の P870-D が発表されたので P870 コアの詳細を振り返る (1. 概要)










