Verilog Function Input Calculator