Virtual HIL

Virtual Hardware-in-the-Loop (vHIL) simulator.

Scale multi-ECU integration testing, FMI plant co-simulation, and deterministic fault matrices across every pull request without waiting on shared physical HIL racks.

MiL vs SiL vs vHIL vs physical HIL.

vHIL executes target binaries against silicon-calibrated peripherals at software CI speed.

StageCode executedHardware modelCI scalingFault injection
MiL (Model-in-the-Loop)Control algorithms in Simulink / PythonNo MCU binary or registersFast desktop runsPlant-level signals only
SiL (Software-in-the-Loop)Host-recompiled C/C++ codeStubbed HAL and OS callsHigh CI concurrencyMisses register, DMA, and bus faults
vHIL (CircuitTwin)Compiled target ELF / HEX / BINSilicon-calibrated MCU & PCB digital twinsParallel cloud, local, or air-gapped CIDeterministic bus, sensor, power, and timing faults
Physical HIL rackFlashed onto real ECUsFull physical bench and I/O cards1 bench per hardware rack ($50k+)Slow setup; hard to reproduce race conditions

Deterministic fault matrices in CI.

Sweep CAN shorts, frozen sensors, and rail brownouts across your firmware builds with reproducible trace bundles.

Talk with us about Enterprise vHIL →

Define fault scenarios in YAML next to your source code and run them locally, in cloud CI, or inside air-gapped networks with signed offline licences. Every failing cell records trace.jsonl, isr.jsonl, and signals.vcd for deterministic replay.

tests/vhil-fault-matrix.yaml
suite: vehicle-powertrain-vhil
scene: scenes/six-ecu-vehicle.yaml
matrix:
  faults:
    - none
    - { bus: can0, kind: short_to_ground, at_ms: 420 }
    - { part: imu0, kind: frozen_output, at_ms: 800 }
    - { rail: vbat, kind: brownout_mv, value: 2700, at_ms: 1100 }
  assert:
    - node: safety-ecu
      uart_contains: "SAFE_STATE_ENTERED"
      within_ms: 1500
ct test matrix run tests/vhil-fault-matrix.yaml --junit out.xml

Common questions.

What is the difference between SiL, vHIL, and physical HIL?

SiL recompiles application logic for a host PC and stubs out hardware drivers. Virtual HIL (vHIL) executes your real target microcontroller binary on digital twins of the CPU, peripherals, buses, and plant environment. Physical HIL uses real target hardware racks for final sign-off.

Does CircuitTwin support FMI co-simulation and 3D plant models?

Yes. You can couple multi-ECU firmware runs to FMU plant models over FMI co-simulation or drive interactive 3D vehicle and robotics worlds in Proving Ground with deterministic lock-step virtual time.

Can vHIL run in air-gapped aerospace or automotive CI environments?

Yes. Team and Enterprise plans include signed 30-day offline licences (ct --network none) alongside deterministic SHA-256-manifested trace bundles and compliance evidence packs.

Does vHIL completely replace physical HIL racks?

Teams still run physical HIL and EMC tests for final certification and analog sign-off. Virtual HIL moves 90% of daily regression, fault-injection, and multi-ECU integration testing into every pull request so physical benches stop being a bottleneck.

Related guides.