veryl-lang / veryl

Veryl: A Modern Hardware Description Language
Other
478 stars 22 forks source link

Quad-state literals assigned to two-state variables #790

Open nblei opened 3 months ago

nblei commented 3 months ago

let uu32: u32 = 32'h0x0x_0x0x; will transpile to int unsigned uu32; always_comb uu32 = 32'0x0x_0x0x;

But int is a 2-state data type in SV. So I think we need to either 1) change the type which u32, etc map to, or 2) raise an error when assigning a 4-state value to a variable of data type u32, etc.