home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / progs / spice / readme < prev    next >
Text File  |  1992-07-31  |  3KB  |  63 lines

  1. This is a port of SPICE 2G.6 to OS/2 2.0.  The following lines are 
  2. extracted from the source file spice.f:
  3.  
  4. C
  5. C
  6. C SPICE VERSION 2G.6  SCCSID=root.ma 3/15/83
  7. C
  8. C     SPICE IS AN ELECTRONIC CIRCUIT SIMULATION PROGRAM THAT WAS DEVE-
  9. C LOPED BY THE INTEGRATED CIRCUITS GROUP OF THE ELECTRONICS RESEARCH
  10. C LABORATORY AND THE DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER
  11. C SCIENCES AT THE UNIVERSITY OF CALIFORNIA, BERKELEY, CALIFORNIA.  THE
  12. C PROGRAM SPICE IS AVAILABLE FREE OF CHARGE TO ANY INTERESTED PARTY.
  13. C THE SALE, RESALE, OR USE OF THIS PROGRAM FOR PROFIT WITHOUT THE
  14. C EXPRESS WRITTEN CONSENT OF THE DEPARTMENT OF ELECTRICAL ENGINEERING
  15. C AND COMPUTER SCIENCES, UNIVERSITY OF CALIFORNIA, BERKELEY, CALIFORNIA,
  16. C IS FORBIDDEN.
  17. C
  18.  
  19. This "port" was made exceptionally simple thanks to the EMX GCC compiler
  20. and F2C, the Fortran to C translation utility.  I've only been using it
  21. for a few days, but so far there are no signs of problems.
  22.  
  23. To use spice with OS/2 2.0, just place "spice.exe" in some directory listed
  24. in your PATH variable, and "emx.dll" in some directory listed in your LIBPATH
  25. variable (but only if it's newer than your current emx.dll!).
  26.  
  27. To run spice, just type:
  28.  
  29.     spice < infile > outfile 
  30.  
  31. For some reason, all numbers are output in the form 0.12345-006 instead
  32. of the usual form 0.12345E-006 (Is this normal for Fortran?).  If you
  33. prefer the latter form, get a copy of 'sed' (it's available at hobbes),
  34. and do:
  35.  
  36.     spice < infile | sed "s/\([0-9]\)\([-+][0-9]\)/\1E\2/g" > outfile
  37.  
  38. If you would like to use symbolic node names (like in HSPICE) send me
  39. some mail asking for "spices", my symbolic node name pre-processor.
  40.  
  41. If anybody's interested, I have also written an implementation of a 
  42. genetic algorithm (described in the July 1992 issue of Scientific 
  43. American) for automatic optimization of circuits using SPICE 2G.6 .
  44.  
  45.  This port is a FULL version.  I didn't have to scale down anything to 
  46. get it to work.  Using the automatic optimization program that I 
  47. mentioned above, I've run over 10000 spice simulations (in 2 days!) of a
  48. simple, 6-transistor circuit.  With level 3 models each simulation takes
  49. about 9 seconds on my 486/33.
  50.  
  51. Judging from the benchmark results given in the circuits/ directory, my
  52. 486/33 seems to be comparable in speed to a MIPS M/800, or about 10x the
  53. speed of a VAX 11/780.  For those who are interested, I used "f2c -A -E",
  54. followed by "gcc -O2" (the emx 0.8d version) to do the compilation from
  55. Berkeley Fortran sources.
  56.  
  57. If you manage to do some novel things with spice, plese send me some mail!
  58. Any comments are welcome!
  59.  
  60. Marcel LeBlanc
  61. mleblanc@netcom.com
  62. (or leblanc@eecg.toronto.edu)
  63.