gnetlist(1)

๐Ÿ“ฆ version 1.10.2, in nixos 26.05

๐Ÿ’– gnetlist โ€” the netlist extraction and generation queen ๐Ÿ’–

okay so bestie, welcome to gnetlist, part of the gEDA (GPL Electronic Design Automation) toolset, manual page from the gEDA/gaf collection, version 1.10.2.20201216. she's iconic, she's essential, and she's here to turn your schematics into netlists. periodt. ๐Ÿ’…โœจ


๐ŸŒธ NAME ๐ŸŒธ

gnetlist โ€” gEDA/gaf Netlist Extraction and Generation. no cap, that's literally her whole brand.


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

gnetlist [OPTION...] [-p BACKEND|-g BACKEND] [--] FILE...

like, that's the vibe check right there. options, a backend (Python or Scheme, pick your fighter), then your schematic files. easy. ๐ŸŽ€


โœจ DESCRIPTION โœจ

okay so gnetlist is a netlist extraction and generation tool, and she's part of the gEDA (GPL Electronic Design Automation) toolset. think of her as the main character who takes one or multiple electronic schematics as input and outputs a netlist. and what's a netlist? it's a machine-interpretable description of the way that components in an electronic circuit are connected together โ€” 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). literally the glue between your design and the real world. ๐ŸŒˆ

a normal gnetlist run is carried out in two steps. first, the gnetlist frontend loads the specified human-readable schematic FILEs and compiles them to an in-memory netlist description. then, a BACKEND is used to export the connection and component data to one of many supported netlist formats. two steps, no stress, she ate. ๐Ÿ’–

and the best part? gnetlist is extensible in Python and Scheme. so you can add your own backends and make her do even more. obsessed. ๐Ÿงš


๐ŸŽ€ GENERAL OPTIONS ๐ŸŽ€

  • -q โ€” Quiet mode. Turns off all warnings/notes/messages. lowkey perfect when you just want her to do her thing in silence. ๐Ÿ™ˆ
  • -v, --verbose โ€” Verbose mode. Output all diagnostic information. she's gonna tell you everything, bestie. ๐Ÿ’€
  • -L DIRECTORY โ€” Prepend DIRECTORY to the list of directories to be searched for Python backends, Scheme backends, and other Scheme files. like adding extra spots to your fave playlist. ๐Ÿ“
  • -p BACKEND โ€” Specify the Python netlist backend to be used. this is your Python girlie. ๐Ÿ
  • -g BACKEND โ€” Specify the Scheme netlist backend to be used. and this is your Scheme girlie. ๐Ÿง 
  • -O STRING โ€” Pass an option string to the backend. give your backend a little note, a little tip, a little STRING. ๐Ÿ’Œ
  • --list-backends โ€” Print a list of available netlist backends. A backend name is prefixed with the letters P and G in brackets if it is available as a Python and as a Scheme backend, respectively. so [P] = Python, [G] = Scheme, and both = she's versatile. ๐Ÿ‘‘
  • -o FILE โ€” Specify the filename for the generated netlist. By default, output is directed to output.net. If - is given instead of a filename, the output is directed to the standard output. so you can pipe her straight into another command, slay. ๐ŸŒŸ
  • -l FILE โ€” Specify a Scheme file to be loaded before the backend is loaded or executed. This option can be specified multiple times. load her up with pre-backend Scheme files, as many as you want. ๐ŸŽ€
  • -m FILE โ€” Specify a Scheme file to be loaded between loading the backend and executing it. This option can be specified multiple times. the in-between moment, the little pause for extra Scheme. ๐Ÿฆ‹
  • -c EXPR โ€” Specify a Scheme expression to be executed during gnetlist startup. This option can be specified multiple times. like a little spell you cast at the beginning. โœจ
  • -i โ€” After the schematic files have been loaded and the netlist generated, enter an interactive Python interpreter. The netlist structure is available as netlist in the local dictionary. literally a Python prompt with your netlist right there. main character energy. ๐Ÿ’ป
  • --report-gui โ€” Report warnings and errors in a GUI dialog. because sometimes you want your problems in a pop-up window. ๐Ÿ˜ญ
  • -h, --help โ€” Print a help message. when you're lost, she'll guide you. ๐Ÿซถ
  • -V, --version โ€” Print gnetlist version information. know your queen's version. ๐Ÿ’…
  • -- โ€” Treat all remaining arguments as schematic filenames. Use this if you have a schematic filename which begins with -. protect her from confusion. ๐Ÿ›ก๏ธ

๐Ÿ”ฅ BACKENDS ๐Ÿ”ฅ

