Josef,
Andi is right. You have to do this by including a file with spectre syntax (which could use wildcards), and doing that via a stimulusFile or even a modelFile call in OCEAN.
You could always wrap this up in a function which wrote it out to a temporary file, and then set the stimulusFile to it? Something like:
procedure(MySaveOppoint(device)
let((tmpFile port)
tmpFile=makeTempFileName("/tmp/saveOppoint")
port=outfile(tmpFile)
fprintf(port "save %s:oppoint\n" device)
close(port)
stimulusFile(?xlate nil tmpFile)
tmpFile
)
)
Then you could do:
file=MySaveOppoint("M1")
run()
deleteFile(file)
Note - none of the above has been tested - it's just an idea.
Regards,
Andrew.