• 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. SNR Calculation for ADC

Stats

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

SNR Calculation for ADC

kapileshwar
kapileshwar over 14 years ago

 Hi sir/madam/friends

 I'm working on sigma delta ADC

I used ocean script to retrieve the data from waveform but could not get itby running code

(i saved wavefom data  by printlvs option using calcualtor)

i  loaded the cadence output file into matlab

now how to use tht data!!!!!!!!!!!!!

please send me the code& related document

please please......i'm stuck at this point

I'm workin on all possible means 

can anyone  tell me code how to find SNR from .excel file or .csv file

 

please please

__________________________________________________________________________________________________--

my ocean script

ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design(     "/home/mtech01/simulation/forwardddddpathtest/spectre/schematic/netlist/netlist")
resultsDir( "/home/mtech01/simulation/forwardddddpathtest/spectre/schematic" )
modelFile(
    include model file list
)
analysis('tran ?stop "2m"  )
desVar(      "sa" 20u    )
desVar(      "y" 1u    )

temp( 27 )
out = outfile("./paramresults.out" "w")
run()
selectResult( 'tran )
outputs()                                                 ; View the outputs
;Below, voltage measurements of VOUT_tran node are found at time points 0 to
;50 msec by increments of 1 msec.
for(tt 1 51
    time = tt*0.001 - 1*0.001
    fprintf(out "%5.3f    " time)                         ; Print the time stamp
    fprintf(out "%1.6e \n" value(VT("/VOUT_tran"),time))  ; Print the voltage associate with the time
)

ocnPrint( ?output "./my0file" v("net0123") ?precision 16 ?numberNotation 'scientific ?from 0 ?to 10noscript.ocn"?step 0.1n

close(out)
plot(getData("/net0123") getData("/net25") )

with regards!!!!!

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Rather than using matlab to do the calculation, you could probably just use the spectrum function in IC61 (it's documented, and in the calculator, and available in OCEAN) to do this directly.

    I can't really advise you, because it's hard for me to see precisely what you're trying to do. Even if you do want to do it with Matlab, you'd be better off using the strobeperiod option on the tran analysis, so you get an output on a regular time interval, rather than doing this with the value() function, which is interpolating the result (and thus introducing numerical error). 

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Rather than using matlab to do the calculation, you could probably just use the spectrum function in IC61 (it's documented, and in the calculator, and available in OCEAN) to do this directly.

    I can't really advise you, because it's hard for me to see precisely what you're trying to do. Even if you do want to do it with Matlab, you'd be better off using the strobeperiod option on the tran analysis, so you get an output on a regular time interval, rather than doing this with the value() function, which is interpolating the result (and thus introducing numerical error). 

    Regards,

    Andrew.

    • 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