VexHDL
VexHDL describes digital hardware through modules, ports, clocked state, and combinational logic. Its project includes a compiler, simulator, synthesis integration, and the desktop Vex HDL Studio environment.
The programming-language compiler and the HDL toolchain serve different purposes. A Vex graph fn describes a data-parallel software computation; a VexHDL graph describes a hardware module and its connections.
Choose the product
| Product | Use it for | Start here |
|---|---|---|
| Vex language CLI | Systems programs, libraries, concurrency, and numerical code | First Vex project |
| VexHDL compiler and simulator | Hardware modules, signal behavior, and circuit testbenches | HDL getting started and the instructions for your source checkout |
| Vex HDL Studio | A desktop environment for HDL projects | Select the matching installer and release notes on the release page or Download |
The pages here use illustrative designs to explain hardware behavior. Use the project format and tool commands supplied with your chosen HDL toolchain; software CLI commands and Vex package manifests are not interchangeable with Studio project instructions.
Build a hardware design in layers
- Define the interface. Give every port a direction, width, and clock-domain meaning. State when an input is sampled and when an output is valid.
- Specify state transitions. Separate combinational calculations from state updated on a clock edge. Define reset behavior and priority explicitly.
- Exercise the protocol. Simulate ordinary transactions, empty/full states, reset during activity, and boundary widths or counts.
- Choose the implementation flow. Synthesis and place-and-route need a device, timing constraints, and the appropriate external tools.
The FIFO reference model illustrates simultaneous requests and occupancy boundaries. The UART example shows a clock divider and a multi-cycle state machine. The AXI discussion explains how separate channels create independent obligations.
Simulation, synthesis, and physical behavior
Simulation evaluates the design's behavioral model. Synthesis maps eligible logic into a hardware representation; placement, routing, timing analysis, and board constraints determine whether that implementation meets a device-level requirement. A successful compiler check does not replace those stages.
Clock-domain crossings, reset release, memory read behavior, and signal timing need explicit design choices. Treat assertions and static checks as ways to expose a violated contract, and keep electrical and timing validation tied to the actual implementation.