Pull-up resistor circuit with dir= orientation hint
A netlist-mode circuit that uses the optional dir= orientation hint to draw the pull-up resistor vertically, showing lightweight layout control on top of automatic placement.
For the embedded engineer
Scenario
An embedded engineer documents a classic active-low input: a pull-up resistor holds the signal high, a push button pulls it to ground, and a small capacitor debounces it. The connectivity is written as a SPICE-style netlist — the engine places everything from the node names — and one optional hint refines the look.
Annotation key
- netlist line —
id node-A node-B value; components that share a node name are wired together.0is ground. dir=down— the optional orientation hint.R1connectsvcctosig; by default the engine would lay it horizontally, but a pull-up reads best drawn vertically from the supply rail down to the signal node, sodir=downrotates just that symbol. Connectivity is unchanged —dir=only rotates the glyph.type=switch— theSW1id prefix is ambiguous, so the component type is made explicit.
How to read
R1 ties sig up to vcc (drawn vertically thanks to dir=down). SW1 and the
debounce cap C1 both go from sig to ground, so the engine recognises them as
shunt legs and drops them beneath the node. Pressing the button shorts sig to
ground, pulling the input low.