Hi,
I have a script (external to Cadence) that needs to run Spectre multiple times, and manipulates the resulting files at every run. For my understanding, the following code can launch spectre from the terminal:
spectre MY_SPECTRE_NETLIST.scs
This will generate the output files in the folder ..../psf
Now, instead of directly providing the netlist, because of the script I have to pass it like the following:
spectre {0}
Where {0} is the way I have to use to pass MY_SPECTRE_NETLIST.scs, which is named differently at every run by the script. Then, according to the script, I also have to provide an information about the output files, which Will be also re-named. For example,
spectre {0} -r {1}
Will also create a differently named folder where it will store the output files at every run, according to whatever {1} does. So, for example, if the script uses a name MY_OUTi, I Will have MY_OUT1/, MY_OUT2/, and so on.
The problem here is that {1} expects a file (for my understanding it is spectre.out file), but in the documentation I can only find the commands to change the psf directory, and nothing about the spectre.out file. How can I do that?
If I can make it more clear, I report here a working example using eldo:
eldo -i {0} -o {1}
Where {0} is taking the eldo netlist (.cir) and {1} is taking the eldo output file (.chi).
I Hope this is clear enough (unfortunately I cannot share any insights about the script). Thanks in advance!
Nicola