from jitx.container import inline
from jitx.stackup import Stackup
from jitxlib.physics import phase_velocity
from .materials import (
Copper1oz,
CopperHalfOz,
Df_7628,
Er_7628,
Er_core_400,
FR4_7628,
FR4_Core400,
SoldermaskMaterial,
)
from .rules import JLCPCBRules
from .substrate import (
SOLDERMASK,
JLCPCBSubstrate,
Pair,
Trace,
differential,
single_ended,
symmetric,
)
from .vias import JLCPCBVias
ext_velocity = phase_velocity((Er_7628 + 1) / 2)
int_velocity = phase_velocity((Er_7628 + Er_core_400) / 2)
[docs]
class JLC06161H_7628(JLCPCBSubstrate, JLCPCBVias):
"""JLC06161H Stackup with 7628 Prepreg"""
@inline
class stackup(Stackup):
"""6 layer stackup with 7628 prepreg"""
# The core is 0.4, JLCPCB's published value for JLC06161H-7628,
# confirmed 2026-09-16. It read 0.2104 (the 7628 prepreg thickness,
# copy-pasted) from the initial port until then, which made the board
# 1.21 mm rather than 1.6 mm. The routing structures below were
# unaffected: they were derived for the real 0.4 mm core, and the
# inner-layer widths only reach their nominal impedance with it.
layers = symmetric(
SoldermaskMaterial(thickness=SOLDERMASK),
Copper1oz(),
FR4_7628(thickness=0.2104),
CopperHalfOz(),
FR4_Core400(),
CopperHalfOz(),
centre=FR4_7628(thickness=0.2028),
)
constraints = JLCPCBRules()
RS_50 = single_ended(
50,
{
0: Trace(trace_width=0.3421, clearance=0.5, velocity=ext_velocity),
1: Trace(trace_width=0.2230, clearance=0.3, velocity=int_velocity),
},
insertion_loss=Df_7628,
)
DRS_100 = differential(
100,
{
0: Pair(
trace_width=0.1722,
pair_spacing=0.15,
clearance=0.3,
uncoupled_clearance=0.15,
velocity=ext_velocity,
),
1: Pair(
trace_width=0.1298,
pair_spacing=0.15,
clearance=0.3,
uncoupled_clearance=0.15,
velocity=int_velocity,
),
},
insertion_loss=Df_7628,
)