Skip to content

Reference designator

The reference-designator statement can be used to hardcode the reference designator of a pcb-component instance in a pcb-module definition.

This statement is only valid within the pcb-module context.

Signature

  reference-designator(<INST>) = <String>
  • &lt;INST> - Component Instance in the pcb-module context. It can optionally be a public component instance of a child sub-module.
  • &lt;String> - String expression that will replace the reference designator for this instance.

Usage

This statement is primarily a tool for use by the importer. You will likely see something like this in most imported projects:

public defn add-main-reference-designators () -> False :
  inside pcb-module :
    ...
    reference-designator(self.CM4_HighSpeed.R-7) = "R17"
    reference-designator(self.CM4_HighSpeed.R-8) = "R10"
    reference-designator(self.CM4_HighSpeed.R-9) = "R1"
    reference-designator(self.CM4_HighSpeed.RT9742GGJ5) = "U18"
    reference-designator(self.CM4_HighSpeed.RT9742SNGV) = "U12"
    ...

In this case - the importer knows the structure of sub-modules and components, so it can create a ref to particular components at various depths in the tree and then assign them known designators.