2 dimension array in veriloga?

Discussion in 'Cadence' started by DReynolds, Mar 9, 2007.

  1. DReynolds

    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
     
    DReynolds, Mar 9, 2007
    #1
  2. 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, May 1, 2007
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.