Widths and conversions.
Numerical types carry width and signedness. Conversions and fixed-point quantization are explicit.
ZLang checks numerical types, clocked state, and protocol connections before generating SystemVerilog. The compiler is an experimental alpha; supported combinations are documented.
This eight-bit Counter comes from the public repository. Inspect its source, the actual semantic-check output, and the RTL generated by the matching compiler.
module Counter {
clock clk
reset rst
reg count : u8 = 0
out y : u8
y = count
count <- truncate(count + 1)
}
The original example, unchanged from the linked revision.
zlang: ok: examples/counter.zhl (top Counter; syntax and semantics valid)
Recorded process exit status: 0. Syntax and semantic checking only.
`default_nettype none
module Counter (
input wire logic clk,
input wire logic rst,
output logic [7:0] y
);
// Generated from backend-independent typed ZLang IR.
logic [7:0] count;
always_ff @(posedge clk) begin
if (rst) begin
count <= 8'd0;
end else begin
count <= 8'(({{1{1'b0}}, count} + 9'd1));
end
end
assign y = count;
endmodule
`default_nettype wire
Recorded process exit status: 0. Output file: build/Counter.sv.
Numerical types carry width and signedness. Conversions and fixed-point quantization are explicit.
Registers declare clock/reset ownership and next-state assignments.
Protocol endpoints define connections between modules. See the language reference for supported connections and clock-domain restrictions.
Read the complex multiplication and streaming FFT examples, including supported widths, latency constraints, and validation results.
Read the FFT example notes ↗STREAMING / VALIDATION PROJECTInspect packet framing, encoding, modulation, IFFT, and cyclic-prefix stages. The linked project documents the tested profiles.
Inspect the transmitter project ↗A ZLang HDL accelerator with queued matrix, vector, and Adam engines, plus a cycle-level MicroGPT inference demo.
Project overview →A 32-bit RISC-V CPU development project written in ZLang HDL.
Project overview →A 64-bit RISC-V CPU development project written in ZLang HDL.
Project overview →ZAgent and ZInfer are private prototypes. ZCloud is planned. The Community compiler works independently of all three.
Compiler-guided design assistance.
Product previewModel execution with explicit provider choice.
Product previewA managed hardware workspace, planned.
Product previewPreview only. An account or interest registration does not grant product access.
Install the alpha compiler, check the Counter, and read the supported-platform and known-limitations notes.