Skip to content

About

Index of HFIM simulators, probes, SDK and templates

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

hfim-index

The list of packages hfim knows by name: templates, simulators, probes and the SDK. hfim init reads it to show the templates it offers, and hfim sim install and hfim probe install read it to list the packages they can install when you do not name one.

The index holds names and descriptions only. Versions are each package's own v<version> git tags, and what a package needs (the hfim range, the backend, the CPUs) is in the manifest.yaml or hfim.yaml at that tag.

Layout

templates/<name>.yaml     one file per template
simulators/<name>.yaml    one file per simulator package
probes/<name>.yaml        one file per probe package
sdk/sdk.yaml              the SDK
index.yaml                every entry in one file, generated by build.py
build.py                  checks the entries and writes index.yaml

An entry

kind: simulator           # template, simulator, probe or sdk; matches the directory
name: qemu                # the short name you type; matches the file name
repo: https://github.com/HI-REST/hfim-sim-qemu
description: Upstream QEMU 9.2 with the SD-card fix the PolarFire HSS needs; generic RV64 CPU
tier: official            # official or community

Every key is required and no other key is accepted. description is one line of 100 characters or fewer, and 50 or fewer for a template: it is what hfim init shows beside the name, and the list fits an 80-column terminal.

How hfim reads it

hfim fetches index.yaml from https://raw.githubusercontent.com/HI-REST/hfim-index/main/index.yaml with a short timeout. When that fails (no network, a proxy, the repository not reachable), it uses the copy of this index that ships inside the hfim package, without a message. HFIM_INDEX_URL names another index file (https://, http:// or file://); HFIM_INDEX_URL=off uses only the built-in copy.

Changing it

  1. Add or edit a file under templates/, simulators/, probes/ or sdk/.
  2. Run python3 build.py (it needs PyYAML) to check the entries and write index.yaml.
  3. Commit both. CI runs python3 build.py --check.

The hfim release that follows copies index.yaml into the package as its built-in copy.

Community entries

Today every entry is tier: official: a package HI-REST publishes and tests. Entries for packages other people publish will come as pull requests to this repository with tier: community. CI will check that the repository is public, has a v* release tag and a manifest the current hfim reads; the code itself is not reviewed, and hfim will show the tier beside the name. The review rules will be written here before the first community entry is accepted.

License

MIT, see LICENSE. REUSE metadata is in REUSE.toml.

About

Index of HFIM simulators, probes, SDK and templates

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages