Is there a way in verilog to do the following? I have a variable number of FIFOs (1 to 4) created with a generate statement inside of a module
pseudocode:
module()
generate( for i to NUM_FIFOS )
FIFO fifoI( args )
What I want to do is have the read data from these FIFOs as outputs of the entire module. Is there a way to have a variable number of output?
e.g.
module(
generate for( i = 0 to NUM_FIFOS )
output FIFO_dataI
)
Thanks for the help!