• 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. Ocean scripting

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 11553
  • 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 scripting

saorishabh
saorishabh over 4 years ago

Hi,

I have a script which generates netlist with values in suffix format (1m, 1u, 1n etc.). I want it to generate in engineering format (1e-3, 1e-6, 1e-9 etc.). 

Script is below : 

envSetVal("asimenv.startup" "projectDir" 'string "<Directory Path>")
simulator( 'spectre )
setup( ?numberNotation 'engineering)
design( "<Design Name>" "<Cell Name>" "schematic" "r")
desVar( "wireopt" 3 )
envOption(
'setTopLevelAsSubckt t
)
saveOption( ?outputParamInfo nil )
saveOption( ?elementInfo nil )
saveOption( ?modelParamInfo nil )
createNetlist( ?recreateAll t)
exit

Thanks

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    The ?numberNotation argument for setup() doesn't affect netlisting. Instead you need to use:

    envSetVal("spectre.envOpts" "setEngNotation" 'boolean t)

    (you will need the ?recreateAll t argument to createNetlist to force a full re-netlist, but you already have that). Note that you can't use envOption() to set this flag; it has to be done via envSetVal instead (for some reason).

    I did just notice that iPar() expressions may not cause values within the expression to change to engineering notation, but I don't see this as a very widely used option (since Spectre can handle the netlist anyway, there's little reason to use this normally). Maybe it's good enough for what you need though.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • saorishabh
    saorishabh over 4 years ago in reply to Andrew Beckett

    Thanks Andrew. I was able to generate in required notations.

    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