gnetlist-legacy(1)

๐Ÿ“ฆ version 1.10.2, in nixos 26.05

โœจ NAME โœจ

gnetlist-legacy โ€” gEDA/gaf Netlist Extraction and Generation, and honestly? It's giving main character energy ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

gnetlist-legacy [OPTION ...] [-g BACKEND] [--] FILE ...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Okay so bestie, gnetlist-legacy is this netlist extraction and generation tool, and it's literally part of the gEDA (GPL Electronic Design Automation) toolset. The way it works is: you feed it one or more electronic schematics as input, and it outputs a netlist. And a netlist is just a machine-interpretable description of how the components in an electronic circuit are connected together โ€” it's commonly used as the input to a PCB layout program like pcb(1) or to a simulator like gnucap(1). Iconic, right? ๐Ÿ”ฅ

A normal gnetlist-legacy run happens in two steps, no cap. First, the gnetlist-legacy 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. Slay โœจ

And the best part? gnetlist-legacy is extensible, using the Scheme programming language. Obsessed ๐Ÿ’–


๐ŸŽ€ GENERAL OPTIONS ๐ŸŽ€

  • -q โ€” Quiet mode. Turns off all warnings/notes/messages. Like, shush mode ๐Ÿคซ
  • -v, --verbose โ€” Verbose mode. Output all diagnostic information. The way it just tells you *everything*โ€ฆ we love a transparent king ๐Ÿ‘‘
  • -L DIRECTORY โ€” Prepend DIRECTORY to the list of directories to be searched for Scheme files. Lowkey essential for finding your stuff ๐Ÿ”
  • -g BACKEND โ€” Specify the netlist backend to be used. This is the moment of truth, bestie ๐ŸŽฏ
  • -O STRING โ€” Pass an option string to the backend. Giving the backend a little extra flavor โœจ
  • --list-backends โ€” Print a list of available netlist backends. Vibe check on what's available ๐Ÿ“‹
  • -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 flex your netlist right in the terminal ๐Ÿ’…
  • -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. Timing is everything, periodt โฐ
  • -c EXPR โ€” Specify a Scheme expression to be executed during gnetlist-legacy startup. This option can be specified multiple times. Let it cook ๐Ÿ”ฅ
  • -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. Interactive era ๐Ÿ’ฌ
  • -h, --help โ€” Print a help message. When in doubt, ask for help ๐Ÿซถ
  • -V, --version โ€” Print gnetlist-legacy version information. Know your roots ๐ŸŒฑ
  • -- โ€” Treat all remaining arguments as schematic filenames. Use this if you have a schematic filename which begins with -. So that little dash doesn't get confused for an option, iykyk ๐Ÿ™ˆ

๐ŸŒˆ BACKENDS ๐ŸŒˆ

