Mail Archives: geda-user/2018/03/20/16:57:20
On Mon, 12 Mar 2018, Kai-Martin Knaak wrote:
> This is the gnetlistrc I originally used to set up netlisting:
> --------- $PROJECT/gnetlistrc -------------
> (hierarchy-uref-mangle "enabled")
> (hierarchy-uref-separator "")
> (hierarchy-netname-mangle "enabled")
> (hierarchy-netname-separator "/")
> (hierarchy-netattrib-mangle "disabled")
> (hierarchy-netattrib-separator "/")
> --------------------------------------------
This looks perfectly fine and should work with the current development
version of gEDA/gaf (which I assume you are using).
> With this set-up I get (gda-gaf freshly compiled from git master):
> /-----------------------------------
> $ gnetlist -g PCB lasertreiber_0_master.sch
> WARNING: The RC file function 'hierarchy-uref-mangle' is deprecated.
>
> RC configuration functions will be removed in an upcoming gEDA
> release. Please use configuration files instead.
This warning should probably be removed (or reversed): it refers to the
"new" configuration format which has never been finished. Using these
Scheme procedures is currently the recommended way to configure hierarchy.
> ERROR: no code for module (geda core smob)
This is the actual error message. I'm not sure what exactly went wrong,
but it looks like an issue with the installation of the Guile modules.
I'd suggest removing the current installation of gEDA/gaf, re-installing
(it shouldn't be necessary to re-build the package), and then running
gschem before you invoke gnetlist for the first time (in theory, this
shouldn't matter, but apparently, the order in which packages are loaded
changes the way the packages are compiled--one more reason why I'm not too
fond of Guile). If that doesn't help, try the same plus removing the
Guile cache directories (~/.cache/guile/).
> grep-ing through the source of gnetlist I found a list of hierarchy
> related options in netlist.py . These include
> --hierarchy-refdes-separator
> --hierarchy-netattrib-mangle
> --hierarchy-netname-separator
> So the options I need seem to be available. But how do I activate them?
There are two ways to invoke the netlister: the traditional "gnetlist" and
the new "xorn netlist". When the netlister is invoked as "gnetlist", it
executes the Guile configuration files and gets its information from
there. When it is invoked as "xorn netlist", it does not read any
configuration files but gets its information via the command line (run
"xorn netlist --help" for more infomation).
Both ways of invoking the netlister are (approximately) equivalent; it's a
matter of whether you prefer having a long invocation (e.g. when using
Makefiles) or using a gnetlistrc file.
- Raw text -