circt
circt copied to clipboard
[ImportVerilog] Create variables for function arguments
The following SV currently crashes because x
is lowered to an i32
, which is unassignable, instead of a ref<i32>
, which would be assignable:
function void foo(int x);
x = 0;
endfunction
To fix this, create local variables that shadow the function arguments.