[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Hierarchy Refdes and Component Values



On Friday 17 December 2010, Thomas D. Dean wrote:
> I have a schematic with seven instances of a schematic, a
> hierarchy.
> 
> I want to give different values to the resistors in each of
> the sub-circuits.
> 
> For example, I have S1 thru S7.  In S1, I want R1=100, in S2,
> I want R1=1k, etc.
> 
> Is this possible with hierarchy?

With Gnucap, just give the resistor value a name, and pass it in 
when you instantiate the subckt.

.subckt thing (a b)
R1 (a b) dv
.ends

X1 (1 2) thing dv=100
X2 (3 4) thing dv=1k

It is better to let the simulator handle hierarchy.  The 
netlister should NOT expand subckts.




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user