• 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. How to know that ALL MOS are in saturaion region by running...

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 127
  • Views 17197
  • 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

How to know that ALL MOS are in saturaion region by running ocean script?

MOSMOS
MOSMOS over 12 years ago

I want to know how to write a ocean script that can create a file to display all MOS' region,but I don't know the function.

How to know that where are All MOS in ??

THANKS! 

  • Cancel
  • VKhlyupin
    VKhlyupin over 12 years ago

     If you mean that you need to determine a region which each MOS in after some simulation, I'm affraid there is no one function to do this and you'll have to read skill docs to obtain a methodology.

    If you are talking about values of the CDF description of each MOS (some CDF descriptions have the "reagion" parameter) I think "dbGet" function coul help you.

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

    If you're using OCEAN, and you've run a DC operating point simulation, then you can use the report() function to do this.

    For example:

    analysis('dc ?saveOppoint t)
    run()
    selectResult('dcOpInfo)
    report(?param "region")

    You'll get the region of each device returned as a number. If you look at "spectre -h modelType" - e.g. "spectre -h bsim4" you get:

     1       region=triode     Estimated operating region. Spectre outputs the number (0-4) in a rawfile.
                              Possible values are off, triode, sat, subth, and breakdown.

    and for "spectre -h bjt" you get:

     3       region=fwd        Estimated operating region. Spectre outputs number (0-4) in a rawfile.
                              Possible values are off, fwd, rev, sat, and breakdown.

    So the numbers correspond to the various regions. So for a MOS, 2 means it is in the saturation region.

    The previous reply talking about CDF parameters is not relevant - that was (presumably) talking about the instance parameter region - which is merely a hint to the simulator as to which region the device is in, to help with DC convergence (an option that is rarely set, because it's not that practical to set it on each transistor, and anyway it's not the final region - just a clue to the simulator to tell it (say) that the device is off and hence to expect it to be off when trying to reach DC convergence).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MOSMOS
    MOSMOS over 12 years ago

    Thank you,the results are displayed in terminal using your function .But I want to save the results into a text file,can you give me some suggestions?

    like this:

    p=outfile("./region.txt" "a")

    。。。。。。 

    run()

     fprintf(p "%d

    ................................................................ 

     Can i use such a way to write the results into a text file?

    Thank you very much! 

     

     

     


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

    ocean> ocnHelp 'report           

    PROTOTYPE     report([?output t_filename | p_port] [?type
                  t_type] [?name t_name] [?param t_param] [?format
                  s_reportStyle] [?maxLineWidth charsPerLine]) => t/nil
    ...

    So you can do report(?output "./region.txt" ?param "region") or report(?output p ?param "region")

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MOSMOS
    MOSMOS over 12 years ago
    It's kind of you,thank you very much!
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Venn
    Venn over 8 years ago

    Hi Andrew,

    Is there a way to loop through all the transistors and print their operating points using OCEAN or any other tool? I don't want to type the name of the transistors manually.

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

    The OCEAN report() function can do that. See the documentation or just type ocnHelp('report) for more details.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Venn
    Venn over 8 years ago

    Hi Andrew,

    Thanks! It works. Is it possible to do mathematical operations like vgs-vth for all transistors and report it?

    If it's possible to do that for specific transistors (for example, transistors that end with "_sat"), it would be great.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Venn
    Venn over 8 years ago

    Hi Andrew,

    Can you please reply to my previous message in case you missed it. I really appreciate your help.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago
    I've been busy with my day job this week (and away for some of the week too). Anyway, the answer is that to do this you'd have to write your own function - the report function won't do it for you.

    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