mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Added QA tests for pad and footprint fanout checks
This commit is contained in:
parent
850c773f9d
commit
af8e2d015d
@ -0,0 +1,9 @@
|
||||
(version 1)
|
||||
|
||||
(rule "test footprint fanout torque"
|
||||
(constraint footprint_fanout_torque (max 0.1mm))
|
||||
)
|
||||
|
||||
(rule "test footprint fanout force"
|
||||
(constraint footprint_fanout_force (max 0.1mm))
|
||||
)
|
1993
qa/data/pcbnew/fanout_checks/footprint_fanout_combined.kicad_pcb
Normal file
1993
qa/data/pcbnew/fanout_checks/footprint_fanout_combined.kicad_pcb
Normal file
File diff suppressed because it is too large
Load Diff
288
qa/data/pcbnew/fanout_checks/footprint_fanout_combined.kicad_pro
Normal file
288
qa/data/pcbnew/fanout_checks/footprint_fanout_combined.kicad_pro
Normal file
@ -0,0 +1,288 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"board_outline_line_width": 0.05,
|
||||
"copper_line_width": 0.2,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.05,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.1,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.1,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.0,
|
||||
"height": 0.6,
|
||||
"width": 1.575
|
||||
},
|
||||
"silk_line_width": 0.1,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.1,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.5
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [],
|
||||
"drc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "ignore",
|
||||
"clearance": "ignore",
|
||||
"connection_width": "ignore",
|
||||
"copper_edge_clearance": "ignore",
|
||||
"copper_sliver": "ignore",
|
||||
"courtyards_overlap": "ignore",
|
||||
"creepage": "ignore",
|
||||
"diff_pair_gap_out_of_range": "ignore",
|
||||
"diff_pair_uncoupled_length_too_long": "ignore",
|
||||
"drill_out_of_range": "ignore",
|
||||
"duplicate_footprints": "ignore",
|
||||
"extra_footprint": "ignore",
|
||||
"footprint": "ignore",
|
||||
"footprint_fanout_force": "error",
|
||||
"footprint_fanout_torque": "error",
|
||||
"footprint_filters_mismatch": "ignore",
|
||||
"footprint_symbol_mismatch": "ignore",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "ignore",
|
||||
"hole_near_hole": "error",
|
||||
"hole_to_hole": "ignore",
|
||||
"holes_co_located": "ignore",
|
||||
"invalid_outline": "ignore",
|
||||
"isolated_copper": "ignore",
|
||||
"item_on_disabled_layer": "ignore",
|
||||
"items_not_allowed": "ignore",
|
||||
"length_out_of_range": "ignore",
|
||||
"lib_footprint_issues": "ignore",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "ignore",
|
||||
"microvia_drill_out_of_range": "ignore",
|
||||
"mirrored_text_on_front_layer": "ignore",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "ignore",
|
||||
"net_conflict": "ignore",
|
||||
"nonmirrored_text_on_back_layer": "ignore",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"pad_fanout_ratio": "ignore",
|
||||
"pad_fanout_via_distance": "ignore",
|
||||
"padstack": "ignore",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "ignore",
|
||||
"silk_edge_clearance": "ignore",
|
||||
"silk_over_copper": "ignore",
|
||||
"silk_overlap": "ignore",
|
||||
"skew_out_of_range": "ignore",
|
||||
"solder_mask_bridge": "ignore",
|
||||
"starved_thermal": "ignore",
|
||||
"text_height": "ignore",
|
||||
"text_thickness": "ignore",
|
||||
"through_hole_pad_without_hole": "ignore",
|
||||
"too_many_vias": "ignore",
|
||||
"track_angle": "ignore",
|
||||
"track_dangling": "ignore",
|
||||
"track_segment_length": "ignore",
|
||||
"track_width": "ignore",
|
||||
"tracks_crossing": "ignore",
|
||||
"unconnected_items": "ignore",
|
||||
"unresolved_variable": "ignore",
|
||||
"via_dangling": "ignore",
|
||||
"zones_intersect": "ignore"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.0,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.5,
|
||||
"min_groove_width": 0.0,
|
||||
"min_hole_clearance": 0.25,
|
||||
"min_hole_to_hole": 0.25,
|
||||
"min_microvia_diameter": 0.2,
|
||||
"min_microvia_drill": 0.1,
|
||||
"min_resolved_spokes": 1,
|
||||
"min_silk_clearance": 0.0,
|
||||
"min_text_height": 0.8,
|
||||
"min_text_thickness": 0.08,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.0,
|
||||
"min_via_annular_width": 0.1,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpthpad": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_onsmdpad": true,
|
||||
"td_ontrackend": false,
|
||||
"td_onvia": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_pairs": [],
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "footprint_fanout_combined.kicad_pro",
|
||||
"version": 3
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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)",
|
||||
"priority": 2147483647,
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.2,
|
||||
"via_diameter": 0.6,
|
||||
"via_drill": 0.3,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 4
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": []
|
||||
},
|
||||
"sheets": [],
|
||||
"text_variables": {}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
(version 1)
|
||||
|
||||
(rule "test footprint fanout force"
|
||||
(constraint footprint_fanout_force (max 0.1mm))
|
||||
)
|
1993
qa/data/pcbnew/fanout_checks/footprint_fanout_force.kicad_pcb
Normal file
1993
qa/data/pcbnew/fanout_checks/footprint_fanout_force.kicad_pcb
Normal file
File diff suppressed because it is too large
Load Diff
288
qa/data/pcbnew/fanout_checks/footprint_fanout_force.kicad_pro
Normal file
288
qa/data/pcbnew/fanout_checks/footprint_fanout_force.kicad_pro
Normal file
@ -0,0 +1,288 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"board_outline_line_width": 0.05,
|
||||
"copper_line_width": 0.2,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.05,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.1,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.1,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.0,
|
||||
"height": 1.4,
|
||||
"width": 1.025
|
||||
},
|
||||
"silk_line_width": 0.1,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.1,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.5
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [],
|
||||
"drc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "ignore",
|
||||
"clearance": "ignore",
|
||||
"connection_width": "ignore",
|
||||
"copper_edge_clearance": "ignore",
|
||||
"copper_sliver": "ignore",
|
||||
"courtyards_overlap": "ignore",
|
||||
"creepage": "ignore",
|
||||
"diff_pair_gap_out_of_range": "ignore",
|
||||
"diff_pair_uncoupled_length_too_long": "ignore",
|
||||
"drill_out_of_range": "ignore",
|
||||
"duplicate_footprints": "ignore",
|
||||
"extra_footprint": "ignore",
|
||||
"footprint": "ignore",
|
||||
"footprint_fanout_force": "error",
|
||||
"footprint_fanout_torque": "ignore",
|
||||
"footprint_filters_mismatch": "ignore",
|
||||
"footprint_symbol_mismatch": "ignore",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "ignore",
|
||||
"hole_near_hole": "error",
|
||||
"hole_to_hole": "ignore",
|
||||
"holes_co_located": "ignore",
|
||||
"invalid_outline": "ignore",
|
||||
"isolated_copper": "ignore",
|
||||
"item_on_disabled_layer": "ignore",
|
||||
"items_not_allowed": "ignore",
|
||||
"length_out_of_range": "ignore",
|
||||
"lib_footprint_issues": "ignore",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "ignore",
|
||||
"microvia_drill_out_of_range": "ignore",
|
||||
"mirrored_text_on_front_layer": "ignore",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "ignore",
|
||||
"net_conflict": "ignore",
|
||||
"nonmirrored_text_on_back_layer": "ignore",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"pad_fanout_ratio": "ignore",
|
||||
"pad_fanout_via_distance": "ignore",
|
||||
"padstack": "ignore",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "ignore",
|
||||
"silk_edge_clearance": "ignore",
|
||||
"silk_over_copper": "ignore",
|
||||
"silk_overlap": "ignore",
|
||||
"skew_out_of_range": "ignore",
|
||||
"solder_mask_bridge": "ignore",
|
||||
"starved_thermal": "ignore",
|
||||
"text_height": "ignore",
|
||||
"text_thickness": "ignore",
|
||||
"through_hole_pad_without_hole": "ignore",
|
||||
"too_many_vias": "ignore",
|
||||
"track_angle": "ignore",
|
||||
"track_dangling": "ignore",
|
||||
"track_segment_length": "ignore",
|
||||
"track_width": "ignore",
|
||||
"tracks_crossing": "ignore",
|
||||
"unconnected_items": "ignore",
|
||||
"unresolved_variable": "ignore",
|
||||
"via_dangling": "ignore",
|
||||
"zones_intersect": "ignore"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.0,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.5,
|
||||
"min_groove_width": 0.0,
|
||||
"min_hole_clearance": 0.25,
|
||||
"min_hole_to_hole": 0.25,
|
||||
"min_microvia_diameter": 0.2,
|
||||
"min_microvia_drill": 0.1,
|
||||
"min_resolved_spokes": 1,
|
||||
"min_silk_clearance": 0.0,
|
||||
"min_text_height": 0.8,
|
||||
"min_text_thickness": 0.08,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.0,
|
||||
"min_via_annular_width": 0.1,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpthpad": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_onsmdpad": true,
|
||||
"td_ontrackend": false,
|
||||
"td_onvia": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_pairs": [],
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "footprint_fanout_force.kicad_pro",
|
||||
"version": 3
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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)",
|
||||
"priority": 2147483647,
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.2,
|
||||
"via_diameter": 0.6,
|
||||
"via_drill": 0.3,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 4
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": []
|
||||
},
|
||||
"sheets": [],
|
||||
"text_variables": {}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
(version 1)
|
||||
|
||||
(rule "test footprint fanout torque"
|
||||
(constraint footprint_fanout_torque (max 0.1mm))
|
||||
)
|
1993
qa/data/pcbnew/fanout_checks/footprint_fanout_torque.kicad_pcb
Normal file
1993
qa/data/pcbnew/fanout_checks/footprint_fanout_torque.kicad_pcb
Normal file
File diff suppressed because it is too large
Load Diff
288
qa/data/pcbnew/fanout_checks/footprint_fanout_torque.kicad_pro
Normal file
288
qa/data/pcbnew/fanout_checks/footprint_fanout_torque.kicad_pro
Normal file
@ -0,0 +1,288 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"board_outline_line_width": 0.05,
|
||||
"copper_line_width": 0.2,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.05,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.1,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.1,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.0,
|
||||
"height": 1.4,
|
||||
"width": 1.025
|
||||
},
|
||||
"silk_line_width": 0.1,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.1,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.5
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [],
|
||||
"drc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "ignore",
|
||||
"clearance": "ignore",
|
||||
"connection_width": "ignore",
|
||||
"copper_edge_clearance": "ignore",
|
||||
"copper_sliver": "ignore",
|
||||
"courtyards_overlap": "ignore",
|
||||
"creepage": "ignore",
|
||||
"diff_pair_gap_out_of_range": "ignore",
|
||||
"diff_pair_uncoupled_length_too_long": "ignore",
|
||||
"drill_out_of_range": "ignore",
|
||||
"duplicate_footprints": "ignore",
|
||||
"extra_footprint": "ignore",
|
||||
"footprint": "ignore",
|
||||
"footprint_fanout_force": "ignore",
|
||||
"footprint_fanout_torque": "error",
|
||||
"footprint_filters_mismatch": "ignore",
|
||||
"footprint_symbol_mismatch": "ignore",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "ignore",
|
||||
"hole_near_hole": "error",
|
||||
"hole_to_hole": "ignore",
|
||||
"holes_co_located": "ignore",
|
||||
"invalid_outline": "ignore",
|
||||
"isolated_copper": "ignore",
|
||||
"item_on_disabled_layer": "ignore",
|
||||
"items_not_allowed": "ignore",
|
||||
"length_out_of_range": "ignore",
|
||||
"lib_footprint_issues": "ignore",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "ignore",
|
||||
"microvia_drill_out_of_range": "ignore",
|
||||
"mirrored_text_on_front_layer": "ignore",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "ignore",
|
||||
"net_conflict": "ignore",
|
||||
"nonmirrored_text_on_back_layer": "ignore",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"pad_fanout_ratio": "ignore",
|
||||
"pad_fanout_via_distance": "ignore",
|
||||
"padstack": "ignore",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "ignore",
|
||||
"silk_edge_clearance": "ignore",
|
||||
"silk_over_copper": "ignore",
|
||||
"silk_overlap": "ignore",
|
||||
"skew_out_of_range": "ignore",
|
||||
"solder_mask_bridge": "ignore",
|
||||
"starved_thermal": "ignore",
|
||||
"text_height": "ignore",
|
||||
"text_thickness": "ignore",
|
||||
"through_hole_pad_without_hole": "ignore",
|
||||
"too_many_vias": "ignore",
|
||||
"track_angle": "ignore",
|
||||
"track_dangling": "ignore",
|
||||
"track_segment_length": "ignore",
|
||||
"track_width": "ignore",
|
||||
"tracks_crossing": "ignore",
|
||||
"unconnected_items": "ignore",
|
||||
"unresolved_variable": "ignore",
|
||||
"via_dangling": "ignore",
|
||||
"zones_intersect": "ignore"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.0,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.5,
|
||||
"min_groove_width": 0.0,
|
||||
"min_hole_clearance": 0.25,
|
||||
"min_hole_to_hole": 0.25,
|
||||
"min_microvia_diameter": 0.2,
|
||||
"min_microvia_drill": 0.1,
|
||||
"min_resolved_spokes": 2,
|
||||
"min_silk_clearance": 0.0,
|
||||
"min_text_height": 0.8,
|
||||
"min_text_thickness": 0.08,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.0,
|
||||
"min_via_annular_width": 0.1,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpthpad": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_onsmdpad": true,
|
||||
"td_ontrackend": false,
|
||||
"td_onvia": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_pairs": [],
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "footprint_fanout_torque.kicad_pro",
|
||||
"version": 3
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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)",
|
||||
"priority": 2147483647,
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.2,
|
||||
"via_diameter": 0.6,
|
||||
"via_drill": 0.3,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 4
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": []
|
||||
},
|
||||
"sheets": [],
|
||||
"text_variables": {}
|
||||
}
|
5
qa/data/pcbnew/fanout_checks/pad_fanout_ratio.kicad_dru
Normal file
5
qa/data/pcbnew/fanout_checks/pad_fanout_ratio.kicad_dru
Normal file
@ -0,0 +1,5 @@
|
||||
(version 1)
|
||||
|
||||
(rule "test pad fanout ratio"
|
||||
(constraint pad_fanout_ratio (max 45%))
|
||||
)
|
1172
qa/data/pcbnew/fanout_checks/pad_fanout_ratio.kicad_pcb
Normal file
1172
qa/data/pcbnew/fanout_checks/pad_fanout_ratio.kicad_pcb
Normal file
File diff suppressed because it is too large
Load Diff
301
qa/data/pcbnew/fanout_checks/pad_fanout_ratio.kicad_pro
Normal file
301
qa/data/pcbnew/fanout_checks/pad_fanout_ratio.kicad_pro
Normal file
@ -0,0 +1,301 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"board_outline_line_width": 0.05,
|
||||
"copper_line_width": 0.2,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.05,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.1,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.1,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.0,
|
||||
"height": 1.4,
|
||||
"width": 1.025
|
||||
},
|
||||
"silk_line_width": 0.1,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.1,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.5
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [
|
||||
{
|
||||
"gap": 0.0,
|
||||
"via_gap": 0.0,
|
||||
"width": 0.0
|
||||
}
|
||||
],
|
||||
"drc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "ignore",
|
||||
"clearance": "ignore",
|
||||
"connection_width": "ignore",
|
||||
"copper_edge_clearance": "ignore",
|
||||
"copper_sliver": "ignore",
|
||||
"courtyards_overlap": "ignore",
|
||||
"creepage": "ignore",
|
||||
"diff_pair_gap_out_of_range": "ignore",
|
||||
"diff_pair_uncoupled_length_too_long": "ignore",
|
||||
"drill_out_of_range": "ignore",
|
||||
"duplicate_footprints": "ignore",
|
||||
"extra_footprint": "ignore",
|
||||
"footprint": "ignore",
|
||||
"footprint_fanout_force": "ignore",
|
||||
"footprint_fanout_torque": "ignore",
|
||||
"footprint_filters_mismatch": "ignore",
|
||||
"footprint_symbol_mismatch": "ignore",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "ignore",
|
||||
"hole_near_hole": "error",
|
||||
"hole_to_hole": "ignore",
|
||||
"holes_co_located": "ignore",
|
||||
"invalid_outline": "ignore",
|
||||
"isolated_copper": "ignore",
|
||||
"item_on_disabled_layer": "ignore",
|
||||
"items_not_allowed": "ignore",
|
||||
"length_out_of_range": "ignore",
|
||||
"lib_footprint_issues": "ignore",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "ignore",
|
||||
"microvia_drill_out_of_range": "ignore",
|
||||
"mirrored_text_on_front_layer": "ignore",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "ignore",
|
||||
"net_conflict": "ignore",
|
||||
"nonmirrored_text_on_back_layer": "ignore",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"pad_fanout_ratio": "error",
|
||||
"pad_fanout_via_distance": "ignore",
|
||||
"padstack": "ignore",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "ignore",
|
||||
"silk_edge_clearance": "ignore",
|
||||
"silk_over_copper": "ignore",
|
||||
"silk_overlap": "ignore",
|
||||
"skew_out_of_range": "ignore",
|
||||
"solder_mask_bridge": "ignore",
|
||||
"starved_thermal": "ignore",
|
||||
"text_height": "ignore",
|
||||
"text_thickness": "ignore",
|
||||
"through_hole_pad_without_hole": "ignore",
|
||||
"too_many_vias": "ignore",
|
||||
"track_angle": "ignore",
|
||||
"track_dangling": "ignore",
|
||||
"track_segment_length": "ignore",
|
||||
"track_width": "ignore",
|
||||
"tracks_crossing": "ignore",
|
||||
"unconnected_items": "ignore",
|
||||
"unresolved_variable": "ignore",
|
||||
"via_dangling": "ignore",
|
||||
"zones_intersect": "ignore"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.0,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.5,
|
||||
"min_groove_width": 0.0,
|
||||
"min_hole_clearance": 0.25,
|
||||
"min_hole_to_hole": 0.25,
|
||||
"min_microvia_diameter": 0.2,
|
||||
"min_microvia_drill": 0.1,
|
||||
"min_resolved_spokes": 2,
|
||||
"min_silk_clearance": 0.0,
|
||||
"min_text_height": 0.8,
|
||||
"min_text_thickness": 0.08,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.0,
|
||||
"min_via_annular_width": 0.1,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpthpad": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_onsmdpad": true,
|
||||
"td_ontrackend": false,
|
||||
"td_onvia": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [
|
||||
0.0
|
||||
],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [
|
||||
{
|
||||
"diameter": 0.0,
|
||||
"drill": 0.0
|
||||
}
|
||||
],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_pairs": [],
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "pad_fanout_ratio.kicad_pro",
|
||||
"version": 3
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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)",
|
||||
"priority": 2147483647,
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.2,
|
||||
"via_diameter": 0.6,
|
||||
"via_drill": 0.3,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 4
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": []
|
||||
},
|
||||
"sheets": [],
|
||||
"text_variables": {}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
(version 1)
|
||||
|
||||
(rule "test pad fanout length"
|
||||
(constraint pad_fanout_via_distance (min 1mm))
|
||||
)
|
741
qa/data/pcbnew/fanout_checks/pad_fanout_via_distance.kicad_pcb
Normal file
741
qa/data/pcbnew/fanout_checks/pad_fanout_via_distance.kicad_pcb
Normal file
@ -0,0 +1,741 @@
|
||||
(kicad_pcb
|
||||
(version 20241229)
|
||||
(generator "pcbnew")
|
||||
(generator_version "9.99")
|
||||
(general
|
||||
(thickness 1.6)
|
||||
(legacy_teardrops no)
|
||||
)
|
||||
(paper "A4")
|
||||
(layers
|
||||
(0 "F.Cu" signal)
|
||||
(2 "B.Cu" signal)
|
||||
(9 "F.Adhes" user "F.Adhesive")
|
||||
(11 "B.Adhes" user "B.Adhesive")
|
||||
(13 "F.Paste" user)
|
||||
(15 "B.Paste" user)
|
||||
(5 "F.SilkS" user "F.Silkscreen")
|
||||
(7 "B.SilkS" user "B.Silkscreen")
|
||||
(1 "F.Mask" user)
|
||||
(3 "B.Mask" user)
|
||||
(17 "Dwgs.User" user "User.Drawings")
|
||||
(19 "Cmts.User" user "User.Comments")
|
||||
(21 "Eco1.User" user "User.Eco1")
|
||||
(23 "Eco2.User" user "User.Eco2")
|
||||
(25 "Edge.Cuts" user)
|
||||
(27 "Margin" user)
|
||||
(31 "F.CrtYd" user "F.Courtyard")
|
||||
(29 "B.CrtYd" user "B.Courtyard")
|
||||
(35 "F.Fab" user)
|
||||
(33 "B.Fab" user)
|
||||
(39 "User.1" user)
|
||||
(41 "User.2" user)
|
||||
(43 "User.3" user)
|
||||
(45 "User.4" user)
|
||||
(47 "User.5" user)
|
||||
(49 "User.6" user)
|
||||
(51 "User.7" user)
|
||||
(53 "User.8" user)
|
||||
(55 "User.9" user)
|
||||
)
|
||||
(setup
|
||||
(stackup
|
||||
(layer "F.SilkS"
|
||||
(type "Top Silk Screen")
|
||||
)
|
||||
(layer "F.Paste"
|
||||
(type "Top Solder Paste")
|
||||
)
|
||||
(layer "F.Mask"
|
||||
(type "Top Solder Mask")
|
||||
(thickness 0.01)
|
||||
)
|
||||
(layer "F.Cu"
|
||||
(type "copper")
|
||||
(thickness 0.035)
|
||||
)
|
||||
(layer "dielectric 1"
|
||||
(type "core")
|
||||
(thickness 1.51)
|
||||
(material "FR4")
|
||||
(epsilon_r 4.5)
|
||||
(loss_tangent 0.02)
|
||||
)
|
||||
(layer "B.Cu"
|
||||
(type "copper")
|
||||
(thickness 0.035)
|
||||
)
|
||||
(layer "B.Mask"
|
||||
(type "Bottom Solder Mask")
|
||||
(thickness 0.01)
|
||||
)
|
||||
(layer "B.Paste"
|
||||
(type "Bottom Solder Paste")
|
||||
)
|
||||
(layer "B.SilkS"
|
||||
(type "Bottom Silk Screen")
|
||||
)
|
||||
(copper_finish "None")
|
||||
(dielectric_constraints no)
|
||||
)
|
||||
(pad_to_mask_clearance 0)
|
||||
(allow_soldermask_bridges_in_footprints no)
|
||||
(tenting front back)
|
||||
(pcbplotparams
|
||||
(layerselection 0x00000000_00000000_55555555_5755f5ff)
|
||||
(plot_on_all_layers_selection 0x00000000_00000000_00000000_00000000)
|
||||
(disableapertmacros no)
|
||||
(usegerberextensions no)
|
||||
(usegerberattributes yes)
|
||||
(usegerberadvancedattributes yes)
|
||||
(creategerberjobfile yes)
|
||||
(dashed_line_dash_ratio 12.000000)
|
||||
(dashed_line_gap_ratio 3.000000)
|
||||
(svgprecision 4)
|
||||
(plotframeref no)
|
||||
(mode 1)
|
||||
(useauxorigin no)
|
||||
(hpglpennumber 1)
|
||||
(hpglpenspeed 20)
|
||||
(hpglpendiameter 15.000000)
|
||||
(pdf_front_fp_property_popups yes)
|
||||
(pdf_back_fp_property_popups yes)
|
||||
(pdf_metadata yes)
|
||||
(pdf_single_document no)
|
||||
(dxfpolygonmode yes)
|
||||
(dxfimperialunits yes)
|
||||
(dxfusepcbnewfont yes)
|
||||
(psnegative no)
|
||||
(psa4output no)
|
||||
(plot_black_and_white yes)
|
||||
(plotinvisibletext no)
|
||||
(sketchpadsonfab no)
|
||||
(plotpadnumbers no)
|
||||
(hidednponfab no)
|
||||
(sketchdnponfab yes)
|
||||
(crossoutdnponfab yes)
|
||||
(subtractmaskfromsilk no)
|
||||
(outputformat 1)
|
||||
(mirror no)
|
||||
(drillshape 1)
|
||||
(scaleselection 1)
|
||||
(outputdirectory "")
|
||||
)
|
||||
)
|
||||
(net 0 "")
|
||||
(net 1 "a")
|
||||
(net 2 "b")
|
||||
(footprint "Resistor_SMD:R_0805_2012Metric"
|
||||
(layer "F.Cu")
|
||||
(uuid "55007e31-7536-4ac1-a51a-ac7eeb872e88")
|
||||
(at 115 120)
|
||||
(descr "Resistor SMD 0805 (2012 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
|
||||
(tags "resistor")
|
||||
(property "Reference" "REF**"
|
||||
(at 0 -1.65 0)
|
||||
(layer "F.SilkS")
|
||||
(hide yes)
|
||||
(uuid "0d389c9c-6c2f-4a85-88bd-30f2195ee314")
|
||||
(effects
|
||||
(font
|
||||
(size 1 1)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Value" "R_0805_2012Metric"
|
||||
(at 0 1.65 0)
|
||||
(layer "F.Fab")
|
||||
(hide yes)
|
||||
(uuid "4455d39f-6592-4606-8b7b-c7321190c608")
|
||||
(effects
|
||||
(font
|
||||
(size 1 1)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Datasheet" ""
|
||||
(at 0 0 0)
|
||||
(unlocked yes)
|
||||
(layer "F.Fab")
|
||||
(hide yes)
|
||||
(uuid "77c46cdd-378a-4ce0-9fc3-e3f6ade6dd5a")
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Description" ""
|
||||
(at 0 0 0)
|
||||
(unlocked yes)
|
||||
(layer "F.Fab")
|
||||
(hide yes)
|
||||
(uuid "dd3cb2ba-d3cf-42c5-9dc9-8584493f2be3")
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(attr smd)
|
||||
(fp_line
|
||||
(start -0.227064 -0.735)
|
||||
(end 0.227064 -0.735)
|
||||
(stroke
|
||||
(width 0.12)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.SilkS")
|
||||
(uuid "35c8ef98-7fc4-438b-ac9a-2f27bb04a706")
|
||||
)
|
||||
(fp_line
|
||||
(start -0.227064 0.735)
|
||||
(end 0.227064 0.735)
|
||||
(stroke
|
||||
(width 0.12)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.SilkS")
|
||||
(uuid "82668174-257f-4ca4-9f96-a3c7d2496d9c")
|
||||
)
|
||||
(fp_line
|
||||
(start -1.68 -0.95)
|
||||
(end 1.68 -0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "a87302b3-2663-4307-92c1-d92eb6d98aa9")
|
||||
)
|
||||
(fp_line
|
||||
(start -1.68 0.95)
|
||||
(end -1.68 -0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "c0ed33a2-bf27-4042-b401-0d9de40aec8e")
|
||||
)
|
||||
(fp_line
|
||||
(start 1.68 -0.95)
|
||||
(end 1.68 0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "d0504a37-2e09-4a0c-a7a3-786dbe2927d9")
|
||||
)
|
||||
(fp_line
|
||||
(start 1.68 0.95)
|
||||
(end -1.68 0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "05a1d88a-de00-48fc-b359-0fecc1792333")
|
||||
)
|
||||
(fp_line
|
||||
(start -1 -0.625)
|
||||
(end 1 -0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "121e6f91-d85b-4d25-8a8b-26c783dfa1b7")
|
||||
)
|
||||
(fp_line
|
||||
(start -1 0.625)
|
||||
(end -1 -0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "69f55891-668f-4208-a994-b424771602db")
|
||||
)
|
||||
(fp_line
|
||||
(start 1 -0.625)
|
||||
(end 1 0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "ea6d3488-6865-4d39-afac-46f42d90ed81")
|
||||
)
|
||||
(fp_line
|
||||
(start 1 0.625)
|
||||
(end -1 0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "a8c28a7d-e034-46f4-8f00-96dd8a4d5418")
|
||||
)
|
||||
(pad "1" smd roundrect
|
||||
(at -0.9125 0)
|
||||
(size 1.025 1.4)
|
||||
(layers "F.Cu" "F.Mask" "F.Paste")
|
||||
(roundrect_rratio 0.243902)
|
||||
(net 2 "b")
|
||||
(uuid "073f6d2f-5a52-4842-937e-38e4e0653d3b")
|
||||
)
|
||||
(pad "2" smd roundrect
|
||||
(at 0.9125 0)
|
||||
(size 1.025 1.4)
|
||||
(layers "F.Cu" "F.Mask" "F.Paste")
|
||||
(roundrect_rratio 0.243902)
|
||||
(net 2 "b")
|
||||
(uuid "c16a197f-ac4c-4484-84b9-8c132414a58f")
|
||||
)
|
||||
(embedded_fonts no)
|
||||
(model "${KICAD8_3DMODEL_DIR}/Resistor_SMD.3dshapes/R_0805_2012Metric.wrl"
|
||||
(offset
|
||||
(xyz 0 0 0)
|
||||
)
|
||||
(scale
|
||||
(xyz 1 1 1)
|
||||
)
|
||||
(rotate
|
||||
(xyz 0 0 0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(footprint "Resistor_SMD:R_0805_2012Metric"
|
||||
(layer "F.Cu")
|
||||
(uuid "95804b84-291a-4d91-b270-fc874932a705")
|
||||
(at 115 115)
|
||||
(descr "Resistor SMD 0805 (2012 Metric), square (rectangular) end terminal, IPC_7351 nominal, (Body size source: IPC-SM-782 page 72, https://www.pcb-3d.com/wordpress/wp-content/uploads/ipc-sm-782a_amendment_1_and_2.pdf), generated with kicad-footprint-generator")
|
||||
(tags "resistor")
|
||||
(property "Reference" "REF**"
|
||||
(at 0 -1.65 0)
|
||||
(layer "F.SilkS")
|
||||
(hide yes)
|
||||
(uuid "6a0e3bbc-f8b0-41e2-8f86-789fe308efe0")
|
||||
(effects
|
||||
(font
|
||||
(size 1 1)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Value" "R_0805_2012Metric"
|
||||
(at 0 1.65 0)
|
||||
(layer "F.Fab")
|
||||
(hide yes)
|
||||
(uuid "26aea571-1837-4046-bd81-939183c03ec8")
|
||||
(effects
|
||||
(font
|
||||
(size 1 1)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Datasheet" ""
|
||||
(at 0 0 0)
|
||||
(unlocked yes)
|
||||
(layer "F.Fab")
|
||||
(hide yes)
|
||||
(uuid "40b1a684-f250-404f-ab85-6751dfbb5fc6")
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Description" ""
|
||||
(at 0 0 0)
|
||||
(unlocked yes)
|
||||
(layer "F.Fab")
|
||||
(hide yes)
|
||||
(uuid "299bf097-bcaa-4ac1-9572-fb06c0468900")
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
(thickness 0.15)
|
||||
)
|
||||
)
|
||||
)
|
||||
(attr smd)
|
||||
(fp_line
|
||||
(start -0.227064 -0.735)
|
||||
(end 0.227064 -0.735)
|
||||
(stroke
|
||||
(width 0.12)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.SilkS")
|
||||
(uuid "271224a0-1752-4642-b149-bea22cdf700d")
|
||||
)
|
||||
(fp_line
|
||||
(start -0.227064 0.735)
|
||||
(end 0.227064 0.735)
|
||||
(stroke
|
||||
(width 0.12)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.SilkS")
|
||||
(uuid "ce20f34b-c24e-456f-b809-8b20267dd3a8")
|
||||
)
|
||||
(fp_line
|
||||
(start -1.68 -0.95)
|
||||
(end 1.68 -0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "1900ed80-cccd-485f-81cc-835ce0832f08")
|
||||
)
|
||||
(fp_line
|
||||
(start -1.68 0.95)
|
||||
(end -1.68 -0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "f453edd8-03e4-480a-83d6-90e9431eb819")
|
||||
)
|
||||
(fp_line
|
||||
(start 1.68 -0.95)
|
||||
(end 1.68 0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "c43227aa-d0b5-45f1-9762-773dbb694a49")
|
||||
)
|
||||
(fp_line
|
||||
(start 1.68 0.95)
|
||||
(end -1.68 0.95)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.CrtYd")
|
||||
(uuid "468c8dc1-a4fa-479a-9b8d-4af6577c83bd")
|
||||
)
|
||||
(fp_line
|
||||
(start -1 -0.625)
|
||||
(end 1 -0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "79c7710d-9328-4bda-9b86-8d0a49ca028a")
|
||||
)
|
||||
(fp_line
|
||||
(start -1 0.625)
|
||||
(end -1 -0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "347a759d-80de-454a-b172-8866309c3410")
|
||||
)
|
||||
(fp_line
|
||||
(start 1 -0.625)
|
||||
(end 1 0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "bf746ac4-72fb-4b51-86c5-7a4da5951f62")
|
||||
)
|
||||
(fp_line
|
||||
(start 1 0.625)
|
||||
(end -1 0.625)
|
||||
(stroke
|
||||
(width 0.1)
|
||||
(type solid)
|
||||
)
|
||||
(layer "F.Fab")
|
||||
(uuid "f2d5b8c8-3103-4785-9eb1-28993c4bf298")
|
||||
)
|
||||
(pad "1" smd roundrect
|
||||
(at -0.9125 0)
|
||||
(size 1.025 1.4)
|
||||
(layers "F.Cu" "F.Mask" "F.Paste")
|
||||
(roundrect_rratio 0.243902)
|
||||
(net 1 "a")
|
||||
(uuid "bd2a90a2-d53e-4f5f-baea-886a12d2cdf9")
|
||||
)
|
||||
(pad "2" smd roundrect
|
||||
(at 0.9125 0)
|
||||
(size 1.025 1.4)
|
||||
(layers "F.Cu" "F.Mask" "F.Paste")
|
||||
(roundrect_rratio 0.243902)
|
||||
(net 1 "a")
|
||||
(uuid "a5178535-c334-4d2a-8f1a-37bb469733b1")
|
||||
)
|
||||
(embedded_fonts no)
|
||||
(model "${KICAD8_3DMODEL_DIR}/Resistor_SMD.3dshapes/R_0805_2012Metric.wrl"
|
||||
(offset
|
||||
(xyz 0 0 0)
|
||||
)
|
||||
(scale
|
||||
(xyz 1 1 1)
|
||||
)
|
||||
(rotate
|
||||
(xyz 0 0 0)
|
||||
)
|
||||
)
|
||||
)
|
||||
(gr_line
|
||||
(start 130 150)
|
||||
(end 100 150)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type default)
|
||||
)
|
||||
(layer "Edge.Cuts")
|
||||
(uuid "6fb7d833-f07b-4c6b-8cc4-4f516667c624")
|
||||
)
|
||||
(gr_line
|
||||
(start 100 100)
|
||||
(end 130 100)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type default)
|
||||
)
|
||||
(layer "Edge.Cuts")
|
||||
(uuid "914b4d58-bf5e-4ae1-8193-402067f045c0")
|
||||
)
|
||||
(gr_line
|
||||
(start 100 150)
|
||||
(end 100 100)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type default)
|
||||
)
|
||||
(layer "Edge.Cuts")
|
||||
(uuid "ab3b346f-73c0-45ab-a3c3-ed6c74a90ba3")
|
||||
)
|
||||
(gr_line
|
||||
(start 130 100)
|
||||
(end 130 150)
|
||||
(stroke
|
||||
(width 0.05)
|
||||
(type default)
|
||||
)
|
||||
(layer "Edge.Cuts")
|
||||
(uuid "c708431e-b75c-4c05-9d39-4f91e60551e1")
|
||||
)
|
||||
(segment
|
||||
(start 117.5 114.5)
|
||||
(end 117 115)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "1ab94135-e54e-405a-b68a-597cdd3f46d6")
|
||||
)
|
||||
(segment
|
||||
(start 117 115)
|
||||
(end 115.9125 115)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "29c9d040-1a6a-483e-83b0-bc96004b8329")
|
||||
)
|
||||
(segment
|
||||
(start 114.0875 115)
|
||||
(end 112.5 115)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "3617ebac-a977-4e5a-8951-0d91f0ba83fd")
|
||||
)
|
||||
(segment
|
||||
(start 117.5 113.5)
|
||||
(end 117.5 114.5)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "50d47861-8a94-43eb-a355-0e47495696e8")
|
||||
)
|
||||
(segment
|
||||
(start 112 113.5)
|
||||
(end 112.5 113)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "533f5c6d-6abf-486d-8ffc-65dae3c07f63")
|
||||
)
|
||||
(segment
|
||||
(start 112.5 113)
|
||||
(end 117 113)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "8b6d6222-04f2-410d-961b-06e93e036579")
|
||||
)
|
||||
(segment
|
||||
(start 112 114.5)
|
||||
(end 112 113.5)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "9999020a-eaf5-4bc1-87d0-600b9b9d5084")
|
||||
)
|
||||
(segment
|
||||
(start 112.5 115)
|
||||
(end 112 114.5)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "c88cea1d-9e11-474c-96bb-72d4c5776dfd")
|
||||
)
|
||||
(segment
|
||||
(start 117 113)
|
||||
(end 117.5 113.5)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 1)
|
||||
(uuid "e85c7449-766e-4a2e-a115-a33151e46fd0")
|
||||
)
|
||||
(via
|
||||
(at 112.5 115)
|
||||
(size 0.8)
|
||||
(drill 0.3)
|
||||
(layers "F.Cu" "B.Cu")
|
||||
(net 1)
|
||||
(uuid "c13854b5-a7f7-4dd2-89ad-e5844eb07619")
|
||||
)
|
||||
(via
|
||||
(at 117.5 113.5)
|
||||
(size 0.8)
|
||||
(drill 0.3)
|
||||
(layers "F.Cu" "B.Cu")
|
||||
(net 1)
|
||||
(uuid "ef54020d-b77a-433b-ae75-b627c2453261")
|
||||
)
|
||||
(segment
|
||||
(start 115.5 118)
|
||||
(end 112.5 118)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "0025cd6f-a163-4542-ba9e-cea34b6efec8")
|
||||
)
|
||||
(segment
|
||||
(start 112.5 120)
|
||||
(end 113 120)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "25f21657-7702-4f47-a531-0438429e4fe9")
|
||||
)
|
||||
(segment
|
||||
(start 116.3 118.8)
|
||||
(end 115.5 118)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "3e4310a9-4390-4154-834f-b9b5c6fbd6df")
|
||||
)
|
||||
(segment
|
||||
(start 117.4 119.6)
|
||||
(end 117 120)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "417954bb-d7cf-4e64-9488-318a1908e12c")
|
||||
)
|
||||
(segment
|
||||
(start 116.3 118.8)
|
||||
(end 117 118.8)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "4288a461-9a57-4618-b174-e6fe53510064")
|
||||
)
|
||||
(segment
|
||||
(start 112.5 118)
|
||||
(end 112 118.5)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "774e7827-f674-45a3-8860-b0d3f2ad1512")
|
||||
)
|
||||
(segment
|
||||
(start 117.4 119.2)
|
||||
(end 117.4 119.6)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "7ad041c8-4a55-46c0-a08d-46e60bd3a0b3")
|
||||
)
|
||||
(segment
|
||||
(start 112 119.5)
|
||||
(end 112.5 120)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "88535165-0121-40e7-b304-5564ff0118c3")
|
||||
)
|
||||
(segment
|
||||
(start 112 118.5)
|
||||
(end 112 119.5)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "a7331cf8-abda-43ff-b3f0-82174f38de35")
|
||||
)
|
||||
(segment
|
||||
(start 117 120)
|
||||
(end 115.9125 120)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "d208d1ec-24a1-4215-870d-6e15df337a94")
|
||||
)
|
||||
(segment
|
||||
(start 114.0875 120)
|
||||
(end 113 120)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "db08c018-1429-485a-a0f0-1cf257287e6c")
|
||||
)
|
||||
(segment
|
||||
(start 117 118.8)
|
||||
(end 117.4 119.2)
|
||||
(width 0.381)
|
||||
(layer "F.Cu")
|
||||
(net 2)
|
||||
(uuid "fd74fe00-db48-44ab-b69b-1e34506debb0")
|
||||
)
|
||||
(via
|
||||
(at 116.3 118.8)
|
||||
(size 0.8)
|
||||
(drill 0.3)
|
||||
(layers "F.Cu" "B.Cu")
|
||||
(net 2)
|
||||
(uuid "61d09800-fe0b-4c58-ae05-f6f9d7fd639a")
|
||||
)
|
||||
(via
|
||||
(at 113 120)
|
||||
(size 0.8)
|
||||
(drill 0.3)
|
||||
(layers "F.Cu" "B.Cu")
|
||||
(net 2)
|
||||
(uuid "8938687d-21dc-47dc-b99b-361f13186405")
|
||||
)
|
||||
(embedded_fonts no)
|
||||
)
|
288
qa/data/pcbnew/fanout_checks/pad_fanout_via_distance.kicad_pro
Normal file
288
qa/data/pcbnew/fanout_checks/pad_fanout_via_distance.kicad_pro
Normal file
@ -0,0 +1,288 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"board_outline_line_width": 0.05,
|
||||
"copper_line_width": 0.2,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.05,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.1,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.1,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.0,
|
||||
"height": 1.4,
|
||||
"width": 1.025
|
||||
},
|
||||
"silk_line_width": 0.1,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.1,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.5
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [],
|
||||
"drc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "ignore",
|
||||
"clearance": "ignore",
|
||||
"connection_width": "ignore",
|
||||
"copper_edge_clearance": "ignore",
|
||||
"copper_sliver": "ignore",
|
||||
"courtyards_overlap": "ignore",
|
||||
"creepage": "ignore",
|
||||
"diff_pair_gap_out_of_range": "ignore",
|
||||
"diff_pair_uncoupled_length_too_long": "ignore",
|
||||
"drill_out_of_range": "ignore",
|
||||
"duplicate_footprints": "ignore",
|
||||
"extra_footprint": "ignore",
|
||||
"footprint": "ignore",
|
||||
"footprint_fanout_force": "ignore",
|
||||
"footprint_fanout_torque": "ignore",
|
||||
"footprint_filters_mismatch": "ignore",
|
||||
"footprint_symbol_mismatch": "ignore",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "ignore",
|
||||
"hole_near_hole": "error",
|
||||
"hole_to_hole": "ignore",
|
||||
"holes_co_located": "ignore",
|
||||
"invalid_outline": "ignore",
|
||||
"isolated_copper": "ignore",
|
||||
"item_on_disabled_layer": "ignore",
|
||||
"items_not_allowed": "ignore",
|
||||
"length_out_of_range": "ignore",
|
||||
"lib_footprint_issues": "ignore",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "ignore",
|
||||
"microvia_drill_out_of_range": "ignore",
|
||||
"mirrored_text_on_front_layer": "ignore",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "ignore",
|
||||
"net_conflict": "ignore",
|
||||
"nonmirrored_text_on_back_layer": "ignore",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"pad_fanout_ratio": "ignore",
|
||||
"pad_fanout_via_distance": "error",
|
||||
"padstack": "ignore",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "ignore",
|
||||
"silk_edge_clearance": "ignore",
|
||||
"silk_over_copper": "ignore",
|
||||
"silk_overlap": "ignore",
|
||||
"skew_out_of_range": "ignore",
|
||||
"solder_mask_bridge": "ignore",
|
||||
"starved_thermal": "ignore",
|
||||
"text_height": "ignore",
|
||||
"text_thickness": "ignore",
|
||||
"through_hole_pad_without_hole": "ignore",
|
||||
"too_many_vias": "ignore",
|
||||
"track_angle": "ignore",
|
||||
"track_dangling": "ignore",
|
||||
"track_segment_length": "ignore",
|
||||
"track_width": "ignore",
|
||||
"tracks_crossing": "ignore",
|
||||
"unconnected_items": "ignore",
|
||||
"unresolved_variable": "ignore",
|
||||
"via_dangling": "ignore",
|
||||
"zones_intersect": "ignore"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.0,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.5,
|
||||
"min_groove_width": 0.0,
|
||||
"min_hole_clearance": 0.25,
|
||||
"min_hole_to_hole": 0.25,
|
||||
"min_microvia_diameter": 0.2,
|
||||
"min_microvia_drill": 0.1,
|
||||
"min_resolved_spokes": 2,
|
||||
"min_silk_clearance": 0.0,
|
||||
"min_text_height": 0.8,
|
||||
"min_text_thickness": 0.08,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.0,
|
||||
"min_via_annular_width": 0.1,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpthpad": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_onsmdpad": true,
|
||||
"td_ontrackend": false,
|
||||
"td_onvia": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_pairs": [],
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "pad_fanout_via_distance.kicad_pro",
|
||||
"version": 3
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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)",
|
||||
"priority": 2147483647,
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.2,
|
||||
"via_diameter": 0.6,
|
||||
"via_drill": 0.3,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 4
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": []
|
||||
},
|
||||
"sheets": [],
|
||||
"text_variables": {}
|
||||
}
|
@ -75,6 +75,7 @@ set( QA_PCBNEW_SRCS
|
||||
drc/test_drc_lengths.cpp
|
||||
drc/test_drc_unconnected_items_exclusion_loss.cpp
|
||||
drc/test_drc_via_dangling.cpp
|
||||
drc/test_drc_fanout_checks.cpp
|
||||
|
||||
pcb_io/altium/test_altium_rule_transformer.cpp
|
||||
pcb_io/altium/test_altium_pcblib_import.cpp
|
||||
|
104
qa/tests/pcbnew/drc/test_drc_fanout_checks.cpp
Normal file
104
qa/tests/pcbnew/drc/test_drc_fanout_checks.cpp
Normal file
@ -0,0 +1,104 @@
|
||||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, you may find one here:
|
||||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
* or you may search the http://www.gnu.org website for the version 2 license,
|
||||
* or you may write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <qa_utils/wx_utils/unit_test_utils.h>
|
||||
#include <pcbnew_utils/board_test_utils.h>
|
||||
#include <board.h>
|
||||
#include <board_design_settings.h>
|
||||
#include <pad.h>
|
||||
#include <pcb_track.h>
|
||||
#include <pcb_marker.h>
|
||||
#include <footprint.h>
|
||||
#include <drc/drc_item.h>
|
||||
#include <settings/settings_manager.h>
|
||||
|
||||
|
||||
struct DRC_REGRESSION_TEST_FIXTURE
|
||||
{
|
||||
// clang-format off
|
||||
DRC_REGRESSION_TEST_FIXTURE() :
|
||||
m_settingsManager( true /* headless */ )
|
||||
{ }
|
||||
// clang-format on
|
||||
|
||||
SETTINGS_MANAGER m_settingsManager;
|
||||
std::unique_ptr<BOARD> m_board;
|
||||
};
|
||||
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE( DRCFanoutChecks, DRC_REGRESSION_TEST_FIXTURE )
|
||||
{
|
||||
// Check for errors in pad and footprint fanout.
|
||||
|
||||
// clang-format off
|
||||
std::vector<std::pair<wxString, int>> tests =
|
||||
{
|
||||
{ "fanout_checks/pad_fanout_ratio", 4 },
|
||||
{ "fanout_checks/footprint_fanout_combined", 8 },
|
||||
{ "fanout_checks/footprint_fanout_torque", 4 },
|
||||
{ "fanout_checks/footprint_fanout_force", 4 },
|
||||
{ "fanout_checks/pad_fanout_via_distance", 2 },
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
for( const std::pair<wxString, int>& test : tests )
|
||||
{
|
||||
KI_TEST::LoadBoard( m_settingsManager, test.first, m_board );
|
||||
KI_TEST::FillZones( m_board.get() );
|
||||
|
||||
std::vector<DRC_ITEM> violations;
|
||||
BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
|
||||
|
||||
bds.m_DRCEngine->SetViolationHandler(
|
||||
[&]( const std::shared_ptr<DRC_ITEM>& aItem, VECTOR2I aPos, int aLayer,
|
||||
DRC_CUSTOM_MARKER_HANDLER* aCustomHandler )
|
||||
{
|
||||
if( bds.GetSeverity( aItem->GetErrorCode() ) == SEVERITY::RPT_SEVERITY_ERROR )
|
||||
violations.push_back( *aItem );
|
||||
} );
|
||||
|
||||
bds.m_DRCEngine->RunTests( EDA_UNITS::MILLIMETRES, true, false );
|
||||
|
||||
if( violations.size() == test.second )
|
||||
{
|
||||
BOOST_CHECK_EQUAL( 1, 1 ); // quiet "did not check any assertions" warning
|
||||
BOOST_TEST_MESSAGE( wxString::Format( "DRC skew: %s, passed", test.first ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
UNITS_PROVIDER unitsProvider( pcbIUScale, EDA_UNITS::INCHES );
|
||||
|
||||
std::map<KIID, EDA_ITEM*> itemMap;
|
||||
m_board->FillItemMap( itemMap );
|
||||
|
||||
for( const DRC_ITEM& item : violations )
|
||||
{
|
||||
BOOST_TEST_MESSAGE(
|
||||
item.ShowReport( &unitsProvider, RPT_SEVERITY_ERROR, itemMap ) );
|
||||
}
|
||||
|
||||
BOOST_ERROR( wxString::Format( "DRC skew: %s, failed (violations found %d expected %d)",
|
||||
test.first, (int) violations.size(), test.second ) );
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user