• 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 SKILL
  3. Ocean script for Montecarlo/AMS technology

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 3234
  • 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

Ocean script for Montecarlo/AMS technology

LucaPico
LucaPico over 14 years ago

 Hy everyone,

i am through this issue: i have to run montecarlo simulations with a trimming process: each montecarlo simulation must run at least twice in order to verified the results after trimming.

I could not find how to run just the ith montecarlo simulation

The script flow should be as folows:

run ith montecarlo sim

set the trimmed parameter

re-run ith montecarlo sim

check the results

I did it with another design kit but with AMS technology (Austriamicrosystems) i don't know how to do it.

I am using IC5.10.41.

Thanks a lot.

Luca 

  • Cancel
Parents
  • LucaPico
    LucaPico over 14 years ago

     Hy Andrew,

     

    your solution works fine. Many thanks.

    I have another issue on the same script.

    It happened that some montecarlo simulations do not converge and the script does not proced because of error in the fprintf data type.

    when this happens it writes in the log file ERROR

    To prevent the script from stopping, I am doing this way (i found it the easiest way):

     while((check !="ERROR")  || (check != "EOF")

    fscanf(file_port "%s" check)

    )

    if(check == "ERROR")

    doing this

    else

    doing that

    )

    but when i put the (check != "EOF") statement in the while loop it goes in infinte loop (because in the first montecarlo simulation i run, there is no error).

    i think the log file i am pointing to is not closed or i am putting the wrong string for detecting the end of the file.

    Thanks a lot again

    Best regards

    Luca

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • LucaPico
    LucaPico over 14 years ago

     Hy Andrew,

     

    your solution works fine. Many thanks.

    I have another issue on the same script.

    It happened that some montecarlo simulations do not converge and the script does not proced because of error in the fprintf data type.

    when this happens it writes in the log file ERROR

    To prevent the script from stopping, I am doing this way (i found it the easiest way):

     while((check !="ERROR")  || (check != "EOF")

    fscanf(file_port "%s" check)

    )

    if(check == "ERROR")

    doing this

    else

    doing that

    )

    but when i put the (check != "EOF") statement in the while loop it goes in infinte loop (because in the first montecarlo simulation i run, there is no error).

    i think the log file i am pointing to is not closed or i am putting the wrong string for detecting the end of the file.

    Thanks a lot again

    Best regards

    Luca

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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