• 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 script confusion: illegal duplicate field symbol in...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 13467
  • 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 confusion: illegal duplicate field symbol in list of fields

lunren
lunren over 15 years ago

Hi all,

 I run ocean script for Monte Carlo simulation. In our model file, we just have mismatch parameters (the foundry do not have process variation for Monte Carlo simulation), so in order to run Monte Carlo simulation, we use for loop structure to run Monte Carlo simulation for each corners (TT, SS, FF, FS, SF). Attached please find part of the ocean script. The simulation runs successfully, however, I was confused by the results. Here is the detail,

When I open mcdata for the TT simulation, the results are fine, for the attached setting, the results are:

82.5428 32.1798

However, for the SS simulation, the results are duplicated:

81.3214 30.8723 81.3214 30.8723

If I added loop variable from 2 to 5 (cor_v=5), the duplication (duplicate the date in the same line) will be twice, three times, four times and five times corresponding to cor_v=2,3,4,5. I am wondering if any body can give me some hints about the problem?

Thanks a lot 

 

       
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design(  "/home/dexue/simulation/sim_ldo_C/spectre/schematic/netlist/netlist")

for(cor_v 1 2

analysis('ac ?start "1"  ?stop "10G"  )
analysis('dc ?saveOppoint t  ?param "temp"  ?start "5" ?stop "60"  )
analysis('stb ?start "1"  ?stop "10G"  ?probe "/I0/IPRB0"  )
analysis('tran ?stop "55u"  ?errpreset "conservative"  )
analysis('noise ?start "1"  ?stop "10G"  ?p "/v3p2" ?n ""  ?oprobe ""  ?iprobe ""  )

option( 'scale  "1.0e-6")
temp( temp_v )

  if( cor_v==1
       {       
         resultsDir( "/home/dexue/simulation/entheto/60mA_ldo_typeC/spectre/60mA_ldo_typeC_mc/schematicTT" )
         modelFile( '("/home/dexue/managed/pdk/tower18_2008_12/model/all_dh6k.scs" "tt_typ") )
        desVar( "power_in" 3.6 )
        desVar( "iload" 50m )
        desVar( "cload" 200p )
        desVar( "ilow" 30m )
        desVar( "ihigh" 60m )
        desVar( "ripple_amp" 0 )
        desVar( "ripple_freq" 0 )
 temp_v = 37
 
monteCarlo( ?numIters "1" ?startIter "1"
    ?analysisVariation 'processAndMismatch ?sweptParam "Temperature"
    ?sweptParamVals "37" ?saveData t
    ?nomRun "yes" ?append nil
    ?saveProcessParams t
)
monteExpr( "Phase_Margin" "getData(\"phaseMargin\" ?result \"stb_margin\")" )
monteExpr( "Gain_Margin" "getData(\"gainMargin\" ?result \"stb_margin\")" )
monteRun()
       }
     )

  if( cor_v==2
       {       
         resultsDir( "/home/dexue/simulation/entheto/60mA_ldo_typeC/spectre/60mA_ldo_typeC_mc/schematicSS" )
         modelFile(
             '("/home/dexue/managed/pdk/tower18_2008_12/model/all_dh6k.scs" "ss_high")
         )
        desVar( "power_in" 3.42 )
        desVar( "iload" 50m )
        desVar( "cload" 1n )
        desVar( "ilow" 30m )
        desVar( "ihigh" 60m )
        desVar( "ripple_amp" 0 )
        desVar( "ripple_freq" 0 )
        temp_v = 5
 
monteCarlo( ?numIters "1" ?startIter "1"
    ?analysisVariation 'processAndMismatch ?sweptParam "Temperature"
    ?sweptParamVals "37" ?saveData t
    ?nomRun "yes" ?append nil
    ?saveProcessParams t
)
monteExpr( "Phase_Margin" "getData(\"phaseMargin\" ?result \"stb_margin\")" )
monteExpr( "Gain_Margin" "getData(\"gainMargin\" ?result \"stb_margin\")" )
monteRun()
       }
     )
)

  • Cancel
Parents
  • lunren
    lunren over 15 years ago

    Hi Andrew,

     Very helpful.  Thanks a lot.

     Lunren

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • lunren
    lunren over 15 years ago

    Hi Andrew,

     Very helpful.  Thanks a lot.

     Lunren

    • 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