Altera_Forum
Honored Contributor
15 years agoHandling large amount of Data between modules in Verilog
Hi all,
I want to handle large amounts of data between Modules. I somehow need to connect up to 1024 inputs and 1024 outputs which are [16:0] width each. For the moment, the only solution which came to my mind is the following:
input inp_fre_0;
...
input inp_fre_1023;
output out_fre_0;
...
output out_fre_1023;
However, it appears to me that this is not the ideal solution and somehow bad style. For registers, Verilog offers packed array registers
reg rex_fim_X1;
Is there anything similar for Inputs and Outputs? Quartus says that there is something similar available in SystemVerilog. However i don't wanna start with this since I'm still having enough trouble with Verilog itself... Is there maybe an even better way to do the data handling besides using inputs and outputs? A little inspiration (and a short code sample :)) would really be appreciated. Cheers, Jonas