In reply to sharvil111:
I did the following:
int unsigned j = (vif.WDATA.size())/2;
vif.WDATA <= j{axi_trx.data[i]}; //line 168
I got the following compilation error:
** Error: (vlog-13069) ** while parsing file included at …/sv/gr_ver_pkg
.sv(23)
** at …\sv\axi_bfm.sv(168): near “{”: syntax error, unexpected ‘{’, expecting
‘;’.