← Back to community index
# support·Active

astrimid - I wonder why mosfet doesn't have con...

I wonder why <mosfet doesn't have connections while <resistor does?

Started by astrimidJul 11, 20268 messages

Discussion

Last active 2 days ago · plain text
astrimidoriginal post
I wonder why <mosfet> doesn't have connections while <resistor> does?
astrimid
And what's the conceptual difference between connections property and <trace>?
Abse
connections and `<trace>` are almost the same , trace has some props like `name` that connections don't offer tho, and for the `<mosfet>` it should have them if not that is a bug, I will check the issue thanks for the report
astrimid
Don't see connections anywhere in common props nor in mosfet props: https://github.com/tscircuit/props/blob/a151076e871b7dc5dc2795a181c941a32f7dad35/lib/components/mosfet.ts#L8-L12 export interface MosfetProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> { channelType: "n" | "p" mosfetMode: "enhancement" | "depletion" } CommonComponentProps export interface CommonComponentProps extends CommonLayoutProps { key?: any; name: string; pinAttributes?: Record<PinLabel, PinAttributeMap>; supplierPartNumbers?: SupplierPartNumbers; cadModel?: CadModelProp; children?: any; symbolName?: string; doNotPlace?: boolean; /** * This component will be drawn as part of this section e.g. "Power" */ schSectionName?: string; /** * This component will be drawn as part of this sheet e.g. "Main" */ schSheetName?: string; }
astrimid
is `pinAttributes` the property I need?
astrimid
So I should just use <trace>?
Seve
Just use trace for now, but will definitely introduce connections to mosfet! Fwiw trace is usually better because of the ability to name the net or sometimes specify a custom width
Seve
fwiw i THINK mosfet got connections today

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