Add Switches sim QA test

Tests voltage switches. Current switches will be tested as well once
they're fixed to work with .probe alli command in Ngspice.
This commit is contained in:
Mikolaj Wielgus 2022-08-29 04:30:21 +02:00
parent 716b60c20d
commit 385e5deaaa
4 changed files with 1226 additions and 0 deletions

View File

@ -0,0 +1,2 @@
(kicad_pcb (version 20220818) (generator pcbnew)
)

View File

@ -0,0 +1,334 @@
{
"board": {
"3dviewports": [],
"design_settings": {
"defaults": {
"board_outline_line_width": 0.1,
"copper_line_width": 0.2,
"copper_text_size_h": 1.5,
"copper_text_size_v": 1.5,
"copper_text_thickness": 0.3,
"other_line_width": 0.15,
"silk_line_width": 0.15,
"silk_text_size_h": 1.0,
"silk_text_size_v": 1.0,
"silk_text_thickness": 0.15
},
"diff_pair_dimensions": [],
"drc_exclusions": [],
"rules": {
"min_copper_edge_clearance": 0.0,
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0
},
"track_widths": [],
"via_dimensions": []
},
"layer_presets": [],
"viewports": []
},
"boards": [],
"cvpcb": {
"equivalence_files": []
},
"erc": {
"erc_exclusions": [],
"meta": {
"version": 0
},
"pin_map": [
[
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
0,
1,
0,
0,
1,
0,
2,
2,
2,
2
],
[
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
2
],
[
0,
1,
0,
0,
0,
0,
1,
1,
2,
1,
1,
2
],
[
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2
],
[
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
2
],
[
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
1,
2,
0,
0,
1,
0,
2,
2,
2,
2
],
[
0,
2,
0,
1,
0,
0,
1,
0,
2,
0,
0,
2
],
[
0,
2,
1,
1,
0,
0,
1,
0,
2,
0,
0,
2
],
[
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
]
],
"rule_severities": {
"bus_definition_conflict": "error",
"bus_entry_needed": "error",
"bus_label_syntax": "error",
"bus_to_bus_conflict": "error",
"bus_to_net_conflict": "error",
"different_unit_footprint": "error",
"different_unit_net": "error",
"duplicate_reference": "error",
"duplicate_sheet_names": "error",
"extra_units": "error",
"global_label_dangling": "warning",
"hier_label_mismatch": "error",
"label_dangling": "error",
"lib_symbol_issues": "warning",
"multiple_net_names": "warning",
"net_not_bus_member": "warning",
"no_connect_connected": "warning",
"no_connect_dangling": "warning",
"pin_not_connected": "error",
"pin_not_driven": "error",
"pin_to_pin": "warning",
"power_pin_not_driven": "error",
"similar_labels": "warning",
"unannotated": "error",
"unit_value_mismatch": "error",
"unresolved_variable": "error",
"wire_dangling": "error"
}
},
"libraries": {
"pinned_footprint_libs": [],
"pinned_symbol_libs": []
},
"meta": {
"filename": "switches.kicad_pro",
"version": 1
},
"net_settings": {
"classes": [
{
"bus_width": 12.0,
"clearance": 0.2,
"diff_pair_gap": 0.25,
"diff_pair_via_gap": 0.25,
"diff_pair_width": 0.2,
"line_style": 0,
"microvia_diameter": 0.3,
"microvia_drill": 0.1,
"name": "Default",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
}
],
"meta": {
"version": 3
},
"net_colors": null,
"netclass_assignments": null,
"netclass_patterns": []
},
"pcbnew": {
"last_paths": {
"gencad": "",
"idf": "",
"netlist": "",
"specctra_dsn": "",
"step": "",
"vrml": ""
},
"page_layout_descr_file": ""
},
"schematic": {
"annotate_start_num": 0,
"drawing": {
"dashed_lines_dash_length_ratio": 12.0,
"dashed_lines_gap_length_ratio": 3.0,
"default_line_thickness": 6.0,
"default_text_size": 50.0,
"field_names": [],
"intersheets_ref_own_page": false,
"intersheets_ref_prefix": "",
"intersheets_ref_short": false,
"intersheets_ref_show": false,
"intersheets_ref_suffix": "",
"junction_size_choice": 3,
"label_size_ratio": 0.375,
"pin_symbol_size": 25.0,
"text_offset_ratio": 0.15
},
"legacy_lib_dir": "",
"legacy_lib_list": [],
"meta": {
"version": 1
},
"net_format_name": "",
"ngspice": {
"fix_include_paths": true,
"fix_passive_vals": false,
"meta": {
"version": 0
},
"model_mode": 0,
"workbook_filename": ""
},
"page_layout_descr_file": "",
"plot_directory": "",
"spice_adjust_passive_values": false,
"spice_external_command": "spice \"%I\"",
"spice_save_all_currents": false,
"spice_save_all_voltages": false,
"subpart_first_id": 65,
"subpart_id_separator": 0
},
"sheets": [
[
"8c3d4d2c-5107-4b13-88da-bd05d371fd8a",
""
]
],
"text_variables": {}
}

