pcb-rnd knowledge pool
Get a tEDAx netlist from a gschem schematic.
gaf_tedax by Alain V. on 2017-12-29 | Tags: howto, format, tEDAx, schematics, netlist, xorn, gschem, geda, gaf |
Abstract: How to get a tEDAx netlist using "xorn netlist" command
tEDAx netlist back-end has been recently added to gEDA xorn netlister.
This is a step-by-step description of commands/actions needed to get such a netlist, out of a gschem schematic.
- Prepare a proper development environment
- Install gEDA from source
- Get a schematic
-
Perform the
netlist generation
using
xorn
The Linux environment is Fedora 27, and some commands might need adaptation depending on the distribution.
Assumption is user
aa
wants to locally install the
suite in
/home/aa/local
.
Prepare the development environment
gEDA needs GTK2, cairo, GUILE and Python2 for xorn. Check your system against pre-requisites, some commands such as
dnf install guile-devel guile-cairo-devel dnf install python2-develmight be needed.
Install "latest" git version of gEDA
- Create an empty directory where you can host the source code
-
Create a local copy (clone) of
development repository
git clone git://git.geda-project.org/geda-gaf
Result: you have a localgeda-gaf
directory, connected to the git repository. You might catch the latest updates by issuinggit pull
command inside this directory. -
You might need to add the file
gnet_tedax.py
ingeda-gaf/xorn/src/backend/Makefile.am
, if it is not in the list of back-ends. -
Generate the ./configure script
./autogen.sh
-
Configure gaf according your mood (configure use autotools)
./configure --help ./configure --prefix=/home/aa/local
-
Check configuration results, then compile the project
make -s
-
If compilation is a success, install locally
make install
-
Let your environment get access to the newly installed binary programs.
(use
$PATH
environment variable, or absolute path) -
Check if tEDAx back-end is known from xorn
xorn netlist --list-backends
You might use the schematic
test/cluster/elem/untitled.sch
or whatever gEDA schematic
gschem
can handle.
xorn netlist -o test/cluster/elem/untitled.tedax -g tedax \ --symbol-library=/home/aa/local/share/gEDA/sym/analog \ --symbol-library=/home/aa/local/share/gEDA/sym/titleblock \ test/cluster/elem/untitled.sch
Please note: Since there are no default paths and no configuration files are read, you will have to specify all symbol and source paths on the command line.