← Back to community index
# support·Active

Vivek Vijayan - Hi guys.. I've one observation...

Hi guys.. I've one observation. This is my high level code. code sample If the modules are defined inside <subcircuit , then the <trace will not connect. If modules are defined inside <group , <trace is connects the ports without any issues. Attached images show both conditions C

Started by Vivek VijayanJul 13, 20264 messages

Discussion

Last active 10 hours ago · plain text
Vivek Vijayanoriginal post
Hi guys.. I've one observation. This is my high level code. ``` export const power_circuit = () => { return ( <board name="main-power-circuit" routingDisabled={true}> <BmsMonitorModule name="monitor_module" schX={0}/> <CurrentSensing name="current_sensing" schX={5}/> <HighVoltagePowerSupply name="hv_supply" schY={5}/> <CommunicationBridge name="com_bridge" schX={5} schY={5}/> <trace name="tr_cvdd" from="monitor_module.CVDD" to="hv_supply.LV_OUT"/> </board> ); }; ``` If the modules are defined inside <subcircuit>, then the <trace> will not connect. If modules are defined inside <group>, <trace> is connects the ports without any issues. Attached images show both conditions **Case 1: module as <group>** ``` export const BmsMonitorModule = ({ name, schX, schY }: BmsMonitorModuleProps) => { return ( <group name={name} schX={schX} schY={schY} showAsSchematicBox> ... </group> ) } ``` **Case 2: module as <subcircuit>** ``` export const BmsMonitorModule = ({ name, schX, schY }: BmsMonitorModuleProps) => { return ( <subcircuit name={name} schX={schX} schY={schY} showAsSchematicBox> ... </subcircuit> ) } ```
Seve
hey yes, use exposedNets
Seve
that will expose nets outside the subcircuit
Seve
subcircuits are isolated by default- this is actually useful in a lot of contexts but can be confusing

Want to add to the conversation?

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