Components and library parts
component <designator> = { part = "<mpn>" } places a part. The part comes from the parts library or from a part "<mpn>" = { … } declaration in the file; see The parts library.
| Field | Meaning |
|---|---|
part | the library part, by MPN |
value | the component's value with its tolerance: value = 10 kohm ± 1 % |
classes | component classes, for board rules and rooms |
properties | typed properties |
variants | how the component is fitted in each variant |
power | the dissipation the board's thermal map uses, in W |
renamed_from | the old designator after a rename, so the board keeps the placement |
A designator ending in ? (R?) is numbered automatically.
Values
A value carries its unit and, optionally, its tolerance: value = 10 kohm ± 1 %, value = 100 nF ± 10 %. A value can also come from a .m function in the circuit's folder, written as a call with named arguments and the unit the result is read in:
sheet main {
component R3 = { part = "R0402-1K", value = ledResistor(vs = 3.3 V, vf = 2 V, i = 2 mA) as ohm }
}The circuit keeps the call and recomputes the value when an argument changes. See MATLAB functions in design values.
Designators and renames
Annotate numbers every designator written with ?. Renaming a component writes renamed_from = <old>, so the board keeps its footprint's placement and routing under the new designator.
Parts in the file
part "<mpn>" = { … } at the circuit's top level declares a part the file uses: its pins and pads, package, parameters, datasheet and SPICE model. A declared part replaces a built-in part of the same MPN. See The parts library.