2 dimension array in veriloga?

D

DReynolds

Guest
I am coding a model and I am wondering if veriloga can do a 2d array?

real foo[4:0]; 1 dimension works
real foo[4:0][7:0]; gives syntax error

but in verilog I believe you can have foo[4:0][7:0]...as of verilog
2001.....

A quick search of this site did not turn up anything.
I would appreciate it if someone could point me in the right
direction.

thanx

David
 
On 9 Mar 2007 09:56:34 -0800, "DReynolds" <spurwinktech@gmail.com> wrote:

I am coding a model and I am wondering if veriloga can do a 2d array?

real foo[4:0]; 1 dimension works
real foo[4:0][7:0]; gives syntax error

but in verilog I believe you can have foo[4:0][7:0]...as of verilog
2001.....

A quick search of this site did not turn up anything.
I would appreciate it if someone could point me in the right
direction.

thanx

David
David,

I took a look in the Verilog AMS LRM (version 2.2) (from Accellera) and it only
discusses single dimension real arrays - so I don't think two dimension arrays
are supported in the language as far as I can tell.

Regards,

Andrew.
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top