[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gEDA: gnetlist spice patch
--- cut ---
--- geda-gnetlist-20010722/scheme/gnet-spice.scm.orig Sun Feb 25
13:33:51 2001
+++ geda-gnetlist-20010722/scheme/gnet-spice.scm Fri Aug 24
11:53:05 2001
@@ -253,7 +253,7 @@
;;
(define spice:write-include
(lambda (package port)
- (display (string-append package " " (spice:component-value package)
"\n") port)))
+ (display (string-append (spice:component-value package) "\n") port)))
;;
--- cut ---
This patch strips away the reference designator for those items that are
instantiated with "include". The problem is this: Suppose you have several
devices each with its own .model. The way the net lister was designed one
would have to specify the .model's as an include:
include, uref=.model, value=spice description of model
The netlister would concatenate the uref and value attributes and write
that to the spice netlist. However, gnetlist prohibits multiple devices
with the same uref. Consequently, only one model could be specified!
With the above patch, the .model's are still part of an include, but
should be specified like so:
include, uref=A1, value=.model spice description of model 1
include, uref=A2, value=.model spice description of model 2
etc...
In other words, the spice keyword ".model" is now part of the value
attribute instead of the uref attribute.
This change will break the spice netlisting of old schematics.
Scott