Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Fiducia is a language for building embedded applications on seL4 Microkit systems. A project describes a system of protection domains (PDs) connected by channels. Each PD’s behaviour is a CSP-style process, which calls imported C or Pancake code. From this one description the toolchain builds a bootable Microkit image, and a UPPAAL model to check the system against.

What fic implements today: the inputs, the passes, and the verification and image outputs

This manual covers installing, configuring, building, running and verifying projects. The syntax and semantics of the language are in the Fiducia Language Reference.

🚧 Fiducia is under active development; interfaces described here may change between releases.

The toolchain

ToolRole
ficThe compiler: checks a project and builds its Microkit image, or emits an intermediate form instead (see the fic reference).
fireThe project runner: reads fire.toml and drives fic. fire build writes the image and the UPPAAL model, fire run launches the image, fire verify checks the model, fire clean removes what was generated.
fic-lspThe language server the editor extension runs.

A Fiducia project

A project is a directory holding:

  • one .fis file, the system description: memory regions, protection domains, channels, and the system composition;
  • one .fi file per protection domain, its implementation: imports, memory mappings, events and processes. The file eth_outer.fi implements the PD named eth_outer;
  • the imported files: C (.c, .h) and Pancake (.pnk);
  • spec/*.q, the queries fire verify checks;
  • fire.toml, the manifest.

demo/ring/ in the repository is the smallest complete project (one buffered channel), demo/pingpong/ adds C contracts and verification, and demo/datadiode/ is a larger one, the subject of the tutorial.

Where to go next

  1. Install the tools.
  2. Follow the tutorial, a walk through the data diode.
  3. Write a fire.toml.
  4. Build and run on QEMU.
  5. Verify the model.
  6. Consult the fic reference for the compiler’s checks and emit formats.