Announcing Veryl 0.11.1

The Veryl team has published a new release of Veryl, 0.11.1. Veryl is a new hardware description language as an alternate to SystemVerilog.

The latest version of Veryl can be downloaded from release page.

New Features

Add sourcemap-resolver to release build #810

sourcemap-resolver binary was added to release package. It can be used as filter program throught pipe like below:

$ make | sourcemap-resolver

By sourcemap-resolver, file location in log can be resolved to the location in Veryl.

%Error: /path/test.sv:23:1: syntax error, unexpected endmodule
   23 | endmodule
      | ^~~~~~~~~
%Error: /path/test.sv:23:1: syntax error, unexpected endmodule
        ^ from: /path/test.veryl:18:18
   23 | endmodule
      | ^~~~~~~~~

Add raw identifier #806

Some Veryl's keyword can be used as identifier in SystemVerilog. So instantiating a SystemVerilog module may cause syntax error.

module ModuleA (
    i_clk: input clock,
    i_rst: input reset,
) {
    inst u0: $sv::ModuleSV (
        clock: i_clk, //syntax error because `clock` is Veryl's keyword
        reset: i_rst, //syntax error because `reset` is Veryl's keyword
    );
}

To fix it, raw identifier was introduced. It starts with r# prefix and transpiled into an identifier without the prefix.

module ModuleA (
    i_clk: input clock,
    i_rst: input reset,
) {
    inst u0: $sv::ModuleSV (
        r#clock: i_clk, // transpiled into `.clock(i_clk),`
        r#reset: i_rst, // transpiled into `.reset(i_rst),`
    );
}

Other Changes

Check out everything that changed in Release v0.11.1.