M143 — AP210 vias declared with stack-up positions out of board-layer order

§12.8 mixed (sub-class: AP210 via stackup ordering)

P1 — silent data loss

spec-violation

Sources

Sender

deduced — ECAD exporter that emitted via terminations from a routing engine without aligning them to the LAMINATE_TABLE order

Description

A `LAMINATE_TABLE` declares plies in physical order (top -> bottom) but `VIA_DEFINITION` entries cite their terminating layers in reversed order: the bottom layer is named first, the top last. A stackup-aware layer router walking the via stack visits layers in inverted Z sequence; the manufacturer receives bogus drill ordering instructions. Bug-reporter language: "AP210 via stackup out of order", "PCB drill sequence wrong".

Reproducer recipe

`LAMINATE_TABLE('stackup',(top,mid,bot))` plus `VIA_DEFINITION(..,(bot, top))` with reversed termination list.

Expected kernel behavior

validate via terminations against the LAMINATE_TABLE order; reject or auto-reorder with warning.

Notes

Synonyms: "via stackup inversion", "PCB drill order wrong", "AP210 layer-order inconsistent".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) 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/* M143: AP210 vias declared with stack-up positions out of board-layer order */
3/* DEFECT: LAMINATE_TABLE order is (top, mid, bot) but VIA_DEFINITION */
4/* terminating layers are listed reversed: (bot, top) */
5/* Stackup-aware routers visit layers in inverted Z sequence */
6/* Per ISO 10303-210 §6 via termination order must match LAMINATE_TABLE */
7/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
8/* Byte assertion: contains(b'VIA_DEFINITION') */
9/* Byte assertion: contains(b'LAMINATE_TABLE') */
10HEADER;
11FILE_DESCRIPTION(('M143: AP210 via stackup termination order inverted'),'2;1');
12FILE_NAME('M143.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/* Three PCB plies in physical top-to-bottom order */
31#100=LAMINATE_OR_PLY_DEFINITION('top_ply',$,$,$,LENGTH_MEASURE(0.035));
32#101=LAMINATE_OR_PLY_DEFINITION('mid_ply',$,$,$,LENGTH_MEASURE(0.2));
33#102=LAMINATE_OR_PLY_DEFINITION('bot_ply',$,$,$,LENGTH_MEASURE(0.035));
34/* Byte assertion: contains(b'LAMINATE_TABLE') */
35/* LAMINATE_TABLE declares physical stackup order: top_ply, mid_ply, bot_ply */
36#110=LAMINATE_TABLE('stackup',(#100,#101,#102));
37/* Byte assertion: contains(b'VIA_DEFINITION') */
38/* Via drill axis at board position (5.0, 5.0, 0.0) */
39#200=CARTESIAN_POINT('via_loc',(5.0,5.0,0.0));
40#201=AXIS2_PLACEMENT_3D('via_axis',#200,$,$);
41/* DEFECT: terminating layers listed as (#102, #100) — bot first, top last */
42/* Correct order matching LAMINATE_TABLE would be (#100, #102) — top first */
43/* A stackup-aware router walks via layers in inverted Z sequence */
44#210=VIA_DEFINITION('via_inverted',(#102,#100),#201,LENGTH_MEASURE(0.3));
45/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
46#300=GEOMETRIC_CURVE_SET('ap210-via-stackup-termination-order-inverted',
47  (#100,#101,#102,#110,#200,#201,#210));
48/* Product chain */
49#400=APPLICATION_CONTEXT('mechanical design');
50#401=PRODUCT_CONTEXT('',#400,'mechanical');
51#402=PRODUCT('M143','M143','M143',(#401));
52#403=PRODUCT_DEFINITION_FORMATION('','',#402);
53#404=PRODUCT_DEFINITION_CONTEXT(#400,'design');
54#405=PRODUCT_DEFINITION('','',#403,#404);
55#406=PRODUCT_DEFINITION_SHAPE('','',#405);
56#407=SHAPE_REPRESENTATION('',(#300),#14);
57#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407);
58ENDSEC;
59END-ISO-10303-21;