How do I read design variables value using ocean?
I run Cadence Spectre simulations in ADE. There are many design variables in ADE. After the simulation is done, I use ocean script to process the data. I like to generate a table which include both of the design variables and the simulation results. I know in netlist I can read the variables, but it is too trivial to use scanf to search each of them. Is there a convenient way to get the variables and their values? Thanks.
Use "VAR()" calculator function.
x=VAR("x")
Or if you have following statement in netlist,
designParamVals info what=parameters where=rawfile
selectResult("designParamVals")
x=pv("top-level", "x")
outputParams("top-level")
pancho_hideboo,
Thank you very much, but I did understand your approaches well. For the first approach, VAR() is not recognized by ocean. Ocean gives an error "undefined function". I checked the ocean manual, but VAR() is not listed. SKILL reference also does have this command. Is there a special version or other requirements for using VAR()?
For second approach, how do I change the netlist in ADE? If I use ocean script to run the sims, I know I can first change the netlist file and then submit the sim. But how do I do that in ADE? Thanks.
how your results are stored (according to the names of the variable )?
if so, i think you can extract the results out easily as the way you stored them.
BTW: you use ocean to do plot or list a table?
"VAR()" can be used in OCEAN.
For example, see http://www.designers-guide.org/Forum...num=1233338166
I can't understand what you are confusing.
What are you confusing ?
See http://www.designers-guide.org/Forum...1275509213/1#1
Thanks for all replies. The problem is solved by using VAR(). I did not use it correctly in the first try. I did not use "" for the variables. After adding "", everything works perfectly.
Added after 18 minutes:
Are there commands to get
1) the view of specific blocks
2) simulation files set in ADE/Setup?
Thanks.
Are these sentences some questions which you want to know ?
I can't understand what you want to mean at all.
What do you mean by "the view of specific blocks" ?
What do you mean by "simulation files set in ADE/Setup" ?
If you want someone to understand your questions, describe your questions in detail with correct terminologies.
About "VAR()", search it using "Skill Finder".
CIW > Tools > SKILL Development > Finder
I am sorry I did not describe the questions clearly. Here are what I want to do:
1) In hierarchy editor, I switch different views of designs so that I can compare the performance. I want to record the view name in my data summary table. This information is included in netlist, but I don't know if there is an easy way to get it. For example, I have a LNA block which has several views, schematic, sch_1, sch_2. I can select the view (for instance, sch_2) in hierarchy editor before running a sim. After sim, how do I know the view used for this sim is ssch_2?
2) I run sims for different process corners, which use different model files. The model files are selected in ADE/Setup/Simulation Files. After simulation, how can I know which simulation file it used?
Thanks.
I can't find out any issue related to "RF, Microwave, Antennas and Optics" in your question.
You should post such question which is no more than usage of very specific vendor's tool.
For example, post to the followings.
http://www.designers-guide.org/Forum...?board=circuit
http://www.cadence.com/community/forums/38.aspx
There is no easy method to capture structure of "config view".
See http://www.designers-guide.org/Forum...num=1261486433
Thank you for your reply. I am new to this website and not familiar with how the website is organized. Should be clearer next time.
