Is there any way to direct the output to certain f...
# xyce
m
Is there any way to direct the output to certain files? For example, ngspice and hspice let you use "-o", but I don't see an option. The mt0 files get uniquely named "file.sp.mt0" whereas other simulators do "file.mt0"
I've hard-coded a temporary fix for now.
e
For anything on the .PRINT line, you can add the field “file=filename” and that is where the output will go. I don’t recall that we have a way to set the filename for a *mt0 file; I’ll check that. If not, I can make that a feature request.
m
Yeah, these are for .MEASURE statements not prints. It seems the standard is to be able to say "-o foo" then everything will go to foo.mt0, foo.ms0, etc.
e
We do have a “Xyce -o <file>” option, which is described as “place result in file”. But, that is referring to .PRINT line outputs and doesn’t (yet?) apply to MEASURE outputs. Xyce currently uses it is the full path/filename, but for it to work with multiple types of output it would need to just be a filename prefix, probably.
So, if I say
Xyce -o fred nelist.cir <return>
, then the results from the .PRINT line (if it exists) will go into a file named
fred
.
But if
netlist.cir
has a measure in it, it will still go to
netlist.cir.mt0
.
I can add an issue for this as well.
m
Thanks!
👍 1