XLS Tutorials
The XLS team has written several tutorials to help explain language features and design techniques. Here they are, grouped by topic:
DSLX
- Hello, XLS! : A brief introduction to writing and evaluating your first design in DSLX.
- Float-to-int conversion : A guide to writing "real" logic
in DSLX, demonstrated by creating an IEEE-754 binary32, i.e., C
floattoint32_tconverter. - Intro to parametrics : A demonstration on how functions and types can be parameterized to allow a single implementation to apply to many different data layouts.
forexpressions : Explains how to understand and write looping constructs in DSLX.enumerateandmatchexpressions : Explains how to useenumerate()expressions to control loop iteration and how to use thematchpattern-matching expression for selecting between alternatives.- What is a proc?: A step-by-step introduction to procs, XLS's answer to how to write modules with state and explicit communication interfaces.
- How to use procs (communicating sequential processes): Provides a basic introduction to writing stateful and communicating modules, i.e., procs.
- Dataflow & Time in XLS (theoretical musings): Discusses the relationship between dataflow and execution order in XLS, and how DSLX is a "timeless" language.