sv2v icon indicating copy to clipboard operation
sv2v copied to clipboard

Dynamic Arrays support

Open MrJake222 opened this issue 8 months ago • 1 comments

Hi,

I'm trying to convert pequeno_riscv to Verilog and it fails here:

function automatic void dump_regfile (int fdump, int n, logic [RSIZE-1:0] regarray [], string dumpname);

Are dynamic arrays a no-go when converting to Verilog? I guess so, without language support it'd be difficult to handle.

MrJake222 avatar Apr 11 '25 09:04 MrJake222

Indeed dynamic arrays are neither synthesizable nor easily converted into Verilog. Are you using sv2v as part of synthesis flow, or something else? One possibility: If this code is in a common package that you don't need, perhaps sv2v could "pass through" dynamic arrays, under the assumption they won't be used downstream.

zachjs avatar May 18 '25 19:05 zachjs