The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 21st, 2024, 4:25am
Pages: 1 2 3 
Send Topic Print
can't plot any data (Read 28052 times)
apprentice
Community Member
***
Offline



Posts: 32

can't plot any data
May 07th, 2009, 7:37pm
 
Hi Gurus,
 I tried a rfExample - LNA simple from Cadence spectreRF simulator. However, I was not successful to even plot a single figure.

Simulation runs and shows ready.
But plot doesn't show up. please refer to the screen shot.
in case the jpg can't be posted, the message is :

"There is no analysis data found or selected."


thanks for any suggestion on what I should check and try.
Back to top
 

plot_error.jpg
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: can't plot any data
Reply #1 - May 8th, 2009, 7:28am
 
What waveform viewer are you using?  Are you using ADE?  Can you see a results directory created by Spectre?
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
apprentice
Community Member
***
Offline



Posts: 32

Re: can't plot any data
Reply #2 - May 8th, 2009, 1:36pm
 
thanks for your reply.
I use analog design environment. Assume ADE is the acronym.
Looks like I don't have a result directory. Should it under .../spectre? same level as .../spectre/schematic?

I'm checking my environment variables - PATH, etc.
Back to top
 

directoryandfiles.jpg
View Profile   IP Logged
oermens
Community Member
***
Offline



Posts: 86

Re: can't plot any data
Reply #3 - May 8th, 2009, 7:00pm
 
After simulation, or even during, go to Results->Select and schematic should be one of the options. Sometimes the direct plot form doesn't load the results.

Your simulation directory is set from ADE->Setup->Simulator/Directory/Host or from the environment variable (in .cdsenv not in your path!)

asimenv.startup projectDir string "/some_folder"

Then your results are saved in /some_folder/cellname/spectre/psf

Don't mean to sound insulting, but did you actually *run* the simulation? You don't have a spectre.out file (output log) in your .../spectre/psf folder.
Back to top
 
 
View Profile   IP Logged
apprentice
Community Member
***
Offline



Posts: 32

Re: can't plot any data
Reply #4 - May 8th, 2009, 8:44pm
 
Thanks Oermens. Any potential solution/correction is welcome.

1 Do I need vi .cdsenv at the very beginning, i.e.,  before running icfb?
  vi the .cdsenv to include the project directory - .../lnaSimple (which has the sub directory .../schematic) .
 
   My current .cdsenv is a default one. no asimenv.startup as shown below:
"ddserv showWhatsNew string "4.4.3"
spectre.envOpts firstRun boolean nil
spectre.envOpts controlMode string "batch"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "4.4.3"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "5.1.0"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "5.1.0"
asimenv showWhatsNew string "5.0.0"
asimenv showWhatsNew string "4.4.6"
asimenv showWhatsNew string "5.0.0"
asimenv showWhatsNew string "5.1.0"
"

2. in my case, the cellname is lnaSimple

3. what I did is netlist and run and ADE show "ready" after 1 minute.  I guess I run the simulation.

4. confused by spectrRF document (page 257-258 ver5.1.41 nov.2005)
 
   setenv CDS_rfExamples 'cds_root icms'   (i'm using icfb. shall i change icmst to icfb? Does "cds_root" depends on my installation?
   

Shall I include the path to .cdsinit or .cshrc?
I tried in .cshrc with setenv PATH. but cause problem.
path = ( $MMSIMHOME/tools/bin  $MMSIMHOME/tools/dfII/bin \         $CDSHOME/tools/bin  $CDSHOME/tools/dfII/bin \         $CDSHOME/tools/java $CDSHOME/tools/java/bin $path )

I found no such directory like .../java. my installation shows  ../jre.

really confused by the environment.

thanks a lot for some hints!

Back to top
 
 
View Profile   IP Logged
oermens
Community Member
***
Offline



Posts: 86

Re: can't plot any data
Reply #5 - May 8th, 2009, 9:12pm
 
apprentice wrote on May 8th, 2009, 8:44pm:
Thanks Oermens. Any potential solution/correction is welcome.

1 Do I need vi .cdsenv at the very beginning, i.e.,  before running icfb?
  vi the .cdsenv to include the project directory - .../lnaSimple (which has the sub directory .../schematic) .
 
   My current .cdsenv is a default one. no asimenv.startup as shown below:

2. in my case, the cellname is lnaSimple


You don't have to edit .cdsenv, you can set the project directory in ADE as I mentioned previously (Setup->Simulator/Directory/Host). In my case, I have all my results stored in /opt/simulation/ and when I run simulation using lnaSimple (for example), spectre will create the results folders in /opt/simulation/lnaSimple/... So you just have to specify the base directory of the simulation results.

Also are you setting your environment to append the .cdsenv file upon exit? you have alot of duplicate entries which can cause confusion when loading icfb. If asimenv.startup projectDir is not defined, spectre will use the default location which i believe is $PWD/simulation. You can refer to ../IC/doc/anasimhelp/anasimhelp.pdf for information about this and other analog environment variables that can be set in .cdsenv.

apprentice wrote on May 8th, 2009, 8:44pm:
3. what I did is netlist and run and ADE show "ready" after 1 minute.  I guess I run the simulation.


Firstly, what type of analysis have you set up? If your analysis pane is empty then no wonder you aren't getting results. Please attach your input.scs file from /simulation/lnaSimple/spectre/schematic/netlist folder. After hitting netlist and run, do you get warnings or errors in icfb? What is cadence doing during that one minute?

apprentice wrote on May 8th, 2009, 8:44pm:
4. confused by spectrRF document (page 257-258 ver5.1.41 nov.2005)
 
   setenv CDS_rfExamples 'cds_root icms'   (i'm using icfb. shall i change icmst to icfb? Does "cds_root" depends on my installation?
   


cds_root will find the path to the argument. since icfb and icms are in the same folder (.../IC/tools/dfII/bin) it shouldn't matter. Also be sure to use ` and not ' around the command. rfExamples folder should be set in cds.lib not as an environment variable unless your cds.lib has something along the lines of DEFINE rfExamples $CDS_rfExamples. Simpler way is to add this line to cds.lib (some useful example directories)

#EXAMPLE LIBRARIES
DEFINE US_10ths $CDS_HOME/tools/dfII/samples/cdslib/sheets/US_10ths
DEFINE rfLib $CDS_HOME/tools/dfII/samples/artist/rfLib
DEFINE rfExamples $CDS_HOME/tools/dfII/samples/artist/rfExamples
DEFINE pllMMLib $CDS_HOME/tools/dfII/samples/artist/pllMMLib
DEFINE pllLib $CDS_HOME/tools/dfII/samples/artist/pllLib
DEFINE passiveLib $CDS_HOME/tools/dfII/samples/artist/passiveLib
DEFINE bmslib $CDS_HOME/tools/dfII/samples/artist/bmslib
DEFINE ahdlLib $CDS_HOME/tools/dfII/samples/artist/ahdlLib
DEFINE aExamples $CDS_HOME/tools/dfII/samples/artist/aExamples
DEFINE avTech $CDS_TOP_DIR/ASSURA/tools/assura/etc/avtech/avTech
DEFINE functional $CDS_HOME/tools/dfII/etc/cdslib/artist/functional

these variables, CDS_HOME and CDS_TOP_DIR are specific to my site, maybe your variables are different. CDS_HOME is the same as result of cds_root icfb. CDS_TOP_DIR is the directory where all your cadence tools are installed (i.e. CDS_HOME can also be CDS_TOP_DIR/IC and MMSIMHOME can be CDS_TOP_DIR/MMSIM, etc).


apprentice wrote on May 8th, 2009, 8:44pm:
Shall I include the path to .cdsinit or .cshrc?
I tried in .cshrc with setenv PATH. but cause problem.
path = ( $MMSIMHOME/tools/bin  $MMSIMHOME/tools/dfII/bin \         $CDSHOME/tools/bin  $CDSHOME/tools/dfII/bin \         $CDSHOME/tools/java $CDSHOME/tools/java/bin $path )


in .cshrc, try:

setenv PATH $PATH:$MMSIMHOME/tools/bin:$MMSIMHOME/tools/dfII/bin:$CDSHOME/tools/bin:$CDSHOME
/tools/dfII/bin:$CDSHOME/tools/java:$CDSHOME/tools/java/bin

be sure to define MMSIMHOME and CDSHOME before defining PATH

apprentice wrote on May 8th, 2009, 8:44pm:
I found no such directory like .../java. my installation shows  ../jre.

really confused by the environment.

thanks a lot for some hints!



are you using .cshrc designed for the same version of IC that you are using?
Back to top
 
 
View Profile   IP Logged
apprentice
Community Member
***
Offline



Posts: 32

Re: can't plot any data
Reply #6 - May 8th, 2009, 9:39pm
 
I post the netlist and log first. I'm trying other suggestion.
Thanks.

1. the netlist  (remove this duplication, see below the recreated one)


2. .cshrc version seems match IC version I'm using. See below. I'm using SUNOS
 #
# Variables: ICVer     = ICFB version
#            ASSURAVER = Assura version
#            CalVer    = Calibre version

alias cdsdoc cdnshelp

set CADOS = `uname | tr '[a-z]' '[A-Z]'`

echo "OS      =" $CADOS

if("$CADOS" =~ *SUNOS*) then

  #setenv ICVer IC446
  #setenv ICVer IC446_MSR11
  #setenv ICVer IC5033
  #setenv ICVer IC5033usr3r4
  setenv ICVer IC5141_USR4
  setenv MMSIMVer MMSIM60

  #setenv ASSURAVER ASSURA313usr1
  #setenv ASSURAVER ASSURA316

  setenv CalVer cal_2005.1_10.20
 
endif

3. setenv PATH   in .cshrc
    SHELL=/bin/tcsh
    when I try
setenv PATH $PATH:$MMSIMHOME/tools/bin:$MMSIMHOME/tools/dfII/bin:$CDSHOME/tools/bin:$CDSHOME
/tools/dfII/bin:


after run .cshrc,   it shows:
Bad : modifier in $ ($).

    Do I keep other PATH configurations when I append the new PATH configuration?
 
 
Back to top
« Last Edit: May 9th, 2009, 11:26am by apprentice »  

icfblog.jpg
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: can't plot any data
Reply #7 - May 8th, 2009, 9:59pm
 
apprentice wrote on May 7th, 2009, 7:37pm:
I tried a rfExample - LNA simple from Cadence spectreRF simulator. However, I was not successful to even plot a single figure.
Show me the followings.

(1) Result of "ADE>Setup>Simulator/Directory/Host"
(2) Complete netlist("input.scs") which you can show and save it by "ADE>Simulation>Netlist>Display".
(3) Complete log file("spectre.out") which you can show and save it by "ADE>Simulation>Output Log".
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
apprentice
Community Member
***
Offline



Posts: 32

Re: can't plot any data
Reply #8 - May 8th, 2009, 10:48pm
 
thanks Pancho_hideboo.

1) screenshot attached
2) recreated netlist: input.scs
3) unfortunately the function is in grey color,  screenshot attached

/ Generated for: spectre
// Generated on: May  8 22:38:49 2009
// Design library name: myrfExamples
// Design cell name: lnaSimple
// Design view name: schematic
simulator lang=spectre
global 0
include "/opt/eda/cds/IC5141_USR4/tools/dfII/samples/artist/ahdlLib/quantity.spectre"
include "/disk01/home/cdsmgr.sun/ahdlcompany/quantity.spectre"
parameters prf=-10

// Library name: myrfExamples
// Cell name: lnaSimple
// View name: schematic
V8 (power 0) vsource dc=15.0 type=dc
R0 (net39 out) resistor r=50
R23 (power net39) resistor r=150
R22 (net9 0) resistor r=705m
R3 (net11 net20) resistor r=1K
R21 (net20 0) resistor r=470
R19 (net27 net14) resistor r=500
R6 (net24 out) resistor r=1K
R10 (0 net27) resistor r=2K
C25 (in net20) capacitor c=1.000n
C24 (net39 0) capacitor c=100.0n
C23 (net20 net24) capacitor c=1.000n
C22 (net27 0) capacitor c=100.0n
C21 (out net28) capacitor c=100.0n
PORT0 (net28 0) port r=40 num=2
RF (in 0) port r=40 num=1 type=sine dbm=prf sinephase=0 freq=900M dbm2=prf \
       ammodindex=0.0 ammodfreq=10M ammodphase=0 mag=1 phase=0 xfmag=1 \
       pacmag=1 pacphase=0 fundname="frf"
Q4 (out net20 net9 0) NPNlower
Q3 (net11 net27 net39 0) generic_pnp
Q2 (net14 net14 power 0) generic_pnp
simulatorOptions options reltol=1e-3 vabstol=1e-6 iabstol=1e-12 temp=27 \
   tnom=27 scalem=1.0 scale=1.0 gmin=1e-12 rforce=1 maxnotes=5 maxwarns=5 \
   digits=5 cols=80 pivrel=1e-3 sensfile="../psf/sens.output" \
   checklimitdest=psf
pss  pss  fund=900M  harms=10  errpreset=moderate  annotate=status
modelParameter info what=models where=rawfile
element info what=inst where=rawfile
outputParameter info what=output where=rawfile
designParamVals info what=parameters where=rawfile
primitives info what=primitives where=rawfile
subckts info what=subckts  where=rawfile
saveOptions options save=allpub subcktprobelvl=2


Back to top
 

ADE_setup_simulator_host.jpg
View Profile   IP Logged
apprentice
Community Member
***
Offline



Posts: 32

Re: can't plot any data
Reply #9 - May 8th, 2009, 10:51pm
 
3) screenshot
Back to top
 

ADE_simulaiton_output_log.jpg
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: can't plot any data
Reply #10 - May 8th, 2009, 10:57pm
 
apprentice wrote on May 8th, 2009, 10:48pm:
2) recreated netlist: input.scs
If you recreate netlist, run simulation again.
And in your netlist, no model file for BJT is included.

See http://www.designers-guide.org/Forum/YaBB.pl?num=1205223090/1#1
Here "rfModels.scs" is included.

Show me your "ADE>Setup>Model_Libralies".
Show me your "ADE>Setup>Simulation_Files".

apprentice wrote on May 8th, 2009, 10:48pm:
3) unfortunately the function is in grey color
Run simulation again.
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
oermens
Community Member
***
Offline



Posts: 86

Re: can't plot any data
Reply #11 - May 9th, 2009, 5:37am
 
apprentice wrote on May 8th, 2009, 9:39pm:
3. setenv PATH   in .cshrc
   SHELL=/bin/tcsh
   when I try
setenv PATH $PATH:$MMSIMHOME/tools/bin:$MMSIMHOME/tools/dfII/bin:$CDSHOME/tools/bin:$CDSHOME

/tools/dfII/bin:


after run .cshrc,   it shows:
Bad : modifier in $ ($).

   Do I keep other PATH configurations when I append the new PATH configuration?


Sorry my syntax was also wrong, i was mixing zsh and csh syntax. Refer http://root.cern.ch/root/EnvVars.html. So you should be using

set path = ( $path $MMSIMHOME/tools/bin $MMSIMHOME/tools/dfII/bin $CDSHOME/tools/bin:$CDSHOME/tools/dfII/bin $CDSHOME/tools/java $CDSHOME/tools/java/bin ) as before. Make sure everything is on a single line. You don't set MMSIMHOME or CDSHOME in you .cshrc, are you running another script to set these variables, or this is just small part of your .cshrc?

pancho_hideboo wrote on May 8th, 2009, 10:57pm:
apprentice wrote on May 8th, 2009, 10:48pm:
2) recreated netlist: input.scs
If you recreate netlist, run simulation again.
And in your netlist, no model file for BJT is included.

See http://www.designers-guide.org/Forum/YaBB.pl?num=1205223090/1#1
Here "rfModels.scs" is included.

Show me your "ADE>Setup>Model_Libralies".
Show me your "ADE>Setup>Simulation_Files".

apprentice wrote on May 8th, 2009, 10:48pm:
3) unfortunately the function is in grey color
Run simulation again.


This can also be the case if the simulation is not successful. I'm not sure why the simulation proceeds without include files. Are you using one of the gpdk's? I think alot of the appnotes are written for gpdk180, in which case you should also include its model file. If you installed the kit correctly, this should be taken care of by the .cdsenv template of the pdk, and you should set the environment variable CDS_LOAD_ENV=CWDElseHome (loads CWD/.cdsenv if it exists, or else ~/.cdsenv, if it exists). As requested, please attach your input.scs and spectre.out files.
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: can't plot any data
Reply #12 - May 9th, 2009, 6:16am
 
oermens wrote on May 9th, 2009, 5:37am:
Are you using one of the gpdk's? I think alot of the appnotes are written for gpdk180, in which case you should also include its model file.
No. This example doesn't use "gpdk".

Include "$CDS_INST_DIR/tools/dfII/samples/artist/models/spectre/rfModels.scs" as model file.

oermens wrote on May 9th, 2009, 5:37am:
As requested, please attach your input.scs and spectre.out files.
Don't show same "input.scs" three times.
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
oermens
Community Member
***
Offline



Posts: 86

Re: can't plot any data
Reply #13 - May 9th, 2009, 7:12am
 
It seems he has a model file specified, otherwise he would receive the message in output log:

Code:
Problems encountered during simulation.
Use the Simulation->Output Log menu for more information. 



I loaded the lnaSimple example and simulated using pss analysis and found no errors. I followed pancho_hideboo's instruction to load $CDS_INST_DIR/tools/dfII/samples/artist/models/spectre/rfModels.scs as the model file. I don't know which document you refered to in a previous post, but the voltage gain should be 10dB if my simulation is correct?

Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: can't plot any data
Reply #14 - May 9th, 2009, 9:49am
 
oermens wrote on May 9th, 2009, 7:12am:
I don't know which document you refered to in a previous post
"SpectreRF user manual".

oermens wrote on May 9th, 2009, 7:12am:
but the voltage gain should be 10dB if my simulation is correct?
Maybe correct.
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1 2 3 
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.