Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community Functional Verification Xcelium -> usage of xrun command

Stats

  • Replies 7
  • Subscribers 69
  • Views 1410
  • Members are here 0

Xcelium -> usage of xrun command

amnldm
amnldm 3 months ago

Hello,

For running a simulation, I'm using the following command:

%>  xrun top_tb.sv -f files_list -gui -access rwc &

where the top_tb.sv is the TestBench and files_list is a list of RTL files, which should be simulated.

After running the 'xrun' command, the waves.shm and xcelium.d directories have been created.

As for my understanding, the xcelium.d is a working directory (what should it include?) and the waves.shm directory where the TRN and DSN files are stored.

1) the TRN files have been split during the simulation, each TRN file is about 0.5MB (500KB). Is there a way to manage the size of the generated TRN files?

2) is there a way to give a custom name to the simulation database? how?

3) could the xrun command be ran without the '-gui' switch? How then to see the waves?

Thank you!

  • Reply
  • Cancel
  • Cancel
  • amnldm
    amnldm 3 months ago

    How to open the last created database using the xrun command?

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • StephenH
    StephenH 3 months ago

    xcelium.d is the compiled simulation database, you don't need to care what goes into it, the contents are managed entirely by xrun.

    I already gave you probe commands and a link to the docs in another topic thread, please use that to learn about how to name the database files and manage their sizes (hint: there is a Tcl "database" command).

    You can of course use xrun without the -gui switch, and later use the "simvision" command to view the waveforms. You might want to add the "-lwdgen" switch when compiling the design, to generate some extra structural debug info for post-process debug (helps with driver tracing etc).

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • amnldm
    amnldm 3 months ago in reply to StephenH

    with the -gui script, a database named 'simulator' is open when the Xcelium GUI has been launched. But, the waves have been stored under the wave.shm directory, which is also a database and includes the TRN files.

    When I load/open the wave.shm database and close the 'simulator' database, I can see recorded signals, but cannot re-run the simulation from GUI (at least I cannot find a way how to do so). Should it work this way? What's the difference between the 'simulator' and 'waves.shm' databases? What purpose of each one of them?

    Where is the 'simulator' database stored? How/where can I save the waves, which were generated while running simulation from GUI?

    Is it possible to invoke the Xcelium GUI without running any simulation in advance, then from the GUI open a database and then run the simulation on this database from GUI? I mean let's say I have a compiled and simulated design. How can I open it from GUI and then re-run it from GUI?

    Another question ... When I run the simulation from GUI, what command/switch should be used so the waves be recorded for all the signals in the design and not only for just those which are shown/present in the Wave window?

    Here is one more thing... When I tried to open the waves.shm database after I have run a simulation on the 'simulator' database in the GUI, I've received this pop up window:

    So, when I simulate the database named 'simulator', the database named waves.shm is also get updated? But when I check the timestamp of the TRN files in the waves.shm, they have no got any new timestamp... I'm too mislead...

    So, what is the relationship of the 'simulator' and waves.shm databases and how should each one be used?

    How could the generated TRN files be stored? restored?

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • amnldm
    amnldm 2 months ago in reply to amnldm

    any response?

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • tpylant
    tpylant 2 months ago in reply to amnldm

    When you run interactive GUI, SimVision is getting the data directly from the "simulator". As Stephen noted earlier, you can also use SimVision in post-processing mode where you open a database. Since you opened a database, you are in post-processing mode and no longer connected to the simulator. If the simulation is still running, you can Open Connection instead of Open Database to reconnect.

    Unless you launched SimVision (what you referred to as Xcelium GUI) from xrun, it is merely an analysis tool. However, if it was launched with xrun -gui, then it can relaunch the simulation from Simulation -> Rerun Simulation.

    The probe example Stephen provided earlier show how to "probe -all ...".

    Tim

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • amnldm
    amnldm 2 months ago in reply to tpylant

    what does the shm stand for? does it state for the Shared Memory?

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • tpylant
    tpylant 2 months ago in reply to amnldm

    I answered this for you yesterday at the end of the thread https://community.cadence.com/cadence_technology_forums/f/functional-verification/57941/xrun-dump-all-internal-signals. If the answer was not complete, please provide more information on what you are not understanding.

    Tim

    • Cancel
    • Up 0 Down
    • Reply
    • 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.

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

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