Currently, gnetlist-legacy includes the following backends. Let's go through the whole roster bestie, no skipping ๐Ÿ‘‘

  • allegro โ€” Allegro netlist format. Slay ๐Ÿ’…
  • bae โ€” Bartels Autoengineer netlist format. Serving looks โœจ
  • bom, bom2 โ€” Bill of materials generation. The way it just lists your componentsโ€ฆ iconic ๐Ÿงพ
  • calay โ€” Calay netlist format. We see you ๐Ÿ‘€
  • cascade โ€” RF Cascade netlist format. Her vibe is unmatched ๐ŸŒŠ
  • drc, drc2 โ€” Design rule checkers (drc2 is recommended). Trust the recommendation, bestie โœ…
  • eagle โ€” Eagle netlist format. Soaring ๐Ÿฆ…
  • ewnet โ€” Netlist format for National Instruments ULTIboard layout tool. International queen ๐ŸŒ
  • futurenet2 โ€” Futurenet2 netlist format. From the future, literally ๐Ÿ”ฎ
  • geda โ€” Native gEDA netlist format (mainly 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. Ngl, just don't, bestie. Trust ๐Ÿšซ
  • liquidpcb โ€” LiquidPCB netlist format. Fluid and fierce ๐Ÿ’ง
  • mathematica โ€” Netlister for analytical circuit solving using Mathematica. Big brain energy ๐Ÿง 
  • maxascii โ€” MAXASCII netlist format. Maximum ASCII, maximum slay ๐Ÿ’ฅ
  • osmond โ€” Osmond netlist format. Gorgeous name, gorgeous output ๐Ÿ’–
  • pads โ€” PADS netlist format. Soft but powerful ๐Ÿพ
  • partslist1, partslist2, partslist3 โ€” Bill of materials generation backends (alternatives to bom and bom2). The alternates ate, fr fr ๐Ÿ’…
  • PCB โ€” pcb(1) netlist format. The classic, the blueprint ๐Ÿ‘‘
  • pcbpins โ€” Generates a pcb(1) action file for forward annotating pin/pad names from schematic to layout. Annotation era โœ๏ธ
  • protelII โ€” Protel II netlist format. Retro but relevant ๐ŸŽ€
  • redac โ€” RACAL-REDAC netlist format. Serving RACAL energy ๐Ÿ’œ
  • spice, spice-sdb โ€” SPICE-compatible netlist format (spice-sdb is recommended). Suitable for use with gnucap(1). Spice girls assemble ๐ŸŒถ๏ธ
  • switcap โ€” SWITCAP switched capacitor simulator netlist format. Switched on โšก
  • systemc โ€” Structural SystemC code generation. SystemC but make it structural ๐Ÿงฌ
  • tango โ€” Tango netlist format. Dance like nobody's watching ๐Ÿ’ƒ
  • vams โ€” VHDL-AMS code generation. Analog and mixed-signal realness ๐ŸŽ›๏ธ
  • verilog โ€” Verilog code generation. Hardware description slay ๐Ÿ–ฅ๏ธ
  • vhdl โ€” VHDL code generation. She's a classic ๐Ÿ‘‘
  • vipec โ€” ViPEC Network Analyser netlist format. VIP status only ๐Ÿ’Ž

โญ EXAMPLES โญ

These examples assume that you have a stack_1.sch in the current directory. Bestie, make sure it's there ๐Ÿ“

gnetlist-legacy requires that at least one schematic be specified on the command line:

./gnetlist-legacy stack_1.sch

This is not very useful since it does not direct gnetlist-legacy to do anything. Lowkey wasted potential ๐Ÿ˜ญ

Specify a backend name with -g to get gnetlist-legacy to output a netlist:

./gnetlist-legacy -g geda stack_1.sch

The netlist output will be written to a file called output.net in the current working directory. Default queen ๐Ÿ’…

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

./gnetlist-legacy -g geda stack_1.sch -o /tmp/stack.netlist

Output will now be directed to /tmp/stack.netlist. Custom path, custom vibe โœจ

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. Options on options ๐ŸŽ€

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

./gnetlist-legacy -i stack_1.sch

gnetlist-legacy will load stack_1.sh, and then enter an interactive Scheme read-eval-print loop. Interactive bestie era ๐Ÿ’ฌ๐Ÿซถ


๐Ÿงš ENVIRONMENT ๐Ÿงš

  • GEDADATA โ€” specifies the search directory for Scheme and rc files. The default is ${prefix}/share/gEDA. That's where the magic lives โœจ
  • GEDADATARC โ€” specifies the search directory for rc files. The default is $GEDADATA. Riding on the coattails of GEDADATA, we love a dependent queen ๐Ÿ‘‘
  • GEDALOG โ€” specifies the directory to which to write log files. The default is ~/.gEDA/logs. Keep your receipts, bestie ๐Ÿ“

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

See the AUTHORS file included with this program. The OGs deserve credit ๐Ÿซถ


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. Legal queen behavior, no cap ๐Ÿ“œ

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. So like, don't sue if something breaks, bestie. We're all just vibing ๐Ÿ’€


๐ŸŒธ SEE ALSO ๐ŸŒธ

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

Go check out the whole friend group, they're all iconic in their own way ๐Ÿซถ๐Ÿ’–


Later bestie! ๐Ÿ‘‹ This manual page is from the gEDA Project, dated December 16, 2020, version 1.10.2.20201216. Periodt. ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from