working dependent sources with alternate body styles

This commit is contained in:
Brendan Haines 2021-06-22 17:52:16 -06:00
parent 33c0a5bd03
commit 796a3c77cb

View File

@ -21,6 +21,9 @@
(property "Spice_Model" "dc 1" (id 6) (at 0 0 0) (property "Spice_Model" "dc 1" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27))) (effects (font (size 1.27 1.27)))
) )
(property "ki_description" "Source, Current" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "ISOURCE_0_1" (symbol "ISOURCE_0_1"
(circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none))) (circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none)))
(polyline (polyline
@ -66,6 +69,268 @@
) )
) )
) )
(symbol "spice:ISOURCE_DEPENDENT" (pin_numbers hide) (pin_names hide) (in_bom no) (on_board no)
(property "Reference" "G" (id 0) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "ISOURCE_DEPENDENT" (id 1) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Primitive" "G" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Netlist_Enabled" "Y" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Model" "1" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "ki_description" "Source, Dependent, Current" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "ISOURCE_DEPENDENT_0_1"
(circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none)))
(text "+" (at -3.81 1.27 0)
(effects (font (size 1.27 1.27)))
)
(text "-" (at -3.81 -1.27 0)
(effects (font (size 1.27 1.27)))
)
(polyline
(pts
(xy -2.54 -2.54)
(xy -1.8034 -1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy -2.54 2.54)
(xy -1.8034 1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 1.27)
(xy 0 -1.27)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 -1.27)
(xy -0.508 -0.508)
(xy 0.508 -0.508)
(xy 0 -1.27)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 -1.27)
(xy -0.381 -0.508)
(xy 0.381 -0.508)
(xy 0 -1.27)
(xy -0.254 -0.508)
(xy 0.254 -0.508)
(xy 0 -1.27)
(xy -0.127 -0.508)
(xy 0.127 -0.508)
(xy 0 -1.27)
)
(stroke (width 0.1524)) (fill (type none))
)
)
(symbol "ISOURCE_DEPENDENT_0_2"
(circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none)))
(text "+" (at -3.81 -1.27 0)
(effects (font (size 1.27 1.27)))
)
(text "-" (at -3.81 1.27 0)
(effects (font (size 1.27 1.27)))
)
(polyline
(pts
(xy -2.54 -2.54)
(xy -1.8034 -1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy -2.54 2.54)
(xy -1.8034 1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 1.27)
(xy 0 -1.27)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 -1.27)
(xy -0.508 -0.508)
(xy 0.508 -0.508)
(xy 0 -1.27)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 -1.27)
(xy -0.381 -0.508)
(xy 0.381 -0.508)
(xy 0 -1.27)
(xy -0.254 -0.508)
(xy 0.254 -0.508)
(xy 0 -1.27)
(xy -0.127 -0.508)
(xy 0.127 -0.508)
(xy 0 -1.27)
)
(stroke (width 0.1524)) (fill (type none))
)
)
(symbol "ISOURCE_DEPENDENT_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 -2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
)
(symbol "ISOURCE_DEPENDENT_1_2"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 -2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "spice:SWITCH" (pin_numbers hide) (pin_names hide) (in_bom no) (on_board no)
(property "Reference" "SW" (id 0) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "SWITCH" (id 1) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Primitive" "SW" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Netlist_Enabled" "Y" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Model" "1" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "ki_description" "BROKEN, SPICE, Switch" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "SWITCH_0_0"
(text "+" (at -3.81 1.27 0)
(effects (font (size 1.27 1.27)))
)
(text "-" (at -3.81 -1.27 0)
(effects (font (size 1.27 1.27)))
)
)
(symbol "SWITCH_0_1"
(circle (center 0 -1.27) (radius 0.381) (stroke (width 0.1524)) (fill (type none)))
(circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none)))
(circle (center 0 1.27) (radius 0.381) (stroke (width 0.1524)) (fill (type none)))
(polyline
(pts
(xy -2.54 -2.54)
(xy -1.8034 -1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy -2.54 2.54)
(xy -1.8034 1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 -1.651)
(xy 0 -2.286)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0 2.286)
(xy 0 1.651)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy 0.254 0.889)
(xy 0.762 -0.762)
)
(stroke (width 0.1524)) (fill (type none))
)
)
(symbol "SWITCH_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 -2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "spice:VSOURCE" (pin_numbers hide) (pin_names hide) (in_bom no) (on_board no) (symbol "spice:VSOURCE" (pin_numbers hide) (pin_names hide) (in_bom no) (on_board no)
(property "Reference" "V" (id 0) (at 0 0 0) (property "Reference" "V" (id 0) (at 0 0 0)
(effects (font (size 1.27 1.27))) (effects (font (size 1.27 1.27)))
@ -88,6 +353,9 @@
(property "Spice_Model" "dc 1" (id 6) (at 0 0 0) (property "Spice_Model" "dc 1" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27))) (effects (font (size 1.27 1.27)))
) )
(property "ki_description" "Source, Voltage" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "VSOURCE_0_0" (symbol "VSOURCE_0_0"
(text "+" (at 0 1.27 0) (text "+" (at 0 1.27 0)
(effects (font (size 1.27 1.27))) (effects (font (size 1.27 1.27)))
@ -110,4 +378,120 @@
) )
) )
) )
(symbol "spice:VSOURCE_DEPENDENT" (pin_numbers hide) (pin_names hide) (in_bom no) (on_board no)
(property "Reference" "E" (id 0) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "VSOURCE_DEPENDENT" (id 1) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Primitive" "E" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Netlist_Enabled" "Y" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Spice_Model" "1" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)))
)
(property "ki_description" "Source, Dependent, Voltage" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "VSOURCE_DEPENDENT_0_0"
(text "+" (at 0 1.27 0)
(effects (font (size 1.27 1.27)))
)
(text "-" (at 0 -1.27 0)
(effects (font (size 1.27 1.27)))
)
)
(symbol "VSOURCE_DEPENDENT_0_1"
(circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none)))
(text "+" (at -3.81 1.27 0)
(effects (font (size 1.27 1.27)))
)
(text "-" (at -3.81 -1.27 0)
(effects (font (size 1.27 1.27)))
)
(polyline
(pts
(xy -2.54 -2.54)
(xy -1.8034 -1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy -2.54 2.54)
(xy -1.8034 1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
)
(symbol "VSOURCE_DEPENDENT_0_2"
(circle (center 0 0) (radius 2.54) (stroke (width 0.1524)) (fill (type none)))
(text "+" (at -3.81 -1.27 0)
(effects (font (size 1.27 1.27)))
)
(text "-" (at -3.81 1.27 0)
(effects (font (size 1.27 1.27)))
)
(polyline
(pts
(xy -2.54 -2.54)
(xy -1.8034 -1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
(polyline
(pts
(xy -2.54 2.54)
(xy -1.8034 1.8034)
)
(stroke (width 0.1524)) (fill (type none))
)
)
(symbol "VSOURCE_DEPENDENT_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 -2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
)
(symbol "VSOURCE_DEPENDENT_1_2"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 -2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 2.54 0) (length 2.54)
(name "" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
)
)
) )