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.
Quick start
You need Linux or macOS, Python 3.9 or newer, git and a running Docker. The PyPI package is hfim-cli; the command it installs is hfim.
With pipx (sudo apt install pipx or brew install pipx, then pipx ensurepath):
pipx install hfim-cli
Without pipx, in a virtual environment of its own (on Debian and Ubuntu this needs sudo apt install python3-venv). Current Debian, Ubuntu and Homebrew Pythons refuse a plain pip install outside one:
python3 -m venv ~/.hfim
~/.hfim/bin/pip install hfim-cli
echo 'export PATH="$HOME/.hfim/bin:$PATH"' >> ~/.bashrc # ~/.zshrc on macOS; then open a new terminal
Then:
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.
Metadata
Release files for hfim-cli 1.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hfim_cli-1.17.0.tar.gz | 1.2 MB | Without provenance | Details for hfim_cli-1.17.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hfim_cli-1.17.0-py3-none-any.whl | Python 3 | none | any | Details for hfim_cli-1.17.0-py3-none-any.whl |
Total release size: 2.2 MB
Release files / hfim_cli-1.17.0.tar.gz
| Download URL | hfim_cli-1.17.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0c944b3646eeb79a08cb66484afca8e695eae74cdef47007e1f4cd055864294
|
|
BLAKE2b-256 checksum How to use checksums |
4a5cd7f36bb2e87c4383d3b323e6260795cc97a9c1765a26f417690bb0313a5a
|
| 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.17.0-py3-none-any.whl
| Download URL | hfim_cli-1.17.0-py3-none-any.whl |
|---|---|
| Size | 955.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1c4ed8fa1bb37f009fb9e087f09a24b8c1c3eaeee541ffb2fd28cb046fdfc14
|
|
BLAKE2b-256 checksum How to use checksums |
c96b0fe93728e4d41771367c73aee28dd5b1ae563a674dd59b8916b7fa831cc4
|
| 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.17.0
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.