Tutorial 23 of 23
Check pin types and exchange KiCad netlists
Intermediate 12 min
Run Ohmforge's typed-pin electrical rules check with power flags and no-connect flags, export the schematic as a KiCad netlist with footprints, and import KiCad netlists to simulate them.
Ohmforge simulates circuits; KiCad lays out circuit boards. This tutorial shows the features that connect them: an electrical rules check (ERC) with typed pins that catches wiring mistakes before you build, a KiCad netlist export that hands the finished schematic to the KiCad PCB editor, and a KiCad netlist import that brings a KiCad circuit into Ohmforge for simulation.
How typed pins work
Every component pin in Ohmforge has an electrical type:
- Passive: resistors, capacitors, inductors, diodes, LEDs, transistors, switches and other discrete parts.
- Input and Output: gate inputs and outputs, op-amp and comparator inputs and outputs, the 555's trigger, threshold and reset pins.
- Power input: the supply pins of the real op-amp, the comparator and the 555 timer.
- Power output: both terminals of voltage sources, batteries, bench supplies and the output of a voltage-controlled voltage source.
- Open collector: the 555's discharge pin.
The check compares every pair of pins on one net in a conflict matrix. Two outputs, or an output on a battery terminal, are errors because they drive the net against each other. An output and a tri-state or bidirectional pin is a warning. Inputs and passive pins never conflict with anything.
On top of that, three drive rules look at each net:
- An input needs another pin that can set its level: an output, a passive part, a source terminal or an open-collector pin.
- A power input needs a power output on its net. A resistor between a battery and a supply pin is not enough.
- A net driven only by open-collector pins needs a pull-up or pull-down part, otherwise it never goes high.
On the ground net, missing drivers are warnings, not errors: the ground symbol is the simulation reference, not a supply.
Run the check
- Open the Logic half-adder template.
- Draw a wire from the output of the XOR gate U1 to the output of the AND gate U2.
- Choose Connectivity review: the check-mark button in the toolbar, or Simulate → Connectivity review….
The section Electrical rules check (typed pins) shows the number of errors, warnings and checked pins. Each finding names the pins and their types, for example U1.Y (output) and U2.Y (output) share a net. Show U1 closes the dialog, selects the gate and centres the canvas on the pin.

Open Pin conflict matrix below the findings to see the full table of which pin types may share a net. Undo the wire with Ctrl+Z and open the review again: the error is gone.
Voltage sources get one more pair of checks. A source with both terminals on one net is reported as shorted. Two sources on exactly the same pair of nets are reported as connected in parallel. Batteries stacked in series, or several supplies sharing ground, are normal and not reported.
Power flags, no-connect flags and pin types
Real boards are often powered through a connector, and some chip pins stay unused on purpose. Two markers in the Wiring section of the part library tell the check about that:
- A Power flag on a net says the net is supplied from outside the schematic. Power inputs and inputs on that net count as supplied, so a 555 fed from a connector is no longer reported as unpowered. A power flag on ground also clears the ground-net warnings.
- A No-connect flag on a pin says the pin stays open on purpose. The rules check no longer reports the pin as undriven, and the connectivity review no longer lists it as unconnected.
Place the flag directly on the pin, like a ground symbol. A no-connect flag on a net that connects two or more pins, and a flag that touches no component pin, are reported as warnings, because they usually mean a wire went to the wrong place. Neither marker changes the simulation, the bill of materials or the netlist's components.
When a pin of your real chip behaves differently from Ohmforge's simulation symbol, select the part and open Pins & nets in the Properties panel. Each pin has a type list: (catalog) keeps the built-in type, any other choice replaces it for the rules check and the KiCad netlist. The change is one step you can undo and is saved with the project; renaming the part keeps it, deleting the part removes it.

Export a KiCad netlist
- Open the LED with series resistor template.
- Choose File → Export… (Ctrl+E) and then KiCad netlist (.net).
- Type a footprint for each component in Library:Footprint form, for example
Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontalfor R1 orLED_THT:LED_D5.0mmfor D1. - Choose Download .net.

