Added mem2reg option to verilog frontend