1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-24 01:24:36 +02:00
eda-tools/b2/HIERARCHY
Werner Almesberger 1394c6b61c b2/: make top-level hierarchy item an action, not just a rule
This allows the definition of optional global fields. For now, we (ab)use
this for FP (footprint).
2012-04-28 23:30:50 -03:00

20 lines
350 B
Plaintext

/*
* Example hierarchy
*/
<comp> = R<C<L<D; // order doesn't really matter
<diode> = D<SCH<Z<TVS; // D < SCH may make sense, the rest doesn't
{ FP=* }
T=<comp> {
R: { R=#R TOL=%R };
C: { C=#F TOL=%C V=#V };
L: { L=#H TOL=%L I=#A };
D: { C=#F }
M=<diode> {
TVS: { Vac=#V Vdc=#V };
Z: { V=#V I=#A };
*: { Vf=#V Vr=#V I=#A };
};
};