stackup

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stackup reads a board's physical layer stack (geom.Stackup) for a person or a check: it describes a row in words, sums the rows' thicknesses, and says when that sum disagrees with the board thickness the file states (agni 1592). Readers fill the Stackup with what the file says and nothing more. Totals and the agreement check happen here, once, for every format.

Index

Constants

View Source
const Tolerance = 0.10

Tolerance is how far, as a fraction of the stated board thickness, the sum of the layers may differ from it before Check reports the difference. Fabricators commonly quote a finished thickness to plus or minus 10%.

Variables

This section is empty.

Functions

func Check

func Check(s *geom.Stackup, unitNm int64) string

Check compares the sum of the layers with the board thickness the file states, and returns a sentence when they differ by more than Tolerance of the stated thickness. It returns "" when they agree, and also when the comparison cannot be made: the file states no thickness, or a copper or dielectric row has none.

func Describe

func Describe(l *geom.StackLayer, unitNm int64) string

Describe is one row in words, in the order name, kind, the layer-table name, thickness, material, dielectric type, epsilon_r and loss tangent, leaving out what the file does not give. A row with no thickness says "thickness unknown" rather than leaving the gap silent. For example "dielectric 1 dielectric 0.1 mm PR1080 prepreg er=3.96 tand=0.02".

func MM

func MM(v, unitNm int64) string

MM formats a length in unit_nm units as millimetres, trimmed of trailing zeros, such as "0.035" or "1.6".

func Sum

func Sum(s *geom.Stackup) (sum int64, missing int)

Sum adds the thicknesses of the rows that give one. missing counts the copper and dielectric rows that give none, since those make up the board's bulk and a sum without them is short. A surface row with no thickness, such as silkscreen or paste, is left out of both.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL