Add no-connects testcase

This commit is contained in:
Jon Evans 2021-01-14 21:01:03 -05:00
parent 02681fcf0e
commit 915bf95d4d
5 changed files with 587 additions and 0 deletions

View File

@ -0,0 +1,74 @@
{
"board": {
"active_layer": 0,
"active_layer_preset": "",
"auto_track_width": true,
"hidden_nets": [],
"high_contrast_mode": 0,
"net_color_mode": 1,
"opacity": {
"pads": 1.0,
"tracks": 1.0,
"vias": 1.0,
"zones": 0.6
},
"ratsnest_display_mode": 0,
"selection_filter": {
"dimensions": true,
"footprints": true,
"graphics": true,
"keepouts": true,
"lockedItems": true,
"otherItems": true,
"pads": true,
"text": true,
"tracks": true,
"vias": true,
"zones": true
},
"visible_items": [
0,
1,
2,
3,
4,
5,
6,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
27,
28,
29,
30,
31,
32,
33,
37,
38
],
"visible_layers": "fffffff_ffffffff",
"zone_display_mode": 0
},
"meta": {
"filename": "noconnects.kicad_prl",
"version": 2
},
"project": {
"files": []
}
}

View File

@ -0,0 +1,264 @@
{
"board": {
"layer_presets": []
},
"boards": [],
"cvpcb": {
"equivalence_files": []
},
"erc": {
"erc_exclusions": [],
"meta": {
"version": 0
},
"pin_map": [
[
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
0,
1,
0,
1,
0,
2,
2,
2,
2
],
[
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
2
],
[
0,
1,
0,
0,
0,
1,
1,
2,
1,
1,
2
],
[
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2
],
[
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
1,
2,
0,
1,
0,
2,
2,
2,
2
],
[
0,
2,
0,
1,
0,
1,
0,
2,
0,
0,
2
],
[
0,
2,
1,
1,
0,
1,
0,
2,
0,
0,
2
],
[
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
]
],
"rule_severities": {
"bus_definition_conflict": "error",
"bus_label_syntax": "error",
"bus_to_bus_conflict": "error",
"bus_to_net_conflict": "error",
"different_unit_footprint": "error",
"different_unit_net": "error",
"duplicate_sheet_names": "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",
"unresolved_variable": "error",
"wire_dangling": "error"
}
},
"libraries": {
"pinned_footprint_libs": [],
"pinned_symbol_libs": []
},
"meta": {
"filename": "noconnects.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": 0
},
"net_colors": null
},
"pcbnew": {
"last_paths": {
"gencad": "",
"idf": "",
"netlist": "",
"specctra_dsn": "",
"step": "",
"vrml": ""
},
"page_layout_descr_file": ""
},
"schematic": {
"drawing": {
"default_bus_thickness": 12.0,
"default_junction_size": 40.0,
"default_line_thickness": 6.0,
"default_text_size": 50.0,
"default_wire_thickness": 6.0,
"field_names": [],
"intersheets_ref_prefix": "",
"intersheets_ref_short": false,
"intersheets_ref_show": false,
"intersheets_ref_suffix": "",
"junction_size_choice": 3,
"pin_symbol_size": 25.0,
"text_offset_ratio": 0.3
},
"legacy_lib_dir": "",
"legacy_lib_list": [],
"meta": {
"version": 0
},
"net_format_name": "Pcbnew",
"page_layout_descr_file": "",
"plot_directory": "",
"spice_adjust_passive_values": false,
"spice_external_command": "spice \"%I\"",
"subpart_first_id": 65,
"subpart_id_separator": 0
},
"sheets": [
[
"6a2ced4c-1d9e-447a-9dae-95ef05d4ac0f",
""
]
],
"text_variables": {}
}

View File

