Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21606 讨论

Declaring 2D Port in Verilog

Altera_Forum
名誉分销商 II
1,699 次查看

Hi, 

 

Anyone know, how to declare a 2-D port in Verilog. 

 

regards, 

freak
0 项奖励
2 回复数
Altera_Forum
名誉分销商 II
929 次查看

Can't be done. SystemVerilog supports this but not Verilog. 

 

Jake
0 项奖励
Altera_Forum
名誉分销商 II
929 次查看

// help catch undeclared wires 

`default_nettype none 

 

 

 

module my ( 

input wire [1:5][31:0] five_32_bit_data_busses; 

output reg [1:3][15:0] three_16bit_data_busses 

); 

 

endmodule 

 

 

 

 

And just like Jakob said, do NOT waste time with verilog, it's old and bad. Simply use SystemVerilog and be happy, it's almost as good as VHDL :)
0 项奖励
回复