skidl.tools.kicad8.gen_schematic module

skidl.tools.kicad8.gen_schematic.gen_schematic(circuit, filepath='.', top_name=get_script_name(), title='SKiDL-Generated Schematic', flatness=0.0, retries=2, **options)[source]

Create a schematic file from a Circuit object.

Parameters:
  • circuit (Circuit) – The Circuit object that will have a schematic generated for it.

  • filepath (str, optional) – The directory where the schematic files are placed. Defaults to “.”.

  • top_name (str, optional) – The name for the top of the circuit hierarchy. Defaults to get_script_name().

  • title (str, optional) – The title of the schematic. Defaults to “SKiDL-Generated Schematic”.

  • flatness (float, optional) – Determines how much the hierarchy is flattened in the schematic. Defaults to 0.0 (completely hierarchical).

  • retries (int, optional) – Number of times to re-try if routing fails. Defaults to 2.

  • options (dict, optional) – Dict of options and values, usually for drawing/debugging.

skidl.tools.kicad8.gen_schematic.node_to_eeschema(node, sheet_tx=Tx())[source]

Convert node circuitry to an EESCHEMA sheet.

Parameters:

sheet_tx (Tx, optional) – Scaling/translation matrix for sheet. Defaults to Tx().

Returns:

EESCHEMA text for the node circuitry.

Return type:

str

skidl.tools.kicad8.gen_schematic.pin_label_to_eeschema(pin, tx)[source]

Create EESCHEMA text of net label attached to a pin.