# 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.

<a id="product-and-evidence"></a>
## Choose the product

| Product | Use it for | Start here |
| --- | --- | --- |
| Vex language CLI | Systems programs, libraries, concurrency, and numerical code | [First Vex project](../guide/first-project.md) |
| VexHDL compiler and simulator | Hardware modules, signal behavior, and circuit testbenches | [HDL getting started](getting-started.md) 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](https://github.com/vex-org/releases/releases/tag/v0.1.0) or [Download](https://www.vex-lang.org/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

1. **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.
2. **Specify state transitions.** Separate combinational calculations from
   state updated on a clock edge. Define reset behavior and priority explicitly.
3. **Exercise the protocol.** Simulate ordinary transactions, empty/full states,
   reset during activity, and boundary widths or counts.
4. **Choose the implementation flow.** Synthesis and place-and-route need a
   device, timing constraints, and the appropriate external tools.

The [FIFO reference model](design-examples.md#_1-fifo-first-in-first-out-buffer)
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.

## Explore the concepts

- [Getting Started](getting-started.md)
- [Syntax Reference](syntax-reference.md)
- [Procedural and Control Flow](procedural-control.md)
- [Design Examples](design-examples.md)
- [Safety Policies](safety-policies.md)
- [Transpiler Integration](transpiler-integration.md)

<a id="key-value-propositions-vexhdl-vs-legacy-hdls"></a>
<a id="_1-compile-time-safety-via-v-vumm-value-usage-memory-manager"></a>
<a id="_2-modern-package-ip-management-vex-pm"></a>
<a id="_3-integrated-zero-friction-tauri-ide-vex-studio"></a>
<a id="💻-code-example-parameterized-counter"></a>
<a id="🔌-legacy-interoperability-verilog-vhdl-transpilers"></a>
<a id="📈-commercial-monetization-model"></a>
