diff --git a/docs/_static/images/EDA.svg b/docs/_static/images/EDA.svg
index ec4b1fa..371174e 100644
--- a/docs/_static/images/EDA.svg
+++ b/docs/_static/images/EDA.svg
@@ -1 +1,707 @@
-
\ No newline at end of file
+
+
diff --git a/docs/_static/images/flow.png b/docs/_static/images/flow.png
new file mode 100644
index 0000000..1f6e7bb
Binary files /dev/null and b/docs/_static/images/flow.png differ
diff --git a/docs/_static/images/parts.svg b/docs/_static/images/parts.svg
index 5d97c92..10d0c36 100644
--- a/docs/_static/images/parts.svg
+++ b/docs/_static/images/parts.svg
@@ -1 +1,3250 @@
-
\ No newline at end of file
+
+
diff --git a/docs/_static/images/step.png b/docs/_static/images/step.png
new file mode 100644
index 0000000..e63a904
Binary files /dev/null and b/docs/_static/images/step.png differ
diff --git a/docs/_static/images/tool.png b/docs/_static/images/tool.png
new file mode 100644
index 0000000..b6cfc44
Binary files /dev/null and b/docs/_static/images/tool.png differ
diff --git a/docs/community.rst b/docs/community.rst
index af77034..0b812da 100644
--- a/docs/community.rst
+++ b/docs/community.rst
@@ -1,3 +1,5 @@
+.. _Community:
+
Community
#########
diff --git a/docs/conf.py b/docs/conf.py
index 5570609..281dd71 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -140,6 +140,7 @@ man_pages = [
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"arch-defs": ("https://f4pga.readthedocs.io/projects/arch-defs/en/latest/", None),
+ "interchange": ("https://fpga-interchange-schema.readthedocs.io/", None),
"fasm": ("https://fasm.readthedocs.io/en/latest/", None),
"prjtrellis": ("https://prjtrellis.readthedocs.io/en/latest/", None),
"prjxray": ("https://f4pga.readthedocs.io/projects/prjxray/en/latest/", None),
diff --git a/docs/glossary.rst b/docs/glossary.rst
index 62ae531..3eae7fd 100644
--- a/docs/glossary.rst
+++ b/docs/glossary.rst
@@ -2,6 +2,129 @@ Glossary
########
.. glossary::
+ :sorted:
- File
- A representation of a physical file.
+ HDL
+ A Hardware Description Language (HDL) is a computer language used for describing hardware designs.
+ HDLs in the scope of F4PGA include established (such as Verilog and `VHDL ➚ `__) or
+ emerging software-inspired paradigms like
+ `Chisel ➚ `_,
+ `SpinalHDL ➚ `_,
+ `Migen ➚ `_, or
+ :gh:`Amaranth ➚ `.
+
+ Tool
+ * A software application available as a CLI entrypoint, a shared library or an (interpreted) script.
+
+ * Within :term:`f4pga `, a *tool* is a Python abstraction that wraps a software application:
+
+ .. image:: _static/images/tool.png
+ :align: center
+
+ Step
+ Within :term:`f4pga `, a *step* is a unit of execution, which is characterized by a set of
+ :term:`dependencies ` and a set of :term:`artifacts `,
+ and it is composable in a :term:`flow `.
+ *Steps* might wrap a single or multiple :term:`tools `.
+
+ .. image:: _static/images/step.png
+ :align: center
+
+ Flow
+ Within :term:`f4pga `, a *flow* is a :wikipedia:`directed graph ➚ ` of :term:`steps `, which
+ describes end-to-end sequences to achieve specific tasks.
+ A *flow* might used as a step within another *flow*.
+ In such cases, terms *subflow* or *partial flow* are used.
+
+ .. image:: _static/images/flow.png
+ :align: center
+
+ CLI
+ A :wikipedia:`Command-Line Interface (CLI) ➚ ` is an application that processes commands to
+ a computer program in the form of lines of text, typically interactively (through a terminal) or in batch mode
+ (through scripts).
+ Most of the applications used in F4PGA are meant to be used through CLIs.
+ Precisely, :term:`f4pga ` :term:`tools ` provide Python abstractions around the CLIs.
+
+ Module
+ :ref:`The Python Tutorial » Modules ➚ ` are files containing Python statements and definitions
+ (variables, functions, clases,...).
+ The file name is the module name with the suffix ``.py`` appended.
+
+ Within :term:`f4pga `, user-defined *modules* allow extending the built-in :term:`flows ` and
+ :term:`steps ` to achieve custom and/or complex tasks.
+
+ Dependency
+ A *dependency* is a prerequisite to execute a :term:`f4pga ` :term:`step ` in a :term:`flow `.
+ *Dependencies* might be files (such as HDL sources, constraints, etc.), :term:`artifacts ` from previous
+ *steps* or :term:`tools `.
+
+ Artifact
+ An *artifact* is a result produced by a :term:`step ` when executed.
+ Typically, *artifacts* are files and logs generated by the :term:`tools `.
+ However, within :term:`f4pga ` :term:`flows `, (meta)data can be passed across *steps* without saving
+ it to disk.
+
+ Target
+ Within :term:`f4pga `, :term:`flows ` can have multiple leaf *steps*, producing different results off some
+ shared previous *steps*.
+ The *target* of a *flow* specifies which *steps* to execute in a run.
+
+ F4PGA
+
+ * *Uppercase*:
+
+ * FOSS Flows For FPGA (F4PGA), the name of the project as a whole.
+
+ * A Workgroup under the CHIPS Alliance.
+ See :ref:`Community`.
+
+ * *Lowercase*:
+
+ * Python package providing utilities.
+
+ * The main CLI entrypoint provided by the Python package.
+
+ Cache
+ Within :term:`f4pga `, the content of :term:`dependencies ` and :term:`artifacts ` can
+ be tracked to optimize consecutive executions of the same :term:`flow `.
+ The *cache* contains the :wikipedia:`hash ➚ ` of the assets.
+
+ Resolution
+ Relations between :term:`f4pga ` :term:`steps `, :term:`dependencies ` and :term:`artifacts `
+ can get complex easily.
+ On top of computing the topological sorting, :term:`f4pga ` checks the existence of the assets, and supports
+ displaying the status.
+
+ Definition
+ Within :term:`f4pga `, a :term:`flow ` *definition* is the description of which :term:`steps `
+ are to be executed and which :term:`dependencies ` and :term:`artifacts ` are to be passed
+ along.
+
+ Constraints
+ Set of parameters that allow users to select/specify certain physical characteristics of the FPGA device, such as
+ the pins/pads or the logic standard to use.
+
+ Project
+ A set of :term:`HDL` sources, constraints and other assets used in a hardware :term:`design ` or set of
+ designs.
+
+ Design
+ Required :term:`HDL` sources, constraints and other assets to execute a :term:`flow ` and achieve a task.
+
+ Configuration
+ Within :term:`f4pga `, a *project configuration* is the set of parameters needed for executing a
+ :term:`flow ` on a given :term:`design `.
+ The *configuration* might be provided through a Python API, or through a file using declarative format (such as JSON,
+ YAML, INI,...).
+
+ Model
+ * *Project model*: a generic description of an EDA project, independent of vendor and tools.
+ It reflects multiple design variants, grouping of source files into file sets or linking testbenches to
+ components or subsystems in a design.
+ * *Simulation model*: :term:`HDL ` sources interpreted as programming languages by simulators, which can
+ generate interpeted or executable :term:`artifacts `.
+
+ Toolchain
+ :wikipedia:`Toolchain ➚ ` is a generic term used to refer to a set of programming tools used
+ consecutively to perform a complex software development task.
diff --git a/docs/how.rst b/docs/how.rst
index f29abfe..b66ca85 100644
--- a/docs/how.rst
+++ b/docs/how.rst
@@ -3,65 +3,66 @@ How it works
To understand how F4PGA works, it is best to start with an overview of the general EDA tooling ecosystem and then
proceed to see what the F4PGA project consists of.
+For both ASIC- and FPGA-oriented EDA tooling, there are three major areas that the workflows need to cover: description,
+frontend and backend.
-EDA Tooling Ecosystem
-=====================
+.. image:: _static/images/EDA.svg
+ :align: center
-For both ASIC- and FPGA-oriented EDA tooling, there are three major areas that
-the workflow needs to cover: hardware description, frontend and backend.
-
-Hardware description languages are generally open, with both established HDLs
-such as Verilog and VHDL and emerging software-inspired paradigms like
-`Chisel `_,
-`SpinalHDL `_ or
-`Migen `_.
-The major problem lies however in the front- and backend, where previously
-there was no established standard, vendor-neutral tooling that would cover
-all the necessary components for an end-to-end flow.
-
-This pertains both to ASIC and FPGA workflows, although F4PGA focuses
-on the latter (some parts of F4PGA will also be useful in the former).
-
-.. figure:: _static/images/EDA.svg
-
-Project structure
-=================
+Hardware description languages are either established (such as Verilog and `VHDL ➚ `__) or
+emerging software-inspired paradigms like
+`Chisel ➚ `_,
+`SpinalHDL ➚ `_,
+`Migen ➚ `_, or
+:gh:`Amaranth ➚ `.
+Since early 2000s, free and open source tools allow simulating HDLs.
+However, for several decades the major problem lied in the frontend and backend, where there was no established
+standard vendor-neutral tooling that would cover all the necessary components for an end-to-end flow.
+This pertains both to ASIC and FPGA workflows.
+Although F4PGA focuses on the latter, some parts of F4PGA will also be useful in the former.
To achieve F4PGA's goal of a complete FOSS FPGA toolchain, a number of tools and projects are necessary to provide all
the needed components of an end-to-end flow.
-Thus, F4PGA serves as an umbrella project for several activities, the central of which pertains to the creation of
-so-called FPGA "architecture definitions", i.e. documentation of how specific FPGAs work internally.
-More information can be found in the :doc:`F4PGA Architecture Definitions ` project.
+The F4PGA toolchains consist of logic synthesis and implementation tools, as well as chip documentation projects for
+chips of various vendors.
+Thus, F4PGA serves as an umbrella project for several activities.
-Those definitions and serve as input to backend tools like :gh:`nextpnr ` and `Verilog to Routing `_,
-and frontend tools like `Yosys `_.
+.. image:: _static/images/parts.svg
+ :align: center
+
+The central resources are the so-called FPGA "architecture definitions" (i.e. documentation of how specific FPGAs work
+internally) and the "interchange schema" (for logical and physical netlists).
+Those definitions serve as input to frontend and backend tools, such as
+`Yosys ➚ `__,
+:gh:`nextpnr ➚ ` and `Verilog to Routing ➚ `_.
They are created within separate collaborating projects targeting different FPGAs:
-* :doc:`Project X-Ray ` for Xilinx 7-Series
-* `Project IceStorm ` for Lattice iCE40
-* :doc:`Project Trellis ` for Lattice ECP5 FPGAs
+* :doc:`Project X-Ray ➚ ` for Xilinx 7-Series
+* `Project IceStorm ➚ `__ for Lattice iCE40
+* :doc:`Project Trellis ➚ ` for Lattice ECP5 FPGAs
-.. figure:: _static/images/parts.svg
+More information can be found at :doc:`F4PGA Architecture Definitions ➚ ` and :doc:`FPGA Interchange ➚ `.
-The F4PGA toolchain consists of logic synthesis and implementation tools, as well as chip documentation projects for
-chips of various vendors.
To prepare a working bitstream for a particular FPGA chip, the toolchain goes through the following stages:
-* First, a description of the FPGA chip is created with the information from the relevant bitstream documentation
+* A description of the FPGA chip is created with the information from the relevant bitstream documentation
project.
- This part is done within the :gh:`F4PGA Architecture Definitions `.
+ This part is done within the :gh:`F4PGA Architecture Definitions ➚ `.
The project prepares information about the timings and resources available in the chip needed at the implementation
stage, as well as techmaps for the synthesis tools.
-* The second step is logic synthesis.
- It is carried out in the Yosys framework, which expresses the input Verilog file by means of the block and connection
- types available in the chosen chip.
+ .. NOTE::
+ This stage is typically pre-built and installed as assets.
+ However, developers contributing to the bitstream documentation might build it.
+
+* Then, logic synthesis is carried out in the `Yosys ➚ `__ framework, which expresses the
+ user-provided hardware description by means of the block and connection types available in the chosen chip.
* The next step is implementation.
- Placement and routing tools put individual blocks from the synthesis description in the specific chip locations and
- create paths between them.
- To do that, F4PGA uses either :gh:`nextpnr ` or `Verilog to Routing :gh:`.
+ Placement and routing tools put individual blocks from the synthesis description in specific chip locations and create
+ paths between them.
+ To do that, F4PGA uses either :gh:`nextpnr ➚ ` or :gh:`Verilog to Routing ➚ `.
* Finally, the design properties are translated into a set of features available in the given FPGA chip.
- These features are saved in the :gh:`fasm format `, which is developed as part of F4PGA.
- The fasm file is then translated to bitstream using the information from the bitstream documentation projects.
+ These features are saved in the :gh:`FASM format ➚ `, which is developed as part of F4PGA.
+ The FASM file is then translated to a bitstream, using the information from the bitstream documentation projects.