• 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. irun (ncsim) without waveform

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 65
  • Views 17424
  • 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

irun (ncsim) without waveform

sorel789
sorel789 over 16 years ago

Hi,

 

I need to run a test without waveform. I'm using irun (ncsim). Code is written in systemverilog (OVM). Each time I run the test, the waves.shm dir is created with 2 files : 1 dsn and 1 trn. I don't need them, I just want to run without gui and without waveform.

 

my command : irun -v200x -ovm -incdir my_dir -nowarn PMBDVX +OVM_TESTNAME=test_name tb_top.sv rtl.vhd 

 

Thanks,

  • Cancel
  • Mickey
    Mickey over 16 years ago

    Hi,

    There must be a system task in your verilog source code that is causing the database to be created.  Look for a $shm_ tasks in tb_top.sv and either comment them out or surround them with conditional compiler directives.

    Best regards,

    Mickey

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sorel789
    sorel789 over 16 years ago

     there is no shm task or other task in my code to do that.  maybe in ovm_test, ovm_env  ... but I didn't find anything :(

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tpylant
    tpylant over 16 years ago

    OVM has automatic transaction recording that will generate transaction waveforms. Search for "enable_recording", "begin_tr", or "end_tr" to see if your code is calling any of those routines.

    Tim

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sorel789
    sorel789 over 16 years ago

     Í've removed all enable_recording, begin_tr and end_tr tasks .. and waves.shm (trn, dsn) is still created.

     

    2 minutes later :   I have in my ovm_test::build - set_config_int( "*", "recording_detail", OVM_FULL);  

    I've changed OVM_FULL with OVM_NONE and no waves.shm was created.

     

    Thanks !

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Mickey
    Mickey over 16 years ago

    Hello,

    Thanks for your patience as we try to narrow where in the code the instruction for dumping waveforms is located.

    I noticed that you are using a -incdir to include various files out of the directory named my_dir.  Can you grep for "shm_" in all of the files of that directory (unix>  grep shm_  my_dir/*). 

    as another option try doing a decompile of the snapshot as follows:

    1)  find the name of the snapshot (ncls -snapshot)

    2)  decompile the snapshot (ncdc -origfiles <snapshot name>)

    3)  cd into the created ncdc directory and grep for shm_ in all of the files that were created.

    if the above doesn't work, let me know, I have some other ideas that may help.

    Best regards,

    Mickey

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Mickey
    Mickey over 16 years ago

    another option to find the problem code is to temporarily rename the shared object that resolves the shm_ tasks.  Be aware that you will affect other users ability to create a waveform dump while you make this change.  Consequently I would do the following after having exhausted all other attempts to find the code with the tasks.

    1)  cd into <IUS_install>/tools/lib

    2)  rename the file named libdwapi.so to libdwapi.so.bak

    3)  cd back to your run directory and rerun the simulation.

    when the shm_ tasks are encountered you will get messages similar to the following, indicating the line and file where the task is found:

    Warning!  $shm_open - unable to open database file (check installation)
                File: ./mux_test_random.sv, line = 16, pos = 10
               Scope: mux_test
                Time: 0 FS + 0

    4)  After discovering where the tasks exist in the code be sure to go back to the installation directory and mv libdwapi.so.bak back to libdwapi.so

    Hope that helps.

    Mickey

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Mickey
    Mickey over 16 years ago

    My Bad...  I didn't completely read your last post until now.  it's good that you have found the source of the database creation.

    Mickey

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Games people
    Games people over 16 years ago

    True,OVM has automatic transaction recording that will generate transaction waveforms. Search for "enable_recording", "begin_tr", or "end_tr" to see if your code .
    Tim

    • 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