veryl-lang / veryl

Veryl: A Modern Hardware Description Language
Other
439 stars 20 forks source link

Reports error on assignment to const value declared by 'let' statement #766

Closed nblei closed 3 weeks ago

nblei commented 3 weeks ago
module top (
    i_clk: input clock,
    i_rst: input reset,
) {
    always_comb {
        let y: logic = 1;
        y = 0;
    }
}

Previously, this would not report any errors.

dalance commented 3 weeks ago

Looks good! I'll merge this PR.