• 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. Custom IC Design
  3. Adding CPU time as a measurement in ADE Assembler

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 126
  • Views 11807
  • 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

Adding CPU time as a measurement in ADE Assembler

sidm
sidm over 2 years ago

Hello All, 

is there a way to directly see the simulation CPU time (wall clock  time) as a measurement in the  ADE Assembler Results tab? or a way to add it in the Outputs Setup tab ?

As of now I have to open the log file for each iteration to note the time and the xrun log files are pretty big. 

I was hoping to have CPU time added to my tests without have to write a function.

I am using IC 6.1.8 and running transient simulations. 

thanks 

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 2 years ago

    Dear sidm,

    sidm said:
    is there a way to directly see the simulation CPU time (wall clock  time) as a measurement in the  ADE Assembler Results tab? or a way to add it in the Outputs Setup tab ?

    I include the following commands in my .cdsinit file to display various job statistics as outputs in Assembler. These commands will work starting with IC 6.1.8 ISR14 and ICADVM20.1.

    envSetVal("maestro.results" "enableRunStatisticInfoDisplay" 'boolean t)

    ; You can customize which items you would like to be displayed using
    ; the “defaultRunStatisticItems” environment variable like following:

    envSetVal("maestro.results" "defaultRunStatisticItems" 'string "memory,threads,jobId,host,startTime,endTime,elapsedTime")

    Do you think this might meet your needs sidm?

    I also have a UNIX script that complies the run time for each individual job and puts them in a format to use with a Microsoft Excel workbook template to plot a histogram of the run times. I've included an example of its output. Let me know if you are interested if the latter does not meet your needs.

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 2 years ago in reply to ShawnLogan

    thanks Shawn for the reply, 

    yes it will be great if you can script and how to use it as I have more than 100 jobs and need to record the time taken for each of those jobs.

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • sidm
    sidm over 2 years ago in reply to ShawnLogan

    thanks Shawn for the reply, 

    yes it will be great if you can script and how to use it as I have more than 100 jobs and need to record the time taken for each of those jobs.

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to sidm

    You could of course just enable:

    envSetVal("maestro.results" "enableRunStatisticInfoDisplay" 'boolean t)

    (the default is to output all the statistics), and then change to detailed transpose, and then hit the "Save" button to save to CSV. I'm sure you could then manipulate the elapsedTime column in a spreadsheet...

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 2 years ago in reply to Andrew Beckett

    thanks for the reply , I ran the below 2 commands in CIW just to be sure that they are set to true,.but I still don't see the additional parameters in the Results tab even after restarting the assembler view. Am I missing something here ? 

    envSetVal("maestro.results" "enableRunStatisticInfoDisplay" 'boolean t)

    envSetVal("maestro.results" "defaultRunStatisticItems" 'string "memory,threads,jobId,host,startTime,endTime,elapsedTime")

    thanks 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 2 years ago in reply to sidm

    Dear sidm,

    sidm said:
    yes it will be great if you can script and how to use it as I have more than 100 jobs and need to record the time taken for each of those jobs.

    If you still have an interest, I have placed a compressed file with the UNIX scripts, a README file, and a Microsoft Excel file that you may use to automatically create histograms of your simulation times from an Assembler run. The contents of the README file are below the link.

    Let me know if I can answer any questions if you happen to want to try it.

    Shawn

    The compressed file is at URL:

    https://www.dropbox.com/s/vfowskyj6da0uly/check_timexl_101922.zip?dl=0

    README file contents:

    1. Place UNIX scripts check_timexl and find_timexl at the top level of your
    Assembler/Explorer results directory.
    2. Alternatively, place in your ~/bin directory if ~/bin is in your UNIX
    search path
    3. Make each file executable with the following commands:

    $ chmod +x check_timexl
    $ chmod +x find_timexl

    4. File find_timexl is called by check_timexl
    5. To create a comma-separated file with all simulation times for a given
    dataset, for example, Interactive.1, enter the command:

    $ check_timexl 1

    check_timexl will scan all the simulation output logs in Interactive.1 and
    create a comma-separated-variable file "check_timexl.csv".

    6. Download file "check_timexl.csv" amd replace contents of tab "" in Microsoft
    Excel workbook "sim_time_check_timexl_sml_041522.xlsx". Optionally enter desciption
    of circuit simulated and details in tab "Variables_and_instructions". The
    workbook automatically creates histograms of the simulation times in
    hours, seconds, and days.

    sml 10/19/22

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 2 years ago in reply to ShawnLogan

    thanks a ton ! Shawn I will surely use the script 

    But can you please also share some insights on why I still don't see the additional parameters in the Results tab even after restarting the assembler view. Am I missing something here ? I was expecting to see an additional row added in the Results window something like transtime or something similar... 

    envSetVal("maestro.results" "enableRunStatisticInfoDisplay" 'boolean t)

    envSetVal("maestro.results" "defaultRunStatisticItems" 'string "memory,threads,jobId,host,startTime,endTime,elapsedTime")

    thanks 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to sidm

    Did you re-run the simulations after settings those env vars? It doesn't record the data (I believe) if you didn't run with those settings. Also, I'm assuming there was no warning in the CIW when you entered them - which would happen if you're using too old a version. I can't quite remember when these were introduced. Just checked, it was IC6.1.8 ISR14 and ICADVM20.1 - see How to get resource usage and simulation run statistics displayed in the results tab in ADE Assembler or Explorer

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 2 years ago in reply to Andrew Beckett

    Hi Andrew, 

    yes I re-ran the simulation after re-starting Assembler view.

    What are the measurement names that I should be expecting to see in the Results tab of the assembler view. 

    I am using IC6.1.8-64b.500.27

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to sidm

    The article I linked to shows the outputs you'd expect. They are called things like this:

    sim_Peak_Memory: Peak memory consumption for Spectre
    sim_Threads_Used: Number of threads used by Spectre
    sim_JobId: LSF job identifier, shown only when you are using the LBS distribution method
    sim_Host_Name: Name of the host on which simulation was run
    sim_Circuit_Nodes: The node number in the Spectre inventory
    sim_Started_Time: Start time of the simulation run
    sim_Finished_Time: End time of the simulation run
    sim_Elapsed_Time: Elapsed time of the Spectre simulation run

    Is your simulator "spectre"? This won't work for non-Cadence simulators (I believe; I've not checked though).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 2 years ago in reply to Andrew Beckett

    thanks Andrew yes I am using SpectreX though my simulator is set to AMS as  I am running AMS simulations. I also don't see the Run Statistics option (after running the  envSetVal command) as shown in the article link you shared - 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to sidm

    I've just checked running AMS, and it works fine. I even checked running with Monte Carlo, and also running with Explorer - the only issue I'm aware of is that running a single run in Explorer does not show the statistics (there's a CCR for this), but you said you're using Assembler.

    I've just realised why this is probably not working - in the article I linked it, it makes it clear at the beginning that you must have your job setup to use LSCS not ICRP (under Options->Job Setup). It is not supported with the older ICRP flow.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 2 years ago in reply to Andrew Beckett

    Thanks for the checking Andrew, yes I am using Assembler and ICRP. I will try switching to LSCS 

    Will this feature also work with Job setup -> Distribution method -> Local mode ?

    regards 

    • 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