[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: Hierarchy in gschem and pcb
On 5/6/06, Christian Viller Hansen <cvh@viller.org> wrote:
> Would it be possible to have a
> menu item that said "Make this schematic a symbol" and then have the
> program figure out how many inputs and outputs you have on the
> schematics and create the appropriate symbol?
> Or maybe you could even mark a portion of you toplevel schematics and
> "push" it down to a subschem?
The symbol you place in your top-level schematic does not need to have any pins.
It can simply be a rectangle (which is what I usually use).
What I usually do is place a rectangle in the toplevel schematic and
(1) change the
"refdes" attribute and (2) set the "source" attribute to the filename containing
the lower block.
An example ---
For one of my designs I created a sheet that contained an MSP430F169
and some peripherals. In the toplevel schematic I added a symbol that
was just a rectangle and set the source attribute to the filename of
the MSP430F169
sheet and set the refdes to MSP430
In the MSP430F169 sheet I then named the various port pins P1.0, P1.1, ... etc
The netnames used to reference the port pins would be MSP430/P1.0,
MSP430/P1.1, ... etc
(* jcl *)
--
http://www.luciani.org