Any Ocean scripts available for calculating eye opening?

Discussion in 'Cadence' started by Tao Chen, Mar 17, 2007.

  1. Tao Chen

    Tao Chen Guest

    Is there any Ocean scripts available for calculating eye opening?
    Thanks!

    Tao
     
    Tao Chen, Mar 17, 2007
    #1
  2. Tao Chen

    Tao Chen Guest

    Since no answer, I wrote one. Let me know if you find any bugs.

    procedure( eyeOpening(wf startTime stopTime cycleLength timeStep)
    ; eye-openning calculation.
    ; T. Chen, 03/21/2007

    let( (maxFinal minFinal maxValue minValue tCycle tp pt)
    maxFinal=-1M
    minFinal=1M

    tCycle=timeStep
    while( (tCycle<cycleLength)
    maxValue=1M
    minValue=-1M
    tp=startTime+tCycle
    while( (tp<=stopTime)
    pt=value(wf, tp)
    if(pt>0.0 then
    when(pt<maxValue maxValue=pt)
    else
    when(pt>minValue minValue=pt)
    )
    tp=tp+cycleLength
    )

    if(maxFinal<maxValue then
    maxFinal=maxValue
    )
    if(minFinal>minValue then
    minFinal=minValue
    )

    tCycle=tCycle+timeStep
    )

    maxFinal-minFinal
    ); let
    ); procedure
     
    Tao Chen, Mar 22, 2007
    #2
  3. In IC610, the eyeDiagram calculator function has an ?advOptions (advance
    options) which allows the horizontal or vertical eye opening to be calculated.
    See the Wavescan User Guide and the OCEAN Reference for more details.

    Regards,

    Andrew.
     
    Andrew Beckett, Apr 11, 2007
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.