Allow the definition of spice syntax in symbols.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
New
|
Wishlist
|
Unassigned |
Bug Description
This feature is designed to make it possible to design (relative) simple, probing and analysis definitions as a symbol.
The key idea behind this is to define a attribute (spice-syntax), set its value to a string to interpret and let the netlister replace tokens like [netname] with the value of the netname attribute.
;; [ATTRIBUTE=
;; the ATTRIBUTE name in Netlist
;; if the attribute is not defined the standard value is used insted.
;; if the attribute is refdes standard is the prefix.
;; attributes may not begin with '-', '/' or '+'
;;
;;
;; [-PINNUMBER] the netname connected to the pin with an equal PINNUMBER
;; is written to the outputfile
;;
;;
;; [+FLAG=Flagname] if a Flag is set the Flagname String is given to the spice File
;; a Flag is set if the Value is one of "#t" "1" "on" "true" "yes"
;; every other value of Flag is ignored
;;
;; <optional-Block> Optional Blocks are only written if they can be solved
;; that means if all attributes are existing in the package
;; or have a standard value
;;
;; every thing else everything else is simply copyed to the outputfile
Hi all,
I've integrated the patch into my local git repo and created a patch against 23ead18086e59aa b22945c37ff95f4 9e5.
* copied the symbols into the spice2 directory spice_syntax (does not work)
* fixed installation
* replaced spice library with the new spice2 library in geda-clib.scm
* moved the example to examples/
This patch is intented to make it easier to test the provided patch.
Regards
Werner