Hi,
My runSimulation File is like this:
spectre -env artist5.1.0 +escchars -format sst2 -raw ../psf +lqtimeout 900 -maxw 5 -maxn 5 inputTest.scs (Results are in psf/.)
I tried to use ocean script to read results. It is good if the ocean command are only manually called few times. The call can lead to huge delays if it is called in an iterative manner in a program. (by the way I ran multiply programs at the same time and it keep taking time complaining CDS.log.* locks thing)
I have listed out few time consuming operations in the ocean command and attached the logs from running " ocean < xxx.ocn " as well as the main contents in xxx.ocn file.
I know there are different format for output to /psf, like: nutbin, nutascii, wsfbin, wsfascii, psfbin, psfascii, psfbinf, psfxl, awb, sst2, fsdb, wdf, uwi, and tr0ascii. Is there one that is easy to read results from.
Is there a -fast- way to extract /psf data to a .txt file? (For example: LNA gain in my example; the results are in ../psf/resultsSpectre.txt)
Maybe one suggested method you know is working compatible-ly with one of the listed "-format" ! Thanks!!!!
xxx.ocn:
;updated on the local account to make it universal by Alex.
openResults("../../simulation/LNA_test_tb/spectre/schematic/psf/")
p=outfile("../../simulation/LNA_test_tb/spectre/schematic/psf/resultsSpectre.txt" "w")
fprintf(p, "Hello World!\n" )
fprintf(p, "Hello World!\n" )
;selectResult('sp_noise)
;selectResult('sp)
fprintf(p, "Gain:\n" )
Gain=value(db(sp(2 1 ?result "sp")) 4.6e9)
fprintf(p, "End Write!\n" )
close(p)
exit
Time Consuming in order most -> least
1st: between ocean> Loading oasis.cxt Loading analog.cxt [ 2-3 sec]
2nd: checking CDS.log [if multiple iterative programs are executed simultaneously [usually < 1s, but can be crazily long, if even CDS.9 is being locked and run out the index of CDS.log.*, say 10 is the limit]
3rd: quit ocean mode [the exit command in the xxx.ocn]
4th: first loading ocean command: awd.exe
Ocean command running Log:
*WARNING* file /home/tl4528_loc/CDS.log File is already locked by some other process.
*WARNING* file /home/tl4528_loc/CDS.log.1 File is already locked by some other process.
Program: @(#)$CDS: awd.exe version 5.1.0 10/28/2008 10:21 (cicln03) $
Hierarchy: /users/vlsi/CMC/tools/cadence/IC5141USR6_lnx86/tools.lnx86/dfII/
Sub version: sub-version 5.10.41_USR6.127.29 (32-bit addresses)
Host name (type): cadlams2.engr.mun.ca (x86_64)
Operating system: Linux 2.6.32-431.17.1.el6.x86_64 #1 SMP Fri Apr 11 17:27:00 EDT 2014
X display name: localhost:14.0
X server: Moba/X
Depth of Visual (Root): 24 (24)
Number of Planes Used: 24
X version: 11.0 (vendor release 11405000)
Window Manager: other
User Name: tl4528_loc
Working Directory: cadlams2.engr.mun.ca:/home/tl4528_loc/workspace/ LNA_Small
Process Id: 613
COPYRIGHT ▒ 1992-2008 CADENCE DESIGN SYSTEMS INC. ALL RIGHTS RESERVED.
▒ 1992-2008 UNIX SYSTEMS Laboratories INC.,
Reproduced with permission.
This Cadence Design Systems program and online documentation are
proprietary/confidential information and may be disclosed/used only
as authorized in a license agreement controlling such use and disclosure.
RESTRICTED RIGHTS NOTICE (SHORT FORM)
Use/reproduction/disclosure is subject to restriction
set forth at FAR 1252.227-19 or its equivalent.
>
8-bit PseudoColor Visual is not available (default Visual option).
Using 24-bit TrueColor Visual.
The program xdpyinfo can be used to verify the Visuals available
for your display.
Loading auCore.cxt
Loading acv.cxt
*WARNING* envCyclicStringToIndex: variable 'autoPlot' in tool[.partition] 'asimenv.plotting'
must be of type cyclic
Loading awv.cxt
Loading ciwMenu.cxt
Type ocnHelp() for help on OCEAN commands.
Look in .../tools/dfII/samples/artist/OCEAN for example
OCEAN scripts.
*WARNING* envSetVal: type mismatch for variable 'autoPlot'
in tool[.partition] 'asimenv.plotting'.
nil
ocean> Loading oasis.cxt
Loading analog.cxt
Loading asimenv.cxt
Loading spectrei.cxt
*WARNING* envSetVal: type mismatch for variable 'printComments'
in tool[.partition] 'spectre.envOpts'.
"../../simulation/LNA_test_tb/spectre/schematic/psf/"
*WARNING* envSetVal: Can't set the value of variable 'value1',
in tool[.partition] 'spectre.opts' - it has not been registered.
ocean> port:"../../simulation/LNA_test_tb/spectre/schematic/psf/resultsSpectre.txt"
ocean> t
ocean> ocean> ocean> ocean> t
ocean> 19.53664
ocean> t
*WARNING* file /home/tl4528_loc/CDS.log File is already locked by some other process.
*WARNING* file /home/tl4528_loc/CDS.log.1 File is already locked by some other process.
Program: @(#)$CDS: awd.exe version 5.1.0 10/28/2008 10:21 (cicln03) $
Hierarchy: /users/vlsi/CMC/tools/cadence/IC5141USR6_lnx86/tools.lnx86/dfII/
Sub version: sub-version 5.10.41_USR6.127.29 (32-bit addresses)
Host name (type): cadlams2.engr.mun.ca (x86_64)
Operating system: Linux 2.6.32-431.17.1.el6.x86_64 #1 SMP Fri Apr 11 17:27:00 EDT 2014
X display name: localhost:14.0
X server: Moba/X
Depth of Visual (Root): 24 (24)
Number of Planes Used: 24
X version: 11.0 (vendor release 11405000)
Window Manager: other
User Name: tl4528_loc
Working Directory: cadlams2.engr.mun.ca:/home/tl4528_loc/workspace/ LNA_Small
Process Id: 613
COPYRIGHT ▒ 1992-2008 CADENCE DESIGN SYSTEMS INC. ALL RIGHTS RESERVED.
▒ 1992-2008 UNIX SYSTEMS Laboratories INC.,
Reproduced with permission.
This Cadence Design Systems program and online documentation are
proprietary/confidential information and may be disclosed/used only
as authorized in a license agreement controlling such use and disclosure.
RESTRICTED RIGHTS NOTICE (SHORT FORM)
Use/reproduction/disclosure is subject to restriction
set forth at FAR 1252.227-19 or its equivalent.
>
8-bit PseudoColor Visual is not available (default Visual option).
Using 24-bit TrueColor Visual.
The program xdpyinfo can be used to verify the Visuals available
for your display.
Loading auCore.cxt
Loading acv.cxt
*WARNING* envCyclicStringToIndex: variable 'autoPlot' in tool[.partition] 'asimenv.plotting'
must be of type cyclic
Loading awv.cxt
Loading ciwMenu.cxt
Type ocnHelp() for help on OCEAN commands.
Look in .../tools/dfII/samples/artist/OCEAN for example
OCEAN scripts.
*WARNING* envSetVal: type mismatch for variable 'autoPlot'
in tool[.partition] 'asimenv.plotting'.
nil
ocean> Loading oasis.cxt
Loading analog.cxt
Loading asimenv.cxt
Loading spectrei.cxt
*WARNING* envSetVal: type mismatch for variable 'printComments'
in tool[.partition] 'spectre.envOpts'.
"../../simulation/LNA_Reza_tb/spectre/schematic/psf/"
*WARNING* envSetVal: Can't set the value of variable 'value1',
in tool[.partition] 'spectre.opts' - it has not been registered.
ocean> port:"../../simulation/LNA_Reza_tb/spectre/schematic/psf/resultsSpectre.txt"
ocean> t
ocean> ocean> ocean> ocean> t
ocean> 19.53664
ocean> t