Course
t27 basics: the language in 27 lessons
Before the FPGA course: what a t27 spec is, how the compiler reads it, and what it gives back. Every lesson opens one table or diagram drawn from its own spec and one spec you can run in your browser.
Course 0, 27 lessons, one infographic and one t27 spec each: a module, constants and types, functions and tests, then the compiler's stages and the 7 languages it writes. It comes before the FPGA course.
- t27 basics: the language in 27 lessons
- From zero to a chip: FPGA programming with t27
- AI numbers with t27: from number formats to a ternary network
- GoldenFloat with t27: one rule, seventeen float widths
- Verifying hardware with t27: testbenches, waveforms, formal, mutation
- Clocking, resets and clock-domain crossings with t27
- Buses and peripherals with t27: UART, SPI, APB, AXI4, Ethernet
- The ternary machine: from a trit to a running program
- Arithmetic and DSP on the FPGA: from the carry chain to a filter
- Neural networks in t27: from one neuron to a transformer block
- The Queen and the hive: how the t27 project builds itself
- Vibecoding from zero with t27: describe it, run it, let a test judge it
All lessons
Module 1 · A spec file
What a .t27 file holds: a module line, prose lines and comments.
Module 2 · Values and types
Constants, the width of a whole number, and true, false and text.
Module 3 · Arrays, trits and expressions
Lists of values, the three values of a trit, and what operators compute.
Module 4 · Tests and functions
A test block, several small tests in one spec, and a function with typed inputs.
Module 5 · Inside a function
Names with let and var, choices with if and switch, and loops.
Module 6 · Visibility and your own types
What pub shares with other modules, and the structs and enums you declare.
Module 7 · Modules, rules and gen-ts
Reading another module, stating a rule that always holds, and a spec turned into TypeScript.
Module 8 · The compiler and tri
The backends t27c writes, the stages it reads a spec in, and the tri command.
Module 9 · Errors, a program, what next
Reading a compiler error, one small complete program, and the course to take next.