M154 — AP210 placement footprint pin count conflicts with library footprint

§12.8 mixed (sub-class: AP210 component package mismatch)

P1 — silent data loss

spec-violation

Sources

Sender

deduced — ECAD exporter that copied a placement from a small-package template while assigning a large-package PRODUCT

Description

A `NEXT_ASSEMBLY_USAGE_OCCURRENCE` places component U1 with a 4-pin layout, but the referenced PRODUCT 'BGA_84' has 84 pins in its package model. The placement footprint and the component- library footprint disagree on pin count.

Reproducer recipe

`PRODUCT('BGA_84',..)` with `library_pin_count='84'`; placement assigning only 4 `TERMINAL`s.

Expected kernel behavior

validate placement footprint pin count against library declaration; reject or warn.

Notes

Synonyms: "AP210 package mismatch", "PCB footprint vs library", "ECAD pin count contradiction".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M154: AP210 placement footprint pin count conflicts with library footprint */
3/* DEFECT: PRODUCT 'BGA_84' library_pin_count='84' but U1 placement has only 4 TERMINALs */
4/* 80 BGA pads are unconnected — netlist broken for 80 signals */
5/* Exporter used a 4-pin SOT-23 template for an 84-pin BGA component */
6/* Per ISO 10303-210 §6 placement footprint pin count must match library */
7/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
8/* Byte assertion: contains(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE') */
9/* Byte assertion: contains(b'library_pin_count') */
10HEADER;
11FILE_DESCRIPTION(('M154: AP210 BGA_84 library 84 pins vs placement 4 pins'),'2;1');
12FILE_NAME('M154.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','','');
13/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
14FILE_SCHEMA(('ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN { 1 0 10303 210 3 1 0 }'));
15ENDSEC;
16DATA;
17#1=APPLICATION_CONTEXT('electronic_assembly_interconnect_and_packaging_design');
18#2=APPLICATION_PROTOCOL_DEFINITION('international standard',
19  'electronic_assembly_interconnect_and_packaging_design',2014,#1);
20/* Standard unit context (mm) */
21#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
22#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
23#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
24#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
25  'distance_accuracy_value','maximum model space distance between geometric entities');
26#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3)
27  GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
28  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12))
29  REPRESENTATION_CONTEXT('pcb','3D'));
30/* BGA_84 library component: 84-pin BGA package */
31#50=PRODUCT('BGA_84','BGA_84','84-pin BGA package',(#1));
32/* Byte assertion: contains(b'library_pin_count') */
33/* library_pin_count property declares the component has 84 pins */
34#51=PROPERTY_DEFINITION('library_pin_count','Component library pin count',#50);
35#52=DESCRIPTIVE_REPRESENTATION_ITEM('library_pin_count','84');
36#53=REPRESENTATION('lib_props',(#52),#14);
37#54=PROPERTY_DEFINITION_REPRESENTATION(#51,#53);
38/* PCB board assembly product */
39#60=PRODUCT('PCB_BOARD','PCB_BOARD','Main PCB assembly',(#1));
40/* Byte assertion: contains(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE') */
41/* NEXT_ASSEMBLY_USAGE_OCCURRENCE places BGA_84 as U1 on the board */
42#70=NEXT_ASSEMBLY_USAGE_OCCURRENCE('U1_placement','U1','U1 BGA_84 placement',#60,#50,$);
43/* DEFECT: placement footprint has only 4 TERMINALs; library declares 84 */
44#100=CARTESIAN_POINT('T1_loc',(5.0,5.0,0.0));
45#101=TERMINAL('T1',#100);
46#102=CARTESIAN_POINT('T2_loc',(6.0,5.0,0.0));
47#103=TERMINAL('T2',#102);
48#104=CARTESIAN_POINT('T3_loc',(5.0,6.0,0.0));
49#105=TERMINAL('T3',#104);
50#106=CARTESIAN_POINT('T4_loc',(6.0,6.0,0.0));
51#107=TERMINAL('T4',#106);
52/* 80 BGA pads unaccounted for — connectivity broken for 80 signals */
53/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
54#200=GEOMETRIC_CURVE_SET('ap210-placement-pin-count-conflicts-library-bga84',
55  (#50,#51,#52,#53,#54,#60,#70,#100,#101,#102,#103,#104,#105,#106,#107));
56/* Product chain */
57#400=APPLICATION_CONTEXT('mechanical design');
58#401=PRODUCT_CONTEXT('',#400,'mechanical');
59#402=PRODUCT('M154','M154','M154',(#401));
60#403=PRODUCT_DEFINITION_FORMATION('','',#402);
61#404=PRODUCT_DEFINITION_CONTEXT(#400,'design');
62#405=PRODUCT_DEFINITION('','',#403,#404);
63#406=PRODUCT_DEFINITION_SHAPE('','',#405);
64#407=SHAPE_REPRESENTATION('',(#200),#14);
65#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407);
66ENDSEC;
67END-ISO-10303-21;