File Checks

Testing BoM and Placement Consistency Checks with Synthetic Faults

Six synthetic files show what a clean file check does and does not prove about an assembly build package.
by Chen Guman

A bill of materials (BoM) and a placement file can each read cleanly while describing different assembly instructions. One may contain a reference the other omits. A component the BoM marks do not populate (DNP) may still have coordinates in the placement export. Both files can also share a mistake that no comparison between them will reveal. These possibilities make the meaning of a clean check more important than the appearance of a clean screen.

This article describes a small, reproducible exercise that examines that boundary. It uses six synthetic comma-separated values (CSV) files to test five selected algorithm scenarios, followed by two checks through the public browser interface. The goal is to distinguish input validation, cross-file comparison and engineering decisions. The exercise does not estimate defect rates, claim savings in preparation time or establish that any assembly is ready for manufacture.

The examples are intentionally small enough to inspect by hand. That makes the expected answer explicit: a reviewer can identify each populated reference, count the intended quantity and trace every inserted inconsistency without relying on the software output. Small examples work well for demonstrating behavior, but their simplicity also limits them. They do not represent the range of naming practices, export formats or variant structures that production work involves.

Establish the Reference Case Before Inserting Faults

The reference BoM contains four rows. R1 and R2 share a row with quantity two and a synthetic resistor part number. C1 has quantity one and a synthetic capacitor part number. The BoM explicitly identifies J1 as through-hole and marks R3 DNP with quantity zero. The component identifiers and part numbers serve as teaching data; they are not a purchasing specification.

The corresponding surface-mount technology (SMT) placement file contains three rows: R1, R2 and C1. J1 is intentionally absent because the file represents SMT placement and the BoM identifies J1 as through-hole. R3 is absent because the BoM marks it DNP. This distinction matters when defining the expected result. A rule that simply requires every BoM reference to appear in every placement file would flag intentional omissions as discrepancies.

Coordinates use millimeters relative to a synthetic shared origin. The data includes a negative coordinate and a bottom-side component, but no physical board outline. The reference case therefore specifies enough information to exercise file checks without implying anyone has validated the coordinate values against a real printed circuit board (PCB). The placement angles serve as numerical inputs, not evidence of correct component orientation.

Column mappings. Before running the comparison, inspect the detected column mappings. The checker must interpret the reference column as references, the quantity column as quantity, and the side and rotation columns as their respective fields. A readable CSV with an incorrect mapping can produce misleading results. Record any manual choices, including the selected unit, so a second reviewer can repeat the same interpretation.

For this exact reference pair, the expected result is no findings within the demonstrated checks. The saved algorithm output reports an executed comparison with no issues. The browser exercise also reports zero errors, zero review findings and zero cross-file findings. Those observations establish the outcome for these inputs; they do not extend to untested files or properties.

Keep Input Errors Separate from Comparison Results

The first altered BoM changes the quantity on the R1/R2 row from two to three while retaining the same two references. This introduces an inconsistency within one file, and detecting it does not require looking at placement coordinates. The expected response is a quantity mismatch and a blocked cross-file comparison until the user resolves the BoM error.

The recorded algorithm result follows that expectation. It identifies quantity three against two listed references and reports the comparison state as blocked. The comparison issue list is empty, but readers must not interpret that empty list as a successful comparison. Interpret state and findings together: an operation that did not run cannot provide a clean comparison result.

This distinction matters when documenting a workflow or reviewing a report. Record whether a check executed, blocked or never ran, rather than recording only the number of issues. If a user fixes the quantity, check the corrected file again and compare it against the intended placement revision. A previous blocked result says nothing about the corrected pair.

Insert Disagreements That Require Both Files

The next exercise keeps the reference BoM and replaces the placement file with a deliberately inconsistent version. R1 remains present. R2 disappears. C1 remains present, but its footprint text changes from C0603 to C0402. The file adds R3 despite its DNP status and adds a new reference, U99, that does not occur in the BoM.

These changes produce four distinct findings in the saved algorithm output. R2 receives a missing-placement warning. R3 receives a DNP placement error. C1 receives a footprint-mismatch warning. U99 receives an absent-from-BoM error. The public browser exercise with the same pair reports two errors and two review findings, for four cross-file findings in total. Figure 1 summarizes the four reported cross-file findings.

Figure 1. Four deliberately inserted cross-file disagreements and their reported findings; the findings raise questions for engineering disposition but do not establish which input is authoritative.

The split between errors and review findings cannot substitute for understanding the underlying discrepancy. In this example, R2 belongs in the SMT file because the reference BoM identifies its mounting type. In a different file set, an omitted reference could reflect an intentional assembly process or variant decision. The useful follow-up establishes which instruction is authoritative and whether the omission is intentional.

Footprint text. The C1 finding has a different scope. It compares footprint text, not pad geometry. Different labels can refer to equivalent library definitions, while identical labels can hide different library revisions. Here, the checker detects the deliberately changed text. The exercise does not establish that the checker can determine whether two physical footprints are equivalent or suit the selected component.

