I'm really enjoying the 'generate' feature of Verilog-2001. However, I'm wondering if I can use it or something similar to add ports to the port list. I'm pretty sure I can't but I thought I'd ask. For example, if the number of ports is, say, four, I want to have four data buses in the port list, like so:
input [15:0] databus0, input [15:0] databus1, input [15:0] databus2, input [15:0] databus3, ...
Obviously for single-bit signals I can put them in a bus which has a width of four. But for buses, I either have to instantiate them separately, or have a 2-dimensional port, like [15:0] databus[0:3], which I don't think I can do.
-Kevin