• 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. Getting Result '0' or nil from ocean script

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 1363
  • 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

Getting Result '0' or nil from ocean script

ktarun
ktarun over 8 years ago

Hi,

I generated the ocean script from ADE L and the current expression from ocean script works fine from me. When i tried to used standalone ocean script, i am getting output zero. I know, it is the problem of hierarchical  node name nomenclature. But i am unable to resolve it. I tried every possible situation.

NETLIST 

// Library name: final_tbench
// Cell name: class_nfet-4port_Csb1
// View name: schematic
v5 (0 B) vsource dc=0 mag=1.0 phase=0 type=dc
source1 (G 0) vsource dc=0 mag=0 phase=0 type=dc
source0 (D 0) vsource dc=1e-6 mag=0 phase=0 type=dc
source2 (S 0) vsource mag=0 phase=0 type=dc
vgnd1 (0 vss!) vsource mag=0 phase=0 type=dc
vgnd0 (vdd! 0) vsource dc=vpwr mag=0 phase=0 type=dc
MN0 (D G S B) nsvt w=320.0n l=280.0n m=1 nf=1 as=53.4f ad=54f ps=980n nrs=531.25m

OceanScript

simulator( 'spectre )
design( "/project/class_pfet-4port_Cgd1/spectre/schematic/netlist/netlist")
resultsDir( "/project/class_pfet-4port_Cgd1/spectre/schematic" )
modelFile(
'("/project/amsmodels/spectre/topinclude_nxp.scs" "base")
'("/project/amsmodels/spectre/topinclude_nxp.scs" "top_tt")
'("/project/amsmodels/spectre/topinclude_nxp.scs" "disable_relimo")
'("/project/amsmodels/spectre/topinclude_nxp.scs" "disable_soa")
'("/project/amsmodels/spectre/mix_mode.scs" "default")
'("/project/amsmodels/spectre/mix_mode.scs" "ie")
)
analysis('ac ?start "1" ?stop "1.1" ?dec "1" )
desVar( "gateresglobal" 0 )
desVar( "lsimpackaging" 0 )
desVar( "matching" 1 )
desVar( "swjunexpglobal" 1 )
desVar( "swleakglobal" 1 )
desVar( "swdg" 0 )
desVar( "globalcjaccw" 0 )
desVar( "globalswavena" 0 )
desVar( "swip3lv" 0 )
desVar( "swip3hv" 0 )
desVar( "swip3ehv" 0 )
desVar( "swip3vpnp" 0 )
desVar( "globaldtaxi" 0 )
desVar( "swnpnleakglobal" 1 )
desVar( "swdelvtacglobal" 1 )
desVar( "temp" 27.0 )
desVar( "vbias" 1.2 )
desVar( "vpwr" 2.0 )
envOption(
'enableNoiseRefactor nil
'analysisOrder list("ac")
)
option( 'checklimitdest "psf"
)
saveOption( 'subcktprobelvl "" )
saveOption( 'nestlvl "" )
temp( 27 )
run()

Cgd1=value(abs(imag((IF("/source1/PLUS") / (2 * 3.14159 * 1)))) 1)      ; actual ADE L generated expression
ocnPrint(Cgd1)

I am trying to use the Cgd1=value(abs(imag((IF("G") / (2 * 3.14159 * 1)))) 1)  for standalone netlist. This is giving me zero result.

My theoretical expression is Cgd1 = imag(Ig) /2*pi*f

Please help. Trying to fix this issue from last week

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    You probably just need to use the netlist name - note that "G" won't work because that's a net name not a terminal name. I suspect  you want:

    Cgd1=value(abs(imag((IF("source1:p") / (2 * 3.14159 * 1)))) 1)      ; actual ADE L generated expression

    or

    Cgd1=value(abs(imag((i("source1:p" ?result 'ac) / (2 * 3.14159 * 1)))) 1)      ; actual ADE L generated expression

    You could also probably use source1:1 (to get the first terminal of the source).

    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