• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. loading VHPI library on irun

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 66
  • Views 15237
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

loading VHPI library on irun

yongh
yongh over 15 years ago

Hi,

I am trying to load vhpi library for irun simulation. I used -loadvhpi option but it doesn't seem working correctly. even I cannot see loading failure messages. Could you please help me how to load vhpi library on irun? This VHPI library was used for ncsim. Can I use the same so file for irun as well?

Thanks,

Yong

  • Cancel
  • TAM1
    TAM1 over 15 years ago

    I think we need to see more information. What does your irun command line look like? What was the error message in the log file? Do you have a bootstrap routine to register your vhpi procedures?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • yongh
    yongh over 15 years ago

    Thanks, your reply. The irun command is 'irun -unbuff -loadvhpi vhpi_lib_ncsim:initialise -r snapshot'. The problem is I don't see any error messages from irun, also no messages regarding vhpi. When I use ncsim I could see some initialization messages and error messages if I set wrong vhpi information. They don't appear in irun.

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TAM1
    TAM1 over 15 years ago

    We've still got next to nothing to go on. My guess would be that, since you are reusing an existing snapshot, you'll need to make sure that all the command-line options on irun that can affect where or how that snapshot is loaded will need to exactly repeat those used when the snapshot was first created.

    I've seen problems where things like -libdirname had to be repeated when a snapshot is rerun. Maybe the same is true for loading VHPI libraries.

    Beyond that, I personally don't have much to offer.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 15 years ago

    What Yong didn't tell us was that he's using irun in 3 steps (irun -copile; irun -elaborate; irun -r).

    He was passing -loadvhpi only to the final stage (irun -r), but it looks as though the problem was solved by adding -loadvhpi to the elaboration stage as well.

    In general I'd recommend to be consistent about passig the same set of args to irun at each stage. More specifically I'd recommend not try to force irun to work like the old-fashioned 3-step ncvlog/ncelab/ncsim flow.

    Yong, if I missed anything from our email exchanges, please would you share this with the forum so others can benefit from it?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • yongh
    yongh over 15 years ago

    Thanks, StephenH

     Actually I was investigating something before posting because I was not using '-elaborate' option. I thought it's logically elaboration stage but in fact it compiles and elaborates the top-level testbench with '-top' and '-c' although there are some compilation stages for a number of IPs as libraries. I put '-loadvhpi' option in the stage of elaboration happening and it works with running simulation with the same '-loadvhpi' and '-r'.

     I am trying to really separate the stages with -elaborate option for just personal interest but I have not made it working. :-) Maybe I can add some more info if I find any interesting.

    Thanks a lot for your help, guys

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information