ShiboSoftwareDev/am69-cm5

A 55×40 mm 10-layer CM5 carrier board integrating an AM69A98 SoC, 8‑GiB LPDDR4, 32‑GB eMMC, CM5 connectors, clocking, extensive decoupling/EMI filtering, and HDI DDR/ground escape routing.

Version
0.0.7-engineering-draft-20261107-manual-ddr0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone ShiboSoftwareDev/am69-cm5  # download the package files into ./am69-cm5
tsci add ShiboSoftwareDev/am69-cm5    # add it to your project as @tsci/ShiboSoftwareDev.am69-cm5

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

components/shared/core/ReferenceBootControl.tsx

import data from "./ReferenceBootControl.data.json"

type Placement = {
  pcbX?: number
  pcbY?: number
  pcbRotation?: number
  layer?: "top" | "bottom"
  schX?: number
  schY?: number
}

export type ReferenceBootControlProps = {
  name?: string
  pcbX?: number
  pcbY?: number
  placements?: Partial<Record<string, Placement>>
  /** Source-net keys, with explicit adaptation to the authored power boundary. */
  netOverrides?: Record<string, string>
  /** Source bias network only. Bits 3–5 still require a reviewed boot controller. */
  includeSourceBootBias?: boolean
  schematicSections?: boolean
  references?: readonly string[]
}

export const referenceBootControlDefaultNets: Record<string, string> = {
  VDD_CPU_HCPS_GOSNS: "net.GND",
  VMAIN_3V3: "net.V3V3_AON_INTERFACE",
  V_3V3: "net.V_3V3",
  NetR539_1: "net.PMIC_ENABLE_3V3",
  LM5143_PG: "net.MAIN_3V3_PG",
  LM5143_PG_R: "net.MAIN_3V3_PG_QUALIFIED",
}

const defaultPlacement: Record<string, Placement> = {
  U105: { pcbX: -7, pcbY: 0, schX: 0, schY: 0 },
  C793: { pcbX: -7, pcbY: -2.8, schX: -6, schY: -4 },
  R534: { pcbX: -11, pcbY: 2.8, schX: -7, schY: 2 },
  R213: { pcbX: -3, pcbY: 0, schX: 7, schY: 0 },
  R316: { pcbX: -11, pcbY: -2.8, schX: -7, schY: 6 },
  R515: { pcbX: 3, pcbY: 4, schX: 21, schY: 6 },
  R513: { pcbX: 3, pcbY: 0, schX: 21, schY: 0 },
  R401: { pcbX: 7, pcbY: 0, schX: 27, schY: 0 },
  R175: { pcbX: 7, pcbY: 4, schX: 32, schY: 6 },
  R162: { pcbX: 11, pcbY: 4, schX: 38, schY: 6 },
  R423: { pcbX: 11, pcbY: 0, schX: 38, schY: 0 },
}

/**
 * Source U105 run-request AND main-3.3-PG qualification, PMIC enable links,
 * and CPU reset bias/links. The full EVM CPLD boot/reset controller is not here.
 * PMIC nRSTOUT supplies H_MCU_PORz; CPU balls retain ReferenceCore net names.
 */
export function ReferenceBootControl({
  name = "REFERENCE_BOOT_CONTROL", pcbX = 0, pcbY = 0,
  placements = {}, netOverrides = {}, includeSourceBootBias = false, schematicSections = true, references,
}: ReferenceBootControlProps) {
  const net = (source: string) => netOverrides[source]
    ?? referenceBootControlDefaultNets[source]
    ?? `net.${source}`
  const parts = includeSourceBootBias
    ? [...data.parts, ...data.optionalBootBiasParts]
    : data.parts
  return <group name={name} pcbX={pcbX} pcbY={pcbY}>
    {schematicSections && <>
      <schematicsection name={`${name}_POWER`} title="PMIC enable qualification" />
      <schematicsection name={`${name}_RESET`} title="CPU reset links and bias" />
      <schematicsection name={`${name}_BIAS`} title="Source boot bias — controller required" />
    </>}
    {parts.filter(part => !references || references.includes(part.reference)).map((part, index) => {
      const section = index < 5 ? `${name}_POWER`
        : index < data.parts.length ? `${name}_RESET` : `${name}_BIAS`
      const optionalIndex = index - data.parts.length
      const position = placements[part.reference] ?? defaultPlacement[part.reference] ?? {
        pcbX: (optionalIndex % 10 - 4.5) * 2.6,
        pcbY: -7 - Math.floor(optionalIndex / 10) * 2.6,
        schX: (optionalIndex % 5) * 7,
        schY: -15 - Math.floor(optionalIndex / 5) * 5,
      }
      const connections = Object.fromEntries(Object.entries(part.pins)
        .filter(([, pin]) => pin.net)
        .map(([pin, fact]) => [`pin${pin}`, net(fact.net)]))
      const common = {
        name: part.reference, ...position, connections, ...(schematicSections ? { schSectionName: section } : {}),
        manufacturerPartNumber: part.mpn,
      }
      if (part.reference === "U105") return <chip key={part.reference} {...common}
        footprint="sot23_5"
        pinLabels={{ pin1: "A", pin2: "B", pin3: "GND", pin4: "Y", pin5: "VCC" }}
        pinAttributes={{
          pin1: { isInput: true }, pin2: { isInput: true },
          pin3: { requiresGround: true }, pin4: { isOutput: true },
          pin5: { requiresPower: true },
        }}
        schPinArrangement={{ leftSide: ["A", "B"], rightSide: ["Y"], topSide: ["VCC"], bottomSide: ["GND"] }}
        schWidth={3} schHeight={4} />
      if (part.reference.startsWith("C")) return <capacitor key={part.reference} {...common}
        capacitance={part.value} maxVoltageRating="16V" footprint={part.sizeCode!}
        schRotation={part.pins["1"].net==="VDD_CPU_HCPS_GOSNS"||part.pins["1"].net==="GND"?90:-90} />
      return <resistor key={part.reference} {...common}
        resistance={part.value} footprint={part.sizeCode!} />
    })}
  </group>
}

export const referenceBootBiasParts = data.optionalBootBiasParts