Currently, gnetlist includes the following backends. and honestly? the range. the versatility. she's giving range. ๐ŸŒˆ

  • allegro โ€” Allegro netlist format. ๐ŸŽต
  • bae โ€” Bartels Autoengineer netlist format. ๐Ÿš—
  • bom, bom2 โ€” Bill of materials generation. know exactly what you need to buy. ๐Ÿ›’
  • calay โ€” Calay netlist format. ๐Ÿ“ž
  • cascade โ€” RF Cascade netlist format. ๐Ÿ“ถ
  • drc, drc2 โ€” Design rule checkers (drc2 is recommended). check those rules, bestie. โœ…
  • dumpindent, dumpjson, dumplihata, dumptext, dumpxml โ€” Dump the netlist in various generic formats. the dump squad. ๐Ÿ—‘๏ธโœจ
  • eagle โ€” Eagle netlist format. ๐Ÿฆ…
  • ewnet โ€” Netlist format for National Instruments ULTIboard layout tool. ๐Ÿ‡บ๐Ÿ‡ธ
  • futurenet2 โ€” Futurenet2 netlist format. ๐Ÿ”ฎ
  • geda โ€” Internal gEDA netlist format (used for testing and diagnostics). the home team. ๐Ÿ 
  • gossip โ€” Gossip netlist format. spill the tea. โ˜•
  • gsch2pcb โ€” Backend used for pcb(1) file layout generation by gsch2pcb(1). It is not recommended to use this backend directly. like, let gsch2pcb handle it, okay? ๐Ÿ™…โ€โ™€๏ธ
  • guile โ€” Compatibility layer for old backends written in Scheme. respect the elders. ๐Ÿง“
  • liquidpcb โ€” LiquidPCB netlist format. ๐Ÿ’ง
  • makedpend โ€” Auto-generate dependencies for Makefiles. make dependency management easy. ๐Ÿ› ๏ธ
  • mathematica โ€” Netlister for analytical circuit solving using Mathematica. big brain energy. ๐Ÿงฎ
  • maxascii โ€” MAXASCII netlist format. ๐Ÿ”ค
  • osmond โ€” Osmond netlist format. ๐ŸŠ
  • pads โ€” PADS netlist format. ๐Ÿ“‹
  • partslist1, partslist2, partslist3 โ€” Bill of materials generation backends (alternatives to bom and bom2). more BOM options, more choices. ๐Ÿ“
  • PCB โ€” pcb(1) netlist format. the classic. ๐Ÿ–ฅ๏ธ
  • pcbfwd โ€” Internally used by pcb(1)'s "Import Schematics" mechanism. behind the scenes. ๐ŸŽฌ
  • pcbpins โ€” Generates a pcb(1) action file for forward annotating pin/pad names from schematic to layout. pin it, pad it, annotate it. ๐Ÿ“
  • protelII โ€” Protel II netlist format. ๐Ÿ‘‘
  • redac โ€” RACAL-REDAC netlist format. ๐Ÿ“ก
  • spice, spice-sdb, spice-noqsi โ€” SPICE-compatible netlist format (spice-sdb and spice-noqsi are recommended). Suitable for use with gnucap(1). spice up your simulation life. ๐ŸŒถ๏ธ
  • switcap โ€” SWITCAP switched capacitor simulator netlist format. โšก
  • systemc โ€” Structural SystemC code generation. ๐Ÿงฉ
  • tango โ€” Tango netlist format. ๐Ÿ’ƒ
  • tedax โ€” tEDAx netlist format (used by pcb-rnd(1)). ๐Ÿค–
  • 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 schematic file stack_1.sch in the current directory. okay? okay. let's go. ๐Ÿ’–

gnetlist requires that at least one schematic and either a Python backend, a Scheme backend, or interactive mode are specified on the command line. If a backend name is specified with -p BACKEND (for a Python backend) or -g BACKEND (for a Scheme backend), gnetlist will output a netlist:

gnetlist -p dumptext stack_1.sch

The netlist output will be written to a file called output.net in the current working directory. default behavior, and she ate. โœจ

You can specify the output filename by using the -o option:

gnetlist -p dumptext -o /tmp/stack.netlist stack_1.sch

Output will now be directed to /tmp/stack.netlist. name it and claim it. ๐ŸŽ€

You could run (for example) the spice-sdb backend against the schematic if you specified -p spice-sdb, or you could generate a bill of materials for the schematic using -p partslist1. options, options, options. ๐ŸŒˆ

To obtain a Python prompt to run Python commands directly, you can use the -i option:

gnetlist -i stack_1.sch

gnetlist will load stack_1.sh and then enter an interactive Python interpreter. The netlist structure is available as netlist in the local dictionary. so you can poke around, inspect, and vibe. ๐Ÿ๐Ÿ’ฌ


๐ŸŒธ ENVIRONMENT ๐ŸŒธ

  • GEDADATA โ€” specifies the search directory for Scheme and rc files. The default is ${prefix}/share/gEDA. her home base. ๐Ÿก
  • GEDADATARC โ€” specifies the search directory for rc files. The default is $GEDADATA. follows the leader. ๐Ÿงญ

๐Ÿซถ AUTHORS ๐Ÿซถ

See the AUTHORS file included with this program. the whole squad. ๐Ÿ‘ฏโ€โ™€๏ธ


Copyright ยฉ 1999-2020 gEDA Contributors. 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. like, none. zero. protect yourself. โš ๏ธ


๐Ÿ”— SEE ALSO ๐Ÿ”—

gschem(1), gsymcheck(1), pcb(1), pcb-rnd(1), gnucap(1)


that's the whole page, bestie. now go make some netlists and slay. ๐Ÿ’…โœจ๐ŸŽ€๐Ÿฆ‹๐ŸŒธ๐Ÿ’–

signing off from the gEDA Project โ€” December 16, 2020 โ€” this was gnetlist(1), and she's iconic. periodt. ๐Ÿซถ

๐Ÿ“ฆ where this page comes from