The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 16th, 2024, 11:27am
Pages: 1
Send Topic Print
ocean script data access question (Read 939 times)
hiSkill_11
Community Member
***
Offline



Posts: 35

ocean script data access question
Jan 04th, 2012, 4:55pm
 
I encounter a problem when i run pss pnoise with ocean script.
I can plot the waveform with the command plot(i("/R0/PLUS") ?result "pss-tran.pss")) in the CIW.
But when I run the i("/R0/PLUS") ?result "pss-tran.pss") it shows the warning as following.
>>
WARNING (OCN-6055): The output '/R0/PLUS' you selected does not exist.  Type outputs() to see
       the list of available outputs or type help('i) for more information on the 'i' command.
nil

So, i can't further clip and average the waveform of i("/R0/PLUS") ?result "pss-tran.pss").
It gives the error like
>>
*Error* clip: can't handle clip(nil 9.9e-05 0.0001).

But the pss and pnoise analysis are completed sccessfully. and I can plot phase noise and pss-tran result.
The problem is that I can not clip the current waveform of /R0/PLUS and average it since it returns nil.

How can i fix it? I post the code here.

....
resultsDir(strcat(resultDir "/" designName "/spectre/config"))
....
openResults(strcat(resultDir "/" designName "/spectre/config/psf"))

when(v("/extal" ?result "pss-fd.pss")

ibias = average(clip(i("/R0/PLUS" ?result "pss-tran.pss") 0.000099 0.0001))
....


More interesting thing is that I can run this script successfully with presimulation netlist(schematic view).
But when I run the post simulation using config view, It failed.
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: ocean script data access question
Reply #1 - Jan 5th, 2012, 2:13am
 
hiSkill_11 wrote on Jan 4th, 2012, 4:55pm:
...
More interesting thing is that I can run this script successfully with presimulation netlist(schematic view).
But when I run the post simulation using config view, It failed.
Probably your "post" view does have a different name for R0.

- B O E
Back to top
 
 
View Profile   IP Logged
hiSkill_11
Community Member
***
Offline



Posts: 35

Re: ocean script data access question
Reply #2 - Jan 6th, 2012, 1:37am
 
boe wrote on Jan 5th, 2012, 2:13am:
hiSkill_11 wrote on Jan 4th, 2012, 4:55pm:
...
More interesting thing is that I can run this script successfully with presimulation netlist(schematic view).
But when I run the post simulation using config view, It failed.
Probably your "post" view does have a different name for R0.

- B O E

The R0 is from analogLib for measure the current purpose, not layout devices. So, for pre sim and post sim, they see the same R0. Thanks.
In addition, when I open a new CIW, and execute the script, it works fine.
But if I do something in the CIW like edit schematic, layout, simulation, then execute the script, it possiblely happened.
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: ocean script data access question
Reply #3 - Jan 6th, 2012, 4:52am
 
hiSkill_11 wrote on Jan 4th, 2012, 4:55pm:
I encounter a problem when i run pss pnoise with ocean script.
I can plot the waveform with the command plot(i("/R0/PLUS") ?result "pss-tran.pss")) in the CIW.
But when I run the i("/R0/PLUS") ?result "pss-tran.pss") it shows the warning as following.
>>
WARNING (OCN-6055): The output '/R0/PLUS' you selected does not exist.  Type outputs() to see
       the list of available outputs or type help('i) for more information on the 'i' command.
nil
For some reason you had no result for i(R0/PLUS)...
Maybe a bug if restarting of CIW solved it.
- B O E
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.