The XLS team has written several tutorials to help explain language features and design techniques. Here they are, grouped by topic:
- 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
- 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.
matchexpressions : Explains how to use
enumerate()expressions to control loop iteration and how to use the
matchpattern-matching expression for selecting between alternatives.
- Intro to procs (communicating sequential processes) : Provides a basic introduction to writing stateful and communicating modules, i.e., procs.