References missing from the BoM. Identifying U99 as absent from the BoM does not decide which document should change. It could be an unintended placement row, or the BoM could be incomplete. Resolving that question requires the intended assembly definition. The file checker supplies a discrepancy to investigate; it has no independent knowledge of design intent.

Require a Declared Unit

Another placement example removes the unit declarations from the coordinate headers but leaves the numerical values unchanged. The initial algorithm result contains a file-level unit-required error and unit errors for the individual rows. The expected response requests an explicit interpretation rather than inferring a unit from the apparent size of the numbers.

For this synthetic exercise, the written example specification justifies selecting millimeters. After that explicit choice, the recorded unit issues clear. This demonstrates a known input decision; it does not recommend assuming millimeters whenever a file lacks units. A real handoff needs a source for the unit declaration, such as the export settings or an agreed file specification.

Recording the selection makes the check reproducible. If reviewers interpret the same unlabeled numbers under different units, a clean result after selection can describe different physical positions. Removing an ambiguity in the software interface therefore differs from confirming that the chosen interpretation suits the board under assembly.

Normalize an Angle Without Claiming Orientation Approval

The final algorithm example contains one bottom-side component at X = -12mm [-0.472″] and Y = 5mm [0.197″], with a rotation of -90°. The saved result preserves X, Y and the bottom-side designation. It normalizes the numerical angle to 270° and produces a warning to confirm the source rotation convention.

This behavior is narrow and inspectable. The checker does not mirror the bottom-side coordinate in this example. A reviewer can compare the original row with the normalized record and see exactly what changed. Do not describe that record as a machine-ready orientation simply because the angle now falls within a familiar numerical range.

A real orientation review needs the source and destination conventions: origin, axis direction, bottom-side viewing or mirroring, zero-angle definition and any package-specific machine offsets. Component polarity and pin-one references also require the relevant physical and assembly documentation. Converting -90° to 270° establishes none of those relationships. A plausible preview cannot replace the missing convention evidence.

Preserve the Evidence Needed to Repeat the Exercise

The algorithm record identifies the public shared core the exercise used and its Secure Hash Algorithm 256-bit (SHA-256) hash. It records five named scenarios, their expected distinctions and the observed structured output. Identifying the tested version matters because a later software revision may produce different messages or behavior. The saved result serves as evidence for the recorded run, not a claim about every future deployment.

The browser checks cover only the reference pair and the pair containing four cross-file disagreements. They add evidence that the public interface can exercise these two scenarios. They do not show that anyone tested all five algorithm scenarios through every browser, device or file-selection path. Keeping those scopes separate prevents anyone from presenting a small interface check as comprehensive application validation.

For review, keep the six input files unchanged alongside the result record and the instructions. If a reviewer changes a cell, save the changed example separately and state the new expected outcome before rerunning it. Otherwise, a demonstration can drift into adjusting inputs to match whatever the software happens to report. The example specification alone should explain the expected result.

Results tables. A concise results table should name the input pair, whether comparison ran, the finding categories and the unresolved engineering questions. A simple pass label hides too much. In the quantity example, the correct result includes a blocked comparison. In the reference example, no findings is the expected software behavior, while physical suitability remains outside the exercise. Both can satisfy their stated expectations without providing the same kind of evidence.

Limits and a Useful Next Study

The exercise uses five deliberately selected algorithm scenarios and two interface scenarios. The checker reports all four inserted cross-file discrepancies for their particular inputs. That observation is not a detection-rate estimate. The exercise includes no representative production dataset, no independent set of naturally occurring faults and no evaluation of how often false alarms occur across varied engineering exports.

The files also omit many conditions a broader validation study would need to define. Examples include multiple assembly variants, mixed export conventions, naming aliases and revision mismatches that preserve the same references. These represent proposed areas for further study, not claims that the current checker supports or fails them. Each needs an explicit expected interpretation and a suitable test set before anyone draws conclusions.

Next study. A follow-up study could build a separately reviewed dataset of real export structures using permissioned or synthetic content, with independent expected outcomes and documented exclusions. It should distinguish parser failures from semantic disagreements and record how much manual interpretation each case requires. Any comparison of time or production outcomes would need its own measurement method, baseline and limitations; this exercise supplies none.

Conclusion. For the present demonstration, the conclusion is narrower. The selected inputs show a clean reference comparison, a quantity error that blocks comparison, four detected cross-file disagreements, a required unit declaration and a numerical angle normalization that preserves the bottom-side coordinates. These observations make the checks easier to inspect and discuss. Manufacturing release still depends on evidence and decisions the two files alone do not contain. Figure 2 summarizes the sequence and scope boundaries these checks demonstrate.

Figure 2. The demonstrated sequence runs from paired data files through validation, comparison and engineering disposition; observations on selected inputs do not establish release readiness at the product level.End of article content

Chen Guman runs printed circuit board assembly (PCBA) production for industrial Internet of Things (IoT) and monitoring hardware at PCBA Partner, where his work focuses on build-package readiness, BoM risk, first-article requirements, test definitions and the handoff from prototype to repeat production; guman@pcbapartner.com.