• 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. Processing raw Spectre Monte Carlo data ?

Stats

  • Locked Locked
  • Replies 23
  • Subscribers 127
  • Views 29242
  • 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

Processing raw Spectre Monte Carlo data ?

MarkGr15
MarkGr15 over 10 years ago

I am using OceanXL (within ADEXL created scripts) to kick off Monte Carlo simulations. I would like to be able to post process the data myself, to be able to calculate the mean, sigmas etc... 

Is the raw data available for this, and how is it organized? I am having a hard time deciphering the file structure etc....

I do see the results listed in an output log, when I add " -log ocean_montecarlo_output.log" as a an option to the command line that I use to kick off my scripts.

The upshot is I want to be able to find the raw data in the output directory, and post process the measured data.

I am using IC6.1.6-64b.500.9.  

spectre -W  => sub-version  13.1.1.049

thanks

Mark

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Mark,

    Yes. You'll need to create a session and then associate it with the lib-cell-view of the original ADE XL view (i.e.whichever the results are associated with):

    sess=axlCreateSession(getCurrentTime()) ; the argument is to generate a unique string
    sdb=axlSetMainSetupDBLCV(sess "Two_Stage_Opamp" "DiffOpAmp" "adexl")
    rdb=axlReadHistoryResDB("Interactive.2" ?session sess)

    pick the lib/cell/view you need, and the history name you got originally - and then from then onwards rdb will behave just as it did in my example above.

    You can use axlCloseSession(sess) to close it out once you're done.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MarkGr15
    MarkGr15 over 10 years ago

    Andrew,

    here is my code:

    ; load("./test_testmodes_post_process.ocn")
    sess=axlCreateSession(getCurrentTime()) ; the argument is to generate a unique string
    sdb=axlSetMainSetupDBLCV(sess "_PRODUCT" "testmode_block_cn_Sim2" "adexl_extracted")
    rdb=axlReadHistoryResDB("Ocean.0" ?session sess)
    axlCloseSession(sess)

    here is part of the log file, with the error message highlighted:

    \# Program start time UTC 2015.06.29 23:12:06.832
    \# Local time Monday 29 June 2015, 4:12 pm
    \o Program: @(#)$CDS: virtuoso version 6.1.6-64b 10/30/2014 22:43 (sjfnl172) $
    \o Hierarchy: /tools/cadence/installs/IC616/tools.lnx86/dfII/
    \o Sub version: sub-version IC6.1.6-64b.500.9 (64-bit addresses)
    \# Command line: /tools/cadence/installs/IC616/tools/dfII/bin/64bit/virtuoso -ocean -nograph -replay ./test_testmodes_post_process.ocn -log test_testmodes_post.log
    \# Host name (type): lightning (x86_64)
    \# Operating system: Linux 2.6.32-504.16.2.el6.x86_64 #1 SMP Tue Mar 10 17:01:00 EDT 2015
    \# Linux /etc/issue: Red Hat Enterprise Linux Server release 6.6 (Santiago)
    \# Linux /etc/issue: Kernel \r on an \m
    \# X display name (WxH): lightning:80 (1024x868)
    \# Available geometry: TL(0:0) BR(1023:867)
    \# X server: RealVNC Ltd (VNC nograph server, PID 12003)
    \# Depth of Visual (Root): 16 (16)
    \# Number of Planes Used: 16
    \# X version: 11.0 (vendor release 3370)
    \# X resource pool: base 0x800000, mask 0x3fffff (4194303), shift 0
    \# current id 0x0, current max 0x3ffffa (4194298)
    \# Max data seg size: unlimited
    \# Max process size: unlimited
    \# Initial sbrk value: 315 MB
    \# Available memory: 167,294 MB
    \# System memory: 193,031 MB
    \# Maximum memory size: 192,778 MB
    \# Max mem available: 167,357 MB
    \# Initial memory used: 63 MB
    \# process size: 722 MB
    \# Qt version: 4.7.2
    \# Window Manager: other
    \# User Name: mgraumlich
    \o Working Directory: lightning:/tools/localwork/workspaces/mgraumlich/regression_dev/scripts/elektron/ocean/Golden
    \# Process Id: 11890
    \o
    \o COPYRIGHT © 1992-2014 CADENCE DESIGN SYSTEMS INC. ALL RIGHTS RESERVED.
    \o © 1992-2014 UNIX SYSTEMS Laboratories INC.,
    \o Reproduced with permission.
    \o
    \o This Cadence Design Systems program and online documentation are
    \o proprietary/confidential information and may be disclosed/used only
    \o as authorized in a license agreement controlling such use and disclosure.
    \o
    \o RESTRICTED RIGHTS NOTICE (SHORT FORM)
    \o Use/reproduction/disclosure is subject to restriction
    \o set forth at FAR 1252.227-19 or its equivalent.
    \o Loading geView.cxt
    \o Loading menuBuilder.cxt
    \o Loading schView.cxt
    \o Loading selectSv.cxt
    \o Loading LVS.cxt
    \o Loading layerProc.cxt
    \o Loading pte2.cxt
    \o Loading xlUI.cxt
    \o Loading auCore.cxt
    \o Loading vhdl.cxt
    \o Loading seismic.cxt
    \o Loading ci.cxt
    \o Loading ams.cxt
    \o Virtuoso Framework License (111) was checked out successfully. Total checkout time was 0.05s.
    \p >
    \i ; load("./test_testmodes_post_process.ocn")
    \i sess=axlCreateSession(getCurrentTime()) ; the argument is to generate a unique string
    \o Loading oasis.cxt
    \o Loading analog.cxt
    \o Loading par.cxt
    \o Loading socket.cxt
    \o Loading asimenv.cxt
    \o Loading alvs.cxt
    \o Loading awv.cxt
    \o Loading adexl.cxt
    \# Memory report: using 171 MB, process size 959 MB at UTC 2015.06.29 23:12:08.104
    \o Loading te.cxt
    \o Loading elec.cxt
    \# ADE XL session 'Jun 29 16:12:08 2015' started on Mon Jun 29 16:12:08 2015
    \t "Jun 29 16:12:08 2015"
    \p >
    \i sdb=axlSetMainSetupDBLCV(sess "_PRODUCT" "testmode_block_cn_Sim2" "adexl_extracted")
    \e *Error* ddGetObjWritePath: argument #1 should be a ddUserType (type template = "b") - nil
    \p >

    I tried googling, and looking at things in the skill and ocean refs but could not figure out the issue. I am assuming that argument #1 = sess

    thanks!

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Mark,

    This indicates that the cellView you specified does not exist. Not a very friendly message - it's coming from a lower level function.

    Note, I probably wouldn't close the session until after you've done the processing, although it probably doesn't matter.

    You can also use axlReadResDB() where you can just give it a path to the "rdb" file if you know where it is...

    Regards,

    Andrew.

    • 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