I am a new to ocean scripting and currently I am trying to print operating point parameters(gm,rds,etc) to a file through ocean.The simulation runs fine. I don't want to use ocnprint because it introduces column headers. I want to use frpintf instead. I tried something like:
gm = OP("/M0","gm")
fprintf( out "%5.2" gm)
-> this prints srrWave:0x1f7c0060 instead of the deciaml value. What is the correct way to do this?
This is not ocean what you have posted.Try this:openResults( "<yourResultsPsfDir>")selectResults( 'dcOpInfo )report( ?output "<yourOutputFile>" ?name "/M0" ?param "gm" )And have a look at the "OCEAN Reference" manual.
For rthe initial question, OP usualy should return a float.
You may test it with "type(gm)", where gm is the varialbe which holds the gm value.
For the print I would suggest a " fprintf( out "%e" gm )".
Your post doesnt have a vaild format spec for fprintf, don't know if this is a typo.
Should be OK using OP, but my guess is that you've done a parametric sweep or something like that? Could that be the case?
Hi Berndfi ... Thanks for your reply. Will try them
Hi Andrew.. Thanks for your reply. I am not running parametric sweep. I have a DC-biased NMOS and have simply run a simulation with save DC OP set.What could be wrong?
Can you post your whole OCEAN script?