tscircuit/dataset-srj12-bus-routing
The code defines electronic circuit diagrams featuring PCB layouts with USB-C, HDMI, and general-purpose chips, connecting their pins with traces, component footprints, and annotations for hardware design.
- Version
- 1.0.6
- License
- unset
- Stars
- 0
circuits/sample002/sample002.circuit.tsx
PCB
Schematic
import { USBC } from "../../imports/USBC"
export default () => (
<board width="30mm" height="36mm" routingDisabled>
<chip
name="U1"
footprint="qfn32"
doNotPlace
pcbX={-8}
pcbY={0}
pinLabels={{
pin16: "BUS_09",
pin17: "BUS_00",
pin18: "BUS_01",
pin19: "BUS_02",
pin20: "VBUS_IN",
pin21: "BUS_04",
pin22: "BUS_05",
pin23: "GND",
pin24: "BUS_07",
pin25: "BUS_08",
pin27: "BUS_10",
}}
pinAttributes={{
BUS_00: { mustBeConnected: true },
BUS_01: { mustBeConnected: true },
BUS_02: { mustBeConnected: true },
VBUS_IN: { requiresPower: true, mustBeConnected: true },
BUS_04: { mustBeConnected: true },
BUS_05: { mustBeConnected: true },
GND: { requiresGround: true, mustBeConnected: true },
BUS_07: { mustBeConnected: true },
BUS_08: { mustBeConnected: true },
BUS_09: { mustBeConnected: true },
BUS_10: { mustBeConnected: true },
}}
/>
<USBC name="USBC1" pcbRotation={90} pcbX={11} pcbY={8} />
<pinheader name="J1" footprint="pinrow4" pinCount={4} doNotPlace pcbX={5} pcbY={10} pcbRotation={90} />
<capacitor pcbRotation={90} name="C1" capacitance="100nF" footprint="0603" doNotPlace pcbX={1.5} pcbY={3.7} />
<trace from=".USBC1 > .DP1" to=".U1 > .pin25" />
<trace from=".USBC1 > .DP2" to=".U1 > .pin26" />
</board>
)