gsch2pcb(1)
π NAME π
Okay so, gsch2pcb(1) is the manual page for gsch2pcb β Update PCB layouts from gEDA/gaf schematics. Periodt. π
π¦ SYNOPSIS π¦
gsch2pcb [OPTION ...] {PROJECT | FILE ...}
β¨ DESCRIPTION β¨
gsch2pcb is a frontend to gnetlist(1) that aids in creating and updating pcb(1) printed circuit board layouts based on a set of electronic schematics created with gschem(1). No cap, itβs the friend who handles the PCB glow-up. π«Ά
Instead of specifying all options and input gEDA schematic FILEs on the command line, gsch2pcb can use a PROJECT file instead. Lowkey convenient.
First, gsch2pcb runs gnetlist(1) with the PCB backend to create a <name>.net file containing a pcb(1) formatted netlist for the design. Slay. β¨
The second step is to run gnetlist(1) again with the gsch2pcb backend to find any M4(1) elements required by the schematics. Any missing elements are found by searching a set of file element directories. If no <name>.pcb file exists for the design yet, it is created with the required elements; otherwise, any new elements are output to a <name>.new.pcb file. Iconic behavior. π
If a <name>.pcb file exists, it is searched for elements with a non-empty element name with no matching schematic symbol. These elements are removed from the <name>.pcb file, with a backup in a <name>.pcb.bak file. Backup? We love to see it. π
Finally, gnetlist(1) is run a third time with the pcbpins backend to create a <name>.cmd file. This can be loaded into pcb(1) to rename all pin names in the PCB layout to match the schematic. Matching names = main character energy. β¨
π OPTIONS π
-o,--output-name=BASENAMEβ Use output filenamesBASENAME.net,BASENAME.pcb, andBASENAME.new.pcb. By default, the basename of the first schematic file in the list of input files is used. Name it and claim it.-d,--elements-dir=DIRECTORYβ AddDIRECTORYto the list of directories to search for PCB file elements. By default, the following directories are searched if they exist:./packages,/usr/local/share/pcb/newlib,/usr/share/pcb/newlib,/usr/local/lib/pcb_lib,/usr/lib/pcb_lib,/usr/local/pcb_lib. Directory era, highkey.-f,--use-filesβ Force use of file elements in preference to elements generated withM4(1). File elements stay booked. π-s,--skip-m4β Disable element generation usingM4(1)entirely. NoM4(1)today, bestie. π«--m4-file FILEβ Use theM4(1)fileFILEin addition to the default M4 files./pcb.incand~/.pcb/pcb.inc. Extra M4? Obsessed.--m4-pcbdir DIRECTORYβ SetDIRECTORYas the directory wheregsch2pcbshould look forM4(1)files installed bypcb(1). Respect thepcb(1)install location, fr fr.-r,--remove-unfoundβ Donβt include references to unfound elements in the generated.pcbfiles. Use if you wantpcb(1)to be able to load the (incomplete).pcbfile. This is enabled by default. Not me relying on the default, but yes β this is enabled by default.-k,--keep-unfoundβ Keep include references to unfound elements in the generated.pcbfiles. Use if you want to hand edit or otherwise preprocess the generated.pcbfile before runningpcb(1). For the hand-editing girlies. π«Ά-p,--preserveβ Preserve elements in PCB files which are not found in the schematics. Since elements with an empty element name (schematic"refdes") are never deleted, this option is rarely useful. Rarely useful but valid.--gnetlist BACKENDβ In addition to the default backends, rungnetlist(1)with-g BACKEND, with output to<name>.BACKEND. Backend extra credit. β¨--gnetlist-arg ARGβ PassARGas an additional argument tognetlist(1). Feed thegnetlist(1)beast. π--empty-footprint NAMEβ IfNAMEis notnone,gsch2pcbwill not add elements for components with that name to the PCB file. Note that if the omitted components have net connections, they will still appear in the netlist andpcb(1)will warn that they are missing. Important warning, bestie.--fix-elementsβ If a schematic componentβsfootprintattribute is not equal to theDescriptionof the corresponding PCB element, update theDescriptioninstead of replacing the element. Thatβs a glow-up, not a replacement β it ate. π-q,--quietβ Donβt output information on steps to take after runninggsch2pcb. Quiet mode = no yapping; vibe check passed. π€«-v,--verboseβ Output extra debugging information. This option can be specified twice (-v -v) to obtain additional debugging for file elements. Double-v= extra detective mode. π-h,--helpβ Print a help message. Help is always a vibe. π«Ά-V,--versionβ Printgsch2pcbversion information. Version check, slay. π
π¦ PROJECT FILES π¦
A gsch2pcb project file is a file (not ending in .sch) containing a list of schematics to process and some options. Any long-form command line option can appear in the project file with the leading -- removed, with the exception of --gnetlist-arg, --fix-elements, --verbose, and --version. Schematics should be listed on a line beginning with schematics. iykyk.
An example project file might look like:
schematics partA.sch partB.sch
output-name design
Honestly? Copy-paste energy, but make it yours. π
π ENVIRONMENT π
GNETLISTβ specifies thegnetlist(1)program to run. The default isgnetlist. Set it and forget it.
π§ AUTHORS π§
See the AUTHORS file included with this program. The receipts are in there. π«Ά
π COPYRIGHT π
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.
ngl, free software rights are literally the blueprint. π«Ά
π SEE ALSO π
gschem(1), gnetlist(1), pcb(1) β the whole friend group. fr fr. π
Stay iconic, bestie π
β from the gEDA Project, December 16, 2020, version 1.10.2.20201216. π«Άβ¨
π¦ where this page comes from
- nixos 26.05: geda 1.10.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms