Multidimensional port.

Sep 02, 2005 3 Replies

Hello all Is it possible to instantiate multi dimensional input/output port in verilog2001. I tried the following code.



module A(in,out); input [7:0]in[7:0]; output [7:0]out[7:0];



but it did gave an error in the Xilinx ISE 6.2....



Sumesh



My understanding is "no." Consider System Verilog if you "have" to use multi-dimensional input/output ports. The method Verilog designers often use is to make a multi-dimensional port into a simple vector, pass tha vector, then change the vector back to the multi-dimensional port.

Thanks john for your replay... i will follow that way. I am not familier with system verilog. What is the difference with normal verilog. Can i use it on the tool chain (model sim xilinx etc) and get the same output.

The difference Verilog and System Verilog is that your toolset (XST) doesn't support System Verilog :(

You could try VHDL; multidimensional arrays have been supported on ports for synthesis for a long time. Only kidding. John's suggestion of a 1 dimensional port is probably the best for you.

Regards, Allan

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required