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
float
toint32_t
converter. - 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.
for
expressions : Explains how to understand and write looping constructs in DSLX.enumerate
andmatch
expressions : Explains how to useenumerate()
expressions to control loop iteration and how to use thematch
pattern-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.