Neo: A Hardware Design Language
Neo is a standalone, statically-checked hardware description language (HDL) implemented in Rust. It combines an expressive, modern syntax with a Z3-powered symbolic checker that verifies parameterized designs before they are even instantiated.
Why Neo?
- Symbolic parameter verification: Parameterized modules, structs, unions, and interfaces are verified once with Z3 across all valid parameter inputs and constraints. Bit-width mismatches, underflows, division by zero, and out-of-bounds slices are caught at definition time.
- Cycle-accurate timing & clock-domain safety: Signals carry cycle timing and clock-domain annotations, catching pipeline misalignment and accidental clock-domain crossings (CDC) statically.
- Strict 2-state, latch-free RTL: Neo enforces strict 2-state logic (no unknown or high-impedance states), single-assignment checks, consistent branch assignments in combinational blocks, exhaustive pattern matching, and warnings for undriven outputs and signals.
- Clean multi-backend output: Verified designs elaborate into a versioned Concrete HW-IR and compile to human-readable SystemVerilog, FIRRTL 3.3.0 (for CIRCT), or Dart ROHD interop stubs.
- First-class editor experience: The CLI includes an integrated Language Server powering diagnostics with related spans, hover info, go-to-definition, find-references, document symbols, and completions.
Quick Example
neo
@top
module PipelinedAdd(t: Timing) {
input a(t): Int(32),
input b(t): Int(32),
output sum(t + 1): Int(32),
} {
seq {
sum = a + b;
}
}Compile it to SystemVerilog (neo build runs full symbolic verification first; use neo check when you only want to verify without generating output):
bash
neo build main.neo --format sv --out PipelinedAdd.svWhere to Go Next
- Follow the Installation & CLI guide to build
neoand configure your editor. - Walk through the language starting with Modules and Logic Values & Control Flow.
- Dive into the compiler internals in the Language Reference.