@ -0,0 +1,149 @@
(kicad_sch (version 20201015) (generator eeschema)
(paper "A4")
(lib_symbols
(symbol "Amplifier_Audio:IR4301" (in_bom yes) (on_board yes)
(property "Reference" "U" (id 0) (at -7.62 20.955 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "IR4301" (id 1) (at -7.62 19.05 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_DFN_QFN:Infineon_PQFN-22-15-4EP_6x5mm_P0.65mm" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27) italic) hide)
)
(property "Datasheet" "https://www.infineon.com/dgdl/ir4301.pdf?fileId=5546d462533600a4015355d5fc691819" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "integrated class d amplifier" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "PowIRaudio Integrated Analog Input Class D Audio Amplifier, 160W/4ohm, 80V, PQFN-22" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Infineon*PQFN*4EP*6x5mm*P0.65mm*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "IR4301_0_1"
(rectangle (start -7.62 -15.24) (end 7.62 17.78)
(stroke (width 0.254)) (fill (type background))
)
)
(symbol "IR4301_1_1"
(pin power_in line (at -10.16 15.24 0) (length 2.54)
(name "VAA" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 5.08 -17.78 90) (length 2.54)
(name "VN" (effects (font (size 1.27 1.27))))
(number "10" (effects (font (size 1.27 1.27))))
)
(pin output line (at 10.16 0 180) (length 2.54)
(name "VS" (effects (font (size 1.27 1.27))))
(number "11" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 5.08 20.32 270) (length 2.54)
(name "VP" (effects (font (size 1.27 1.27))))
(number "12" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 10.16 7.62 180) (length 2.54)
(name "VB" (effects (font (size 1.27 1.27))))
(number "13" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 10.16 10.16 180) (length 2.54)
(name "CSH" (effects (font (size 1.27 1.27))))
(number "14" (effects (font (size 1.27 1.27))))
)
(pin unconnected line (at -2.54 -17.78 90) (length 2.54) hide
(name "COM" (effects (font (size 1.27 1.27))))
(number "15" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at -10.16 0 0) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at -10.16 12.7 0) (length 2.54)
(name "IN+" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin input line (at -10.16 10.16 0) (length 2.54)
(name "IN-" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin output line (at -10.16 7.62 0) (length 2.54)
(name "COMP" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -10.16 -2.54 0) (length 2.54)
(name "CSD" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at -10.16 -12.7 0) (length 2.54)
(name "VSS" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 10.16 -7.62 180) (length 2.54)
(name "VCC" (effects (font (size 1.27 1.27))))
(number "8" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 0 -17.78 90) (length 2.54)
(name "COM" (effects (font (size 1.27 1.27))))
(number "9" (effects (font (size 1.27 1.27))))
)
(pin unconnected line (at 10.16 -3.81 180) (length 2.54)
(name "PTNC" (effects (font (size 1.27 1.27))))
(number "16" (effects (font (size 1.27 1.27))))
)
)
)
)
(no_connect (at 129.54 83.82))
(no_connect (at 154.94 81.28))
(wire (pts (xy 129.54 99.06) (xy 129.54 93.98))
(stroke (width 0) (type solid) (color 0 0 0 0))
)
(wire (pts (xy 139.7 99.06) (xy 129.54 99.06))
(stroke (width 0) (type solid) (color 0 0 0 0))
)
(wire (pts (xy 149.86 81.28) (xy 154.94 81.28))
(stroke (width 0) (type solid) (color 0 0 0 0))
)
(wire (pts (xy 149.86 85.09) (xy 154.94 85.09))
(stroke (width 0) (type solid) (color 0 0 0 0))
)
(label "VS" (at 154.94 81.28 180)
(effects (font (size 1.27 1.27)) (justify right bottom))
)
(symbol (lib_id "Amplifier_Audio:IR4301") (at 139.7 81.28 0) (unit 1)
(in_bom yes) (on_board yes)
(uuid "af06e391-97a5-4828-9343-f3162acaa60a")
(property "Reference" "U1" (id 0) (at 132.08 60.325 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "IR4301" (id 1) (at 132.08 62.23 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_DFN_QFN:Infineon_PQFN-22-15-4EP_6x5mm_P0.65mm" (id 2) (at 139.7 81.28 0)
(effects (font (size 1.27 1.27) italic) hide)
)
(property "Datasheet" "https://www.infineon.com/dgdl/ir4301.pdf?fileId=5546d462533600a4015355d5fc691819" (id 3) (at 139.7 81.28 0)
(effects (font (size 1.27 1.27)) hide)
)
)
(sheet_instances
(path "/" (page ""))
)
(symbol_instances
(path "/af06e391-97a5-4828-9343-f3162acaa60a"
(reference "U1") (unit 1) (value "IR4301") (footprint "Package_DFN_QFN:Infineon_PQFN-22-15-4EP_6x5mm_P0.65mm")
)
)
)

View File

@ -0,0 +1,94 @@
(export (version "D")
(design
(source "/home/jon/work/kicad/qa/eeschema/data/netlists/noconnects/noconnects.kicad_sch")
(date "Thu 14 Jan 2021 20:58:07 EST")
(tool "Eeschema (5.99.0-8422-g02681fcf0e)")
(sheet (number "1") (name "/") (tstamps "/")
(title_block
(title)
(company)
(rev)
(date)
(source "noconnects.kicad_sch")
(comment (number "1") (value ""))
(comment (number "2") (value ""))
(comment (number "3") (value ""))
(comment (number "4") (value ""))
(comment (number "5") (value ""))
(comment (number "6") (value ""))
(comment (number "7") (value ""))
(comment (number "8") (value ""))
(comment (number "9") (value "")))))
(components
(comp (ref "U1")
(value "IR4301")
(footprint "Package_DFN_QFN:Infineon_PQFN-22-15-4EP_6x5mm_P0.65mm")
(datasheet "https://www.infineon.com/dgdl/ir4301.pdf?fileId=5546d462533600a4015355d5fc691819")
(libsource (lib "Amplifier_Audio") (part "IR4301") (description "PowIRaudio Integrated Analog Input Class D Audio Amplifier, 160W/4ohm, 80V, PQFN-22"))
(property (name "Sheet name") (value ""))
(property (name "Sheet file") (value "/home/jon/work/kicad/qa/eeschema/data/netlists/noconnects/noconnects.kicad_sch"))
(sheetpath (names "/") (tstamps "/"))
(tstamp "af06e391-97a5-4828-9343-f3162acaa60a")))
(libparts
(libpart (lib "Amplifier_Audio") (part "IR4301")
(description "PowIRaudio Integrated Analog Input Class D Audio Amplifier, 160W/4ohm, 80V, PQFN-22")
(docs "https://www.infineon.com/dgdl/ir4301.pdf?fileId=5546d462533600a4015355d5fc691819")
(footprints
(fp "Infineon*PQFN*4EP*6x5mm*P0.65mm*"))
(fields
(field (name "Reference") "U")
(field (name "Value") "IR4301")
(field (name "Footprint") "Package_DFN_QFN:Infineon_PQFN-22-15-4EP_6x5mm_P0.65mm")
(field (name "Datasheet") "https://www.infineon.com/dgdl/ir4301.pdf?fileId=5546d462533600a4015355d5fc691819"))
(pins
(pin (num "1") (name "VAA") (type "power_in"))
(pin (num "2") (name "GND") (type "power_in"))
(pin (num "3") (name "IN+") (type "input"))
(pin (num "4") (name "IN-") (type "input"))
(pin (num "5") (name "COMP") (type "output"))
(pin (num "6") (name "CSD") (type "passive"))
(pin (num "7") (name "VSS") (type "power_in"))
(pin (num "8") (name "VCC") (type "power_in"))
(pin (num "9") (name "COM") (type "power_in"))
(pin (num "10") (name "VN") (type "power_in"))
(pin (num "11") (name "VS") (type "output"))
(pin (num "12") (name "VP") (type "power_in"))
(pin (num "13") (name "VB") (type "power_in"))
(pin (num "14") (name "CSH") (type "passive"))
(pin (num "15") (name "COM") (type "NotConnected"))
(pin (num "16") (name "PTNC") (type "NotConnected")))))
(libraries
(library (logical "Amplifier_Audio")
(uri "/home/jon/kicad-library/kicad-symbols//Amplifier_Audio.lib")))
(nets
(net (code "1") (name "/VS")
(node (ref "U1") (pin "11") (pinfunction "VS")))
(net (code "2") (name "Net-(U1-Pad7)")
(node (ref "U1") (pin "7") (pinfunction "VSS"))
(node (ref "U1") (pin "9") (pinfunction "COM")))
(net (code "3") (name "no_connect_(U1-Pad1)")
(node (ref "U1") (pin "1") (pinfunction "VAA")))
(net (code "4") (name "no_connect_(U1-Pad2)")
(node (ref "U1") (pin "2") (pinfunction "GND")))
(net (code "5") (name "no_connect_(U1-Pad3)")
(node (ref "U1") (pin "3") (pinfunction "IN+")))
(net (code "6") (name "no_connect_(U1-Pad4)")
(node (ref "U1") (pin "4") (pinfunction "IN-")))
(net (code "7") (name "no_connect_(U1-Pad5)")
(node (ref "U1") (pin "5") (pinfunction "COMP")))
(net (code "8") (name "no_connect_(U1-Pad6)")
(node (ref "U1") (pin "6") (pinfunction "CSD")))
(net (code "9") (name "no_connect_(U1-Pad8)")
(node (ref "U1") (pin "8") (pinfunction "VCC")))
(net (code "10") (name "no_connect_(U1-Pad10)")
(node (ref "U1") (pin "10") (pinfunction "VN")))
(net (code "11") (name "no_connect_(U1-Pad12)")
(node (ref "U1") (pin "12") (pinfunction "VP")))
(net (code "12") (name "no_connect_(U1-Pad13)")
(node (ref "U1") (pin "13") (pinfunction "VB")))
(net (code "13") (name "no_connect_(U1-Pad14)")
(node (ref "U1") (pin "14") (pinfunction "CSH")))
(net (code "14") (name "no_connect_(U1-Pad15)")
(node (ref "U1") (pin "15") (pinfunction "COM")))
(net (code "15") (name "no_connect_(U1-Pad16)")
(node (ref "U1") (pin "16") (pinfunction "PTNC")))))

View File

@ -259,4 +259,10 @@ BOOST_AUTO_TEST_CASE( HierRenaming )
}
BOOST_AUTO_TEST_CASE( NoConnects )
{
doNetlistTest( "noconnects" );
}
BOOST_AUTO_TEST_SUITE_END()