1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
7 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
13 <h1 id=
"requiredforproductioncircuits">Required for production circuits
</h1>
16 <li class=
"level1"><div class=
"li"> hierarchy in schematic and netlist and pcb -- modules that can be reused, arrayed.
</div>
21 The classic example of this is a stereo amplifier. You enter the schematic of an amplifier channel and a second one showing controls and power. You enter a symbol for the unit that points to three schematic pages.
23 <pre class=
"code"> Page
1 is the control/power , Page
2 is the amplifier with macro substitutions of right and U100 for all nets and Refdes, Page
3 is the amplifier with macro substitutions of left and U200 for all nets and Refdes.
26 Extra credit if the number of channels is controlled by an attribute set when you instantiate the unit symbol. This is comparable to the verilog generate command.
</pre>
30 <h2 id=
"intermediatetranslationfileformatvhdledif">intermediate translation file format VHDL? EDIF?
</h2>
35 <h4 id=
"schematiclayoutlogicsimanalogsimetc">Schematic, Layout, logic sim, analog sim, etc
</h4>
39 In an *AMS language, nets have types. It
's not just
"wire
". The schematic needs to be extended so that pins on symbols can have types. It is not prohibited to mix types. Verilog has something called a
"connectmodule
" to define how to resolve mixed types.
<strong>gschem attributes need to have types.
</strong> [Al Davis]
43 I certainly agree that the (gnetlist-ed.) Verilog output is not
'lossless
' -- it
's only an interchange format for the interconnect...[Mike Jarabek]
47 He
's not actually proposing to use VHDL (as modeling language-ed.) but to steal some
<strong>syntax from VHDL
</strong> and interpret it as he sees fit for the task. In particular, he
's only interested in the
<strong>entity-architecture separation
</strong>[Steve Williams]
51 More useful, (than creating intermediate file formats-ed.) is to
<strong>refactor libgeda and define an API
</strong> which can be exposed via C, scheme, DBus, and other scripting languages directly modifying the underlying design. [Peter Clifton]
55 Any extraction should preserve hierarchy, in hopes that the target tool also benefits from it. Translation must be
100%, lossless, from netlist to PCB refdes, and from PCB refdes used to create a module or back annotate a schematic. [Al Davis] [paraphrased heavily by JGriessen -- correct?]
59 The
<strong>file format should be designed as a language
</strong> meaningful and expressive of IC, programmable logic, and printed circuits. File formats that are data structure dumps cause big problems. We need an interchange file format..[Al Davis]
63 If EDIF has layout objects or schematic objects
64 built-in, that is actually a weakness. Just like SPICE having
65 resistors and transistors built-in has become a weakness.[Al Davis]
69 <strong>EDIF
's not mainstream.
</strong> VHDL and Verilog are mainstream. That is
70 one reason for my preference. It
's not all technical[Al Davis]
74 <strong>PCB behavior with a hierarchic netlist
</strong> Right click on a symbol, select
"go inside
", and another drawing opens up showing what
's inside. gschem also should act this way. [Al Davis] Display in place what
's inside,
<strong>turn on/off the visibility
</strong> or
"editability
" of any subcells. [Igor]
<strong>Ability to visually toggle
</strong> [Dan McMahill]
<strong>"blocks
" should be translucent.
</strong> (To show in place)ed. even when you
're not editing it. [DJ Delorie] Yep. [John Griessen] Dive into a block so you can edit it. When done,
<strong>close and updated in place
</strong>. [DJ Delorie]
78 <strong>how to handle re-use blocks?
</strong> [Stuart Brorson] That is, if I have a sub-schematic which I instantiate four times, how should it be refdesed in the netlist?
83 <h2 id=
"hierarchicalbuses">Hierarchical Buses
</h2>
88 <h2 id=
"ipcimprovements">IPC Improvements
</h2>
92 (InterProcess Communication -ed.) between gschem and PCB using DBus will benefit from netlisting changes (certainly cross probing and back annotation).[Peter Clifton]
96 Peter Brett and I put together a graphical frontend to gsch2pcb which uses gsch2pcb
's output to feed changes into a live PCB layout. [Peter Clifton]
100 For
<strong>cross-probing
</strong> / interactive simulation / back annotation, we require libgeda to
<strong>give gschem, gattrib etc.. the circuit representation
</strong> underlying your schematic drawing.[Peter Clifton]
105 <h2 id=
"robustfunction">Robust Function
</h2>
109 libgeda could/should evolve - as a backend to different tools. Since the PCB file-format is PCB
's, and may change, it is wiser to use a defined API to PCB to make PCB write the file. This entails adding to PCB
's action interface as necessary, and making gsch2pcb output a script of actions rather than a
"PCB
" file. [Peter Clifton]
113 I
'm hoping to separate much of the GUI structure and cram that back in the applications it belongs in, re-structuring libgeda to be design data-oriented.[Peter Clifton]
117 <strong>function library with bindings to users language of choice
</strong> a proper,
"official
" Perl-callable library to parse a layout file, a footprint file, or a schematic file, and load the data into an in-memory data structure. Such a library to read and write these file formats would dramatically reduce the activation energy hump to write a rich set of tools for all of us. [CP Tarun]
121 It would not fall out of sync with the changing file-formats, because you wouldn
't write yet another implementation of the parser, data-structures etc, nor would you copy-paste code. You would have one library which is used by all tools (probably in C as this is what the suite mostly uses), then you would provide language bindings so people can write the useful utilities they want. If this means having to split code out of existing tools and into a library, that is the way forward in terms of code reuse. [Peter Clifton]
125 I completely agree. [Dan McMahill]
129 Also consider libgpmi which currently supports
8 languages, will support guile [Igor]
134 <h2 id=
"otherimprovements">Other Improvements
</h2>
138 It is very useful I think to let DRC run to completion and
<strong>have a DRC layer
</strong> (or perhaps
1 DRC layer per copper layer as you suggest) that identifies exactly the
<strong>offending feature
</strong>.[Dan McMahill]
142 <strong>layout and save a hierarchy module
</strong> [Steve Meier]
146 have a block (in PCB)ed. that is a modular entity. Normally, you can
't do anything but move it around as a whole. A special action
"opens
" this block (and hides everything else) so you can edit it. When you
're done, it
's closed again - and any copies of the block are automatically updated in place. [DJ Delorie]
150 <strong>be able in the netlist to tell pcb which slots are swapable
</strong>, which i/o pins are swapable and which pin pairs can function as differential pairs (these last two have to be able to be limited to specific banks) such that pcb could correctly change the net list itself. Then I would like PCB to be able to tell me what pins and in what order the pins were swapped so that this could be imported back into the original design.[Steve Meier]
154 <strong>gschem attribute editable as symbols placed
</strong>, (such as description of the layout footprint attribute) [CP Tarun]
158 <strong> recesses in boards, (holes in PCB layers)
</strong>[Steve Meier] Required for straight leads out side of packages and flex circuits.
162 Yeah, you
'd need the
"layer types
" patch to really manage that, as you
'd be able to tag multiple pcb layers as
"outline
" layers[DJ Delorie]
166 <strong> PCB should be able to do hidden vias
</strong>, buried vias and micro vias. [Steve Meier]
170 Answered by non-copper layers, multi-pin projects in SoC list [DJ Delorie]
174 Use padstack to build elements with copper and non-copper layers independent.[Levente]
178 <strong>a PCB interface for presenting dynamic dialog boxes
</strong> for importers [Igor] I think this is part of having easy scripting of user
's choice, so an important design flow consideration[John Griessen]
183 <h2 id=
"toodetailed">Too Detailed
</h2>
187 <strong>change only the top of hierarchy string
</strong> of a layout module to netlist correctly.[Steve Meier]
191 <strong>Separate the hierarchy
</strong> from the rest of the refdes. [Steve Meier]
195 PCB doesn
't care what the refdes is, a heirarchical one is just as valid [DJ Delorie]
199 <strong>In gschem, visually browse the symbol library
</strong>.[CP Tarun]
203 Can be putoff and done as a GUI plugin script -- a detail of easy scripting wants [JGriessen]
207 <strong>In gschem, more control over printed or exporting
</strong>, as in CAM files a la Eagle.[CP Tarun]
211 Can be putoff and done as a GUI plugin script -- a detail of easy scripting wants [JGriessen]
216 <h2 id=
"implementation">Implementation
</h2>
220 <strong>What kind of data structures are desirable?
</strong> How would they look? [Stuart Brorson]
221 <strong>Once a datastructure is decided upon, then what does the file format look like?
</strong> Preserving the current close mapping of files to data structures is a desirable goal. The data structures defining hierarchy dictate what the file format should look like. [Stuart Brorson]
225 Right now, the main data structure for a schematic is a linear linked list of graphical objects (for each schematic page). Some list items point to others (i.e. to support component attributes). How would that change to support hierarchy? [Stuart Brorson]
229 PCB has a second format it uses called a
"resource file
". It
's a semi-lisp-ish format that allows for arbitrarily nested data. It could be used to hold pretty much anything, but it isn
't
"designed for the data
".[DJ Delorie]
233 <strong>How should gschem behave once hierarchy is architected in?
</strong> Right now you attach a source= attribute to a symbol. Then you do
"schematic down
" on that symbol to dive into the sub-schematic. Is that OK? Or what
's a better scheme?
237 <strong>Some work has already been done using gnetman by Bill Cox,
</strong> but it has never been part of the distribution gnetlist. Dan McMahill wrote:
"a reason to use the gnetman database as opposed to one designed by one of us
" is that without availing Bill Cox
's substantial tested work, we may
"find that the underlying database structure and methods for accessing it still aren
't complete enough, fast enough, or scalable enough.
"
241 <strong>Some work has already been done by Steve Meier
</strong> to enable practical work on FPGAs.
245 <strong>Some design work has been done by Peter Brett and Peter Clifton,
</strong> producing a concept diagram of a sub-circuit oriented data-structure based on gnetman
's structure diagram for netlisting. See
<a href=
"geda-datastructuredesigndiscussion.html" class=
"wikilink2" title=
"geda-datastructuredesigndiscussion.html">data structure design discussion
</a>