Skip to content

Stackup Layers

The stack statement inside a pcb-stackup declares a physical copper or dielectric layer within the stackup.

Signature

stack(<HEIGHT>, <MATERIAL>)
stack(<HEIGHT>, <MATERIAL>, <NAME>)
  • &lt;HEIGHT> - This is an instance of type Double that indicates the layer's vertical (Z-axis) height in mm
  • &lt;MATERIAL> - This is a pcb-material object that defines the physical material for this layer.
  • &lt;NAME> - This is an instance of type String that indicates the name of this layer.
  • For copper layers, this string will be used in the layer visualizer of the board view.
  • If no &lt;NAME> string is provided then a default set of names will be used:
    • Top and Bottom for their respective copper layers
    • For inner layers, we use Inner 1, Inner 2, etc.

Usage

The pcb-stackup statement utilizes these stack() statements to construct the physical board stackup. The ordering of the stack() statements is important and defines the physical layer order.

pcb-material copper:
  type = Conductor

pcb-material soldermask:
  type = Dielectric

pcb-material core-45:
  type = Dielectric

pcb-stackup simple-2-layer :
  stack(0.019, soldermask) ; 0.5mil over conductor
  stack(0.035, copper) 
  stack(1.5, core-45)
  stack(0.035, copper) 
  stack(0.019, soldermask) ; 0.5mil over conductor