Skip to main content

HFIM, a HI-REST project

PyPI version Python versions MIT licence Manual Backends: QEMU, gem5, OVP, boards

HFIM (Fault-Injection Manager) is an automated framework for early reliability assessment of embedded microprocessors, both single-core and multicore. It runs a program, flips bits in registers, memory, caches or deeper hardware structures at chosen instants, and classifies what each fault did to the result. Campaigns run on QEMU, gem5 and OVP, or on a real board, and are reproducible from a seed.

A campaign file goes to the HFIM controller, which records a golden run, draws a seeded fault list and injects each fault into QEMU, gem5, OVP or a hardware board. Each run is classified as masked, sdc, detected, crash or timeout.

Quick start

You need Linux or macOS, Python 3.9 or newer, git, pipx and a running Docker. The PyPI package is hfim-cli; the command it installs is hfim.

pipx install hfim-cli                    # or: python3 -m pip install hfim-cli
hfim init                                # pick a board template; installs its simulator and SDK
cd nezha-c906-qemu
hfim run campaigns/fibonacci/register.yaml
hfim report                              # HTML report of the latest campaign

hfim init lists the templates and asks for a folder; hfim init nezha-c906-qemu my-campaigns does the same without asking.

hfim doctor reports what the machine can run and the command for anything missing. The full walkthrough is in the manual.

What it can do

QEMU gem5 OVP Board
Registers, integer and float ✓ ✓ ✓ ✓
Memory: variable, section, address range, stack ✓ ✓ ✓ ✓
Caches: L1D, L1I, L2 data and tags, ECC check bits ✓
DRAM error models, DRAM ECC, NVM tag store ✓
Pipeline: ROB, LSQ, rename map, physical registers, branch predictor, TLB ✓
Coherence state, Ruby MSHR, TBE, directory and message buffers ✓
Time per injection 1 to 3 s 10 to 60 s about 3 s about 13 s

Fault models: single-bit flip, multi-bit, stuck-at-0 and stuck-at-1, permanent faults on gem5, and exact replay of a fault list from CSV. Every injection ends as masked, sdc, detected, crash or timeout. See fault targets, fault models and fault classification.

Examples

The RV64 QEMU starter includes a Fibonacci benchmark and a motor controller. The controller exchanges samples with a separate plant process that you can replace with your own model.

Documentation

  • Manual: install, configure and run campaigns, read the results
  • Backends and boards: what each simulator and board supports
  • Reference: every configuration key and output file
  • Server: an optional queue and worker fleet for campaigns too long for one machine

Contributing

See the contributor guide for setup and tests, or the extension guide to add a board, probe, model or connector. Report security issues as described in SECURITY.md.

Contributors

Licence and citation

HFIM's original software is available under the MIT License. Bundled components have their own third-party notices.

If you use HFIM in a publication, please cite HI-REST and include the release or commit you used.

HI-REST

Metadata

Release files for hfim-cli 1.15.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hfim-cli 1.15.6
File Size Uploaded Provenance Actions
hfim_cli-1.15.6.tar.gz 1.2 MB Without provenance Details for hfim_cli-1.15.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hfim-cli 1.15.6
File Interpreter ABI Platform Actions
hfim_cli-1.15.6-py3-none-any.whl Python 3 none any Details for hfim_cli-1.15.6-py3-none-any.whl

Total release size: 2.1 MB

Release files / hfim_cli-1.15.6.tar.gz

Download URL hfim_cli-1.15.6.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f5da40814f1c257a34068c0f2438738980ead574aaf1686497b27518237e1e9a
BLAKE2b-256 checksum
How to use checksums
3548a088dd170af3d7554c3024458ebac9365d2db626679ab487874efa5faa3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / hfim_cli-1.15.6-py3-none-any.whl

Download URL hfim_cli-1.15.6-py3-none-any.whl
Size 941.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cfe699aca2c7b6b525f9871ba3cf0e973d205873ecac5a4ddae7def845b9877
BLAKE2b-256 checksum
How to use checksums
67959b5ce2c8e57c73bf10ecd930f40c0c7146910d7e5677fafc3e57f7243d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for hfim-cli 1.15.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page