I would like to start using Verilator more generally at my company and have found v4.020 supports almost all our code except for multiple var for loops e.g./
always_comb begin for (int i=0,j=0; j<4; i=i+2,j++) begin if ( (!level1[i] && level1[i+1]) || (level1[i+1] && (level1[i+1][6:0] < level1[i][6:0])) ) level2[j] = level1[i+1];
I'm looking into enhancements to support this. Would appreciate any guidance that can be offered.
Hmm, there was some work on this that seems to have gotten lost in the cracks.
Will post there.