circt icon indicating copy to clipboard operation
circt copied to clipboard

[ImportVerilog] Create variables for function arguments

Open fabianschuiki opened this issue 6 months ago • 0 comments

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.

fabianschuiki avatar Aug 03 '24 23:08 fabianschuiki