I have a design in mind that would fit in this skeleton: [code] module xyz ( result, leftOp, rightOp); parameter integer nmBits = 1; localparam integer highBit = nmBits - 1; output result; input [ highBit:0] leftOp; input [ highBit:0] rightOp;
// ...
endmodule [/code] The way (xyz) is designed, this module would work differently for different values of (nmBits), but in a way that can be precisely defined. In fact, I 'm seriously thinking of writing a Java program that takes (nmBits) as an i nput and produces a parameterless verion of (xyz) for that version of (nmBi ts). So I'm wondering, is it a true statement that, if one can write such a Java program to produce the equivalent (parameterless) Verilog code for an y given set of parameters, one can also write Verilog code with parameters to do the same thing?