View File

@ -0,0 +1,879 @@
(kicad_sch (version 20220822) (generator eeschema)
(uuid 8c3d4d2c-5107-4b13-88da-bd05d371fd8a)
(paper "A4")
(lib_symbols
(symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "R" (id 0) (at 2.032 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "R" (id 1) (at 0 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at -1.778 0 90)
(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 "ki_keywords" "R res resistor" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Resistor" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "R_*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "R_0_1"
(rectangle (start -1.016 -2.54) (end 1.016 2.54)
(stroke (width 0.254) (type default))
(fill (type none))
)
)
(symbol "R_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))))
)
)
)
(symbol "Relay:ADW11" (in_bom yes) (on_board yes)
(property "Reference" "K" (id 0) (at 11.43 3.81 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "ADW11" (id 1) (at 13.97 1.27 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT" (id 2) (at 33.655 -1.27 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "https://www.panasonic-electric-works.com/pew/es/downloads/ds_dw_hl_en.pdf" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "SPST 1P1T" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Panasonic, 8A/16A, Small Polarized Latching Power Relays, Single coil, 1 Form A" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Relay*1P1T*NO*Panasonic*ADW11xxxxW*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "ADW11_1_1"
(rectangle (start -10.16 5.08) (end 10.16 -5.08)
(stroke (width 0.254) (type default))
(fill (type background))
)
(rectangle (start -8.255 1.905) (end -1.905 -1.905)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy -7.62 -1.905)
(xy -2.54 1.905)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy -5.08 -5.08)
(xy -5.08 -1.905)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy -5.08 5.08)
(xy -5.08 1.905)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy -1.905 0)
(xy -1.27 0)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy -0.635 0)
(xy 0 0)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy 0.635 0)
(xy 1.27 0)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy 0.635 0)
(xy 1.27 0)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy 1.905 0)
(xy 2.54 0)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy 3.175 0)
(xy 3.81 0)
)
(stroke (width 0.254) (type default))
(fill (type none))
)
(polyline
(pts
(xy 5.08 -2.54)
(xy 3.175 3.81)
)
(stroke (width 0.508) (type default))
(fill (type none))
)
(polyline
(pts
(xy 5.08 -2.54)
(xy 5.08 -5.08)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 7.62 3.81)
(xy 7.62 5.08)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 7.62 3.81)
(xy 7.62 2.54)
(xy 6.985 3.175)
(xy 7.62 3.81)
)
(stroke (width 0) (type default))
(fill (type none))
)
(text "R+" (at -3.048 -3.556 0)
(effects (font (size 1.016 1.016)))
)
(text "S+" (at -3.048 3.556 0)
(effects (font (size 1.016 1.016)))
)
(pin passive line (at -5.08 7.62 270) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 7.62 7.62 270) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 5.08 -7.62 90) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 -7.62 90) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Simulation_SPICE:VDC" (pin_numbers hide) (pin_names (offset 0.0254)) (in_bom yes) (on_board yes)
(property "Reference" "V" (id 0) (at 2.54 2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "VDC" (id 1) (at 2.54 0 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(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_Netlist_Enabled" "Y" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) (justify left) hide)
)
(property "Spice_Primitive" "V" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) (justify left) hide)
)
(property "Spice_Model" "dc(1)" (id 6) (at 2.54 -2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "ki_keywords" "simulation" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Voltage source, DC" (id 8) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "VDC_0_0"
(polyline
(pts
(xy -1.27 0.254)
(xy 1.27 0.254)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy -0.762 -0.254)
(xy -1.27 -0.254)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 0.254 -0.254)
(xy -0.254 -0.254)
)
(stroke (width 0) (type default))
(fill (type none))
)
(polyline
(pts
(xy 1.27 -0.254)
(xy 0.762 -0.254)
)
(stroke (width 0) (type default))
(fill (type none))
)
(text "+" (at 0 1.905 0)
(effects (font (size 1.27 1.27)))
)
)
(symbol "VDC_0_1"
(circle (center 0 0) (radius 2.54)
(stroke (width 0.254) (type default))
(fill (type background))
)
)
(symbol "VDC_1_1"
(pin passive line (at 0 5.08 270) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -5.08 90) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Simulation_SPICE:VPULSE" (pin_numbers hide) (pin_names (offset 0.0254)) (in_bom yes) (on_board yes)
(property "Reference" "V" (id 0) (at 2.54 2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "VPULSE" (id 1) (at 2.54 0 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(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_Netlist_Enabled" "Y" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) (justify left) hide)
)
(property "Spice_Primitive" "V" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) (justify left) hide)
)
(property "Spice_Model" "pulse(0 1 2n 2n 2n 50n 100n)" (id 6) (at 2.54 -2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "ki_keywords" "simulation" (id 7) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Voltage source, pulse" (id 8) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "VPULSE_0_0"
(polyline
(pts
(xy -2.032 -0.762)
(xy -1.397 -0.762)
(xy -1.143 0.762)
(xy -0.127 0.762)
(xy 0.127 -0.762)
(xy 1.143 -0.762)
(xy 1.397 0.762)
(xy 2.032 0.762)
)
(stroke (width 0) (type default))
(fill (type none))
)
(text "+" (at 0 1.905 0)
(effects (font (size 1.27 1.27)))
)
)
(symbol "VPULSE_0_1"
(circle (center 0 0) (radius 2.54)
(stroke (width 0.254) (type default))
(fill (type background))
)
)
(symbol "VPULSE_1_1"
(pin passive line (at 0 5.08 270) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -5.08 90) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "power:GND" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "#PWR" (id 0) (at 0 -6.35 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 0 -3.81 0)
(effects (font (size 1.27 1.27)))
)
(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 "ki_keywords" "power-flag" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Power symbol creates a global label with name \"GND\" , ground" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "GND_0_1"
(polyline
(pts
(xy 0 0)
(xy 0 -1.27)
(xy 1.27 -1.27)
(xy 0 -2.54)
(xy -1.27 -1.27)
(xy 0 -1.27)
)
(stroke (width 0) (type default))
(fill (type none))
)
)
(symbol "GND_1_1"
(pin power_in line (at 0 0 270) (length 0) hide
(name "GND" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
)
)
)
(wire (pts (xy 171.45 114.3) (xy 184.15 114.3))
(stroke (width 0) (type default))
(uuid 11cd3f31-79fb-4dc0-9345-332307a1afde)
)
(wire (pts (xy 184.15 76.2) (xy 184.15 81.28))
(stroke (width 0) (type default))
(uuid 125175d9-9e88-4d12-af81-036a28a9b37f)
)
(wire (pts (xy 184.15 124.46) (xy 184.15 127))
(stroke (width 0) (type default))
(uuid 7e52ff07-6138-4e79-9481-42de5dfff663)
)
(wire (pts (xy 184.15 114.3) (xy 184.15 116.84))
(stroke (width 0) (type default))
(uuid 8e414f3d-3b4c-485c-913e-3d5535eceece)
)
(wire (pts (xy 171.45 76.2) (xy 184.15 76.2))
(stroke (width 0) (type default))
(uuid a11785f5-95c5-4245-92b3-502a967b590d)
)
(wire (pts (xy 114.3 114.3) (xy 158.75 114.3))
(stroke (width 0) (type default))
(uuid a6aec13e-22bc-4ec5-ae42-f2c7aece4dca)
)
(wire (pts (xy 114.3 86.36) (xy 114.3 88.9))
(stroke (width 0) (type default))
(uuid aa21c47e-8f76-4db3-a0ce-aa052c247e91)
)
(wire (pts (xy 184.15 88.9) (xy 184.15 91.44))
(stroke (width 0) (type default))
(uuid d012e223-5d15-4954-9537-e75c12ab627b)
)
(wire (pts (xy 114.3 124.46) (xy 114.3 127))
(stroke (width 0) (type default))
(uuid f99134eb-a3d9-4ab7-b6cb-c68b6e41ae51)
)
(wire (pts (xy 114.3 76.2) (xy 158.75 76.2))
(stroke (width 0) (type default))
(uuid ff457b94-b368-4620-91dc-93feabd1e484)
)
(text "Current switch is excluded for now" (at 147.32 111.76 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid 3f3376a0-a6db-46db-b0e4-ec249a99d494)
)
(text ".tran 1u 10m" (at 114.3 146.05 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid 721013a1-bb70-4234-a523-bbb43233bfa5)
)
(label "outswv" (at 184.15 76.2 0) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid 406789eb-b4ae-49fa-bf88-5e66f4e5c132)
)
(label "inswi" (at 114.3 114.3 0) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid c3bc4702-6b90-4b5f-81a2-eb6d90836dd8)
)
(label "outswi" (at 184.15 114.3 0) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid ca4b5dbd-5c8d-49e6-8955-8287f00770f7)
)
(label "inswv" (at 114.3 76.2 0) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify left bottom))
(uuid cdeb77d3-554c-4d59-b4c0-9953941b3c42)
)
(symbol (lib_id "Simulation_SPICE:VPULSE") (at 114.3 81.28 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 347e9fb4-5b9c-424b-a0ef-e3e1d4152813)
(default_instance (reference "V3") (unit 1) (value "VPULSE") (footprint ""))
(property "Reference" "V3" (id 0) (at 118.11 79.375 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "VPULSE" (id 1) (at 118.11 81.915 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 114.3 81.28 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 114.3 81.28 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 117dae63-cbae-4915-acae-e6e10531e40e))
(pin "2" (uuid 9b2185ff-f747-4fa4-8049-8a873f9809b0))
)
(symbol (lib_id "Simulation_SPICE:VDC") (at 168.91 96.52 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 38db2ebd-2b24-4620-9674-dced674c39a5)
(default_instance (reference "V1") (unit 1) (value "VDC") (footprint ""))
(property "Reference" "V1" (id 0) (at 172.72 94.615 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "VDC" (id 1) (at 172.72 97.155 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 168.91 96.52 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 168.91 96.52 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 0b55c5be-6cf6-4c8b-92f9-3478d772166e))
(pin "2" (uuid 2397d0b3-3656-47e9-bee9-7c3263dd94b2))
)
(symbol (lib_id "power:GND") (at 158.75 91.44 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 3a046e4d-7b2b-4ee1-9196-d1db4ee763bb)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 158.75 97.79 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 158.75 96.52 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 158.75 91.44 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 158.75 91.44 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 2adf09fa-388e-432a-96d0-3ad371a61e98))
)
(symbol (lib_id "Simulation_SPICE:VPULSE") (at 114.3 119.38 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 4200094f-3f88-44e8-b754-02453ae72796)
(default_instance (reference "V3") (unit 1) (value "VPULSE") (footprint ""))
(property "Reference" "V3" (id 0) (at 118.11 118.745 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "VPULSE" (id 1) (at 118.11 121.285 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 114.3 119.38 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 114.3 119.38 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Device" "V" (id 4) (at 114.3 119.38 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Type" "DC" (id 5) (at 114.3 119.38 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Pins" "1 2" (id 6) (at 114.3 119.38 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Disabled" "1" (id 7) (at 114.3 119.38 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 5a04f24f-84ee-415e-9ebb-6a57bc5cb49d))
(pin "2" (uuid 6b71e245-55cf-4686-9a3f-ea5b100aa39a))
)
(symbol (lib_id "Relay:ADW11") (at 163.83 121.92 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 56eb12c2-83ef-4c44-ba5e-b3bc72d7d310)
(default_instance (reference "K1") (unit 1) (value "ADW11") (footprint "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT"))
(property "Reference" "K1" (id 0) (at 175.26 121.285 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "ADW11" (id 1) (at 175.26 123.825 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT" (id 2) (at 197.485 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "https://www.panasonic-electric-works.com/pew/es/downloads/ds_dw_hl_en.pdf" (id 3) (at 163.83 121.92 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Device" "SW" (id 4) (at 163.83 121.92 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Type" "I" (id 5) (at 163.83 121.92 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Pins" "1 6 3 5" (id 6) (at 163.83 121.92 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Disabled" "1" (id 7) (at 163.83 121.92 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 76e69abc-f617-4b9c-a790-060112fdebed))
(pin "3" (uuid 0f38a010-975a-4b40-8325-29d468a5be24))
(pin "5" (uuid df74236d-2e93-4e5d-9b0e-42b6d668748a))
(pin "6" (uuid f19ff61d-7496-4547-8a58-efa43bebdbea))
)
(symbol (lib_id "power:GND") (at 114.3 88.9 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 66dfc60d-51c9-41a4-8112-e32a54e72e44)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 114.3 95.25 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 114.3 93.98 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 114.3 88.9 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 114.3 88.9 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 92cbe1cb-754c-438d-865b-eede22fe0a77))
)
(symbol (lib_id "power:GND") (at 158.75 129.54 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 7b412bef-6375-4838-89d0-ef85f2a44f39)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 158.75 135.89 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 158.75 134.62 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 158.75 129.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 158.75 129.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 2ae9dfae-cb82-4bcd-9386-20cdc0a43d3e))
)
(symbol (lib_id "power:GND") (at 184.15 127 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 8f3fec1f-a25a-4d2a-835f-873a7617927d)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 184.15 133.35 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 184.15 132.08 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 184.15 127 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 184.15 127 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 402f2427-4543-4aca-a5c0-4d4d80239c61))
)
(symbol (lib_id "power:GND") (at 114.3 127 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 925023dd-5312-461f-a25e-dc1614390dac)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 114.3 133.35 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 114.3 132.08 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 114.3 127 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 114.3 127 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 143d59bd-771c-4aa1-b84c-77882db7e89f))
)
(symbol (lib_id "Device:R") (at 184.15 85.09 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 9584dcde-5cb9-4853-8311-35e74bca4c0d)
(default_instance (reference "R1") (unit 1) (value "R") (footprint ""))
(property "Reference" "R1" (id 0) (at 186.69 84.455 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "R" (id 1) (at 186.69 86.995 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 182.372 85.09 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 184.15 85.09 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid ca5b7fb7-b9ed-4675-bf02-833e831d13b1))
(pin "2" (uuid 44011730-1773-4bd0-9249-a31db1d4c278))
)
(symbol (lib_id "power:GND") (at 168.91 139.7 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid af1b7e6e-e3ca-4aef-a5e2-387742769c66)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 168.91 146.05 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 168.91 144.78 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 168.91 139.7 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 168.91 139.7 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 0d5b5061-2988-4206-955e-1079ab1bffe6))
)
(symbol (lib_id "Relay:ADW11") (at 163.83 83.82 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid c1fe9022-3238-4a03-8269-f88f88525efc)
(default_instance (reference "K1") (unit 1) (value "ADW11") (footprint "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT"))
(property "Reference" "K1" (id 0) (at 175.26 83.185 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "ADW11" (id 1) (at 175.26 85.725 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT" (id 2) (at 197.485 85.09 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "https://www.panasonic-electric-works.com/pew/es/downloads/ds_dw_hl_en.pdf" (id 3) (at 163.83 83.82 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Device" "SW" (id 4) (at 163.83 83.82 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Type" "V" (id 5) (at 163.83 83.82 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Pins" "1 6 3 5" (id 6) (at 163.83 83.82 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Params" "thr=500m his=0 ron=100m roff=1T ic=on" (id 7) (at 163.83 83.82 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 985f68da-ac8b-4dfe-a794-ff843a4dcef6))
(pin "3" (uuid ce808560-bf0b-4d28-8d55-1ce3e8924fdf))
(pin "5" (uuid d559c5b6-8643-47a6-af95-1f43c69cc696))
(pin "6" (uuid 018cf113-cd74-414d-9f04-bb2d21e22444))
)
(symbol (lib_id "power:GND") (at 168.91 101.6 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid cf6a69fc-ed84-4873-b4dc-81fbde5f83b7)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 168.91 107.95 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 168.91 106.68 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 168.91 101.6 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 168.91 101.6 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 179f903e-0db8-48c0-9855-1bf7465e0b8b))
)
(symbol (lib_id "Device:R") (at 184.15 120.65 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid d8d5327b-75be-4ab7-a15d-ffac19c40f45)
(default_instance (reference "R1") (unit 1) (value "R") (footprint ""))
(property "Reference" "R1" (id 0) (at 186.69 120.015 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "R" (id 1) (at 186.69 122.555 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 182.372 120.65 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 184.15 120.65 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Device" "R" (id 4) (at 184.15 120.65 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Pins" "1 2" (id 5) (at 184.15 120.65 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Sim_Disabled" "1" (id 6) (at 184.15 120.65 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 8883f98f-8e4c-40ee-927a-e9ea3bf7ea5c))
(pin "2" (uuid 6e9fbeab-f4e0-4051-b4d8-5e94c371c2a7))
)
(symbol (lib_id "Simulation_SPICE:VDC") (at 168.91 134.62 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid ed7a9dd3-92a2-4670-b91d-78c18bed2273)
(default_instance (reference "V1") (unit 1) (value "VDC") (footprint ""))
(property "Reference" "V1" (id 0) (at 172.72 132.715 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "VDC" (id 1) (at 172.72 135.255 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 168.91 134.62 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 168.91 134.62 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 443fd48c-8d2e-46b1-8fbf-0c210fd528fb))
(pin "2" (uuid 7020a4d8-768d-428d-9f3e-da14232410f1))
)
(symbol (lib_id "power:GND") (at 184.15 91.44 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid efec76b7-311a-4c4c-971c-c6fda250379c)
(default_instance (reference "#PWR?") (unit 1) (value "GND") (footprint ""))
(property "Reference" "#PWR?" (id 0) (at 184.15 97.79 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 184.15 96.52 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 184.15 91.44 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 184.15 91.44 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 17d11724-de7e-40e2-9b70-dd97fe8cd33c))
)
(sheet_instances
(path "/" (page "1"))
)
(symbol_instances
(path "/3a046e4d-7b2b-4ee1-9196-d1db4ee763bb"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/66dfc60d-51c9-41a4-8112-e32a54e72e44"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/7b412bef-6375-4838-89d0-ef85f2a44f39"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/8f3fec1f-a25a-4d2a-835f-873a7617927d"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/925023dd-5312-461f-a25e-dc1614390dac"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/af1b7e6e-e3ca-4aef-a5e2-387742769c66"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/cf6a69fc-ed84-4873-b4dc-81fbde5f83b7"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/efec76b7-311a-4c4c-971c-c6fda250379c"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/c1fe9022-3238-4a03-8269-f88f88525efc"
(reference "K1") (unit 1) (value "ADW11") (footprint "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT")
)
(path "/56eb12c2-83ef-4c44-ba5e-b3bc72d7d310"
(reference "K2") (unit 1) (value "ADW11") (footprint "Relay_THT:Relay_1P1T_NO_10x24x18.8mm_Panasonic_ADW11xxxxW_THT")
)
(path "/9584dcde-5cb9-4853-8311-35e74bca4c0d"
(reference "R1") (unit 1) (value "1k") (footprint "")
)
(path "/d8d5327b-75be-4ab7-a15d-ffac19c40f45"
(reference "R2") (unit 1) (value "R") (footprint "")
)
(path "/38db2ebd-2b24-4620-9674-dced674c39a5"
(reference "V1") (unit 1) (value "5") (footprint "")
)
(path "/ed7a9dd3-92a2-4670-b91d-78c18bed2273"
(reference "V2") (unit 1) (value "5") (footprint "")
)
(path "/347e9fb4-5b9c-424b-a0ef-e3e1d4152813"
(reference "VPULSE1") (unit 1) (value "y2=1 td=1m tr=1u tf=1u tw=1m") (footprint "")
)
(path "/4200094f-3f88-44e8-b754-02453ae72796"
(reference "VPULSE2") (unit 1) (value "y2=1 td=3m tr=1u tf=1u tw=1m") (footprint "")
)
)
)

View File

@ -381,6 +381,17 @@ BOOST_AUTO_TEST_CASE( FliegeFilter )
}
BOOST_AUTO_TEST_CASE( Switches )
{
TestNetlist( "switches" );
TestTranPoint( 0.5e-3, { { "V(/inswv)", 0 }, { "V(/outswv)", 0 } } );
TestTranPoint( 1.5e-3, { { "V(/inswv)", 1 }, { "V(/outswv)", 5 } } );
TestTranPoint( 2.5e-3, { { "V(/inswv)", 0 }, { "V(/outswv)", 0 } } );
// TODO: Current switch, when it's fixed in Ngspice.
}
BOOST_AUTO_TEST_CASE( LegacyLaserDriver )
{
TestNetlist( "legacy_laser_driver" );