gnoble29
Member level 1
How can I instantiate an array in verilog?
For example, I Have an array a[0:10] in my top module.I want to pass this a[0:10] into another submodule. How it is possible?
I tried like this but showing error.
For example, I Have an array a[0:10] in my top module.I want to pass this a[0:10] into another submodule. How it is possible?
I tried like this but showing error.
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 module top { input clk, input rst }; wire a[0:10]; sub dut( . clk(clk), .rst(rst), .a(a) ); endmodule
Last edited by a moderator: