The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> Circuit Simulators >> How to control the number of points in the print file?Thanks. https://designers-guide.org/forum/YaBB.pl?num=1253107838 Message started by holddreams on Sep 16th, 2009, 6:30am |
Title: How to control the number of points in the print file?Thanks. Post by holddreams on Sep 16th, 2009, 6:30am In the following netlist, it writes .print tran *+ v_sweep = par('resolution*(time-sweep_d)/step_t + swstart') + v_sweep = v(v_sweep) + i_pulldown = par('0') + i_gndclamp = i(vgnd_clamp) + i_pullup = par('0') + i_powerclamp = i(vpower_clamp) after running the simulation, there will be a *.print file, I want to know how to control the number of points measured, anyone can give some suggestions? Thanks! *************************************************** simulator lang=spectre //////////////////// i-v curve simulations //////////////////// subckt buffer (1 2 3 4 5 6 7) // d_in pad puref pclref pdref gclref /en x0 (2 3 4 5 6) input_buf // <<<------ change buffer name here ends //////////////////////////////////////////////////////////////////////////////// include "process.lib" section=typ include "input_buf.inc" //////////////////////////////////////////////////////////////////////////////// mytemp options temp=50 // temperature of typical case //------------------------------------------------------------------------------ parameters resolution = 5.0m // voltage resolution of sweep //////////////////////////////////////////////////////////////////////////////// parameters puref_typ = 3.300 // pullup reference voltage, typ. parameters puref_min = 3.135 // pullup reference voltage, min. parameters puref_max = 3.465 // pullup reference voltage, max. parameters pclref_typ = puref_typ // power clamp reference voltage, typ. parameters pclref_min = puref_min // power clamp reference voltage, min. parameters pclref_max = puref_max // power clamp reference voltage, max. //------------------------------------------------------------------------------ parameters pdref_typ = 0.000 // pulldown reference voltage, typ. parameters pdref_min = 0.000 // pulldown reference voltage, min. parameters pdref_max = 0.000 // pulldown reference voltage, max. parameters gclref_typ = pdref_typ // gnd clamp reference voltage, typ. parameters gclref_min = pdref_min // gnd clamp reference voltage, min. parameters gclref_max = pdref_max // gnd clamp reference voltage, max. //////////////////////////////////////////////////////////////////////////////// parameters pd_ref = pdref_typ // reference voltages for typical case parameters gcl_ref = gclref_typ parameters pu_ref = puref_typ parameters pcl_ref = pclref_typ //------------------------------------------------------------------------------ parameters ven = pd_ref // active-low enable //parameters ven = pu_ref // active-high enable //////////////////////////////////////////////////////////////////////////////// simulator lang=hspice .measure tran vpower param = 'pu_ref-pd_ref' .measure tran gnd_cl_ref param = gcl_ref .measure tran power_cl_ref param = pcl_ref .print tran *+ v_sweep = par('resolution*(time-sweep_d)/step_t + swstart') + v_sweep = v(v_sweep) + i_pulldown = par('0') + i_gndclamp = i(vgnd_clamp) + i_pullup = par('0') + i_powerclamp = i(vpower_clamp) //////////////////////////////////////////////////////////////////////////////// simulator lang=spectre myvsweep (v_sweep 0) bsource v=(resolution*($time-sweep_d)/step_t + swstart) mytran tran step=step_t stop=sweep_t start= sweep_d //////////////////////////////////////////////////////////////////////////////// vrefpd (pdref 0) vsource dc = pd_ref vrefgndcl (gclref 0) vsource dc = gcl_ref vrefpu (puref 0) vsource dc = pu_ref vrefpowcl (pclref 0) vsource dc = pcl_ref von (von 0) vsource dc = ven voff (voff 0) vsource dc = (pu_ref-(ven-pd_ref)) //------------------------------------------------------------------------------ parameters |
Title: Re: How to control the number of points in the print file?Thanks. Post by ywguo on Sep 16th, 2009, 10:23pm Hi holddreams, What's your simulation environment? If simulate in ADE, it is easy to print the transient outputs and parameters with specified steps. Open Calculator, choose the node voltage or parameters, click Tools -> Table.... Then a window named Calculator Results Display pops up. Choose Range, fill in start/End and Step/Scale as what you want. Best Regards, Yawei |
Title: Re: How to control the number of points in the print file?Thanks. Post by holddreams on Sep 19th, 2009, 11:50pm I use spectre stand alone to simulate the circuit. That is ,given a test.scs, then run "spectre test.scs" can get the simulation results. I tried to change the step/stop time, but failed. Also, I use strobeperiod option in the test.scs, however,the print file also contain some information which is not just by strobeperiod of time. Any other suggestions? Thanks. ywguo wrote on Sep 16th, 2009, 10:23pm:
|
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |