Systemverilog generate if. Compute logic in generate block.