0hmX/am3352-ddr-track-a-local-dfm-wip-20261007
Experimental RJ45-corrected board with isolated PG indication. 1005/1005 source joins pass; 15 expanded-guard physical errors, sourcing and qualification gates remain. Not fabrication-ready.
- Version
- 0.0.14
- License
- unset
- Stars
- 0
subcircuits/HDMI.tsx
import { HDMIInterface } from "../hdmi/HDMIInterface"
import placement from "../hdmi/data/placement-selected"
import hdmiParts from "../hdmi/data/all-components"
export const hdmiSheets = ["HDMI source resistors", "HDMI transmitter and protection", "HDMI power"]
export const sheetCounts: Record<string, number> = {}
const hdmiPlacement = Object.fromEntries(hdmiParts.map(p => {
const sheet = p.kind === "resistor_array" ? hdmiSheets[0] : /5V|1V2|FB_HDMI|C_HDMI_REF/.test(p.name) ? hdmiSheets[2] : hdmiSheets[1]
const i = sheetCounts[sheet] ?? 0; sheetCounts[sheet] = i + 1
return [p.name, { ...placement[p.name as keyof typeof placement], schSheetName: sheet, schX: ((i % 4) - 1.5) * 14, schY: ((Math.ceil(hdmiParts.filter(part => (part.kind === "resistor_array" ? hdmiSheets[0] : /5V|1V2|FB_HDMI|C_HDMI_REF/.test(part.name) ? hdmiSheets[2] : hdmiSheets[1]) === sheet).length / 4) - 1) / 2 - Math.floor(i / 4)) * 12 }]
}))
export function HDMI() {
return <subcircuit name="HDMI" exposeNets pcbRelative routingDisabled schAutoLayoutEnabled={false}><HDMIInterface placement={hdmiPlacement} /></subcircuit>
}