holddreams
Junior Member
![* *](https://designers-guide.org/forum/Templates/Forum/default/starblue.gif)
Offline
Posts: 19
|
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
|