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
dist/index.js
import { jsx, jsxs } from 'react/jsx-runtime';
const pinLabels = {
pin1: ["GND1"],
pin2: ["VBUS1"],
pin3: ["SBU2"],
pin4: ["CC1"],
pin5: ["DN2"],
pin6: ["DP1"],
pin7: ["DN1"],
pin8: ["DP2"],
pin9: ["SBU1"],
pin10: ["CC2"],
pin11: ["VBUS2"],
pin12: ["GND2"],
pin13: ["SHELL1"],
pin14: ["SHELL2"],
pin15: ["pin13_alt1"],
pin16: ["pin14_alt1"]
};
const USBC = (props) => {
return (jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
"jlcpcb": [
"C2765186"
]
}, manufacturerPartNumber: "TYPE_C_16PIN_2MD_073_", footprint: jsxs("footprint", { children: [jsx("hole", { pcbX: "-2.889885mm", pcbY: "1.05492555mm", diameter: "0.700024mm" }), jsx("hole", { pcbX: "2.890139mm", pcbY: "1.05492555mm", diameter: "0.700024mm" }), jsx("platedhole", { pcbRotation: 90, portHints: ["pin13"], pcbX: "-4.324985mm", pcbY: "1.57511755mm", holeWidth: "0.5999988mm", holeHeight: "1.499997mm", outerWidth: "1.0999978mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { pcbRotation: 90, portHints: ["pin14"], pcbX: "4.324985mm", pcbY: "1.57511755mm", holeWidth: "0.5999988mm", holeHeight: "1.499997mm", outerWidth: "1.0999978mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { pcbRotation: 90, portHints: ["pin15"], pcbX: "-4.324985mm", pcbY: "-2.62502645mm", holeWidth: "0.5999988mm", holeHeight: "1.1999976mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("platedhole", { pcbRotation: 90, portHints: ["pin16"], pcbX: "4.324985mm", pcbY: "-2.62502645mm", holeWidth: "0.5999988mm", holeHeight: "1.1999976mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-3.200019mm", pcbY: "2.12502755mm", width: "0.5500116mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-2.399919mm", pcbY: "2.12502755mm", width: "0.5500116mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-1.749933mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.249807mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-0.749935mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-0.250063mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "0.250063mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "0.749935mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "1.250061mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "1.750187mm", pcbY: "2.12502755mm", width: "0.2999994mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "2.400173mm", pcbY: "2.12502755mm", width: "0.5500116mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "3.200019mm", pcbY: "2.12502755mm", width: "0.5500116mm", height: "1.0999978mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 4.5720761999999695, "y": -1.646948650000013 }, { "x": 4.5720761999999695, "y": 0.34700214999986656 }] }), jsx("silkscreenpath", { route: [{ "x": 4.5720761999999695, "y": -5.0759740500000134 }, { "x": 4.5720761999999695, "y": -3.6030026500000076 }] }), jsx("silkscreenpath", { route: [{ "x": -4.499914800000056, "y": -1.6438244500001247 }, { "x": -4.499914800000056, "y": 0.34390335000000505 }] }), jsx("silkscreenpath", { route: [{ "x": -4.499914800000056, "y": -5.224970450000114 }, { "x": -4.499914800000056, "y": -3.6061268500000097 }] }), jsx("silkscreenpath", { route: [{ "x": 4.5000671999999895, "y": -5.224970450000114 }, { "x": -4.499914800000056, "y": -5.224970450000114 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.006731mm", pcbY: "3.68382755mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -5.184331000000043, "y": 2.9338275499999327 }, { "x": 5.170869000000039, "y": 2.9338275499999327 }, { "x": 5.170869000000039, "y": -5.490972450000072 }, { "x": -5.184331000000043, "y": -5.490972450000072 }, { "x": -5.184331000000043, "y": 2.9338275499999327 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2765186.obj?uuid=4ee8413127e64716b804db03d4b340ae",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2765186.step?uuid=4ee8413127e64716b804db03d4b340ae",
pcbRotationOffset: 0,
modelOriginPosition: { x: -12699999956566899e-21, y: 1.5749970500000927, z: -1.6800018 },
}, ...props }));
};
var sample001_circuit = () => (jsxs("board", { width: "30mm", height: "36mm", routingDisabled: true, children: [jsx("chip", { name: "U1", footprint: "qfn32", doNotPlace: true, 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 },
} }), jsx(USBC, { name: "USBC1", pcbRotation: 90, pcbX: 11, pcbY: 0 }), jsx("trace", { from: ".USBC1 > .DP1", to: ".U1 > .pin25" }), jsx("trace", { from: ".USBC1 > .DP2", to: ".U1 > .pin26" })] }));
export { sample001_circuit as default };