home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / apps / 4893 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  3.4 KB

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