gnoble29
Member level 1
- Joined
- Jun 30, 2010
- Messages
- 38
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- india
- Activity points
- 1,528
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: