18.4 Pre-silicon environments and their blind spots
Every pre-silicon platform answers some questions and is blind to others. A boot that works on FVP shows that the code follows the architecture as the model implements it. It does not show that the code has the barriers, cache maintenance and initialisation that real hardware needs. Bring-up goes faster when you know in advance which bug classes each platform can find, so that each one is used where it is strong.
FVP and Fast Models
Arm’s Fixed Virtual Platforms (FVP_Base_RevC-2xAEMvA, and the core-specific FVPs for a Neoverse or Cortex reference design) are built from Fast Models. They are programmer’s-view, instruction-accurate models. They are not cycle-accurate, and they are not a description of any particular microarchitecture.
What that means in practice:
- Execution is in order and, per PE, one instruction at a time. Each instruction’s memory effects happen when it executes. There is no store buffer, no out-of-order completion and no reordering visible to other observers. In multi-core models, PEs are interleaved in quanta: one PE runs a block of instructions, then the next. The model therefore shows a sequentially consistent (in fact, coarsely interleaved) memory system. A missing
DMBor acquire/release, a message-passing bug or a missingDSBbeforeSEValmost never fails on FVP. Use herd7 for the ordering question (7.3, 7.11). - Caches are not modelled by default. With cache state modelling off, every access sees memory, and data and instruction cache maintenance has no visible effect. Missing
DC CVAC,DC IVACorIC IVAU, stale table walks after building tables with the MMU off (9.3), mismatched-attribute aliases (6.6) and cross-modifying code all pass. Set-C cache_state_modelled=1(check the exact parameter names for your FVP with--list-params) for any run that is meant to test a boot path’s cache handling. It slows the model down noticeably, which is why it is off by default. - No speculation. The model does not speculatively fetch or load, so a Normal mapping over a PA hole, or an executable mapping of an unclocked device, causes no SError. On silicon it can (14.2).
- UNKNOWN is usually deterministic. Where the architecture says a reset value or result is UNKNOWN, the model picks a value, often zero, and picks it consistently. Code that reads an uninitialised register, or depends on an UNKNOWN field, works every time.
- IMPLEMENTATION DEFINED choices are parameters. The AEM implements many architecturally permitted behaviours and selects them through parameters (feature support levels such as
cluster0.memory_tagging_support_level, PA size, cache geometry, TLB sizes). Make the parameter file part of your test record, because the result depends on it. - System components are functional. The GIC, SMMU, timers and interconnect behave correctly and quickly. Back-pressure, timeouts, a DVM participant that never answers and decode errors that only an interconnect configuration produces are absent.
Its strengths are real: it boots a full software stack at tens to hundreds of MIPS, it implements new FEAT_s before any silicon exists, and its Tarmac trace (the TarmacTrace plugin) records every executed instruction, register write, memory access and exception. Tarmac is the fastest way to answer “what was the last instruction before the core went wrong?” for architectural bugs: wrong trap enables, wrong ESR decoding, missing feature enables, bad exception returns.
FVP_Base_RevC-2xAEMvA \
-C bp.secureflashloader.fname=bl1.bin -C bp.flashloader0.fname=fip.bin \
-C cache_state_modelled=1 \
-C cluster0.NUM_CORES=4 -C cluster1.NUM_CORES=4 \
--plugin "$PVLIB_HOME/plugins/Linux64_GCC-9.3/TarmacTrace.so" \
-C TRACE.TarmacTrace.trace-file=boot.tarmac
The plugin path and the exact parameter names differ between FVP releases. Check them with --list-params and --list-instances.
RTL simulation
RTL simulation (VCS, Xcelium, Questa) runs the actual design with timing at cycle level, usually with four-state logic (0, 1, X, Z).
- X-propagation. Flops without reset come up as X. If software reads state the architecture calls UNKNOWN after reset (a register field it never wrote, an uninitialised SRAM, a cache tag array that has not been invalidated), the X flows into data paths and eventually into a branch decision or an address. In simulation this shows up as X on a bus, an assertion, or an X-pessimism stall. This is the only platform that tells you, directly, that you depended on UNKNOWN state (17.1). It is also why RTL teams are strict about “invalidate before enable” sequences in reset code: on silicon the same bug gives a random value instead.
- Real microarchitecture. Store buffers, reordering, speculation, real caches and the real interconnect are all present. Ordering bugs and missing maintenance can appear, but only if the test causes the right interleaving within a very small number of cycles.
- Speed. Full-SoC RTL simulation typically runs at a few hundred Hz to a few kHz. You will not boot Linux, and probably not all of TF-A. Directed tests of a few thousand instructions are the right size (18.5).
- Visibility. Every signal is visible. A hang is debugged by looking at the outstanding transaction in the waveform, which silicon can never give you.
Emulation
Hardware emulators (Cadence Palladium, Synopsys ZeBu, Siemens Veloce) map the RTL onto dedicated hardware and typically run at around 1 MHz, enough to boot firmware and, slowly, an OS.
- Usually two-state. X becomes 0 or 1, so X-propagation bugs disappear or become deterministic-but-wrong. Some emulators offer limited X modelling at a cost.
- Same RTL timing ratios as silicon, within the emulated clock domains, so many ordering and coherency races can appear. But memories, PHYs and analog blocks are replaced by models or speed bridges, and their timing is not real.
- Good visibility through triggers and waveform capture over a window, and good for running the same software as silicon, including ACS suites (18.6).
FPGA prototypes
FPGA platforms (HAPS, or in-house boards) run the RTL, partitioned over several FPGAs, at roughly 10–100 MHz.
- Fast enough to boot Linux and run long stress tests, which makes them the first platform where rare races appear at all.
- Clock ratios are distorted. The core may run at 20 MHz against DDR at a much higher relative speed, or the reverse, and inter-FPGA links add latency. A race may be hidden, or a new one created that silicon does not have.
- DDR, PCIe and other PHYs are usually FPGA-vendor IP, not the real ones. DDR training, PHY bring-up and power management are not tested.
- Visibility is limited to what was instrumented at build time: internal logic analysers and CoreSight, much like silicon.
What only silicon finds
- Timing-dependent races at real frequency and with real latencies: barrier omissions that need a particular interleaving, coherency races between cores at different DVFS points, and DVM sync storms.
- Power-management races: a core power-down that interacts with snoops, a retention entry that races an interrupt, clock-gating and voltage-domain crossings. Emulation often models power domains functionally, without the analog behaviour.
- Physical effects: PVT corners, marginal DDR training, metastability on asynchronous crossings, and real ECC errors.
- Real peripherals: their reset timing, their response to speculative or unaligned accesses, and their error responses.
Which platform finds which bug class
| Bug class | FVP (default) | FVP + cache modelling | herd7 | RTL sim | Emulation | FPGA | Silicon |
|---|---|---|---|---|---|---|---|
| Wrong trap/feature enables, ESR decoding, ERET legality | Yes | Yes | – | Yes (slowly) | Yes | Yes | Yes |
| Missing cache maintenance (CMOs, MMU-off tables) | No | Yes (logic only) | – | Yes | Yes | Yes | Yes |
| Missing barrier, ordering bug | No | No | Yes (proves allowed outcomes) | Rarely | Sometimes | Sometimes | Sometimes, intermittently |
| Dependence on UNKNOWN state | No | No | – | Yes (X-prop) | Rarely | Random | Random |
| Speculative access to holes or devices | No | No | – | Yes, if the test triggers it | Yes | Yes | Yes |
| Interconnect address map, decode errors, DVM membership | Only if modelled | Only if modelled | – | Yes | Yes | Yes | Yes |
| DDR training, PHYs, analog | No | No | – | No | No | No | Yes |
| Long-running races, stress | Functional only | Functional only | – | No | Slowly | Yes | Yes |
| Power-management races | No | No | – | Partially | Partially | Partially | Yes |
The “Yes” in bold marks the cheapest platform for each class. “Sometimes” means the platform can show the bug but gives no assurance when it does not.
Validation note: a pass on FVP with default parameters is not a pass on the memory system. For every boot path and test, record the platform and its configuration: the FVP parameter file with
cache_state_modelled, the emulator build, the FPGA clock ratios. Re-run anything that touches caches, translation tables or ordering on a platform that models them. On silicon, confirm the CMO paths with the PMU:L1D_CACHE_REFILLandL1D_CACHE_WBcounts should change when maintenance is added or removed, and if they do not, the test is not exercising the cache at all (16.5).
Checkpoint
Q18.4.1 A boot path builds translation tables with the MMU off, never invalidates them, then enables the MMU with cacheable walks. It passes on FVP_Base_RevC with default parameters. Why?
- A. FVP walks are always Non-cacheable regardless of
TCR_ELx.IRGN0 - B. FVP implements FEAT_BBM level 2, which removes the need for maintenance
- C. Cache state is not modelled by default, so the walk always sees memory and there are no stale lines to hit
- D. The architecture guarantees that caches are invalid at reset
Answer
C. With cache_state_modelled off, the model has no cache contents, so stale lines cannot exist. D is the tempting answer, but the architecture does not guarantee that caches are invalid out of reset, and stale lines can also come from an earlier boot stage or a warm reset. BBM (B) is about changing live translation entries, not about cache coherency of the tables.
Read more: Arm ARM (DDI0487), Cache behavior at reset; Arm Fast Models / FVP Reference Guide, cache modelling parameters
Q18.4.2 Which platform is best placed to reveal that reset code reads an UNKNOWN register field before writing it?
- A. Four-state RTL simulation, because the field comes up as X and its propagation is visible
- B. FVP, because it randomises UNKNOWN values on every run
- C. A two-state emulator, because X is reported as an error
- D. herd7, because it enumerates all values a register can hold
Answer
A. Only four-state simulation carries “unknown” as a value through the logic. B is false: FVP chooses deterministic values. C is backwards, because two-state emulation resolves X to 0 or 1. herd7 (D) models memory ordering, not reset state.
Read more: Arm ARM (DDI0487), Glossary: UNKNOWN; Reset behavior
Q18.4.3 A message-passing sequence between two cores lacks a DMB between the data store and the flag store. It passes millions of iterations on FVP. What should you conclude?
- A. The sequence is correct, because FVP is the architecture’s reference model
- B. Nothing about correctness. FVP executes in order and interleaves cores in quanta, so it cannot show the reordering the architecture permits. Check with herd7 and stress on hardware
- C. The sequence is correct only for Inner Shareable memory
- D. The model must have cache modelling enabled to show reordering
Answer
B. The Arm memory model allows the flag to be observed before the data without a barrier. FVP’s in-order, quantum-interleaved execution never produces that outcome, so a pass tells you nothing. A confuses an instruction-accurate model with an axiomatic memory model. D is wrong: cache modelling adds cache state but not reordering.
Read more: Arm ARM (DDI0487), The AArch64 Application Level Memory Model; herdtools7 documentation