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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.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 05/20
  5. Message-ID: <1993Jan25.052137.4803@rbc.uucp>
  6. Date: 25 Jan 93 05:21:37 GMT
  7. Sender: al@rbc.uucp (Al Davis)
  8. Organization: Huh?
  9. Lines: 327
  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/0summary.tex
  17. #    man/Commands/1shell.tex
  18. #    man/Commands/2batch.tex
  19. #    man/Commands/3outfile.tex
  20. # This archive created: Mon Jan 25 00:17:43 1993
  21. export PATH; PATH=/bin:$PATH
  22. if test -f 'man/Commands/0summary.tex'
  23. then
  24.     echo shar: will not over-write existing file "'man/Commands/0summary.tex'"
  25. else
  26. cat << \SHAR_EOF > 'man/Commands/0summary.tex'
  27. % summary  01/11/93
  28. % man commands summary .
  29. % Copyright 1983-1992   Albert Davis
  30. %------------------------------------------------------------------------
  31. \index{command descriptions}
  32. \index{command summary}
  33.  
  34. \begin{description}
  35.  
  36. \item[{\tt *}] Comment line.
  37. \index{comment line}
  38.  
  39. \item[{\tt !}] Pass a command to the operating system.
  40.  
  41. \item[{\tt <}] Batch mode.
  42.  
  43. \item[{\tt >}] Direct the ``standard output'' to a file.
  44.  
  45. \item[{\tt Ac}] Performs a small signal AC (frequency domain) analysis.
  46. Sweeps frequency.
  47.  
  48. \item[{\tt ALter}] Perform analyses in queue.  Changes follow.  (Not
  49. implemented.)
  50.  
  51. \item[{\tt Build}] Build a new circuit or change an existing one.
  52.  
  53. \item[{\tt ChDir}] Change current directory.
  54.  
  55. \item[{\tt CLEAR}] Delete the entire circuit, titles, etc.
  56.  
  57. \item[{\tt DC}] Performs a nonlinear DC analysis, for determining transfer
  58. characteristics.  Sweeps DC input or component values.
  59.  
  60. \item[{\tt DELete}] Delete a part, or group of parts.
  61.  
  62. \item[{\tt DIsto}] SPICE command not implemented.
  63.  
  64. \item[{\tt EDit}] Edit the circuit description using your editor.
  65.  
  66. \item[{\tt ENd}] Perform analyses in queue.  New circuit follows.
  67. (Implemented incorrectly.)
  68.  
  69. \item[{\tt EXIt}] Exits the program.  (Same as quit)
  70.  
  71. \item[{\tt FAult}] Temporarily change a component.
  72.  
  73. %%%\item[{\tt Fourier}] Transient analysis, with results in
  74. %%%frequency domain.  (Different from SPICE.)
  75.  
  76. \item[{\tt Generator}] View and set the transient analysis function
  77. generator.
  78.  
  79. \item[{\tt GET}] Get a circuit from a disk file.  Deletes old one first.
  80.  
  81. \item[{\tt Help}] Requests advice on error messages, options, command
  82. syntax.
  83.  
  84. \item[{\tt IC}] Set transient analysis initial conditions.
  85. (Not implemented.)
  86.  
  87. \item[{\tt INsert}] Insert a node number.  (Make a gap.)
  88.  
  89. \item[{\tt List}] List the circuit on the console.
  90.  
  91. \item[{\tt LOg}] Save a record of commands.
  92.  
  93. \item[{\tt MArk}] Mark this time point, so transient analysis will restart
  94. here.
  95.  
  96. \item[{\tt MErge}] Get a circuit from disk.  Add it the what is already in
  97. memory.
  98.  
  99. \item[{\tt Modify}] Change a value, node, etc.  For very simple changes.
  100.  
  101. \item[{\tt Network}] List by node number, the branches that connect to each
  102. node.
  103.  
  104. \item[{\tt NODeset}] Preset node voltages, to assist convergence.  (Not
  105. implemented.)
  106.  
  107. \item[{\tt NOIse}] SPICE command not implemented.
  108.  
  109. \item[{\tt OP}] Performs a nonlinear DC analysis, for determining quiescent
  110. operating conditions.  Sweeps temperature.
  111.  
  112. \item[{\tt OPTions}] View and set system options.  (Same as set.)
  113.  
  114. \item[{\tt PAuse}] Wait for key hit, while in batch mode.
  115.  
  116. \item[{\tt PLot}] Select points in circuit (and their range) to plot.
  117.  
  118. \item[{\tt Print}] Select which points in the circuit to print as table.
  119.  
  120. \item[{\tt Quit}] Exits the program.  (Same as exit.)
  121.  
  122. \item[{\tt SAve}] Save the circuit in a file.
  123.  
  124. \item[{\tt SENs}] SPICE command not implemented.
  125.  
  126. \item[{\tt SEt}] View and set system options.  (Same as options.)
  127.  
  128. \item[{\tt Status}] Display resource usage, etc.
  129.  
  130. \item[{\tt SWeep}] Sweep a component.  (Loop function.)
  131.  
  132. \item[{\tt TEmp}] SPICE command not implemented.
  133.  
  134. \item[{\tt TF}] SPICE command not implemented.
  135.  
  136. \item[{\tt TItle}] View and create the heading line for printouts and files.
  137.  
  138. \item[{\tt Transient}] Performs a nonlinear transient (time domain)
  139. analysis.  Sweeps time.
  140.  
  141. \item[{\tt UNFault}] Undo faults.
  142.  
  143. \item[{\tt UNMark}] Undo mark.  Release transient start point.
  144.  
  145. \item[{\tt Width}] Set output width.
  146.  
  147. \end{description}
  148. %------------------------------------------------------------------------
  149. %------------------------------------------------------------------------
  150. SHAR_EOF
  151. fi # end of overwriting check
  152. if test -f 'man/Commands/1shell.tex'
  153. then
  154.     echo shar: will not over-write existing file "'man/Commands/1shell.tex'"
  155. else
  156. cat << \SHAR_EOF > 'man/Commands/1shell.tex'
  157. % shell  04/06/89
  158. % man commands shell .
  159. % Copyright 1983-1992   Albert Davis
  160. %------------------------------------------------------------------------
  161. \section{{\tt !} command}
  162. \index{! command}
  163. \index{operating system commands}
  164. %------------------------------------------------------------------------
  165. \subsection{Syntax}
  166. \begin{verse}
  167. {\tt !} {{\it command}}
  168. \end{verse}
  169. %------------------------------------------------------------------------
  170. \subsection{Purpose}
  171.  
  172. Run a program, or escape to a shell.
  173. %------------------------------------------------------------------------
  174. \subsection{Comments}
  175.  
  176. Any {\it command} typed here will be passed to the system for it to execute.
  177.  
  178. The bare command {\tt !} will spawn an interactive shell.  Exiting the shell
  179. will return.
  180. %------------------------------------------------------------------------
  181. \subsection{Examples}
  182.  
  183. \begin{description}
  184.  
  185. \item[{\tt ! ls *.ckt}] Run the command {\tt ls *.ckt} as if it were a shell
  186. command.
  187.  
  188. \item[{\tt !}] No arguments mean to spawn an interactive shell.
  189.  
  190. \end{description}
  191. %------------------------------------------------------------------------
  192. %------------------------------------------------------------------------
  193. SHAR_EOF
  194. fi # end of overwriting check
  195. if test -f 'man/Commands/2batch.tex'
  196. then
  197.     echo shar: will not over-write existing file "'man/Commands/2batch.tex'"
  198. else
  199. cat << \SHAR_EOF > 'man/Commands/2batch.tex'
  200. % batch  04/02/90
  201. % man commands batch .
  202. % Copyright 1983-1992   Albert Davis
  203. %------------------------------------------------------------------------
  204. \section{{\tt <} command}
  205. \index{< command}
  206. \index{batch mode}
  207. \index{files}
  208. \index{disk files}
  209. \index{input redirection}
  210. \index{i-o redirection}
  211. \index{redirection: i-o}
  212. %------------------------------------------------------------------------
  213. \subsection{Syntax}
  214. \begin{verse}
  215. {\tt <} {{\it filename}}\\
  216. {\tt <<} {{\it filename}}
  217. \end{verse}
  218. %------------------------------------------------------------------------
  219. \subsection{Purpose}
  220.  
  221. Run a simulation in batch mode.  Gets the commands and circuit from a disk
  222. file.  {\tt <<} clears the old circuit, first.
  223. %------------------------------------------------------------------------
  224. \subsection{Comments}
  225.  
  226. The default extension is {\tt .ckt}.
  227.  
  228. You can invoke the batch mode directly from the command that starts the
  229. program.  The first command line argument is considered to be an argument
  230. for this command.
  231.  
  232. The file format is almost as you would type it on the keyboard.  Commands
  233. must be prefixed with a dot, and circuit elements can be entered directly,
  234. as if in {\em build} mode.  This is compatible with Spice.  The {\tt log}
  235. command can make this file, as you work the program, or you can make it with
  236. any editor.  
  237.  
  238. Any line that starts with {\tt *} a comment line.
  239.  
  240. Any line that starts with {\tt .} (dot) is a command.
  241.  
  242. Any line that starts with a letter is a component to be added or changed.
  243.  
  244. A {\tt <} command in the file transfers control to a new file.  Files can be
  245. nested.
  246.  
  247. A bare {\tt <} in the file (or the end of the file) gives it back to the
  248. console.
  249.  
  250. Unlike SPICE, commands are executed in order.  This can result in some
  251. surprises when using some SPICE files.  SPICE queues up commands, then
  252. executes them in a predetermined order.
  253. %------------------------------------------------------------------------
  254. \subsection{Examples}
  255.  
  256. \begin{description}
  257.  
  258. \item[{\tt < thisone}] Activates batch mode, from the file {\tt
  259. thisone.ckt}, in the current directory.
  260.  
  261. \item[{\tt < runit.bat}] Use the file {\tt runit.bat}.  You can override the
  262. default {\tt .ckt} extension.
  263.  
  264. \item[{\tt < thatone.}] Use the file {\tt thatone} in the current
  265. directory.  Ending the file name with a dot overrides the default, and
  266. assigns none.
  267.  
  268.  
  269. From the shell: on start up:
  270.  
  271. \item[{\tt eca afile}] Start up the program.  Start using the file {\tt
  272. afile.ckt} in batch mode, as if you entered {\tt < afile} as the first
  273. command.
  274.  
  275. \end{description}
  276. %------------------------------------------------------------------------
  277. %------------------------------------------------------------------------
  278. SHAR_EOF
  279. fi # end of overwriting check
  280. if test -f 'man/Commands/3outfile.tex'
  281. then
  282.     echo shar: will not over-write existing file "'man/Commands/3outfile.tex'"
  283. else
  284. cat << \SHAR_EOF > 'man/Commands/3outfile.tex'
  285. % outfile  05/03/89
  286. % man  commands  outfile .
  287. % Copyright 1983-1992   Albert Davis
  288. %------------------------------------------------------------------------
  289. \section{{\tt >} command}
  290. \index{> command}
  291. \index{files}
  292. \index{disk files}
  293. \index{output redirection}
  294. \index{i-o redirection}
  295. \index{redirection: i-o}
  296. %------------------------------------------------------------------------
  297. \subsection{Syntax}
  298. \begin{verse}
  299. {\tt >} {\it file}\\
  300. {\tt >>} {\it file}\\
  301. {\tt >}
  302. \end{verse}
  303. %------------------------------------------------------------------------
  304. \subsection{Purpose}
  305.  
  306. Saves a copy of all program output (except help) in a file.
  307. %------------------------------------------------------------------------
  308. \subsection{Comments}
  309.  
  310. {\tt >} creates a new file for this output.  If the file already exists, the
  311. old one is lost, and replaced by the new one.
  312.  
  313. {\tt >>} appends to an existing file, if it exists, otherwise it creates one.
  314.  
  315. A bare {\tt >} closes the file.
  316.  
  317. There is no default extension.
  318. %------------------------------------------------------------------------
  319. \subsection{Examples}
  320.  
  321. \begin{description}
  322.  
  323. \item[{\tt > run1}] Save everything in a file {\tt run1} in the current
  324. directory.  If {\tt run1} already exists, the old one is gone.
  325.  
  326. \item[{\tt >> allof}] Save everything in a file {\tt allof}.  If {\tt
  327. allof} already exists, it is kept, and the new data is added to the end.
  328.  
  329. \item[{\tt >}] Close the file.  Stop saving.
  330.  
  331. \end{description}
  332. %------------------------------------------------------------------------
  333. %------------------------------------------------------------------------
  334. SHAR_EOF
  335. fi # end of overwriting check
  336. #    End of shell archive
  337. exit 0
  338.