Home > Community > Forums > Functional Verification > Simple example of passing classes between nc and Specman

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: *

 Simple example of passing classes between nc and Specman 

Last post Sat, Nov 17 2007 6:22 AM by archive. 6 replies.
Started by archive 17 Nov 2007 06:22 AM. Topic has 6 replies and 1414 views
Page 1 of 1 (7 items)
Sort Posts:
  • Sat, Nov 17 2007 6:22 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Simple example of passing classes between nc and Specman Reply

    Hi, I would like to pass Specman structs to SV classes and back, using NC. I know that's possible because I'm able to run the MRM demo. However, I'm looking for a simpler example with a simple compile script...I've tried to compile the attached files (e2sv_class.e, e2sv_class.sv, taken from Specman help, beta features, 2.6) using the attached compile script (taken from 2.9 and slightly modified), but that doesn't seem to work. Can anyone indicate what's the right way to compile these files? thanks, Avidan


    Originally posted in cdnusers.org by avidan_e
    • Post Points: 0
  • Sat, Nov 17 2007 8:26 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Simple example of passing classes between nc and Specman Reply

    Hi,
    Interesting trial indeed. I must admit I don't know the answer really, but looking at the code I see that your E-struct name is "dut_instruction" whereas inside SV you have:

    import specman_types::*; sn_dut_instruction ins;

    Is this how it is supposed to be as per manual? Or is it a typo?

    Also can you elaborate on what you mean by:

    <quote>
    but that doesn't seem to work.
    </quote>

    Ajeetha, CVC
    www.noveldv.com


    Originally posted in cdnusers.org by ajeetha
    • Post Points: 0
  • Sat, Nov 17 2007 10:11 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Simple example of passing classes between nc and Specman Reply

    Hi Ajeetha,
    Thanks for your answer.

    The example was copied as is from:

    http://sourcelink.cadence.com/docs/files/Release_Info/Docs/sn_beta/sn_beta6.1/sn_beta.pdf

    pages 35-36.

    I believe the name mismatch is due to the fact that in between the e code and the sv code, you have the automatically generated stubs file, that probably fiddles a bit with the type names, and prefixes them with "sn_"

    "that doesn't seem to work" is in fact too general...it means that the automatically generated stubs file (specman.svh) gives compilation errors when compile with ncvlog -sv.

    Avidan


    Originally posted in cdnusers.org by avidan_e
    • Post Points: 0
  • Sun, Nov 18 2007 1:44 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Simple example of passing classes between nc and Specman Reply

    Hi Avidan

    We couldn't recreate your compilation error, we've ran the attached script, and it passed compilation phase.
    Which Specman and IUS versions do you use?
    Also, please attach the ncvlog.log file that is created when you try to compile the specman.svh file.

    Thanks

    Erez


    Originally posted in cdnusers.org by erezb
    • Post Points: 0
  • Sun, Nov 18 2007 7:09 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Simple example of passing classes between nc and Specman Reply

    Hi Erez, I'm using Specman and ncvlog 6.20. The script output and the ncvlog.log file are attached. Best, Avidan


    Originally posted in cdnusers.org by avidan_e
    • Post Points: 0
  • Sun, Nov 18 2007 7:35 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Simple example of passing classes between nc and Specman Reply


    Hi Aviad

    It seems that the INCA_libs already includes some of the SV environement generated by Specman.
    (Have you ran this example also with irun ?)
    Delete the existing INCA_libs, and rerun the compile script.

    Erez


    Originally posted in cdnusers.org by erezb
    • Post Points: 0
  • Sun, Nov 18 2007 11:32 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Simple example of passing classes between nc and Specman Reply

    Hi Erez,
    Thanks, you're right. It works now.
    Avidan


    Originally posted in cdnusers.org by avidan_e
    • Post Points: 0
Page 1 of 1 (7 items)
Sort Posts:
Started by archive at 17 Nov 2007 06:22 AM. Topic has 6 replies.