Home > Community > Forums > Functional Verification > 'class' not implemented??

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 'class' not implemented?? 

Last post Fri, May 18 2007 6:30 AM by archive. 7 replies.
Started by archive 18 May 2007 06:30 AM. Topic has 7 replies and 1822 views
Page 1 of 1 (8 items)
Sort Posts:
  • Fri, May 18 2007 6:30 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    'class' not implemented?? Reply

    Hi there
    I am compiling a class getting

    ncvlog: *E,SVNIMP (/prj/so_asic/USERS/STANZANI/SO_ASIC/CONFIG/../DIGITAL/SIMULATION/TBENCH/so_i2s.v,52|17): SystemVerilog construct not yet implemented:  compilation unit top scope declaration.
    class so_i2s_layer;

    I am using version

    ncvlog -ver
    TOOL:   ncvlog  05.83-p002

    how can it be claimed 'system verilog support' if classes (a key feature for SV) is not usable?

    thanks


    Originally posted in cdnusers.org by marco.stanzani
    • Post Points: 0
  • Fri, May 18 2007 6:42 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    Hi Marco.

    At the moment, classes must be declared within a package, module or program.
    They're not permitted to "float" at the top level, hence the message you saw.

    I'd suggest you put any global classes into a package, and import that into whichever unit requires them.
    This makes for tidier encapsulation anyway :-)

    One last point, if you're using SystemVerilog, you'd do best to keep to the latest version, as that will have the best feature set. Currently the latest version is IUS6.1s2.

    Steve.


    Originally posted in cdnusers.org by stephenh
    • Post Points: 0
  • Fri, May 18 2007 6:54 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    Thanks Stephen
    agree that the ebst practice is to put them in a package. BTW it does not seems possible to define interfaces in a package as well (which is desirrable, IMO, sicne I'd put i a package everything that does not generate istances: right?)

    actually whe have just this version @Accent

    cheers


    Originally posted in cdnusers.org by marco.stanzani
    • Post Points: 0
  • Fri, May 18 2007 7:05 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    FWIW: Interfaces are more like a module. They are instanced, etc and many tools even search for them like modules if you use the -y directive. So I would not think putting them in a package would be a good thing.


    Originally posted in cdnusers.org by bryan
    • Post Points: 0
  • Fri, May 18 2007 7:48 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    Posted By stephenh on 5/18/2007 6:42 AM

    At the moment, classes must be declared within a package, module or program.
    They're not permitted to "float" at the top level, hence the message you saw.

    Steve.
    Maybe it is worth adding that suggestion to the existing Error message as that would help the users in general a lot. How does one submit such "nice to have enhancement" if not via sourcelink? FWIW - I don't have sourcelink access as I'm not a NC customer but am running a verification services company in Bangalore.

    Regards
    Ajeetha, CVC
    www.noveldv.com


    Originally posted in cdnusers.org by ajeetha
    • Post Points: 0
  • Fri, May 18 2007 7:56 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    Hi Ajeetha.

    I'll file that enhancement request - it makes sense.
    If you're using Cadence tools when working for your clients, I guess the best thing is to get your client to file the service request under their SourceLink account ID. There may be an alternative way that you can file them directly, but I'm not aware of it.

    Regards.
    Steve.


    Originally posted in cdnusers.org by stephenh
    • Post Points: 0
  • Fri, May 18 2007 8:18 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    I filed enhance to improve error message. Thank you for the suggestion.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Post Points: 0
  • Sat, May 19 2007 8:56 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: 'class' not implemented?? Reply

    Thanks Tim & Steve, glad to see the quick action to make the tool easy to use, appreciate it!

    Cheers
    Ajeetha, CVC
    www.noveldv.com


    Originally posted in cdnusers.org by ajeetha
    • Post Points: 0
Page 1 of 1 (8 items)
Sort Posts:
Started by archive at 18 May 2007 06:30 AM. Topic has 7 replies.