Save footprints stores the footprints with the project as one step you can undo; Download .net saves them too. The Preview shows the netlist exactly as it is written. In KiCad, open an empty board in the PCB editor and import the file with File → Import → Netlist….
What ends up in the file:
- One component per part with reference, value, footprint and a stable time stamp, so re-importing an updated netlist keeps the placed footprints linked.
- Ground becomes the net GND, labelled nets keep their label, and other nets are named after their first pin, such as
Net-(R1-Pad1). - Pin numbers: diodes and LEDs cathode 1 and anode 2, transistors base/collector/emitter and gate/drain/source as 1/2/3, the 555 timer in DIP-8 order, other parts in their drawing order. Check that every footprint's pads match, especially for transistors.
- Instruments such as the bench supply, the function generator and logic probes are left out, because they are not parts on the board. Tick Include instruments if you need them, or add a connector in KiCad where they attach.
- A pin with a no-connect flag is written with KiCad's
+no_connectmark, a changed pin type replaces the type on that pin, and settings the value text does not show (a closed switch, a battery's internal resistance) travel in a component field namedOhmforge.Params. Power flags are not written, just as KiCad leaves its own power flags out of netlists.
Import a KiCad netlist
- In KiCad's schematic editor choose File → Export → Netlist…, keep the KiCad format and save the .net file.
- In Ohmforge choose File → Import KiCad netlist… and pick the file with Choose a .net file…, or paste its text. File → Open… also recognises .net files.
- Check the table, then choose Open as new project.

The table shows how every reference was matched. Netlists from Ohmforge come back exactly: the same parts, values, settings, footprints, no-connect flags and pin types, and exporting them again gives the same file. From KiCad's own libraries, symbols such as R, C, C_Polarized, L, D, LED, D_Zener, Q_NPN_…, Q_PMOS_…, R_Potentiometer, Battery, Fuse, SW_Push and the NE555 family are matched by name, and their pins by their names (the 555's TR, Q, R and CV become TRIG, OUT, RESET and CTRL). Parts without a simulation model, like connectors and microcontrollers, are left out and listed; their nets stay labelled on the imported parts.
The netlist has no drawing positions, so the parts appear in a grid, each pin with a short wire and a net label carrying the KiCad net name. With Placement: Connected parts close together (the default) parts that share nets sit in neighbouring grid cells; the line under the choice compares the net span with the plain grid. Grid in reference order keeps R1, R2, R3 … in reading order. The net GND becomes ground symbols, and pins that KiCad marked as not connected get a no-connect flag. Before you simulate, look at the messages: if the supply came through a connector that was left out, add a battery or a bench supply, or at least a power flag for the rules check.
KiCad simulation fields. Symbols that carry KiCad's simulation model fields are imported even without a known symbol name: Sim.Device R, C, L, D, NPN, PNP, NMOS, PMOS, V or I chooses the part, Sim.Params sets the value (r=, c=, l=) or the source waveform (DC, SIN, PULSE, PWL) and wins over the Value field just as in KiCad, Sim.Name picks the built-in model of the same name (for example 1N4007 or BC547B; other models fall back to the default with a message), Sim.Pins sets which symbol pin is the anode, base or plus terminal, and parts excluded from simulation are left out. The Matched by column says KiCad simulation model for these parts.

From a script
All three features are also tools with a JSON API and MCP: Schematic Electrical Rules Check (Typed Pins) (ohmforge-pin-erc) and KiCad Netlist Exporter (ohmforge-kicad-netlist) take the same .ohmforge.json project, and KiCad Netlist Importer (ohmforge-kicad-netlist-import) takes the .net text and returns the project. They use the same engines and return the same results as the app. See automate with the API and MCP.
Good to know
- Pin types describe Ohmforge's built-in simulation symbols, not a specific physical chip. The check does not know logic families, voltage levels, ratings or timing; no findings does not prove a circuit correct or safe.
- The older Output conflict review in the same dialog only covers logic gates and the comparator and stays unchanged for scripts that already use it.
- The netlist refers to a symbol library called
ohmforge. KiCad's PCB editor only needs the footprints; the library name is informational. - The importer reads netlists only, not KiCad schematic files (.kicad_sch) or KiCad's XML netlist, and accepts up to 500 components and 5000 nets. Imported parts use Ohmforge's idealised simulation models; check values and models before you trust a result.
Ready to try it?