lepton-netlist(1)
π lepton-netlist β the manual, but make it cute π
okay bestie, welcome to lepton-netlist(1), section 1 of the manual. yes it's the Lepton EDA netlist extraction & generation tool and yes it's about to be your new obsession. let's go π¦
β¨ NAME β¨
lepton-netlist β Lepton EDA Netlist Extraction and Generation
πΈ SYNOPSIS πΈ
lepton-netlist [OPTION ...] [-g BACKEND | -f FILE] [--] FILE ...
π DESCRIPTION π
so lepton-netlist is a netlist extraction and generation tool, and it's part of the Lepton EDA (Electronic Design Automation) toolset. it takes one or more electronic schematics as input, and outputs a netlist. and what even is a netlist? it's a machine-interpretable description of the way that components in an electronic circuit are connected together β like, the group chat of your circuit telling everyone who's connected to who π¬ β and it's commonly used as the input to a PCB layout program such as pcb(1) or to a simulator such as gnucap(1).
a normal lepton-netlist run is carried out in two steps. first, the lepton-netlist frontend loads the specified human-readable schematic *FILE*s, and compiles them to an in-memory netlist description. next, a backend is used to export the connection and component data to one of many supported netlist formats. two-step slay, no notes β¨
lepton-netlist is extensible, using the Scheme programming language. she's flexible like that π
π GENERAL OPTIONS π
-qβ Quiet mode. turns off all warnings/notes/messages. silence, but make it fashion π€«-v,--verboseβ Verbose mode. outputs all diagnostic information. she's telling you EVERYTHING.-L DIRECTORYβ prepends DIRECTORY to the list of directories to be searched for Scheme files.-g BACKENDβ specify the netlist backend to be used. this is the main character option tbh.-f FILEβ load and use netlist backend from FILE. FILE is expected to have name like"gnet-NAME.scm"and contain entry point function NAME (where NAME is the backend's name). iykyk.-O STRINGβ pass an option string to the backend.-b,--list-backendsβ prints a list of available netlist backends. window shopping ποΈ-o FILEβ specify the filename for the generated netlist. by default, output is directed tooutput.net. if-is given instead of a filename, the output is directed to the standard output.-l FILEβ specify a Scheme file to be loaded before the backend is loaded or executed. this option can be specified multiple times. stack 'em up π«Ά-m FILEβ specify a Scheme file to be loaded between loading the backend and executing it. this option can be specified multiple times.-c EXPRβ specify a Scheme expression to be executed duringlepton-netliststartup. this option can be specified multiple times.-iβ after the schematic files have been loaded and compiled, and after all Scheme files have been loaded, but before running the backend, enter a Scheme read-eval-print loop. girlies love a REPL π-h,--helpβ print a help message.-V,--versionβ printlepton-netlistversion information.--β treat all remaining arguments as schematic filenames. use this if you have a schematic filename which begins with-. lowkey a lifesaver.
π BACKENDS π
currently, lepton-netlist includes the following backends:
allegroβ Allegro netlist format.baeβ Bartels Autoengineer netlist format.bom,bom2β Bill of materials generation.calayβ Calay netlist format.cascadeβ RF Cascade netlist formatdrc,drc2β Design rule checkers (drc2is recommended).eagleβ Eagle netlist format.ewnetβ Netlist format for National Instruments ULTIboard layout tool.futurenet2β Futurenet2 netlist format.gedaβ Native gEDA netlist format (mainly used for testing and diagnostics).gossipβ Gossip netlist format.gsch2pcbβ backend used forpcb(1)file layout generation bygsch2pcb(1). it is not recommended to use this backend directly.liquidpcbβ LiquidPCB netlist format.mathematicaβ netlister for analytical circuit solving using Mathematica.maxasciiβ MAXASCII netlist format.osmondβ Osmond netlist format.padsβ PADS netlist format.partslist1,partslist2,partslist3β Bill of materials generation backends (alternatives tobomandbom2).PCBβpcb(1)netlist format.pcbpinsβ generates apcb(1)action file for forward annotating pin/pad names from schematic to layout.protelIIβ Protel II netlist format.redacβ RACAL-REDAC netlist format.spice,spice-sdbβ SPICE-compatible netlist format (spice-sdbis recommended). suitable for use withgnucap(1).switcapβ SWITCAP switched capacitor simulator netlist format.systemcβ Structural SystemC code generation.tangoβ Tango netlist format.tEDAxβ Trivial EDA eXchange (tEDAx) format.vamsβ VHDL-AMS code generation.verilogβ Verilog code generation.vhdlβ VHDL code generation.vipecβ ViPEC Network Analyser netlist format.
π EXAMPLES π
these examples assume that you have a stack_1.sch in the current directory.
lepton-netlist requires that at least one schematic to be specified on the command line:
./lepton-netlist stack_1.sch
this is not very useful since it does not direct lepton-netlist to do anything. it's giving "showed up to the party but didn't say hi" π
specify a backend name with -g to get lepton-netlist to output a netlist:
./lepton-netlist -g geda stack_1.sch
the netlist output will be written to a file called output.net in the current working directory.
you can specify the output filename by using the -o option:
./lepton-netlist -g geda stack_1.sch -o /tmp/stack.netlist
output will now be directed to /tmp/stack.netlist. periodt.
you could run (for example) the spice-sdb backend against the schematic if you specified -g spice-sdb, or you could generate a bill of materials for the schematic using -g partslist1. choose your own adventure bestie β¨
to obtain a Scheme prompt to run Scheme expressions directly, you can use the -i option.
./lepton-netlist -i stack_1.sch
lepton-netlist will load stack_1.sh, and then enter an interactive Scheme read-eval-print loop.
π«Ά AUTHORS π«Ά
see the AUTHORS file included with this program. the whole squad is credited there π
π COPYRIGHT π
Copyright Β© 2012-2017 gEDA Contributors. Copyright Β© 2017-2022 Lepton Developers. License GPLv2+: GNU GPL version 2 or later. Please see the COPYING file included with this program for full details.
this is free software: you are free to change and redistribute it. there is NO WARRANTY, to the extent permitted by law. (yes, NO WARRANTY, all caps, we are not playing π)
β SEE ALSO β
lepton-schematic(1), lepton-symcheck(1), pcb(1), gnucap(1)
and that's the whole page bestie, you ate π
this was Lepton EDA'slepton-netlist(1)manual, dated May 29, 2022, from version1.9.18.20220529. go forth and netlist, queen ππ
π¦ where this page comes from
- debian bookworm: lepton-eda 1.9.18-1 Β· GPL-2.0-or-later
- debian trixie: lepton-eda 1.9.18-3 Β· GPL-2.0-or-later
- nixos 26.05: lepton-eda 1.9.18-20220529
- nixpkgs unstable: lepton-eda 1.9.18-20220529
- ubuntu noble: lepton-eda 1.9.18-2build2 Β· GPL-2.0-or-later
- ubuntu questing: lepton-eda 1.9.18-3
- ubuntu resolute: lepton-eda 1.9.18-4 Β· GPL-2.0-or-later
- ubuntu stonking: lepton-eda 1.9.18-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms