The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 2nd, 2024, 5:36am
Pages: 1
Send Topic Print
How to run Ocean with ADEXL for many loops. (Read 10446 times)
Jacki
Senior Member
****
Offline



Posts: 237

How to run Ocean with ADEXL for many loops.
Mar 20th, 2014, 11:23am
 
Hi All,

   I have a question about the Ocean run in IC6.1.5 (ADEXL). Now I have 128 source files (.txt) and import them one by one through "vpwlf". Each time, I can only run one source file, and get one result. It is boring that I have to run 128 times to get all of the results.
   Is it possible I write a Ocean script and run the loop, every time the settings in the simulation is fixed, only needs to change the source file e.g. ./Cadence/sourcefile1.txt  ./Cadence/sourcefile2.txt ... ...., actually every time the netlist should be updated as well.
   Any comments?
   Thank you.
Back to top
 
 
View Profile   IP Logged
Jacki
Senior Member
****
Offline



Posts: 237

Re: How to run Ocean with ADEXL for many loops.
Reply #1 - Mar 20th, 2014, 11:35am
 
Should I change the stimulus file, and group them in the loop as describe here http://www.cadence.com/Community/forums/p/23667/1315087.aspx ?
Actually I don't know too much about the stimulus file because normally I run with ADEXL, the stimulus file is set automatically. If anybody can explain something about the "stimulus file"?
Thanks.
Back to top
 
 
View Profile   IP Logged
Jacki
Senior Member
****
Offline



Posts: 237

Re: How to run Ocean with ADEXL for many loops.
Reply #2 - Mar 21st, 2014, 10:51am
 
I check the Ocean reference manual, it seems the for loop is only for parametric sweep. Is it impossible to import many signal source files (.txt) by pwlf automatically one by one, and do the simulation respectively?
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: How to run Ocean with ADEXL for many loops.
Reply #3 - Mar 31st, 2014, 4:27am
 
Jacki wrote on Mar 21st, 2014, 10:51am:
I check the Ocean reference manual, it seems the for loop is only for parametric sweep. Is it impossible to import many signal source files (.txt) by pwlf automatically one by one, and do the simulation respectively?

I don't know. I suggest you try Code:
alter 

in the spectre netllist.
- B O E
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: How to run Ocean with ADEXL for many loops.
Reply #4 - Apr 7th, 2014, 12:36pm
 
This solution on Cadence's support site http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNu... explains how to create a version of vpwlf which allows the fileName to be a variable, and then you can control the fileName with a desVar(). You can then use a foreach loop in your OCEAN code to change.

Kind Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Jacki
Senior Member
****
Offline



Posts: 237

Re: How to run Ocean with ADEXL for many loops.
Reply #5 - Apr 10th, 2014, 1:24pm
 
boe wrote on Mar 31st, 2014, 4:27am:
Jacki wrote on Mar 21st, 2014, 10:51am:
I check the Ocean reference manual, it seems the for loop is only for parametric sweep. Is it impossible to import many signal source files (.txt) by pwlf automatically one by one, and do the simulation respectively?

I don't know. I suggest you try Code:
alter 

in the spectre netllist.
- B O E


Hello B O E,

   Thank you for your comments. I will try it.
Back to top
 
 
View Profile   IP Logged
Jacki
Senior Member
****
Offline



Posts: 237

Re: How to run Ocean with ADEXL for many loops.
Reply #6 - Apr 10th, 2014, 1:26pm
 
Andrew Beckett wrote on Apr 7th, 2014, 12:36pm:
This solution on Cadence's support site http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNu... explains how to create a version of vpwlf which allows the fileName to be a variable, and then you can control the fileName with a desVar(). You can then use a foreach loop in your OCEAN code to change.

Kind Regards,

Andrew.


Hello Andrew,
   Thank you for your link, but my account of Cadence on-line support is disabled by our administrator. I cannot log in to check the information one the website you sent. Can you show me some information here?
   Thank you.
   Jacki
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: How to run Ocean with ADEXL for many loops.
Reply #7 - Apr 16th, 2014, 12:43am
 
You should sort this out with your adminstrator.

There's nothing enormously sensitive about that solution, so I will post it here:

Problem

You wish to have a vpwlf voltage source with parametric file name.

By doing this, you can use a single schematic to run several simulations which differ in the PWL file used to drive the circuit.

Is this possible?
Solution

This can be done relatively easily.

1.    Take a copy of vpwlf from analogLib into your own library
2.    CIW Tools->CDF->Edit
3.    Set the CDF type to "Base", and fill in the lib name and cell name of your vpwlf.
4.    Go to the simulation information tab. Choose spectre as the simulator.
5.    Add "file" to the instParameters and remove "file" from the stringParameters.
6.    Go to the "Component Parameters" tab, and click on the row for the parameter fileName.
7.    Set parseAsNumber to "yes" and units to "don't use".
8.    OK the Edit CDF form.

What this will do is mean that if you get a design variable name in the file name field for your vpwlf source, it won't netlist it with "" around the name. So, if you specify the filename as myfile, and then add a design variable in ADE called myfile with value "myfile.pwl" (and you need to include the quotation marks in the design variable value), it will end up netlisted something like this:

Code:
simulator lang=spectre
global 0
parameters pwlFile="myfile.pwl"

// Library name: test
// Cell name: testvpwl
// View name: schematic
V0 (net3 0) vsource file=pwlFile type=pwl
R0 (net3 0) resistor r=1K 



and spectre will quite happily simulate that.

Step 7 in the instructions above will do two things. First it will allow the design variable to be found if you do a Variables->Copy from CellView in ADE. Second, it will show the evaluated filename if you use the Edit->Component Display to evaluate the parameters for the vpwlf instance in "Full" mode. Whilst it isn't actually a number field, so parseAsNumber is not entirely appropriate, it does allow these two additional features to work.

The above will only affect spectre netlisting; for other simulators, similar modifications in the simInfo for that would be necessary - assuming that the simulator supports string parameters. If not, you may want to delete the stopping view for that cell to prevent any problems.
Back to top
 
 
View Profile WWW   IP Logged
Jacki
Senior Member
****
Offline



Posts: 237

Re: How to run Ocean with ADEXL for many loops.
Reply #8 - Apr 18th, 2014, 9:03am
 
Hello Andrew,

   Thank you very much.
   Jacki
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.