Unfortunately in Xilinx Schematics instances are fixed; therefor you cannot set parameters. Your best option would be to create a new module, possibly named Register_8bit
, that sets n
as a parameter in the module. Then separate sized modules can be named separately, but only the inner parameter must be changed.
module Register_8bit (
parameter n = 8;
output reg [n-1:0] OUTPUT,
input [n-1:0] INPUT,
input RST, EN, CLK);
// bla bla bla
endmodule
This allows the most reuse of code while still allowing the benefits of the top level schematic view.