Array Addition In Verilog Using Function In Javascript With Parameters