Mailing list archives : pcb-rnd

ID:5647
From:pc...@cuvoodoo.info
Date:Mon, 16 May 2022 12:25:41 +0200
Subject:[pcb-rnd] RFC: multi-sheet netlist
replies: 5648 from Gabriel Paubert <pa...@iram.es> , 5649 from rn...@igor2.repo.hu , 5651 from ka...@aspodata.se
 
--aYQiniFx0v78ja+N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
 
gEDA/gschem and lepton-eda/schematic support hierarchical design (with multiple/sub-sheets).
this is explained in http://wiki.geda-project.org/geda:faq-gschem?s[]=gtag&s[]=sch#can_gschem_do_hierarchical_designs_with_sub_sheets and an example is shipped with these software in gTAG.sch.
 
I tried for the first time this feature because may schematic became too large, unreadable (on one sheet), and parts are just repeated (e.g. multiple ports).
but I have an issue with how netlist are handled with subsheets.
I attached a basic example.
In the tEDAx netlist, components have a unique refdes, using the "_sheet-refdes_/" prefix/path.
pcb-rnd treats the name as a string, and does not have the concept of hierarchical design/name.
thus when I reuse a component (with the same refdes) on multiple sheets (because the connection of one of the pins only makes sense in this sheet), then pcb-rnd imports multiple times the footprint (one for each name, which includes the path).
this component re-use also applies to multi-part symbols (e.g. dual-opamp).
 
the same prefixing is applied to netnames.
thus the GND symbols (using the GND netname) are not interconnected across sheets (this also applies to the provided gTAG.sch example).
 
a kind of solution is to use pins on the symbol for the subsheet, and use and INPUT/OUTPUT symbols in the subsheet.
but doing it for all nets (e.g. VCC/GND) just clutters the sheet symbol, and kind of goes against the concept of defining/using netnames.
plus, this does not solve the refdes reuse issue.
 
for now my solution is to use a netlist intermediate (pcb-rnd will not import the schematic directly), and have a script that removes all prefix/path.
but maybe I just did not understand correctly how to do proper hierarchical design (I really did not find a lot of documentation).
maybe tEDAx can be extended to integrate the concept, or interpret the '/' in the name.
any comments/suggestion is welcome.
 
--aYQiniFx0v78ja+N
Content-Type: application/x-bzip2
Content-Disposition: attachment; filename="subsheet_examples.tar.bz2"
Content-Transfer-Encoding: base64
 
QlpoNjFBWSZTWbFDzXEABXz/lN4wB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2fQc
M429I5uOcAriM5RyPqekpq9cZRyb1YedU4R7UnPZ/mRSP90jqpkU14zKfk7s26Xkst5HftGy
o14ulGRk5bydY4o3AmkdKEBBYJVEKkUBVdAkfID0vKq9YFpxVECyEQwXG83TfVJ8k5OQyPFr
zTdijvmWxJRzNSsW2KP4vGN9qxNczeGy0eEW7uxm+EVuTJ4zfLd83YjHVz9xvodOqTyJP/F3
JFOFCQsUPNcQ
 
--aYQiniFx0v78ja+N--
 

Reply subtree:
5647 [pcb-rnd] RFC: multi-sheet netlist from pc...@cuvoodoo.info
  5648 Re: [pcb-rnd] RFC: multi-sheet netlist from Gabriel Paubert <pa...@iram.es>
    5655 Re: [pcb-rnd] RFC: multi-sheet netlist from pc...@cuvoodoo.info
      5656 Re: [pcb-rnd] RFC: multi-sheet netlist from Nicklas SB Karlsson <nk...@nksb.eu>
      5657 Re: [pcb-rnd] RFC: multi-sheet netlist from Roland Lutz <rl...@hedmen.org>
      5671 Re: [pcb-rnd] RFC: multi-sheet netlist from ka...@aspodata.se
  5657 Re: [pcb-rnd] RFC: multi-sheet netlist from Roland Lutz <rl...@hedmen.org>
  5671 Re: [pcb-rnd] RFC: multi-sheet netlist from ka...@aspodata.se