home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / sources / 3091 < prev    next >
Encoding:
Text File  |  1993-01-25  |  54.7 KB  |  1,563 lines

  1. Path: sparky!uunet!spool.mu.edu!nigel.msen.com!hela.iti.org!cs.widener.edu!dsinc!ub!galileo.cc.rochester.edu!ee.rochester.edu!rbc!al
  2. From: al@rbc.uucp (Al Davis)
  3. Newsgroups: alt.sources
  4. Subject: ACS  circuit simulator  part 06/20
  5. Message-ID: <1993Jan25.052209.4890@rbc.uucp>
  6. Date: 25 Jan 93 05:22:09 GMT
  7. Sender: al@rbc.uucp (Al Davis)
  8. Organization: Huh?
  9. Lines: 1552
  10.  
  11. #! /bin/sh
  12. # This is a shell archive, meaning:
  13. # 1. Remove everything above the #! /bin/sh line.
  14. # 2. Save the resulting text in a file.
  15. # 3. Execute the file with /bin/sh (not csh) to create the files:
  16. #    man/Commands/ac.tex
  17. #    man/Commands/alter.tex
  18. #    man/Commands/build.tex
  19. #    man/Commands/chdir.tex
  20. #    man/Commands/clear.tex
  21. #    man/Commands/dc.tex
  22. #    man/Commands/delete.tex
  23. #    man/Commands/disto.tex
  24. #    man/Commands/edit.tex
  25. #    man/Commands/end.tex
  26. #    man/Commands/exit.tex
  27. #    man/Commands/fault.tex
  28. #    man/Commands/fourier.tex
  29. #    man/Commands/generato.tex
  30. #    man/Commands/get.tex
  31. #    man/Commands/help.tex
  32. #    man/Commands/ic.tex
  33. #    man/Commands/insert.tex
  34. #    man/Commands/list.tex
  35. #    man/Commands/log.tex
  36. #    man/Commands/mark.tex
  37. #    man/Commands/merge.tex
  38. #    man/Commands/modify.tex
  39. # This archive created: Mon Jan 25 00:17:43 1993
  40. export PATH; PATH=/bin:$PATH
  41. if test -f 'man/Commands/ac.tex'
  42. then
  43.     echo shar: will not over-write existing file "'man/Commands/ac.tex'"
  44. else
  45. cat << \SHAR_EOF > 'man/Commands/ac.tex'
  46. % ac  12/29/92
  47. % man commands ac .
  48. % Copyright 1983-1992   Albert Davis
  49. %------------------------------------------------------------------------
  50. \section{{\tt AC} command}
  51. \index{AC command}
  52. \index{sine wave analysis}
  53. \index{frequency response}
  54. \index{small signal ac analysis}
  55. %------------------------------------------------------------------------
  56. \subsection{Syntax}
  57. \begin{verse}
  58. {\tt AC} \{{\it options} ...\} {\it start stop stepsize} \{{\it options} ...\}
  59. \end{verse}
  60. %------------------------------------------------------------------------
  61. \subsection{Purpose}
  62.  
  63. Performs a small signal, steady state, AC analysis.  Sweeps frequency.
  64. %------------------------------------------------------------------------
  65. \subsection{Comments}
  66.  
  67. Data available are: node voltages, level in dB, phase in degrees, phase delay
  68. in seconds.
  69.  
  70. The nodes to look at must have been previously selected by the {\tt Print} or
  71. {\tt Plot} command.
  72.  
  73. \index{nonlinear AC analysis}
  74. It does a linear analysis about an operating point.  {\em It is absolutely
  75. necessary to do an {\tt OP} analysis first on any nonlinear circuit.  Not
  76. doing this is the equivalent of testing it with the power off.}
  77.  
  78. Three parameters are normally needed for an AC analysis: start frequency,
  79. stop frequency and step size, in this order.  If all of these are omitted,
  80. the values from the most recent AC analysis are used.
  81.  
  82. If only one frequency is specified, a single point analysis will be done.
  83.  
  84. If only a new step size is specified, the old start and stop are kept and
  85. only the step size is changed.  This is indicated by a keyword: {\tt By},
  86. {\tt Times}, {\tt Decade} or {\tt Octave}, or a symbol: {\tt +} or {\tt
  87. *}.
  88.  
  89. If the start frequency is zero, the program will still do an AC analysis.
  90. The actual frequency can be considered to be the limit as the frequency
  91. approaches zero.  It is, therefore, still possible to have a non-zero
  92. phase angle, but delays are not shown because they may be infinite.
  93.  
  94. The default extension for all files in the {\tt AC} command is {\tt .ac}.
  95. %------------------------------------------------------------------------
  96. \subsection{Options}
  97.  
  98. \begin{description}
  99.  
  100. \item[{\tt +} {\it stepsize}] Linear sweep.  Add {\it
  101. stepsize} to get the next step.  Same as {\tt By}.
  102.  
  103. \item[{\tt *} {\it multiplier}] Log sweep.  Multiply by
  104. {\it multiplier} to get the next step.
  105.  
  106. %%%\item[{\tt <} {\it file}] Get circuit input from {\it
  107. %%% file}.  Default extension is {\tt .ac}.
  108.  
  109. \item[{\tt >} {\it file}] Send results of analysis to {\it
  110. file}.  Default extension is {\tt .ac}.
  111.  
  112. \item[{\tt >>} {\it file}] Append results to {\it file}.
  113. Default extension is {\tt .ac}.
  114.  
  115. %%%\item[{\tt ACMAx}] Use worst case max values, per last
  116. %%%{\tt AC} analysis.
  117.  
  118. %%%\item[{\tt ACMIn}] Use worst case min values, per last
  119. %%%{\tt AC} analysis.
  120.  
  121. \item[{\tt By} {\it stepsize}] Linear sweep.  Add {\it
  122. stepsize} to get the next step.  Same as {\tt +}.
  123.  
  124. %%%\item[{\tt Compare} {\it file}] Compare simulation results
  125. %%% to {\it file}.  Default extension is {\tt .ac}.
  126.  
  127. %%%\item[{\tt DCMAx}] Use worst case max values, per last
  128. %%%{\tt DC} or {\tt OP} analysis.
  129.  
  130. %%%\item[{\tt DCMIn}] Use worst case min values, per last
  131. %%%{\tt DC} or {\tt OP} analysis.
  132.  
  133. \item[{\tt Decade} {\it steps}] Log sweep.  Use {\it
  134. steps} steps per decade.
  135.  
  136. \item[{\tt Echo}] Echo disk reads to console, when input
  137. is from a file, or doing compare.
  138.  
  139. %%%\item[{\tt LAg}] Use worst case values, for lagging phase,
  140. %%% per {\tt AC} analysis.
  141.  
  142. %%%\item[{\tt LEad}] Use worst case values, for leading    
  143. %%% phase, per {\tt AC} analysis.
  144.  
  145. %%%\item[{\tt MAx}] Use worst case max values, per same type
  146. %%%({\tt AC}) analysis.  (Same as {\tt ACMax}, here.)
  147.  
  148. %%%\item[{\tt MIn}] Use worst case min values, per same type
  149. %%%({\tt AC}) analysis.  (Same as {\tt ACMin}, here.)
  150.  
  151. %%%\item[{\tt MCarlo} {\it trials}] Monte-Carlo analysis.
  152. %%% Simulate {\it trials} circuits; compile statistics.  Hide
  153. %%% individual trials.
  154.  
  155. \item[{\tt NOPlot}] Suppress plotting.
  156.  
  157. \item[{\tt Octave} {\it steps}] Log sweep.  Use {\it
  158. steps} steps per octave.
  159.  
  160. \item[{\tt PLot}] Graphic output, when plotting is
  161. normally off.
  162.  
  163. \item[{\tt Print}] Send results to printer.
  164.  
  165. \item[{\tt Quiet}] Suppress console output.
  166.  
  167. %%%\item[{\tt Random} {\it trials}] Simulate {\it trials}
  168. %%% circuits using random values.
  169.  
  170. %%%\item[{\tt TAble}] Tabular output. Override default plot.
  171.  
  172. \item[{\tt TEmperature} {\it degrees}] Temperature,
  173. degrees C.
  174.  
  175. \item[{\tt TImes} {\it multiplier}] Log sweep.  Multiply
  176. by {\it multiplier} to get the next step.
  177.  
  178. %%%\item[{\tt WOrstcase} {\it probe}] Worst case analysis, at
  179. %%%{\it probe}.    
  180.  
  181. \end{description}
  182. %------------------------------------------------------------------------
  183. \subsection{Examples}
  184.  
  185. \begin{description}
  186.  
  187. \item[{\tt AC 10m}] A single point AC analysis at 10 mHz.
  188.  
  189. \item[{\tt AC 1000 3000 100}] Sweep from 1000 Hz to 3000 Hz in 100 Hz steps.
  190.  
  191. \item[{\tt AC 1000 3000 Octave}] Sweep from 1000 Hz to 3000 Hz in octave
  192. steps.  Since the sweep cannot end at 3000 Hz, in this case, the last step
  193. will really be 4000 Hz.
  194.  
  195. \item[{\tt AC BY 250}] Keep the same limits as before, but use 250 Hz
  196. steps.  In this case, it means to sweep from 1000 to 3000 Hz, because that
  197. it what it was the last time.
  198.  
  199. \item[{\tt AC 5000 1000 -250}] You can sweep downward, if you want.
  200. Remember that the increment would be negative.
  201.  
  202. \item[{\tt AC 20 20k *2}] Double the frequency to get the next step.
  203.  
  204. \item[{\tt AC 20k 20 *.5}] You can do a log sweep downward, too.  A
  205. multiplier of less than one moves it down.
  206.  
  207. \item[{\tt AC}] Do the same AC sweep again.
  208.  
  209. \item[{\tt AC >afile}] Save the results in the file {\tt afile.ac}.  The
  210. file will look just like the screen.  It will have all probe points.  It
  211. will be a plot, if plotting is enabled.  It will have the numbers in
  212. abbreviated notation.  (10 nanovolts is {\tt 10.n}.)
  213.  
  214. \end{description}
  215. %------------------------------------------------------------------------
  216. %------------------------------------------------------------------------
  217. SHAR_EOF
  218. fi # end of overwriting check
  219. if test -f 'man/Commands/alter.tex'
  220. then
  221.     echo shar: will not over-write existing file "'man/Commands/alter.tex'"
  222. else
  223. cat << \SHAR_EOF > 'man/Commands/alter.tex'
  224. % alter  07/24/89
  225. % man commands alter
  226. % Copyright 1983-1992   Albert Davis
  227. %------------------------------------------------------------------------
  228. \section{{\tt ALter} command}
  229. \index{alter command}
  230. \index{sweep command}
  231. \index{sweep components}
  232. \index{step components}
  233. %------------------------------------------------------------------------
  234. The Spice {\tt Alter} command is not implemented.  Similar functionality is
  235. available from the {\tt SWeep} command.
  236. %------------------------------------------------------------------------
  237. %------------------------------------------------------------------------
  238. %------------------------------------------------------------------------
  239. %------------------------------------------------------------------------
  240. %------------------------------------------------------------------------
  241. SHAR_EOF
  242. fi # end of overwriting check
  243. if test -f 'man/Commands/build.tex'
  244. then
  245.     echo shar: will not over-write existing file "'man/Commands/build.tex'"
  246. else
  247. cat << \SHAR_EOF > 'man/Commands/build.tex'
  248. % build  04/01/90
  249. % man commands build .
  250. % Copyright 1983-1992   Albert Davis
  251. %------------------------------------------------------------------------
  252. \section{{\tt Build} command}
  253. \index{Build command}
  254. \index{new circuit}
  255. \index{creating new circuit}
  256. \index{add to circuit}
  257. %------------------------------------------------------------------------
  258. \subsection{Syntax}
  259. \begin{verse}
  260. {\tt Build} \{{\it line}\}
  261. \end{verse}
  262. %------------------------------------------------------------------------
  263. \subsection{Purpose}
  264.  
  265. Builds a new circuit, or replaces lines in an existing one.
  266. %------------------------------------------------------------------------
  267. \subsection{Comments}
  268.  
  269. Lets you enter the circuit from the keyboard.  The prompt changes to {\tt
  270. >} to show that the program is in the build mode.
  271.  
  272. At this point, type in the circuit components in standard (Spice type)
  273. netlist format.
  274.  
  275. Component labels must be unique.  If not, the old one is modified according
  276. to the new data, keeping old values where no new ones were specified.
  277.  
  278. Ordinarily, components are added to the end of the list.  To insert at a
  279. particular place, specify the label to insert in front of.  Example: {\tt
  280. Build R77} will cause new items to be added before {\tt R77}, instead of at
  281. the end.
  282.  
  283. In either case, components being changed or replaced do not change their
  284. location in the list.
  285.  
  286. If it is necessary to start over, {\tt DELete ALL} or {\tt CLEAR} will erase
  287. the entire circuit in memory.
  288.  
  289. To exit this mode, enter a blank line.
  290. %------------------------------------------------------------------------
  291. \subsection{Examples}
  292.  
  293. \begin{description}
  294.  
  295. \item[{\tt Build}] Build a circuit.  Add to the end of the list.  This will
  296. add to the circuit without erasing anything.  It will continue until you
  297. exit or memory fills up.
  298.  
  299. \item[{\tt B}] This is the same as the previous example.  Only the first
  300. letter of the `Build' is necessary.
  301.  
  302. \item[{\tt Build R33}]    Insert new items in front of R33.
  303.  
  304. \end{description}
  305. %------------------------------------------------------------------------
  306. %------------------------------------------------------------------------
  307. SHAR_EOF
  308. fi # end of overwriting check
  309. if test -f 'man/Commands/chdir.tex'
  310. then
  311.     echo shar: will not over-write existing file "'man/Commands/chdir.tex'"
  312. else
  313. cat << \SHAR_EOF > 'man/Commands/chdir.tex'
  314. % chdir  03/20/90
  315. % man commands chdir .
  316. % Copyright 1983-1992   Albert Davis
  317. %------------------------------------------------------------------------
  318. \section{{\tt ChDir} command}
  319. \index{chdir command}
  320. \index{cd command}
  321. \index{change directory}
  322. \index{directory: change}
  323. %------------------------------------------------------------------------
  324. \subsection{Syntax}
  325. \begin{verse}
  326. {\tt ChDir} \{{\it path}\}\\
  327. {\tt CD} \{{\it path}\}
  328. \end{verse}
  329. %------------------------------------------------------------------------
  330. \subsection{Purpose}
  331.  
  332. Changes or displays the current directory name.
  333. %------------------------------------------------------------------------
  334. \subsection{Comments}
  335.  
  336. Change the current directory to that specified by {\it path}.  See your
  337. system manual for complete syntax.
  338.  
  339. If no argument is given the current directory is displayed.
  340. %------------------------------------------------------------------------
  341. \subsection{Examples}
  342.  
  343. \begin{description}
  344.  
  345. \item[{\tt CD ../ckt}] Change the current working directory to {\tt ../ckt}.
  346.  
  347. \item[{\tt CD}] Show the current working directory name.
  348.  
  349. \end{description}
  350. %------------------------------------------------------------------------
  351. %------------------------------------------------------------------------
  352. SHAR_EOF
  353. fi # end of overwriting check
  354. if test -f 'man/Commands/clear.tex'
  355. then
  356.     echo shar: will not over-write existing file "'man/Commands/clear.tex'"
  357. else
  358. cat << \SHAR_EOF > 'man/Commands/clear.tex'
  359. % clear  07/24/89
  360. % man commands clear
  361. % Copyright 1983-1992   Albert Davis
  362. %------------------------------------------------------------------------
  363. \section{{\tt CLEAR} command}
  364. \index{CLEAR command}
  365. \index{clear circuit}
  366. \index{erase}
  367. \index{title: clear}
  368. %------------------------------------------------------------------------
  369. \subsection{Syntax}
  370. \begin{verse}
  371. {\tt CLEAR}
  372. \end{verse}
  373. %------------------------------------------------------------------------
  374. \subsection{Purpose}
  375.  
  376. Deletes the entire circuit, and blanks the title.
  377. %------------------------------------------------------------------------
  378. \subsection{Comments}
  379.  
  380. The entire word {\tt CLEAR} is required.
  381.  
  382. {\tt CLEAR} is similar to, but a little more drastic than {\tt DELete ALL}.
  383.  
  384. After deleting anything, there is no way to get it back.
  385.  
  386. See also: {\tt DELete} command.
  387. %------------------------------------------------------------------------
  388. \subsection{Examples}
  389.  
  390. \begin{description}
  391.  
  392. \item[{\tt CLEAR}] Delete the entire circuit.
  393.  
  394. \end{description}
  395. %------------------------------------------------------------------------
  396. %------------------------------------------------------------------------
  397. SHAR_EOF
  398. fi # end of overwriting check
  399. if test -f 'man/Commands/dc.tex'
  400. then
  401.     echo shar: will not over-write existing file "'man/Commands/dc.tex'"
  402. else
  403. cat << \SHAR_EOF > 'man/Commands/dc.tex'
  404. % dc  12/29/92
  405. % man commands dc .
  406. % Copyright 1983-1992   Albert Davis
  407. %------------------------------------------------------------------------
  408. \section{{\tt DC} command}
  409. \index{dc command}
  410. \index{transfer characteristics}
  411. \index{nonlinear transfer analysis}
  412. %------------------------------------------------------------------------
  413. \subsection{Syntax}
  414. \begin{verse}
  415. {\tt DC} {\it start stop stepsize} \{{\it options} ...\}\\
  416. {\tt DC} {\it label start stop stepsize} \{{\it options} ...\}
  417. \end{verse}
  418. %------------------------------------------------------------------------
  419. \subsection{Purpose}
  420.  
  421. Performs a nonlinear DC steady state analysis, and sweeps the signal input,
  422. or a component value.
  423. %------------------------------------------------------------------------
  424. \subsection{Status}
  425.  
  426. Nesting of sweeps is not supported.  (SPICE supports two
  427. levels of nesting.)
  428. %------------------------------------------------------------------------
  429. \subsection{Comments}
  430.  
  431. The nodes to look at must have been previously selected by the {\tt Print} or
  432. {\tt Plot} command.
  433.  
  434. If there are numeric arguments, without a part label, they represent a ramp
  435. from the {\tt generator} function.  They are the start value, stop value
  436. and step size, in order.  They are saved between commands, so no arguments
  437. will repeat the previous sweep.
  438.  
  439. A single parameter represents a single input voltage.  Two parameters
  440. instruct the computer to analyze for those two points only.
  441.  
  442. In some cases, you will get one more step outside the specified range of
  443. inputs due to internal rounding errors.  The last input may be beyond the end
  444. point.
  445.  
  446. This command also sets up a movable operating point for subsequent {\tt AC}
  447. analysis, which can be helpful in distortion analysis.
  448.  
  449. The program will sweep any simple component, including resistors,
  450. capacitors, and controlled sources.  SPICE sweeps only fixed sources (types
  451. {\tt V} and {\tt I}).
  452. %------------------------------------------------------------------------
  453. \subsection{Options}
  454.  
  455. \begin{description}
  456.  
  457. \item[{\tt *} {\it multiplier}] Log sweep.  Multiply the
  458. input by {\it multiplier} to get the next step.  Do not
  459. pass zero volts!!
  460.  
  461. \item[{\tt >} {\it file}] Send results of analysis to {\it
  462. file}.  Default extension is {\tt .dc}.
  463.  
  464. \item[{\tt >>} {\it file}] Append results to {\it file}.
  465. Default extension is {\tt .dc}.
  466.  
  467. %%%\item[{\tt ACMAx}] Use worst case max values, per last
  468. %%%{\tt AC} analysis.
  469.  
  470. %%%\item[{\tt ACMIn}] Use worst case min values, per last
  471. %%%{\tt AC} analysis.
  472.  
  473. \item[{\tt BY} {\it stepsize}] Linear sweep.  Add {\it
  474. stepsize} to get the next step.
  475.  
  476. \item[{\tt Continue}] Use the last step of a {\tt OP},
  477. {\tt DC} or {\tt Transient} analysis as the first guess.
  478.  
  479. %%%\item[{\tt DCMAx}] Use worst case max values, per last
  480. %%%{\tt DC} or {\tt OP} analysis.
  481.  
  482. %%%\item[{\tt DCMIn}] Use worst case min values, per last
  483. %%%{\tt DC} or {\tt OP} analysis.
  484.  
  485. \item[{\tt Decade} {\it steps}] Log sweep.  Use {\it
  486. steps} steps per decade.
  487.  
  488. \item[{\tt Input} {\it volts}] Apply {\it volts} input to
  489. the circuit, instead of the sweep.  It will not forget the
  490. old sweep parameters.
  491.  
  492. %%%\item[{\tt LAg}] Use worst case values, for lagging phase,
  493. %%% per {\tt AC} analysis.
  494.  
  495. %%%\item[{\tt LEad}] Use worst case values, for leading    
  496. %%% phase, per {\tt AC} analysis.
  497.  
  498. \item[{\tt LOop}] Repeat the sweep, backwards.
  499.  
  500. %%%\item[{\tt MAx}] Use worst case max values, per same type
  501. %%%({\tt OP} or {\tt DC}) analysis.  (Same as {\tt DCMAx},
  502. %%% here.)
  503.  
  504. %%%\item[{\tt MIn}] Use worst case min values, per same type
  505. %%%({\tt OP} or {\tt DC}) analysis.  (Same as {\tt DCMIn},
  506. %%% here.)
  507.  
  508. %%%\item[{\tt MCarlo} {\it trials}] Monte-Carlo analysis.
  509. %%% Simulate {\it trials} circuits; compile statistics.  Hide
  510. %%% individual trials.
  511.  
  512. \item[{\tt NOPlot}] Suppress plotting.
  513.  
  514. \item[{\tt PLot}] Graphic output, when plotting is
  515. normally off.
  516.  
  517. \item[{\tt Print}] Send results to printer.
  518.  
  519. \item[{\tt Quiet}] Suppress console output.
  520.  
  521. %%%\item[{\tt Random} {\it trials}] Simulate {\it trials}
  522. %%% circuits using random values.
  523.  
  524. \item[{\tt REverse}] Sweep in the opposite direction.
  525.  
  526. %%%\item[{\tt TAble}] Tabular output. Override default plot.
  527.  
  528. \item[{\tt TEmperature} {\it degrees}] Temperature,
  529. degrees C.
  530.  
  531. \item[{\tt Times} {\it multiplier}] Log sweep.  Multiply
  532. the input by {\it multiplier} to get the next step.  Do
  533. not pass zero volts!!
  534.  
  535. \item[{\tt WAtch}] Watch the convergence process, every
  536. iteration.
  537.  
  538. %%%\item[{\tt WOrstcase} {\it probe}] Worst case analysis, at
  539. %%%{\it probe}.
  540.  
  541. \end{description}
  542. %------------------------------------------------------------------------
  543. \subsection{Examples}
  544.  
  545. \begin{description}
  546.  
  547. \item[{\tt DC 1}] Do a single point DC signal simulation, with {`1 volt'}
  548. input.
  549.  
  550. \item[{\tt DC -10 15 1}] Sweep the circuit input from -10 to +15 in steps of
  551. 1.  (usually volts.)  Do a DC transfer simulation at each step.
  552.  
  553. \item[{\tt DC}] With no parameters, it uses the same ones as the last time.
  554. In this case, from -10 to 15 in 1\ volt steps.
  555.  
  556. \item[{\tt DC 20 0 -2}] You can sweep downward, by asking for a negative
  557. increment.  Sometimes, this will result in better convergence, or even
  558. different results!  (For example, in the case of a bi-stable circuit.)
  559.  
  560. \item[{\tt DC Input 2.3}] Apply an input to the circuit of 2.3 volts.  This
  561. overrides the sweep, for now.  It isn't remembered for next time.  Also,
  562. since it is a single point, you will get a table, rather than a plot.
  563.  
  564. \item[{\tt DC}] Since the last time used the {\tt Input} option, go back one
  565. more to find what the sweep parameters were.  In this case, downward from 20
  566. to 0 in steps of 2.  (Because we did it 2 commands ago.)
  567.  
  568. \item[{\tt DC -2 2 .1 LOop}] After the sweep, do it again in the opposite
  569. direction.  In this case, the sweep is -2 to +2 in steps of .1.  After it
  570. gets to +2, it will go back, and sweep from +2 to -2 in steps of -.1.  The
  571. plot will be superimposed on the up sweep.  This way, you can see hysteresis
  572. in the circuit.
  573.  
  574. \item[{\tt DC TEmperature 75}] Simulate at 75 degrees, this time.  Since we
  575. didn't specify new sweep parameters, do the same as last time.  (Without the
  576. loop.)
  577.  
  578. %%%\item[{\tt DC 1 WOrstcase v r12}] A worst case analysis
  579. %%% for voltage across the resistor {\tt R12}, with input of 1.
  580.  
  581. \end{description}
  582. %------------------------------------------------------------------------
  583. %------------------------------------------------------------------------
  584. SHAR_EOF
  585. fi # end of overwriting check
  586. if test -f 'man/Commands/delete.tex'
  587. then
  588.     echo shar: will not over-write existing file "'man/Commands/delete.tex'"
  589. else
  590. cat << \SHAR_EOF > 'man/Commands/delete.tex'
  591. % delete  04/01/90
  592. % man commands delete .
  593. % Copyright 1983-1992   Albert Davis
  594. %------------------------------------------------------------------------
  595. \section{{\tt DELete} command}
  596. \index{DELete command}
  597. \index{clear circuit}
  598. \index{erase}
  599. \index{remove parts}
  600. %------------------------------------------------------------------------
  601. \subsection{Syntax}
  602. \begin{verse}
  603. {\tt DELete} {\it label} ...\\
  604. {\tt DELete ALL}
  605. \end{verse}
  606. %------------------------------------------------------------------------
  607. \subsection{Purpose}
  608.  
  609. Remove a line, or a group of lines, from the circuit description.
  610. %------------------------------------------------------------------------
  611. \subsection{Comments}
  612.  
  613. To delete a part, by label, enter the label.  (Example `DEL R15'.)
  614. Wildcards `{\tt *}' and `{\tt ?}' are allowed, in which case, all that match
  615. are deleted.
  616.  
  617. To delete the entire circuit, the entire word {\tt ALL} must be entered.
  618. (Example `DEL ALL'.)
  619.  
  620. After deleting anything, there is usually no way to get it back, but if a
  621. fault had been applied (see {\tt FAult} command) {\tt Restore} may have
  622. surprising results.
  623. %------------------------------------------------------------------------
  624. \subsection{Examples}
  625.  
  626. \begin{description}
  627. \item[{\tt DELete ALL}] Delete the entire circuit, but save the title.
  628.  
  629. \item[{\tt DEL R12}] Delete {\tt R12}.
  630.  
  631. \item[{\tt DEL R12 C3}] Delete {\tt R12} and {\tt C3}.
  632.  
  633. \item[{\tt DEL R*}] Delete all resistors.  (Also, any models and subcircuits
  634. starting with {\tt R}.)
  635.  
  636. \end{description}
  637. %------------------------------------------------------------------------
  638. %------------------------------------------------------------------------
  639. SHAR_EOF
  640. fi # end of overwriting check
  641. if test -f 'man/Commands/disto.tex'
  642. then
  643.     echo shar: will not over-write existing file "'man/Commands/disto.tex'"
  644. else
  645. cat << \SHAR_EOF > 'man/Commands/disto.tex'
  646. % disto  02/26/90
  647. % man commands disto
  648. % Copyright 1983-1992   Albert Davis
  649. %------------------------------------------------------------------------
  650. \section{{\tt DIsto} command}
  651. \index{disto command}
  652. \index{distortion}
  653. %------------------------------------------------------------------------
  654. The Spice {\tt DIsto} command is not implemented.  Similar functionality is
  655. not available.
  656. %------------------------------------------------------------------------
  657. %------------------------------------------------------------------------
  658. %------------------------------------------------------------------------
  659. %------------------------------------------------------------------------
  660. %------------------------------------------------------------------------
  661. SHAR_EOF
  662. fi # end of overwriting check
  663. if test -f 'man/Commands/edit.tex'
  664. then
  665.     echo shar: will not over-write existing file "'man/Commands/edit.tex'"
  666. else
  667. cat << \SHAR_EOF > 'man/Commands/edit.tex'
  668.  
  669. SHAR_EOF
  670. fi # end of overwriting check
  671. if test -f 'man/Commands/end.tex'
  672. then
  673.     echo shar: will not over-write existing file "'man/Commands/end.tex'"
  674. else
  675. cat << \SHAR_EOF > 'man/Commands/end.tex'
  676. % end  02/26/90
  677. % man commands end .
  678. % Copyright 1983-1992   Albert Davis
  679. %------------------------------------------------------------------------
  680. \section{{\tt END} command}
  681. \index{end command}
  682. %------------------------------------------------------------------------
  683. The Spice {\tt END} command is implemented incorrectly.  It behaves like
  684. {\tt Quit} in batch files, or interactive mode and is ignored otherwise.
  685. %------------------------------------------------------------------------
  686. %------------------------------------------------------------------------
  687. %------------------------------------------------------------------------
  688. %------------------------------------------------------------------------
  689. %------------------------------------------------------------------------
  690. SHAR_EOF
  691. fi # end of overwriting check
  692. if test -f 'man/Commands/exit.tex'
  693. then
  694.     echo shar: will not over-write existing file "'man/Commands/exit.tex'"
  695. else
  696. cat << \SHAR_EOF > 'man/Commands/exit.tex'
  697. % exit  10/24/90
  698. % man commands exit .
  699. % Copyright 1983-1992   Albert Davis
  700. %------------------------------------------------------------------------
  701. \section{{\tt EXIt} command}
  702. \index{quit command}
  703. \index{exit command}
  704. %------------------------------------------------------------------------
  705. \subsection{Syntax}
  706. \begin{verse}
  707. {\tt EXIt}
  708. \end{verse}
  709. %------------------------------------------------------------------------
  710. \subsection{Purpose}
  711.  
  712. Terminates the program.
  713. %------------------------------------------------------------------------
  714. \subsection{Comments}
  715.  
  716. `{\tt Quit}' also works.
  717.  
  718. Be sure you have saved everything you want to!
  719. %------------------------------------------------------------------------
  720. %------------------------------------------------------------------------
  721. SHAR_EOF
  722. fi # end of overwriting check
  723. if test -f 'man/Commands/fault.tex'
  724. then
  725.     echo shar: will not over-write existing file "'man/Commands/fault.tex'"
  726. else
  727. cat << \SHAR_EOF > 'man/Commands/fault.tex'
  728. % fault  10/02/89
  729. % man commands fault .
  730. % Copyright 1983-1992   Albert Davis
  731. %------------------------------------------------------------------------
  732. \section{{\tt FAult} command}
  733. \index{fault command}
  734. \index{change values: temporary}
  735. %------------------------------------------------------------------------
  736. \subsection{Syntax}
  737. \begin{verse}
  738. {\tt FAult} {\it partlabel}={\it value} ...
  739. \end{verse}
  740. %------------------------------------------------------------------------
  741. \subsection{Purpose}
  742.  
  743. Temporarily change a component value.
  744. %------------------------------------------------------------------------
  745. \subsection{Comments}
  746.  
  747. This command quickly changes the value of a component, usually with the
  748. intention that you will not want to save it.
  749.  
  750. If you apply this command to a nonlinear or otherwise strange part, it becomes
  751. ordinary and linear until the fault is removed.
  752.  
  753. It is an error to {\tt fault} a model call.
  754.  
  755. If several components have the same label, the fault value applies to all of
  756. them.  (They will all have the same value.)
  757.  
  758. The {\tt UNFault} command restores the old values.
  759. %------------------------------------------------------------------------
  760. \subsection{Example}
  761.  
  762. \begin{description}
  763.  
  764. \item[{\tt FAult R66=1k}] R66 now has a value of 1k, regardless of what it
  765. was before.
  766.  
  767. \item[{\tt FAult C12=220p L1=1u}] C12 is 220 pf and L1 is 1 uH, for now.
  768.  
  769. \item[{\tt UNFault}] Clears all faults.  It is back to what it was before.
  770.  
  771. \end{description}
  772. %------------------------------------------------------------------------
  773. %------------------------------------------------------------------------
  774. SHAR_EOF
  775. fi # end of overwriting check
  776. if test -f 'man/Commands/fourier.tex'
  777. then
  778.     echo shar: will not over-write existing file "'man/Commands/fourier.tex'"
  779. else
  780. cat << \SHAR_EOF > 'man/Commands/fourier.tex'
  781. % fourier  01/11/93
  782. % man commands fourier .
  783. % Copyright 1983-1992   Albert Davis
  784. %------------------------------------------------------------------------
  785. \section{{\tt Fourier} command}
  786. \index{fourier command}
  787. \index{spectrum analysis}
  788. \index{frequency domain: nonlinear}
  789. \index{nonlinear analysis: frequency domain}
  790. %------------------------------------------------------------------------
  791. \subsection{Syntax}
  792. \begin{verse}
  793. {\tt Fourier} {\it start stop stepsize} \{{\it options} ...\}
  794. \end{verse}
  795. %------------------------------------------------------------------------
  796. \subsection{Purpose}
  797.  
  798. Performs a nonlinear time domain (transient) analysis, but displays the
  799. results in the frequency domain.
  800.  
  801. {\it Start}, {\it stop}, and {\it stepsize} are frequencies.
  802. %------------------------------------------------------------------------
  803. \subsection{Status}
  804.  
  805. This command is different from the SPICE command of the
  806. same name.  It is completely broken in version 0.05.
  807. %------------------------------------------------------------------------
  808. \subsection{Comments}
  809.  
  810. The nodes to look at must have been previously selected by the {\tt Print} or
  811. {\tt Plot} command.
  812.  
  813. Three parameters are normally needed for a Fourier analysis: start frequency,
  814. stop frequency and step size, in this order.  They are interpreted similarly
  815. to the AC analysis.
  816.  
  817. Actually, this command does a nonlinear time domain analysis, then performs a
  818. Fourier transform on the data to get the frequency data.  The transient
  819. analysis parameters (start, stop, step) are determined by the program as
  820. necessary to produce the desired AC results.
  821.  
  822. Input files are in transient analysis format; output files are in AC analysis
  823. format.
  824.  
  825. {\tt Print Input} (see print command) will show the Fourier transform of the
  826. input.
  827.  
  828. See also: {\tt Transient} command.
  829. %------------------------------------------------------------------------
  830. \subsection{Options}
  831.  
  832. \begin{description}
  833.  
  834. %%%\item[{\tt <} {\it file}] Get circuit input from {\it
  835. %%% file}.  Default extension is {\tt .tr}.
  836.  
  837. \item[{\tt >} {\it file}] Send results of analysis to {\it
  838. file}.  Default extension is {\tt .fo}.
  839.  
  840. \item[{\tt >>} {\it file}] Append results to {\it file}.
  841. Default extension is {\tt .fo}.
  842.  
  843. %%%\item[{\tt ACMAx}] Use worst case max values, per last
  844. %%%{\tt AC} analysis.
  845.  
  846. %%%\item[{\tt ACMIn}] Use worst case min values, per last
  847. %%%{\tt AC} analysis.
  848.  
  849. \item[{\tt Cold}] Zero initial conditions.  Cold start.
  850.  
  851. %%%\item[{\tt DCMAx}] Use worst case max values, per last
  852. %%%{\tt DC} or {\tt OP} analysis.
  853.  
  854. %%%\item[{\tt DCMIn}] Use worst case min values, per last
  855. %%%{\tt DC} or {\tt OP} analysis.
  856.  
  857. \item[{\tt Echo}] Echo disk reads to console, when input
  858. is from a file.
  859.  
  860. %%%\item[{\tt LAg}] Use worst case values, for lagging phase,
  861. %%% per {\tt AC} analysis.
  862.  
  863. %%%\item[{\tt LEad}] Use worst case values, for leading
  864. %%% phase, per {\tt AC} analysis.
  865.  
  866. \item[{\tt PLot}] Graphic output, if not otherwise enabled.
  867.  
  868. \item[{\tt Print}] Send results to printer.
  869.  
  870. \item[{\tt Quiet}] Suppress console output.
  871.  
  872. \item[{\tt SKip} {\it count}] Force {\it count} internal
  873. time steps for each one used.  Override internal step size
  874. control.
  875.  
  876. \item[{\tt STiff}] Use a different integration method,
  877. that will suppress overshoot when the step size is too
  878. small.
  879.  
  880. \item[{\tt Table}] Tabular output. Override default plot.
  881.  
  882. \item[{\tt TEmperature} {\it degrees}] Temperature,
  883. degrees C.
  884.  
  885. \item[{\tt WAtch}] Show the transient analysis, before
  886. doing the transform.
  887.  
  888. \end{description}
  889. %------------------------------------------------------------------------
  890. \subsection{Examples}
  891.  
  892. \begin{description}
  893.  
  894. \item[{\tt Fourier 40 20k 20}] Analyze the spectrum from 40 Hz to 20 kHz in
  895. 20 Hz steps.  This will result in a transient analysis with 25 micro-second
  896. steps.  (1 / 40k).  It will run for .05 second.  (1 / 20).
  897.  
  898. \item[{\tt Fourier 0 20k 20}] Similar to the previous example, but show the
  899. DC and 20 Hz terms, also.
  900.  
  901. \item[{\tt Fourier}] No parameters mean use the same ones as the last time.
  902. In this case: from 0 to 20 kHz, in 20 Hz steps.
  903.  
  904. \item[{\tt Fourier Skip 10}] Do 10 transient steps internally for every step
  905. that is used.  In this case it means to internally step at 2.5 micro-second,
  906. or 10 steps for every one actually used.
  907.  
  908. \item[{\tt Fourier Cold}] Zero initial conditions.  This will show the
  909. spectrum of the power-on transient.
  910.  
  911. %%%\item[{\tt Fourier >arun}] Save the results of this run in the file {\tt
  912. %%% arun.fo}.  You could use it as an input for AC analysis
  913.  
  914. %%%\item[{\tt Fourier <aninput}] Use the file {\tt aninput.tr} as a user
  915. %%% defined input.  It substitutes for the signal generator.  Note that it is a
  916. %%%{\bf transient} file.
  917.  
  918. \end{description}
  919. %------------------------------------------------------------------------
  920. %------------------------------------------------------------------------
  921. SHAR_EOF
  922. fi # end of overwriting check
  923. if test -f 'man/Commands/generato.tex'
  924. then
  925.     echo shar: will not over-write existing file "'man/Commands/generato.tex'"
  926. else
  927. cat << \SHAR_EOF > 'man/Commands/generato.tex'
  928. % generato  04/13/92
  929. % man  commands  generato  .
  930. % Copyright 1983-1992   Albert Davis
  931. %------------------------------------------------------------------------
  932. \section{{\tt Generator} command}
  933. \index{Generator command}
  934. \index{user defined transient input}
  935. \index{user source}
  936. \index{transient input}
  937. \index{input: transient analysis}
  938. \index{function generator}
  939. %------------------------------------------------------------------------
  940. \subsection{Syntax}
  941. \begin{verse}
  942. {\tt Generator} \{{\it option-name}={\it value} ...\}
  943. \end{verse}
  944. %------------------------------------------------------------------------
  945. \subsection{Purpose}
  946.  
  947. Sets up the input waveform for {\tt transient} and {\tt Fourier} analysis.
  948. Emulates a laboratory type function generator.
  949. %------------------------------------------------------------------------
  950. \subsection{Comments}
  951.  
  952. The parameters available are designed to emulate the controls on a function
  953. generator.  There are actually two generators here: sine wave and pulse.  If
  954. both are on (by setting non-zero parameters) the sine wave is modulated by
  955. the pulse, but either can be used alone.
  956.  
  957. Unless you change it, it is a unit-step function at time 0.  The purpose of
  958. the command is to change it.
  959.  
  960. This command does not affect {\tt AC} or {\tt DC} analysis in any way.  It
  961. is only for {\tt transient} and {\tt Fourier} analysis.  In {\tt AC}
  962. analysis, the input signal is always a sine wave at the analysis frequency.
  963.  
  964. All sources with input nodes both zero have their input connected to this
  965. generator.
  966.  
  967. Typical usage is the name of the control followed by its value, or just plain
  968. {\tt Generator} to display the present values.
  969.  
  970. The actual time when switching takes place is ambiguous by one time step.  If
  971. precise time switching is necessary, use the {\tt Skip} option on the
  972. transient analysis command, to force more resolution.  This ambiguity can
  973. usually be avoided by specifying finite rise and fall times.
  974. \index{ambiguous time}
  975. \index{switch time errors}
  976. %------------------------------------------------------------------------
  977. \subsection{Parameters}
  978.  
  979. \begin{description}
  980.  
  981. \item[{\tt Freq}] The frequency of the sine wave generator for a transient
  982. analysis.  The sine wave is modulated by the pulse generator.  A frequency
  983. of zero puts the pulse generator on line directly.
  984.  
  985. \item[{\tt Ampl}] The overall amplitude of the pulse and sine wave.  A
  986. scale factor.  It applies to everything except the {\it offset} and {\it
  987. init} values.
  988.  
  989. \item[{\tt Phase}] The phase of the sine wave, at the instant it is first
  990. turned on.
  991.  
  992. \item[{\tt MAx}] The amplitude of the pulse, when it is `on'.  (During the
  993. {\it width} time) If the sine wave is on (frequency not zero) this is the
  994. amplitude of the sine wave during the first part of the period.  The {\it
  995. max} is scaled by {\it ampl}.
  996.  
  997. \item[{\tt MIn}] The amplitude of the pulse, when it is `off'.  (After it
  998. falls, but before the next period begins.)  Although we have called these
  999. {\it min} and {\it max}, there is no requirement that {\it max} be larger
  1000. than {\it min}.  If the sine wave is on, this is its amplitude during the
  1001. second part of the period.  The {\it min} is scaled by {\it ampl}.
  1002.  
  1003. \item[{\tt Offset}] The DC offset applied to the entire signal, at all times
  1004. after the initial delay.  The {\it offset} is {\bf not} scaled by {\it ampl}.
  1005.  
  1006. \item[{\tt Init}] The initial value of the pulse generator output.  It will
  1007. have this value starting at time 0, until {\it Delay} time has elapsed.  It
  1008. will never return to this value, unless you restart at time 0.
  1009.  
  1010. \item[{\tt Rise}] The rise time, or the time it takes to go from {\it MIn}
  1011. to {\it MAx}, or for the first rise, {\it Init} to {\it MAx}.  The rise is
  1012. linear.
  1013.  
  1014. \item[{\tt Fall}] The fall time.  (The time required to go from {\it MAx}
  1015. back to {\it MIn}.)
  1016.  
  1017. \item[{\tt Delay}] The waiting time before the first rise.
  1018.  
  1019. \item[{\tt Width}] The length of time the output of the generator has the
  1020. value {\it Max}.  A width of zero means that the output remains high for the
  1021. remainder of the period.  If you really want a width of zero, use a very
  1022. small number, less than the step size.
  1023.  
  1024. \item[{\tt Period}] The time for repetition of the pulse.  It must be
  1025. greater than the sum of rise + fall + width.  A period of zero means that
  1026. the signal is not periodic and so will not repeat.
  1027.  
  1028. \end{description}
  1029. %------------------------------------------------------------------------
  1030. \subsection{Examples}
  1031.  
  1032. \begin{description}
  1033.  
  1034. \item[{\tt Gen}] Display the present settings.
  1035.  
  1036. \item[{\tt Gen Freq=1k}] Sets the sine wave to 1 kHz.  All other parameters
  1037. are as they were before.
  1038.  
  1039. \item[{\tt Gen Freq=0}] Turns off the sine wave, leaving only the pulse.
  1040.  
  1041. \item[{\tt Gen Ampl=0}] Sets the amplitude to zero, which means the circuit
  1042. has no input, except for possibly a DC offset.
  1043.  
  1044. \item[{\tt Gen Ampl=5 MAx=2 MIn=-.5 Offset=0 Init=0 Rise=10u Fall=10u
  1045. Delay=1 Width=100u Period=.001}] Sets all the parameters, except {\tt freq}
  1046. and {\tt phase}.  You will get a 10 volt (ampl=5, max=2, 2*5=10) 100
  1047. microsecond pulse every .001 seconds.  Between pulses, the level will be
  1048. -2.5 volts.  (ampl=5, min=-.5, -.5*5=2.5) For the first second (delay=1)
  1049. there will be no output. (init=0)
  1050.  
  1051. \item[{\tt Gen Period=.001 Freq=1m}] Sets the period back to 1 millisecond.
  1052. Applies 1 mHz modulation to the pulse, resulting in a pulsed sine wave.  In
  1053. this case, a 100 microsecond 10 volt burst, repeating every millisecond.
  1054. Between bursts, you will get 2.5 volts, with reversed phase.  The old
  1055. values, in this case from 2 lines back (above) are kept.  ({\tt Ampl 5 Rise
  1056. 10u Fall 10u} ...)
  1057.  
  1058. \item[{\tt Gen Freq=60 Phase=90 Delay=.1}] The sine wave frequency is 60
  1059. Hertz.  Its phase is 90 degrees when it turns on, at time .1 seconds.  It
  1060. turns on sharply at the peak.
  1061.  
  1062. \end{description}
  1063. %------------------------------------------------------------------------
  1064. %------------------------------------------------------------------------
  1065. SHAR_EOF
  1066. fi # end of overwriting check
  1067. if test -f 'man/Commands/get.tex'
  1068. then
  1069.     echo shar: will not over-write existing file "'man/Commands/get.tex'"
  1070. else
  1071. cat << \SHAR_EOF > 'man/Commands/get.tex'
  1072. % get  04/03/90
  1073. % man commands get .
  1074. % Copyright 1983-1992   Albert Davis
  1075. %------------------------------------------------------------------------
  1076. \section{{\tt GET} command}
  1077. \index{GET command}
  1078. \index{load circuit from file}
  1079. \index{read circuit from file}
  1080. \index{retrieve circuit from file}
  1081. \index{file: get}
  1082. \index{file: read}
  1083. %------------------------------------------------------------------------
  1084. \subsection{Syntax}
  1085. \begin{verse}
  1086. {\tt GET} {\it filename}
  1087. \end{verse}
  1088. %------------------------------------------------------------------------
  1089. \subsection{Purpose}
  1090.  
  1091. Gets an existing circuit file, after clearing memory.
  1092. %------------------------------------------------------------------------
  1093. \subsection{Comments}
  1094.  
  1095. The default file extension is {\tt .ckt}.
  1096.  
  1097. The first comment line of the file being read is taken as the `title'.  See
  1098. the {\tt TItle} command.
  1099.  
  1100. Comments in the circuit file are stored, unless they start with {\tt *+} in
  1101. which case they are thrown away.
  1102.  
  1103. `Dot cards' are set up, but not executed.  This means that variables and
  1104. options are changed, but simulation commands are not actually done.  As
  1105. an example, the {\tt options} command is actually performed, since it only
  1106. sets up variables.  The {\tt ac} card is not performed, but its parameters
  1107. are stored, so that a plain {\tt ac} command will perform the analysis
  1108. specified in the file.
  1109.  
  1110. Any circuit already in memory will be erased before loading the new circuit.
  1111. %------------------------------------------------------------------------
  1112. \subsection{Examples}
  1113.  
  1114. \begin{description}
  1115.  
  1116. \item[{\tt GET amp}] Get the circuit file {\tt amp.ckt} from the current
  1117. directory.
  1118.  
  1119. \item[{\tt GET /usr/foo/ckt/amp}] Get the file {\tt amp.ckt} from the {\tt
  1120. /usr/foo/ckt} directory.
  1121.  
  1122. \item[{\tt GET npn.mod}] Get the file {\tt npn.mod}.  Override the default
  1123. extension {\tt .ckt}.
  1124.  
  1125. \end{description}
  1126. %------------------------------------------------------------------------
  1127. %------------------------------------------------------------------------
  1128. SHAR_EOF
  1129. fi # end of overwriting check
  1130. if test -f 'man/Commands/help.tex'
  1131. then
  1132.     echo shar: will not over-write existing file "'man/Commands/help.tex'"
  1133. else
  1134. cat << \SHAR_EOF > 'man/Commands/help.tex'
  1135. % help  04/02/90
  1136. % man commands help .
  1137. % Copyright 1983-1992   Albert Davis
  1138. %------------------------------------------------------------------------
  1139. \section{{\tt Help} command}
  1140. \index{help}
  1141. \index{on-line documentation}
  1142. %------------------------------------------------------------------------
  1143. \subsection{Syntax}
  1144. \begin{verse}
  1145. {\tt Help} \{{\it subject}\}
  1146. \end{verse}
  1147. %------------------------------------------------------------------------
  1148. \subsection{Purpose}
  1149.  
  1150. Provides on line documentation.
  1151. %------------------------------------------------------------------------
  1152. \subsection{Comments}
  1153.  
  1154. {\tt Help} lists the commands.
  1155.  
  1156. {\tt Help Help} lists the other subjects on which help is available.
  1157.  
  1158. {\tt Help ERrors} lists the error messages.  The word in the error message
  1159. that is partially capitalized is a keyword.  {\tt Help} followed by this
  1160. word will tell you more about that message.
  1161.  
  1162. Types of subjects available include commands, command options, error
  1163. messages, and circuit description.
  1164. %------------------------------------------------------------------------
  1165. \subsection{Examples}
  1166.  
  1167. \begin{description}
  1168.  
  1169. \item[{\tt Help BUild}] Tells you about the `{\tt Build}' command.
  1170.  
  1171. \item[{\tt Help MOSfet}] Tells you about the MOSFET model usage.
  1172.  
  1173. \item[{\tt Help ERrors}] Lists the error messages.  Strange looking
  1174. capitalization identifies keywords that will tell you how to get more about
  1175. a particular error message.
  1176.  
  1177. \item[{\tt Help CONVerge}] Gives details about the `{\tt did not converge}'
  1178. error message.
  1179.  
  1180. \end{description}
  1181. %------------------------------------------------------------------------
  1182. %------------------------------------------------------------------------
  1183. SHAR_EOF
  1184. fi # end of overwriting check
  1185. if test -f 'man/Commands/ic.tex'
  1186. then
  1187.     echo shar: will not over-write existing file "'man/Commands/ic.tex'"
  1188. else
  1189. cat << \SHAR_EOF > 'man/Commands/ic.tex'
  1190. % ic  04/05/90
  1191. % man commands ic .
  1192. %------------------------------------------------------------------------
  1193. \section{{\tt IC} command}
  1194. \index{ic command}
  1195. \index{initial conditions}
  1196. %------------------------------------------------------------------------
  1197. The Spice {\tt IC} command is not implemented.  Similar functionality is
  1198. not available.
  1199. %------------------------------------------------------------------------
  1200. %------------------------------------------------------------------------
  1201. %------------------------------------------------------------------------
  1202. %------------------------------------------------------------------------
  1203. %------------------------------------------------------------------------
  1204. SHAR_EOF
  1205. fi # end of overwriting check
  1206. if test -f 'man/Commands/insert.tex'
  1207. then
  1208.     echo shar: will not over-write existing file "'man/Commands/insert.tex'"
  1209. else
  1210. cat << \SHAR_EOF > 'man/Commands/insert.tex'
  1211. % insert  04/04/90
  1212. % man commands insert .
  1213. % Copyright 1983-1992   Albert Davis
  1214. %------------------------------------------------------------------------
  1215. \section{{\tt INsert} command}
  1216. \index{Insert command}
  1217. \index{nodes: insert}
  1218. %------------------------------------------------------------------------
  1219. \subsection{Syntax}
  1220. \begin{verse}
  1221. {\tt INsert} {\it node}\\
  1222. {\tt INsert} {\it node, count}
  1223. \end{verse}
  1224. %------------------------------------------------------------------------
  1225. \subsection{Purpose}
  1226.  
  1227. Open up node numbers inside a circuit.
  1228. %------------------------------------------------------------------------
  1229. \subsection{Comments}
  1230.  
  1231. To open up an internal node, enter {\tt Insert} followed by the number and
  1232. how many.  All node numbers higher than the first number will be raised by
  1233. the second.  The second (how many) is optional.  If omitted, 1 will be
  1234. assumed.
  1235. %------------------------------------------------------------------------
  1236. \subsection{Examples}
  1237.  
  1238. \begin{description}
  1239.  
  1240. \item[{\tt Insert 8 3}] Insert 3 nodes before node 8.  Adds 3 nodes (8,9,10)
  1241. with no connections.  Old node numbers 8 and higher have 3 added to them to
  1242. make room.  Old node 8 is now 11, 9 is now 12, 10 is now 13, 11 is 14, etc.
  1243.  
  1244. \item[{\tt Insert 6}] Insert one node at 6.  Old nodes 6 and higher are
  1245. incremented by 1.  Old node 6 is now 7, 7 is 8, etc.
  1246.  
  1247. \end{description}
  1248. %------------------------------------------------------------------------
  1249. %------------------------------------------------------------------------
  1250. SHAR_EOF
  1251. fi # end of overwriting check
  1252. if test -f 'man/Commands/list.tex'
  1253. then
  1254.     echo shar: will not over-write existing file "'man/Commands/list.tex'"
  1255. else
  1256. cat << \SHAR_EOF > 'man/Commands/list.tex'
  1257. % list  04/09/91
  1258. % man commands list .
  1259. % Copyright 1983-1992   Albert Davis
  1260. %------------------------------------------------------------------------
  1261. \section{{\tt List} command}
  1262. \index{List command}
  1263. \index{view circuit}
  1264. \index{connection list}
  1265. \index{parts list}
  1266. \index{list by branch}
  1267. %------------------------------------------------------------------------
  1268. \subsection{Syntax}
  1269. \begin{verse}
  1270. {\tt List} \{{\it label ...}\} \{{\it options} ...\}\\
  1271. {\tt List} \{{\it label} - {\it label}\} \{{\it options} ...\}
  1272. \end{verse}
  1273. %------------------------------------------------------------------------
  1274. \subsection{Purpose}
  1275.  
  1276. Lists the circuit in memory.
  1277. %------------------------------------------------------------------------
  1278. \subsection{Comments}
  1279.  
  1280. Plain {\tt List} will list the whole circuit on the console.
  1281.  
  1282. {\tt List} with a component label asks for that one only.  Wildcards are
  1283. supported: {\tt ?} matches any character, once.  {\tt *} matches zero or
  1284. more of any character.
  1285.  
  1286. For several components, list them.
  1287.  
  1288. For a range, specify two labels separated by a dash.
  1289. %------------------------------------------------------------------------
  1290. \subsection{Examples}
  1291.  
  1292. \begin{description}
  1293.  
  1294. \item[{\tt List}] List the entire circuit to the console.
  1295.  
  1296. \item[{\tt List R11}] Show the component {\tt R11}.
  1297.  
  1298. \item[{\tt List D12 - C5}] List the part of the netlist from {\tt M12} to
  1299. {\tt C5}, inclusive.  {\tt D12} must be before {\tt C5} in the list.
  1300.  
  1301. \item[{\tt List D* C*}] List all diodes and capacitors.
  1302.  
  1303. \end{description}
  1304. %------------------------------------------------------------------------
  1305. %------------------------------------------------------------------------
  1306. SHAR_EOF
  1307. fi # end of overwriting check
  1308. if test -f 'man/Commands/log.tex'
  1309. then
  1310.     echo shar: will not over-write existing file "'man/Commands/log.tex'"
  1311. else
  1312. cat << \SHAR_EOF > 'man/Commands/log.tex'
  1313. % log  04/03/90
  1314. % man commands log .
  1315. % Copyright 1983-1992   Albert Davis
  1316. %------------------------------------------------------------------------
  1317. \section{{\tt LOg} command}
  1318. \index{log command}
  1319. \index{batch mode}
  1320. \index{files}
  1321. \index{disk files}
  1322. \index{command record}
  1323. \index{record of commands}
  1324. \index{i-o redirection}
  1325. \index{redirection: i-o}
  1326. %------------------------------------------------------------------------
  1327. \subsection{Syntax}
  1328. \begin{verse}
  1329. {\tt LOg} {\it file}\\
  1330. {\tt LOg >>} {\it file}\\
  1331. {\tt LOg}
  1332. \end{verse}
  1333. %------------------------------------------------------------------------
  1334. \subsection{Purpose}
  1335.  
  1336. Saves a copy of your keyboard entries in a disk file, which may be used as
  1337. input for the `{\tt <}' command, or to run in batch mode.
  1338. %------------------------------------------------------------------------
  1339. \subsection{Comments}
  1340.  
  1341. {\tt LOg} {\it file} creates a new file, with default extension {\tt .eca}.
  1342. If the file already exists, the old one is lost, and replaced by the new
  1343. one.  There is no warning.
  1344.  
  1345. The `{\tt >>}' option appends to an existing file, if it exists, otherwise it
  1346. creates one.
  1347.  
  1348. Files can be nested.  If you open one while another is already open, both
  1349. will contain all the information.
  1350.  
  1351. A bare {\tt LOg} closes the file.  Because of this, the last line of this
  1352. file is always {\tt LOg}.  Ordinarily, this will not be of any consequence,
  1353. but if a log file is open when you use this file as command input, this will
  1354. close it.  If more than one {\tt LOg} file is open, they will be closed in
  1355. the reverse of the order in which they were opened, maintaining nesting.
  1356.  
  1357. On MS-DOS systems, {\bf do not change disks when this file is open.}
  1358. Changing disks may cause a total non-recoverable loss of all information on
  1359. the disk.  This is characteristic of MS-DOS, and there is nothing this or
  1360. any application program can do about it.
  1361.  
  1362. See also: `{\tt >}' and `{\tt <}' commands.
  1363. %------------------------------------------------------------------------
  1364. \subsection{Examples}
  1365.  
  1366. \begin{description}
  1367.  
  1368. \item[{\tt LOg today}] Save the commands in a file {\tt today.eca} in the
  1369. current directory.  If {\tt today.eca} already exists, the old one is gone.
  1370.  
  1371. \item[{\tt LOg >> doit}] Save the commands in a file {\tt doit.eca}.  If
  1372. {\tt doit.eca} already exists, it is kept, and the new data is added to the
  1373. end.
  1374.  
  1375. \item[{\tt LOg runit.bat}] Use the file {\tt runit.bat}.  You can override
  1376. the default {\tt .eca} extension.
  1377.  
  1378. \item[{\tt LOg thatone.}] Use the file {\tt thatone} in the current
  1379. directory.  Ending the file name with a dot overrides the default, and
  1380. assigns none.
  1381.  
  1382. \item[{\tt LOg}] Close the file.  Stop saving.
  1383.  
  1384. \end{description}
  1385. %------------------------------------------------------------------------
  1386. %------------------------------------------------------------------------
  1387. SHAR_EOF
  1388. fi # end of overwriting check
  1389. if test -f 'man/Commands/mark.tex'
  1390. then
  1391.     echo shar: will not over-write existing file "'man/Commands/mark.tex'"
  1392. else
  1393. cat << \SHAR_EOF > 'man/Commands/mark.tex'
  1394. % mark  01/20/93
  1395. % man commands mark .
  1396. % Copyright 1983-1992   Albert Davis
  1397. %------------------------------------------------------------------------
  1398. \section{{\tt MArk} command}
  1399. \index{mark command}
  1400. \index{transient reruns}
  1401. %------------------------------------------------------------------------
  1402. \subsection{Syntax}
  1403. \begin{verse}
  1404. {\tt MArk}
  1405. \end{verse}
  1406. %------------------------------------------------------------------------
  1407. \subsection{Purpose}
  1408.  
  1409. Remember circuit voltages and currents.
  1410. %------------------------------------------------------------------------
  1411. \subsection{Comments}
  1412.  
  1413. After the {\tt MArk} command, the {\tt Transient} and {\tt Fourier} analysis
  1414. will continue from the values that were kept by the {\tt MArk} command,
  1415. instead of progressing every time.
  1416.  
  1417. This allows reruns from the same starting point, which may be at any time,
  1418. not necessarily 0.
  1419. %------------------------------------------------------------------------
  1420. \subsection{Examples}
  1421.  
  1422. \begin{description}
  1423. \item[{\tt Transient 0 1 .01}] A transient analysis starting at zero,
  1424. running until 1 second, with step size .01 seconds.  After this run, the
  1425. clock is at 1 second.
  1426.  
  1427. \item[{\tt MArk}] Remember the time, voltages, currents, etc.
  1428.  
  1429. \item[{\tt Transient}] Another transient analysis.  It continues from 1
  1430. second, to 2 seconds.  (It spans 1 second, as before.)  This command was not
  1431. affected by the {\tt mark} command.
  1432.  
  1433. \item[{\tt Transient}] This will do exactly the same as the last one.  From
  1434. 1 second to 2 seconds.  If it were not for {\tt mark}, it would have started
  1435. from 2 seconds.
  1436.  
  1437. \item[{\tt Transient 1.5 .001}] Try again with smaller steps.  Again, it
  1438. starts at 1 second.
  1439.  
  1440. \item[{\tt UNMark}] Release the effect of {\tt mark}.
  1441.  
  1442. \item[{\tt Transient}] Exactly the same as the last time, as if we didn't
  1443. {\tt UNmark}.  (1 to 1.5 seconds.)
  1444.  
  1445. \item[{\tt Transient}] This one continues from where the last one left off:
  1446. at 1.5 seconds.  From now on, time will move forward.
  1447.  
  1448. \end{description}
  1449. %------------------------------------------------------------------------
  1450. %------------------------------------------------------------------------
  1451. SHAR_EOF
  1452. fi # end of overwriting check
  1453. if test -f 'man/Commands/merge.tex'
  1454. then
  1455.     echo shar: will not over-write existing file "'man/Commands/merge.tex'"
  1456. else
  1457. cat << \SHAR_EOF > 'man/Commands/merge.tex'
  1458. % merge  04/03/90
  1459. % man commands merge .
  1460. % Copyright 1983-1992   Albert Davis
  1461. %------------------------------------------------------------------------
  1462. \section{{\tt MErge} command}
  1463. \index{MErge command}
  1464. \index{load circuit from file}
  1465. \index{read circuit from file}
  1466. \index{retrieve circuit from file}
  1467. \index{file: get}
  1468. \index{file: merge}
  1469. \index{file: read}
  1470. %------------------------------------------------------------------------
  1471. \subsection{Syntax}
  1472. \begin{verse}
  1473. {\tt MErge} {\it filename}
  1474. \end{verse}
  1475. %------------------------------------------------------------------------
  1476. \subsection{Purpose}
  1477.  
  1478. Gets an existing circuit file, without clearing memory.
  1479. %------------------------------------------------------------------------
  1480. \subsection{Comments}
  1481.  
  1482. The default file extension is {\tt .ckt}.
  1483.  
  1484. The first comment line of the file being read is the new title, and replaces
  1485. the existing title.
  1486.  
  1487. Comments in the circuit file are stored, unless they start with {\tt *+} in
  1488. which case they are thrown away.
  1489.  
  1490. `Dot cards' are set up, but not executed.  This means that variables and
  1491. options are changed, but simulation commands are not actually done.  As
  1492. an example, the {\tt options} command is actually performed, since it only
  1493. sets up variables.  The {\tt ac} card is not performed, but its parameters
  1494. are stored, so that a plain {\tt ac} command will perform the analysis
  1495. specified in the file.
  1496.  
  1497. Any circuit already in memory is kept.  New elements with duplicate labels
  1498. replace the old ones.  New elements that are not duplicates are added to the
  1499. end of the list, as if the files were appended.
  1500. %------------------------------------------------------------------------
  1501. \subsection{Examples}
  1502.  
  1503. \begin{description}
  1504.  
  1505. \item[{\tt MErge amp}] Get the circuit file {\tt amp.ckt} from the current
  1506. directory.  Use it to change the circuit in memory.
  1507.  
  1508. \item[{\tt MErge npn.mod}] Include the file {\tt npn.mod}.  Override the
  1509. default extension {\tt .ckt}.
  1510.  
  1511. \end{description}
  1512. %------------------------------------------------------------------------
  1513. %------------------------------------------------------------------------
  1514. SHAR_EOF
  1515. fi # end of overwriting check
  1516. if test -f 'man/Commands/modify.tex'
  1517. then
  1518.     echo shar: will not over-write existing file "'man/Commands/modify.tex'"
  1519. else
  1520. cat << \SHAR_EOF > 'man/Commands/modify.tex'
  1521. % modify  01/23/93
  1522. % man commands modify .
  1523. % Copyright 1983-1992   Albert Davis
  1524. %------------------------------------------------------------------------
  1525. \section{{\tt MOdify} command}
  1526. \index{modify command}
  1527. %------------------------------------------------------------------------
  1528. \subsection{Syntax}
  1529. \begin{verse}
  1530. {\tt MOdify} {\it partlabel}={\it value} ...
  1531. \end{verse}
  1532. %------------------------------------------------------------------------
  1533. \subsection{Purpose}
  1534.  
  1535. Quickly change a component value.
  1536. %------------------------------------------------------------------------
  1537. \subsection{Comments}
  1538.  
  1539. This command quickly changes the value of a component.  It is restricted to
  1540. simply changing the value.
  1541.  
  1542. If several components have the same label or if wildcard characters are
  1543. used, all are changed.
  1544. %------------------------------------------------------------------------
  1545. \subsection{Example}
  1546.  
  1547. \begin{description}
  1548.  
  1549. \item[{\tt MOdify R66=1k}] R66 now has a value of 1k, regardless of what it
  1550. was before.
  1551.  
  1552. \item[{\tt MOdify C12=220p L1=1u}] C12 is 220 pf and L1 is 1 uH.
  1553.  
  1554. \item[{\tt mod R*=22k}] All resistors are now 22k.
  1555.  
  1556. \end{description}
  1557. %------------------------------------------------------------------------
  1558. %------------------------------------------------------------------------
  1559. SHAR_EOF
  1560. fi # end of overwriting check
  1561. #    End of shell archive
  1562. exit 0
  1563.