home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p063_1 / 1.ddi / PSPICE.HLP < prev    next >
Encoding:
Text File  |  1991-01-31  |  33.6 KB  |  1,128 lines

  1. @@MM
  2. Menus: ~
  3. This is the Main Menu for the PSpice Control Shell. ~
  4. Use the Files Menu to specify the current file to be read or
  5. to edit the file. ~
  6. Use the Circuit Menu to display and modify devices in the circuit
  7. and to change model parameters. ~
  8. Use the Analysis Menu to set up parameters for the different
  9. analysis types, then select 'Run PSpice' to run the enabled analyses. ~
  10. Use the Probe Menu to view the results of the analyses. ~ ~
  11. Function Keys: ~
  12. At any time the F1 key will provide help. Hit the F1 key
  13. a second time to exit help. ~
  14. The F2 key allows you to move and/or resize most of the
  15. pop up windows (like this one).  If the current window is moveable
  16. or resizable you may press F2 and instructions will appear at the
  17. bottom of the page explaining how to move and resize the window. ~
  18. The F3 key calls up the On-Line Manual.
  19. When you are in the editor just hit F3 then Enter twice and you will
  20. get the manual page that describes the device or command on the line
  21. you are currently editing ("context-sensitive help"). ~
  22. The F4 key shows a list of choices where possible - for example, file
  23. names with a ".cir" extension ~
  24. The F5 key pops up the PSpice calculator. ~
  25. The F6 key shows you a list of errors in the current output file. ~ ~
  26. Using the Mouse: ~
  27. Moving the mouse left/right/up/down is equivalent to using the
  28. arrow keys. ~
  29. Clicking the left or right mouse button is the
  30. same as Enter (except in the editor, where this turns on marking). ~
  31. Clicking both buttons together is the same as ESC.
  32. @@FMC
  33. Selects the current file. All processing is done on this file.
  34. @@FMD
  35. Allows you to change the working directory.  The current directory
  36. is displayed for reference.
  37. @@DIR
  38. Enter a new pathname or directory, or press the ESC key to abort.
  39. @@FME
  40. Edits the current file.  Maximum file size is 32k.
  41. @@FMB
  42. Browses the current output file.  Editing or changing the file
  43. is not possible.  Maximum file size is approximately 1.3 megabytes.
  44. @@FMS
  45. Saves changes made to the current file. The original is saved
  46. with a ".cbk" extension.
  47. @@FMX
  48. Runs an "external" editor on the current file. The file is saved
  49. first if changes have been made. The PSEDIT environment variable
  50. gives a command line for the program. For example, "PSEDIT=edlin\ %f"
  51. would specify edlin as the external editor. The "%f" is replaced by
  52. the name of the current file.
  53. @@FMXB
  54. Runs an "external" text browser/editor on the current output file. The 
  55. PSBROWSE environment variable gives a command line for the program. For 
  56. example, "PSBROWSE=type %f | more" would specify that the circuit output 
  57. would be piped thru the 'more' command onto the screen. The "%f" is 
  58. replaced by the name of the current file.
  59. @@CMD
  60. Allows modification of device parameters.
  61. @@CMM
  62. Allows modification of model parameters.
  63. @@CMP
  64. Allows values of global parameters
  65. (ie. those defined in a ".PARAM" PSpice statement) to be modified.
  66. @@CME
  67. Displays a list of error messages which occurred during read-in
  68. and the (approximate) line number in the circuit file in a scrollable window.
  69. Use the "browse" function to look at errors from the analysis
  70. phase (ie. in the .out file).
  71. @@SMA
  72. Runs the Stimulus Editor to create or modify a stimulus.
  73. Both analog (independent voltage and current sources)
  74. and digital (U "STIM" devices) are supported.
  75. @@SMC
  76. Entering Y enables use of a command file with the Stimulus Editor.
  77. @@SML
  78. Entering Y causes the Stimulus Editor to generate a log file.
  79. @@AMA
  80. Specify the parameters for AC and Noise Analysis (".AC/.NOISE").
  81. @@AMD
  82. Specify the parameters for a DC Analysis (".DC").
  83. @@AMP
  84. Set up a parametric sweep.  The sweep will be performed
  85. on one variable for all the analyses of the circuit. (".STEP").
  86. @@AMTR
  87. Specify parameters for Transient and Fourier Analysis (".TRAN/.FOUR").
  88. @@AMO
  89. Set operating point (".IC/.NODESET").
  90. @@AMTE
  91. Specify temperature(s) for PSpice analyses (".TEMP").
  92. @@AMM
  93. Specify Monte Carlo parameters (".MC").
  94. @@AMC
  95. Set PSpice options (".OPTIONS"). ~ ~
  96. Keyboard commands: ~ ~
  97. Up/down arrow - scroll thru list. ~
  98. ^Enter - accept changes and quit. ~
  99. Esc - quit without saving changes.
  100. @@AMS
  101. Start PSpice analyses.
  102. @@PMS
  103. Define whether to save All, Some or None of PSpice's
  104. output variables for Probe processing.
  105. @@PMV
  106. Run Probe on the most recent PSpice output; or specify another
  107. file for viewing.
  108. @@PMA
  109. Tells Probe to automatically run after a circuit analysis.
  110. @@PMC
  111. Tells Probe to use a command file (/C option).
  112. @@PML
  113. Tells Probe to build a command file (/L option).
  114. @@PMF
  115. Controls whether PSpice generates a binary Probe file or
  116. an ascii Probe file (".PROBE/CSDF").
  117. @@PRASN
  118. Saves variables for Probe: All, Some or None.
  119. @@PMCF
  120. Set up display and hard-copy specifications for PSpice.
  121. This will modify either the 'pspice.dev' or 'probe.dev'
  122. files if one of them already exists.  If no file exists a
  123. 'pspice.dev' file will be created. ~~
  124. This file is used by all of the programs that access the
  125. display or hard-copy devices (Probe, Stimulus Editor,
  126. etc.).  The name of the file that is being edited will be
  127. in the title line of the dialog window.
  128. @@PCDS
  129. Define the display device for PSpice. F4 displays most
  130. currently supported displays.
  131. @@PCPO
  132. Define the port for PSpice hardcopy output. F4 displays
  133. the legal port names. Selecting "FILE" will cause hardcopy to 
  134. be directed to a file rather than the hardcopy device.
  135. @@PCPR
  136. Define the hardcopy device (printer) for PSpice. F4 will
  137. display most currently supported hardcopy devices.
  138. @@PCBT
  139. Output binary (.dat) or ascii (.txt) file for Probe. Binary
  140. is the format generated by ".PROBE". Text is the format generated
  141. by ".PROBE/CSDF".
  142. @@DMS
  143. Do a Sensitivity Analysis for specified output variables (".SENS").
  144. @@DMTF
  145. Do a Transfer Function Analysis on the specifies output variables
  146. and input sources( ".TF").
  147. @@DMB
  148. Controls printout of bias point calculations for DC and for
  149. Transient Analysis(".OP", ".TRAN/OP").
  150. @@DMPL
  151. Plots specified output variables (".PLOT").
  152. @@DMPR
  153. Prints specified output variables (".PRINT").
  154. @@QME
  155. Close all open files and return to the operating system.
  156. @@QMD
  157. Run a single operating system command. To get a "shell" enter 
  158. a blank line.
  159. @@ACEN
  160. Enable or disable AC Analysis. Note that the parameters
  161. set up for AC analysis remain unchanged, regardless of whether
  162. analysis is enabled.
  163. @@ACST
  164. Define the type of sweep for AC Analysis.
  165. @@ACSF
  166. Start frequency for AC Analysis.
  167. @@ACEF
  168. End frequency for AC Analysis.
  169. @@ACNP
  170. If sweep type is Linear, number of points in the AC sweep;
  171. otherwise, the number of points per Octave or per Decade.
  172. @@DCSWP
  173. Enable an optional second nested sweep.  A second sweep variable,
  174. sweep type, start, end, and increment value may be used after the
  175. first sweep.  The entire first sweep will be done for each value of
  176. the second sweep.
  177. @@DCEN
  178. Enable or disable DC Analysis. Note that the parameters
  179. set up for DC analysis remain unchanged, regardless of whether
  180. analysis is enabled.
  181. @@DCSV
  182. Type of variable to sweep (Temperature, Voltage
  183. source, Current source, Model parameter, Global parameter).
  184. @@DCMT
  185. Type of Model for which parameter is to be swept. For example,
  186. RES for a resistor. F4 displays a list.
  187. @@DCMN
  188. Name of (your) model for which parameter is to be swept. F4 displays
  189. a list of models of the specified type which are defined in the
  190. current circuit.
  191. @@DCPN
  192. Name of a parameter for this model type. F4 displays a list of
  193. parameters.
  194. @@DCVS
  195. Enter the name of a voltage source. F4 displays a list of 'v'
  196. devices defined in the present circuit.
  197. @@DCIS
  198. Enter the name of a current source. F4 displays a list of 'i'
  199. devices defined in the present circuit.
  200. @@DCGP
  201. Enter the name of a global parameter. F4 displays a list of
  202. globals defined in the present circuit.
  203. @@DCST
  204. The type of sweep to be done: Linear, Octave, Decade or
  205. Value-list.
  206. @@DCS
  207. The starting value for the Linear, Octave or Decade sweep.
  208. @@DCE
  209. The final value for the Linear, Octave or Decade sweep.
  210. @@DCNP
  211. The number of points per octave (decade) of the sweep.
  212. @@DCIN
  213. The increment in a Linear sweep.
  214. @@DCEN
  215. This enables a "nested" sweep. A second sweep may be placed
  216. after the previously defined first sweep.  In this case the first 
  217. sweep will be the "inner" loop: the entire first sweep will be performed 
  218. for each value of the second sweep.
  219. @@C2FN
  220. Enter a filename. F4 displays a list of ".cir" files in the
  221. current directory.
  222. @@C2PF
  223. Enter a filename. F4 displays a list of ".dat" files in the
  224. current directory.
  225. @@C2CFE
  226. Entering Y will allow Probe to automatically run after analysis.
  227. @@C2CF
  228. Enter a filename. F4 displays a list of ".cmd" files in the
  229. current directory.
  230. @@C2LFE
  231. Entering Y causes Probe to generate a log file.
  232. @@C2LF
  233. Enter a filename (.cmd by default).
  234. @@SCSD
  235. Save or Discard changes to the current file. If Save, the original
  236. file is copied to a file with a ".cbk" extension.
  237. @@TREN
  238. Enable Transient or Fourier Analysis.
  239. @@TRPS
  240. Print step value for the Transient Analysis.
  241. @@TRFT
  242. Final time for the Transient Analysis; duration of the run.
  243. @@TRNP
  244. Time to wait until starting to generate Print, Plot or Probe output.
  245. @@TRSC
  246. Step ceiling; do not allow internal time step to exceed this value.
  247. @@TROP
  248. Print a listing of the currents and power dissipation of all
  249. the voltage sources.  Also, the small signal (linearized)
  250. parameters of all the non-linear controlled sources and all the
  251. semiconductor devices are output.  This is in addition to the node 
  252. voltages which are normally printed.
  253. @@TRUI
  254. Use Initial Conditions set by "IC=" statements on various
  255. devices. Note that, where possible, the preferred way to set the
  256. bias point is by using ".IC" or ".NODESET" statements or by
  257. the "Set Operating Point" function in the Analysis Menu.
  258. @@FOCF
  259. Fundamental frequency for Fourier Analysis.
  260. @@FOOV
  261. Define output variable(s) for Fourier Analysis.
  262. @@FEFN
  263. Enter the name of a circuit file to edit. F4 will display a
  264. list of ".cir" files in the current directory.
  265. @@FESD
  266. Save the changes you have made during the edit, or discard the changes.
  267. @@OPAC
  268. Output summary and accounting information.
  269. @@OPEX
  270. List devices created by subcircuit expansion.
  271. @@OPLB
  272. List lines used from library files.
  273. @@OPLI
  274. List summary of circuit devices.
  275. @@OPNO
  276. List circuit node table.
  277. @@OPNE
  278. Suppress listing of input file.
  279. @@OPNM
  280. Suppress listing of model parameters and temperature updated values.
  281. @@OPNP
  282. Suppress paging and banner.
  283. @@OPOP
  284. List values for all options.
  285. @@OPNOB
  286. Disable printing of bias point voltages.
  287. @@OPI1
  288. DC and bias-point "blind" iteration limit.
  289. @@OPI2
  290. DC and bias-point "educated guess" iteration limit.
  291. @@OPI4
  292. Iteration limit for any Transient Analysis point.
  293. @@OPI5
  294. Total iteration limit for all points in Transient Analysis
  295. (set to 0 to get unlimited number of points).
  296. @@OPLP
  297. Max points allowed for any print table or plot.
  298. @@OPND
  299. Number of digits output in print tables.
  300. @@OPWI
  301. Sets the width of the output.
  302. @@OPAT
  303. Best accuracy of currents (amp).
  304. @@OPCT
  305. Best accuracy of charges (coulomb).
  306. @@OPCP
  307. CPU time allowed for this run (sec).
  308. @@OPDD
  309. MOSFET default drain area (sq m).
  310. @@OPDS
  311. MOSFET default source area (sq m).
  312. @@OPDL
  313. MOSFET default length (m).
  314. @@OPDW
  315. MOSFET default width (m).
  316. @@OPGM
  317. Minimum conductance used for any branch (mho).
  318. @@OPPR
  319. Relative magnitude required for pivot in matrix solution.
  320. @@OPPT
  321. Absolute magnitude required for pivot in matrix solution.
  322. @@OPRT
  323. Relative accuracy of V's and I's.
  324. @@OPTN
  325. Default temperature (degree C).
  326. @@OPTR
  327. Transient Analysis "accuracy adjustment".
  328. @@OPVN
  329. Best accuracy of voltages (v).
  330. @@OPDMM
  331. 1 selects min/typ device timing. ~
  332. 2 selects max device timing.
  333. @@OPDF
  334. Minimum digital time step is 1/DIGFREQ.
  335. @@OPDSF
  336. "Forcing" drive impedance is < DIGSTRF.
  337. @@OPDSD
  338. "Driving" drive impedance is < DIGSTRD.
  339. @@OPDSW
  340. "Weak" drive impedance is < DIGSTRW.
  341. @@MCEN
  342. Enable or disable Monte Carlo Analysis.
  343. @@MCNR
  344. Number of runs (with varying parameters).
  345. @@MCWA
  346. Select one analysis on which to perform Monte Carlo.
  347. @@MCOV
  348. Output variable for which statistics are collected
  349. during Monte Carlo runs.
  350. @@MCLP
  351. Enable or disable printout of model parameters for
  352. each Monte Carlo run.
  353. @@MCOS
  354. Specify what output to keep: ~
  355. All - all output ~
  356. None - no output ~
  357. First - during first N runs ~
  358. Every - for every Nth run ~
  359. Runs - for the specified runs.
  360. @@MCEV
  361. Threshold for RISE_EDGE(v) or FALL_EDGE(v).
  362. @@MCLR
  363. Lower bound on RANGE option. Enter blank field to omit.
  364. If lower and upper omitted, no RANGE option is specified.
  365. @@MCHR
  366. Upper bound on RANGE option. Enter blank field to omit.
  367. If lower and upper omitted, no RANGE option is specified.
  368. @@MCWF
  369. Specify collation function for MC analyses.
  370. @@VCDB
  371. Enter a number in PSpice format (suffices are OK). ~
  372. Examples: 1.23, 1e-5, 1.4pf, 10kohm.
  373. @@VCIN
  374. Enter an integer between 1 and 32767.
  375. @@SEL1
  376. Move the highlight with the arrow keys, make a selection
  377. with Enter or cancel with ESC.
  378. @@SELL
  379. The window is a table containing numbers and/or blank spaces.
  380. Use the arrow keys to move between fields. When done, hit Ctrl/Enter
  381. to accept the changes or ESC to cancel.
  382. @@EDIT
  383. ----- Editor commands ----- ~ ~
  384. ^A - move left 1 word; ~
  385. ^F - move right 1 word; ~
  386. ^Z - scroll up; 
  387. ^W - scroll down; ~
  388. ^Y - delete a line. ~ ~
  389. ESC - exit the editor. ~ 
  390. Arrow keys - move horiz. and vert.
  391. PgUp - page up; ~
  392. PgDown - page down. ~
  393. Home - go to start of line; ~
  394. End - go to end of line. ~
  395. ^PgUp - go to top of file; ~
  396. ^PgDown - go to end of file. ~
  397. ^Home - go to top of page; ~
  398. ^End - go to end of page. ~ 
  399. (the '^' symbol is the Ctrl key) ~
  400. ALT_M - begin marking a block; ~
  401. ALT_C - copy to scrap; ~
  402. ALT_X - cut to scrap; ~
  403. ALT_P - paste at current cursor; ~
  404. ALT_S - search for a pattern; ~
  405. Insert - toggle insert/overstr.; ~
  406. F7 - toggle justify. ~ ~ ~
  407. ----- Mouse keys ----- ~ ~
  408. Click L/R starts marking. ~
  409. Both keys for ESC. ~ ~
  410. Maximum file size is 32k.
  411. @@BROW
  412. ----- Browser commands ----- ~ ~
  413. ^Z - scroll up; ~
  414. ^W - scroll down. ~ ~
  415. ESC - exit the browser. ~ 
  416. Arrow keys - move horiz. and vert.
  417. PgUp - page up; ~
  418. PgDown - page down. ~
  419. Home - go to start of line; ~
  420. End - go to end of line. ~ 
  421. ^PgUp - go to top of file; ~
  422. ^PgDown - go to end of file. ~
  423. ^Home - go to top of page; ~
  424. ^End - go to end of page. ~ ~
  425. ALT_S - search for string; ~
  426. ALT_G - go to line number.
  427. @@CALC
  428. Pop-Up Calculator: ~ ~
  429. This is a simple RPN calculator. Enter numbers in PSpice format
  430. or one of the following one-keystroke commands: ~
  431. + - * / ~
  432. Log eXp sQrt ~
  433. Sin Cos Tan Pi ~
  434. Inv (1/x) ~
  435. ! (change sign) ~
  436. Rad (angles are radian) ~
  437. Deg (angles are degrees) ~
  438. > (degrees to radian) ~
  439. < (radian to degrees) ~
  440. \~ (res freq for LC) ~ ~
  441. ESC to exit.
  442. @@PRIAT
  443. Allow the results from DC, AC, noise, or transient analyses to
  444. be output in the form of tables, referred to as print tables.  Exactly
  445. one analysis type must be specified.  For the type selected, the user
  446. will then be asked for a list of variables to be output.  Values are
  447. printed for each output variable whenever they change value.
  448. @@MANM
  449. This is the On-Line Manual. Select a section, then select an
  450. individual device, command or topic.
  451. @@MANDB
  452. B device - GaAsFET. ~ ~
  453. General Forms: ~
  454. B<name> <d> <g> <s> <model> [<area>] ~ ~
  455. Examples: ~
  456. BIN 100  1  0  GFAST ~
  457. B13  22 14 23  GNOM 2.0
  458. @@MANDC
  459. C device - Capacitor. ~ ~
  460. General Forms: ~
  461. C<name> <+node> <-node> [<model>] ~
  462. + <value> [IC=<initial>] ~ ~
  463. Examples: ~
  464. CLOAD  15  0  20pF ~
  465. CFDBK   3 33  CMOD 10pF IC=1.5v
  466. @@MANDD
  467. D device - Diode. ~ ~
  468. General Forms: ~
  469. D<name> <+node> <-node> <model> ~
  470. + [area] ~
  471. Examples: ~
  472. DCLAMP  14  0  DMOD ~
  473. D13     15 17  SWITCH 1.5
  474. @@MANDE
  475. E device - (Voltage) Controlled Voltage Source. ~ ~
  476. General Forms: ~
  477. E<name> <+node> <-node> ~
  478. + <+control> <-control> <gain> ~
  479. E<name> <+node> <-node> POLY(<value>) ~
  480. + < <+control> <-control> >* ~
  481. + < <coeff> >* ~
  482. E<name> <+node> <-node> VALUE={<exp>} ~
  483. E<name> <+node> <-node> TABLE {<exp>} ~
  484. + < (inval), (outval) >* ~
  485. E<name> <+node> <-node> LAPLACE {<exp>} ~
  486. + {<sexp>} ~
  487. E<name> <+node> <-node> FREQ {<exp>} ~
  488. + < (freq, magdb, phasedeg) >* ~ ~
  489. Examples: ~
  490. EBUFF   1   2  10  11  1.0 ~
  491. EAMP   13   0  POLY(1)  26  0  500 ~
  492. ENLIN 100 101  POLY(2) ~
  493. +    3 0  4 0  0.0 13.6 0.2 0.005 ~
  494. ESQRT  10   0  VALUE = {SQRT(V(5))} ~
  495. ETAB   20   5  TABLE {V(2)} ~
  496. +    (-5v,5v) (0v,0v) (5v,-5v)
  497. E1POLE 10   0  LAPLACE {V(1)} ~
  498. + {1 / (1 + s)} ~
  499. EATTEN 20   0  FREQ {V(100)} ~
  500. + (0,0,0 10,-2,-5 20,-6,-10) ~ ~
  501. @@MANDF
  502. F device - Current Controlled Current Source. ~ ~
  503. General Forms: ~
  504. F<name> <+node> <-node> ~
  505. + <vname> <gain> ~ ~
  506. F<name> <+node> <-node> POLY(<value>) ~
  507. + < <vname> >* < <coeff> >* ~ ~
  508. Examples: ~
  509. FSENSE  1   2  VSENSE  10.0 ~
  510. FAMP   13   0  POLY(1) VIN 500 ~
  511. FNLIN 100 101  POLY(2) V1 v2 ~
  512. +    0.0 0.9 0.2 0.005
  513. @@MANDG
  514. G device - (Voltage) Controlled Current Source. ~ ~
  515. General Forms: ~
  516. G<name> <+node> <-node> ~
  517. + <+control> <-control> <gain> ~
  518. G<name> <+node> <-node> POLY(<value>) ~
  519. + < <+control> <-control> >* ~
  520. + < <coeff> >* ~
  521. G<name> <+node> <-node> VALUE={<exp>} ~
  522. G<name> <+node> <-node> TABLE {<exp>} ~
  523. + = < (inval), (outval) >* ~
  524. G<name> <+node> <-node> LAPLACE {<exp>} ~
  525. + {<sexp>} ~
  526. G<name> <+node> <-node> FREQ {<exp>} ~
  527. + < (freq, magdb, phasedeg) >* ~ ~
  528. Examples: ~
  529. GBUFF   1   2  10  11  1.0 ~
  530. GAMP   13   0  POLY(1)  26  0  500 ~
  531. GNLIN 100 101  POLY(2) ~
  532. +    3 0  4 0  0.0 13.6 0.2 0.005 ~
  533. GSQRT  10   0  VALUE = {SQRT(V(5))} ~
  534. GTAB   20   5  TABLE{V(2)} = ~
  535. +    (-5v,5v) (0v,0v) (5v,-5v)
  536. G1POLE 10   0  LAPLACE {V(1)} ~
  537. + {1 / (1 + s)} ~
  538. GATTEN 20   0  FREQ {V(100)} ~
  539. + (0,0,0 10,-2,-5 20,-6,-10) ~ ~
  540. @@MANDH
  541. H device - Current Controlled Voltage Source. ~ ~
  542. General Forms: ~
  543. H<name> <+node> <-node> ~
  544. + <vname> <gain> ~ ~
  545. H<name> <+node> <-node> POLY(<value>) ~
  546. + < <vname> >* < <coeff> >* ~ ~
  547. Examples: ~
  548. HSENSE  1   2  VSENSE  10.0 ~
  549. HAMP   13   0  POLY(1) VIN 500 ~
  550. HNLIN 100 101  POLY(2) V1 v2 ~
  551. +    0.0 0.9 0.2 0.005
  552. @@MANDI
  553. I device - Current Source. ~ ~
  554. General Forms: ~
  555. I<name> <+node> <-node> ~
  556. + [[DC] <value>] ~
  557. + [AC <mag> [<phase>]] ~
  558. + [ <transient> ] ~ ~
  559. Transient Specifications: ~
  560. EXP(i1 ipk rdelay rtc fdelay ftc) ~
  561. PULSE(i1 i2 td trise tfall pw per) ~
  562. PWL(t1 i1 t2 i2 ... tn fn) ~
  563. SFFM(ioff iampl fc mod fm) ~
  564. SIN(ioff iampl freq td df phase) ~ ~
  565. Examples: ~
  566. IBIAS  13  0  2.3mA ~
  567. IAC    2   3  AC .001 ~
  568. IACPHS 2   3  AC .001 90 ~
  569. IPULSE 1   0  ~
  570. + PULSE(-1mA 1mA 2ns 2ns 2ns 50ns 100ns) ~
  571. I3    26  77  DC .002 AC 1 ~
  572. + SIN(.002 .002 1.5MEG)
  573. @@MANDJ
  574. J device - Junction FET. ~ ~
  575. General Forms: ~
  576. J<name> <d> <g> <s> <model> [<area]> ~ ~
  577. Examples: ~
  578. JIN   100  1  0  JFAST
  579. J13    22 14 23  JNOM ~
  580. +   2.0
  581. @@MANDK
  582. K device - Inductor Coupling. ~ ~
  583. General Forms: ~
  584. K<name> L<name> < L<name> >* ~
  585. +    <coupling> ~
  586. K<name> < L<name> >* <coupling> ~
  587. +    <model> [<size]> ~ ~
  588. Examples: ~
  589. KTUNED  L3OUT L4IN  .8 ~
  590. KXFR1   LPRIM LSEC  .99 ~
  591. KXFR2   L1 L2 L3 L4 .98 KPOT_3C8
  592. @@MANDL
  593. L device - Inductor. ~ ~
  594. General Forms: ~
  595. L<name> <+node> <-node> [model] ~
  596. + <value> [IC=<initial>] ~ ~
  597. Examples: ~
  598. LLOAD  15  0   20mH ~
  599. L2      1  2   .2e-6 ~
  600. LCHOKE  3 42   LMOD   .03 ~
  601. LSENSE  5 12   2uH IC=2mA
  602. @@MANDM
  603. M device - MOSFET. ~ ~
  604. General Forms: ~
  605. M<name> <d> <g> <s> <sub> <mdl> ~
  606. +  [L=<value>]  [W=<value>] ~
  607. +  [AD=<value>] [AS=<value>] ~
  608. +  [PD=<value>] [PS=<value>] ~
  609. + [NRD=<value>] [NRS=<value>] ~
  610. + [NRG=<value>] [NRB=<value>] ~ ~
  611. Examples: ~
  612. M1  14  2  13  0 PNOM L=25u W=12u ~
  613. M13 15  3   0  0 PSTRONG ~
  614. M2A 0   2 100 100 PWEAK L=33u w=12u ~
  615. +  AD=288p AS=288p PD=60u PS=60u ~
  616. +  NRD=14 NRS=24 NRG=10
  617. @@MANDN
  618. N device - Digital Input. ~ ~
  619. General Forms: ~
  620. N<name> <inode> <lonode> hinode> ~
  621. +  <model> [SIGNAME=<name>] [IS=<init>] ~ ~
  622. Examples: ~
  623. NRESET 7  15  16  FROM_TTL ~
  624. N12   18   0 100  FROM_CMOS ~
  625. +  SIGNAME=VCO_GATE IS=0
  626. @@MANDO
  627. O device - Digital Output. ~ ~
  628. General Forms: ~
  629. O<name> <iface> <ref> <model> ~
  630. +  [SIGNAME = <name>] ~ ~
  631. Examples: ~
  632. OVCO  17   0   TO_TTL
  633. O5    22 100   TO_CMOS ~
  634. +  SIGNAME = VCO_OUT
  635. @@MANDQ
  636. Q device - Bipolar Transistor. ~ ~
  637. General Forms: ~
  638. Q<name> <c> <b> <e> ~
  639. + [<subs>] <model> [<area>] ~ ~
  640. Examples: ~
  641. Q1   14  2  13  PNPNOM ~
  642. Q13  15  3  0  1  NPNSTRONG 1.5 ~
  643. Q7   VC  5  12 [SUB] LATPNP
  644. @@MANDR
  645. R device - Resistor. ~ ~
  646. General Forms: ~
  647. R<name>  <+node> <-node> ~
  648. +  [<model>] <value> ~ ~
  649. Examples: ~
  650. RLOAD  15  0  2k ~
  651. R2     1   2  2.4e4
  652. @@MANDS
  653. S device - Voltage-Controlled Switch. ~ ~
  654. General Forms: ~
  655. S<name> <+node> <-node> ~
  656. +  <+control> <-control> <model> ~ ~
  657. Examples: ~
  658. S12  13  17  2  0  SMOD ~
  659. SRESET 5  0  15  3 RELAY
  660. @@MANDT
  661. T device - Transmission Line. ~ ~
  662. General Forms: ~
  663. T<name> <A+> <A-> <B+> <B-> ~
  664. +  Z0=<value> ~
  665. +  [TD=<val> | F=<val>[NL=<val>]] ~ ~
  666. Examples: ~
  667. T1   1  2  3  4  Z0=220  TD=115ns ~
  668. T2   1  2  3  4  Z0=50 F=5MEG NL=0.5
  669. @@MANDU
  670. U device - Digital. ~ ~
  671. General Forms: ~
  672. U<name> <type> <parms> <node>* ~
  673. + [<parm> = <val>]* ~ ~
  674. Types: BUF, INV, AND, NAND, OR, ~
  675.  NOR, XOR, NXOR, BUF3, INV3, ~
  676. AND3, OR3, NOR3, XOR3, NXOR3, ~
  677. JKFF, DFF, PULLUP, PULLDN, ~
  678. STIM. ~ ~
  679. STIM Syntax: ~
  680. U<name> STIM (<width>,<radices>) ~
  681. +<node>* <iomodel> ~
  682. + [TIMESTEP=stepsize] ~
  683. +  < <time>,<value> > | ~
  684. +  < <time> GOTO <label><n>TIMES> | ~
  685. +  < <time> GOTO <label><rv><val>> | ~
  686. +  < <time> INCR BY <val> > ~
  687. +  < <time> DECR BY <val> >>* ~ ~
  688. <rv> = UNTIL GT|GE|LT|LE ~ ~
  689. Examples: ~
  690. U7 XOR() INA INB OUTXOR DEFGATE DEFIO ~
  691. U101 STIM( 1, 1 ) IN1 STMIO ~
  692. + TIMESTEP=10ns ~
  693. + (LABEL=STARTLOOP) ~
  694. + (+10c, 0) (+5ns, 1) ~
  695. + (+40c GOTO STARTLOOP 1 TIMES) 
  696. @@MANDV
  697. V device - Voltage Source. ~ ~
  698. General Forms: ~
  699. V<name> <+node> <-node> ~
  700. + [[DC] <value>] ~
  701. + [AC <mag> [<phase>]] ~
  702. + [ <transient> ] ~ ~
  703. Transient Specifications: ~
  704. EXP(iv vpk rdelay rtc fdelay ftc) ~
  705. PULSE(v1 v2 td trise tfall pw per) ~
  706. PWL(t1 v1 t2 v2 ... tn vn) ~
  707. SFFM(voff vampl fc mod fm) ~
  708. SIN(voff vampl freq td df phase) ~ ~
  709. Examples: ~
  710. VBIAS  13  0  2.3mV ~
  711. VAC    2   3  AC .001 ~
  712. VACPHS 2   3  AC .001 90 ~
  713. VPULSE 1   0 ~
  714. + PULSE(-1mV 1mV 2ns 2ns 2ns 50ns 100ns) ~
  715. V3    26  77  DC .002 AC 1 
  716. + SIN(.002 .002 1.5MEG)
  717. @@MANDW
  718. W device - Current-Controlled Switch. ~ ~
  719. General Forms: ~
  720. W<name> <+node> <-node> ~
  721. +  <vname> <model> ~ ~
  722. Examples: ~
  723. W12  13  17  VC  WMOD ~
  724. WRESET 5  0 VRESET RELAY
  725. @@MANDX
  726. X device - Subcircuit Call. ~ ~
  727. General Forms: ~
  728. X<name> [<node>]* <sname> ~
  729. + [PARAMS: <<par>=<val>*>] ~ ~
  730. Examples: ~
  731. X12  100 101  200 201  DIFFAMP ~
  732. XBUFF 13  15 UNITAMP
  733. @@MANCAC
  734. .AC - AC Analysis. ~ ~
  735. General Forms: ~
  736. .AC [LIN][OCT][DEC] <points> ~
  737. +  <start> <end> ~ ~
  738. Examples: ~
  739. .AC  LIN  101  10Hz  200Hz ~
  740. .AC  OCT   10  1KHz  16KHz ~
  741. .AC  DEC   20  1MEG 100MEG
  742. @@MANCDC
  743. .DC - DC Analysis. ~ ~
  744. General Forms: ~
  745. .DC [LIN] <varname> ~
  746. +  <start> <end> <incr> [<nest>] ~
  747. .DC [OCT][DEC] <varname> ~
  748. +  <start> <end> <points> [<nest>] ~
  749. .DC <varname> LIST ~
  750. +  <value>* [<nest>] ~ ~
  751. Examples: ~
  752. .DC  VIN  -.25  .25  .05 ~
  753. .DC  LIN I2 5mA -2mA 0.1mA ~
  754. .DC  VCE 0v 10v .5v ~
  755. +    IB 0mA 1mA 50uA ~
  756. .DC  RES RMOD(R) 0.9 1.1 .001 ~
  757. .DC  DEC NPN QFAST(IS) ~
  758. +   1e-18 1e-14 5 ~
  759. .DC  TEMP LIST 0 20 27 50 80 ~
  760. .DC  PARAM RS -1 1 0.1
  761. @@MANCDIS
  762. .DISTRIBUTION - User-Defined Dist. ~ ~
  763. General Form: ~
  764. .DISTRIBUTION <name> <<dev> <prob>>* ~ ~
  765. Examples: ~
  766. .DISTRIBUTION bimodal ~
  767. + (-1,1)(-.5,1)(-.5,0)(.5,0)(.5,1)(1,1)
  768. @@MANCEND
  769. .END  - End Circuit. ~
  770. .ENDS - End Subcircuit. ~ ~
  771. General Forms: ~
  772. .END ~
  773. .ENDS [<name>] ~ ~
  774. Examples: ~
  775. .END ~
  776. .ENDS ~
  777. .ENDS 741
  778. @@MANCFOU
  779. Fourier Analysis. ~ ~
  780. General Forms: ~
  781. .FOUR   <freq> <output var>* ~ ~
  782. Examples: ~
  783. .FOUR   10KHz   v(5) v(6,7)
  784. @@MANCFUN
  785. Define Function. ~ ~
  786. General Forms: ~
  787. .FUNC <name>([arg*]) <body> ~ ~
  788. Examples: ~
  789. .FUNC DR(D) D/57.296 ~
  790. .FUNC E(X) EXP(X) ~
  791. .FUNC APBX(A,B,X) A+B*X
  792. @@MANCIC
  793. .IC - Initial Transient Conditions. ~ ~
  794. General Forms: ~
  795. .IC < <vnode> = <value> >* ~ ~
  796. Examples: ~
  797. .IC  V(2)=3.4  V(102)=0
  798. @@MANCINC
  799. .INC - Include File. ~ ~
  800. General Forms: ~
  801. .INC <name> ~ ~
  802. Examples: ~
  803. .INC  SETUP.CIR ~
  804. .INC  C:\\PSLIB\\VCO.CIR
  805. @@MANCLIB
  806. .LIB - Library FIle. ~ ~
  807. General Forms: ~
  808. .LIB [<name>] ~ ~
  809. Examples: ~
  810. .LIB ~
  811. .LIB OPNOM.LIB ~
  812. .LIB C:\\PSLIB\\QNOM.LIB
  813. @@MANCMC
  814. .MC - Monte Carlo Analysis. ~ ~
  815. General Forms: ~
  816. .MC <#runs> [DC][AC][TRAN] ~
  817. + <opvar> <func> <option>* ~ ~
  818. Examples: ~
  819. .MC  10 TRAN V(5) YMAX ~
  820. .MC  50   DC IC(Q7) MIN LIST ~
  821. .MC  20  AC VP(13,5) ~
  822. + RISE_EDGE(1.0) LIST ~
  823. +  OUTPUT ALL
  824. @@MANCWCA
  825. .WCASE - Worst Case Analysis. ~ ~
  826. General Forms: ~
  827. .WCASE <analysis> <opvar> <func> <option>* ~ ~
  828. Examples: ~
  829. .WCASE DC V(4,5) YMAX ~
  830. .WCASE TRAN V(1) FALL_EDGE(3.5v) ~
  831. + VARY BOTH BY RELTOL ~
  832. + DEVICES RL
  833. @@MANCMOD
  834. .MODEL - Model. ~ ~
  835. General Forms: ~
  836. .MODEL <name> <type> ~
  837. +  [<param>=<value> [<tol>]]* ~ ~
  838. Typename    Devname   Devtype ~
  839. CAP         Cxxx      capacitor ~
  840. IND         Lxxx      inductor ~
  841. RES         Rxxx      resistor ~
  842. D           Dxxx      diode ~
  843. NPN         Qxxx      NPN bipolar ~
  844. PNP         Qxxx      PNP bipolar ~
  845. LPNP        Qxxx      lateral PNP ~
  846. NJF         Jxxx      N-channel JFET ~
  847. PJF         Jxxx      P-channel JFET ~
  848. NMOS        Mxxx      N-channel MOSFET ~
  849. PMOS        Mxxx      P-channel MOSFET ~
  850. GASFET      Bxxx      N-channel GaAsFET ~
  851. CORE        Kxxx      nonlinear core ~
  852. VSWITCH     Sxxx      v/c switch ~
  853. ISWITCH     Wxxx      c/c switch ~
  854. DINPUT      Nxxx      digital i/p ~
  855. DOUTPUT     Oxxx      digital o/p ~ ~
  856. Examples: ~
  857. .MODEL RMAX RES ~
  858. + (R=1.5 TC=.02 TC2=.005) ~
  859. .MODEL QDRIV NPN (IS=1e-7 BF=30) ~
  860. .MODEL DLOAD D ~
  861. + (IS=1e-9 DEV 5% LOT 10%)
  862. @@MANCNOD
  863. .NODESET - Nodeset. ~ ~
  864. General Forms: ~
  865. .NODESET < <node>=<value> >* ~ ~
  866. Examples: ~
  867. .NODESET V(2)=3.4  V(3)=-1V
  868. @@MANCNOI
  869. .NOISE - Noise Analysis. ~ ~
  870. General Forms: ~
  871. .NOISE <opvar> <name> [<ival>] ~ ~
  872. Examples: ~
  873. .NOISE  V(5) VIN
  874. .NOISE  V(4,5) ISRC 20
  875. @@MANCOP
  876. Bias Point. ~ ~
  877. General Forms: ~
  878. .OP ~ ~
  879. Examples: ~
  880. .OP
  881. @@MANCOPT
  882. .OPTIONS - Options. ~ ~
  883. General Forms: ~
  884. .OPTIONS [<fopt>*] [<vopt>=<value>*] ~ ~
  885. Flag Options ~
  886. ACCT     summary & accounting ~
  887. EXPAND   show subcircuit expansion ~
  888. LIBRARY  list lines from library files ~
  889. LIST     output summary ~
  890. NODE     output netlist ~
  891. NOECHO   suppress listing ~
  892. NOMOD    suppress model param listing ~
  893. NOPAGE   suppress banners ~
  894. OPTS     output option values ~ ~
  895. Value Options ~
  896. ABSTOL   best accuracy of currents ~
  897. CHGTOL   best accuracy of charges ~
  898. CPTIME   CPU time allowed ~
  899. DEFAD    MOSFET default AD ~
  900. DEFAS    MOSFET default AS ~
  901. DEFL     MOSFET default L ~
  902. DEFW     MOSFET default W ~
  903. GMIN     min conductance, any branch ~
  904. ITL1     DC & bias pt blind limit ~
  905. ITL2     DC & bias pt guess limit ~
  906. ITL4     transient per-point limit ~
  907. ITL5     transient total, all points ~
  908. LIMPTS   max for print/plot ~
  909. NUMDGT   #digits output ~
  910. PIVREL   rel mag for matrix pivot ~
  911. PIVTOL   abs mag for matrix pivot ~
  912. RELTOL   rel accuracy of V's and I's ~
  913. TNOM     default temp ~
  914. TRTOL    transient accuracy adjustment ~
  915. VNTOL    best accuracy of voltages ~
  916. WIDTH    output width ~ ~
  917. Examples: ~
  918. .OPTIONS NOECHO NOMOD RELTOL=.01 ~
  919. .OPTIONS ACCT DEFL=12u DEFW=8u
  920. @@MANCPAR
  921. .PARAM - Global Parameter. ~ ~
  922. General Forms: ~
  923. .PARAM < <name>=<value> >* ~ ~
  924. Examples: ~
  925. .PARAM   pi=3.14159265 ~
  926. .PARAM   RSHEET=120, VCC=5V
  927. @@MANCPLO
  928. .PLOT - Plot. ~ ~
  929. General Forms: ~
  930. .PLOT [DC][AC][NOISE][TRAN] ~
  931. + [ [<opvar>*] [(<lo>,<hi>)] ]* ~ ~
  932. Examples: ~
  933. .PLOT  DC  V(3) V(2,3) V(R1) I(VIN) ~
  934. .PLOT  AC  VM(2) VP(2) VG(2) ~
  935. .PLOT  TRAN V(3) V(2,3) (0,5V) ~
  936. + ID(M2) I(VCC) (-50mA,50mA)
  937. @@MANCPRI
  938. .PRINT - Print. ~ ~
  939. General Forms: ~
  940. .PRINT [DC][AC][NOISE][TRAN] ~
  941. +  [<opvar>*] ~ ~
  942. Examples: ~
  943. .PRINT  DC V(3) V(2,3) V(R1) IB(Q13) ~
  944. .PRINT  AC  VM(2) VP(2) VG(5) II(7) ~
  945. .PRINT NOISE INOISE ONOISE DB(INOISE) ~
  946. @@MANCPRO
  947. .PROBE - Probe. ~ ~
  948. General Forms: ~
  949. .PROBE[/CSDF] ~
  950. .PROBE[/CSDF] [<opvar>*] ~ ~
  951. Examples: ~
  952. .PROBE ~
  953. .PROBE v(2) I(R2) VBE(Q13) VDB(5) ~
  954. .PROBE/CSDF ~
  955. @@MANCSEN
  956. .SENS - Sensitivity Analysis. ~ ~
  957. General Forms: ~
  958. .SENS  <opvar>* ~ ~
  959. Examples: ~
  960. .SENS  V(9)  V(4,3)  I(VCC)
  961. @@MANCSTE
  962. .STEP - Stepped Analysis. ~ ~
  963. General Forms: ~
  964. .STEP [LIN] <varname> ~
  965. +  <start> <end> <incr> ~
  966. .STEP [OCT][DEC] <varname> ~
  967. +  <start> <end> <points> ~
  968. .STEP <varname> LIST ~
  969. +  <value>*  ~ ~
  970. Examples: ~
  971. .STEP  VIN  -.25  .25  .05 ~
  972. .STEP  LIN I2 5mA -2mA 0.1mA ~
  973. .STEP  RES RMOD(R) 0.9 1.1 .001 ~
  974. .STEP  TEMP LIST 0 20 27 50 80 ~
  975. .STEP  PARAM X 1 5 0.1
  976. @@MANCSUB
  977. .SUBCKT - Subcircuit Definition. ~ ~
  978. General Forms: ~
  979. .SUBCKT <name> [<node>*] ~
  980. +  [PARAMS: <par>[=<val>]* ]  ~ ~
  981. Examples: ~
  982. .SUBCKT  OPAMP 1 2 101 102 ~
  983. .SUBCKT FILTER IN OUT ~
  984. +  PARAMS: CENTER, WIDTH=10KHz
  985. @@MANCTEM
  986. .TEMP - Temperature. ~ ~
  987. General Forms: ~
  988. .TEMP <value>* ~ ~
  989. Examples: ~
  990. .TEMP  125 ~
  991. .TEMP  0  27  125
  992. @@MANCTF
  993. .TF - Transfer Function. ~ ~
  994. General Forms: ~
  995. .TF <opvar> <ipsrc> ~ ~
  996. Examples: ~
  997. .TF  V(5)  VIN
  998. .TF  I(VDRIV) ICNTRL
  999. @@MANCTRA
  1000. .TRAN - Transient Analysis. ~ ~
  1001. General Forms: ~
  1002. .TRAN[/OP] <pstep> <ftime> ~
  1003. +  [<noprint> [<ceiling>]] [UIC] ~ ~
  1004. Examples: ~
  1005. .TRAN  1nS  100nS ~
  1006. .TRAN/OP  1nS  100nS 20nS UIC ~
  1007. .TRAN 1nS 100nS 0nS .1nS
  1008. @@MANCWID
  1009. .WIDTH - Width. ~ ~
  1010. General Forms: ~
  1011. .WIDTH  OUT=<val> ~ ~
  1012. Examples: ~
  1013. .WIDTH  OUT=80
  1014. @@MANCO/P
  1015. Output Variables: ~
  1016. DC Sweep and Transient: ~
  1017. V(<node>) ~
  1018. V(<+node>,<-node>) ~
  1019. V(<name>) ~
  1020. Vx(<name>) ~
  1021. Vxy(<name>) ~
  1022. Vz(<name>) ~
  1023. I(<name>) ~
  1024. Ix(<name>) ~
  1025. Iz(<name>) ~
  1026. Devtypes: C/D/E/F/G/H/I/L/R/V ~
  1027. xy: D/G/S (B) ~
  1028. xy: D/G/S (J) ~
  1029. xy: D/G/S/B (M) ~
  1030. xy: C/B/E/S (Q) ~
  1031. z:  A/B ~ ~
  1032. AC Analysis: ~
  1033. Suffices: ~
  1034. M  magnitude ~
  1035. DB magnitude ~
  1036. P phase ~
  1037. G group delay ~
  1038. R real ~
  1039. I imaginary ~
  1040. Devtypes: C/I/L/R/T/V ~ ~
  1041. Noise Analysis: ~
  1042. INOISE ~
  1043. ONOISE ~
  1044. DB(INOISE) ~
  1045. DB(ONOISE)
  1046. @@MANHF
  1047. Floating nodes have no DC path to ground. Frequent causes of trouble: ~ ~
  1048. The two ends of a transmission line do not have a DC connection between
  1049. them. ~
  1050. Voltage-controlled sources do not have a DC connection between their
  1051. controlling nodes. ~ ~
  1052. There is an error in the circuit description. ~ ~
  1053. Assuming the circuit is correct, the solution is to connect the
  1054. floating node to ground via a large-value resistor.
  1055. @@MANHL
  1056. PSpice checks for zero-resistance loops. These may be caused by
  1057. independent voltage sources (V), controlled voltage sources (E and H),
  1058. and inductors (L); or there may be an error in the circuit description. ~
  1059. Assuming the circuit to be correct, the solution is to add series
  1060. resistance into the loop.
  1061. @@MANHC
  1062. Convergence problems may occur in the DC sweep, bias point calculations
  1063. and transient analysis. ~ ~
  1064. DC Sweep: most frequent problem is attempting to analyze circuits
  1065. with regenerative feedback (eg. Schmitt trigger). Try doing a
  1066. Transient Analysis instead of the DC Sweep. Use a piecewise-linear
  1067. voltage source to generate a slow ramp. You can sweep up and down
  1068. again in the same analysis. ~ ~
  1069. Bias Point: use the .NODESET statement to help PSpice find a solution.
  1070. Nodes such as the outputs of opamps are good candidates for .NODESET. ~ ~
  1071. Transient Analysis: unrealistic modelling of circuits with switches
  1072. but no parasitic capacitance can cause problems, for example circuits
  1073. containing diodes and inductors but no parasitic resistance or capacitance. ~
  1074. It may be necessary to relax RELTOL from .001 to .01. ~
  1075. Using the "uic" modifier causes the Transient Bias Point calculation to
  1076. be skipped, causing Transient Analysis convergence problems. Use .IC
  1077. or .NODESET instead. ~
  1078. With high voltages and currents, it may be necessary to increase VNTOL
  1079. and ABSTOL. For voltages in the kV range raise VNTOL to 1mV. For currents
  1080. in the amps range raise ABSTOL to 1nA. For currents in the kA range
  1081. raise ABSTOL to 1uA.
  1082. @@MANHA
  1083. PSpice's accuracy is controlled by the RELTOL, VNTOL, ABSTOL and
  1084. CHGTOL parameters of the .OPTIONS statement. ~
  1085. The most important is RELTOL, which controls the relative accuracy
  1086. of all voltages and currents that are calculated. RELTOL defaults to 0.1%. ~
  1087. VNTOL sets best accuracy for voltages. ABSTOL sets best accuracy for
  1088. currents. CHGTOL sets best accuracy for charge/flux.
  1089. @@MANHG
  1090. Global nodes begin with the prefix "$G_". ~
  1091. Examples: $G_VCC $G_COMMON. ~
  1092. Predefined digital nodes are: $D_HI, $D_LO, $D_NC, $D_X.
  1093. @@MANEE
  1094. PSpice will accept expressions in most places where a numeric
  1095. value is required. This includes component values, model parameter
  1096. values, subcircuit parameters, initial conditions, etc. ~
  1097. An expression is contained within {} and must fit on one line.
  1098. Components of an expression include: numbers, operators +-*/,
  1099. parameter names and functions (sin, cos, exp, etc). For example,
  1100. a resistor value could be defined in terms of a global parameter RSHEET: ~
  1101. re1 20 21 {rsheet * 1.10} ~
  1102. Expressions may be used for global parameter values, but these
  1103. expressions may not contain parameter names. ~
  1104. Expressions used in the extended controlled sources may additionally
  1105. refer to node voltages, currents, and the swept variable "time".
  1106. @@MANEG
  1107. Global parameters are defined with the .PARAM statement. They can
  1108. then be used in expressions for device values, etc. Example: ~
  1109. .param  pi=3.14159265 ~
  1110. c1  2  0  { 1 / (2 * pi * 10khz * 10k) } ~
  1111. @@MANES
  1112. Subcircuit parameters supply default values for subcircuits. The
  1113. defaults can be overridden when the subcircuit is called. The values
  1114. given to subcircuit parameters can be expressions. In addition to the
  1115. normal components of an expression, subcircuit parameter expressions
  1116. may refer to the names of a subcircuit's own parameters (if any). ~
  1117. If a global parameter and a subcircuit parameter have the same name,
  1118. the subcircuit parameter definition is used. ~ ~
  1119. For example, here is the definition of a parasitic node: ~ ~
  1120. .subckt para 1 params: r=1meg, c=1pf ~
  1121. r1 1 0 {r} ~
  1122. c1 1 0 {c} ~
  1123. .ends ~ ~
  1124. and here is the subcircuit being used: ~
  1125. xpara1 27 para params: c=5pf
  1126. @
  1127. 
  1128.