10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Netlist Setup<br />

Subcircuits<br />

• Or globally in the top level netlist:<br />

.PARAM p3=5<br />

X1 N1 N2 N3 MY_SUBCIRCUIT<br />

The precedence of these parameter assignment methods is, in descending order, subcircuit<br />

instantiation, internal subcircuit, subcircuit declaration which acts as a default only, and finally<br />

global declaration.<br />

Use option PARHIER to control the priorities for parameters.<br />

Note<br />

.PARAM assignments are order dependent within the netlist. Thus, a parameter value<br />

assigned using the .PARAM command will only apply to subcircuits instantiated after this<br />

.PARAM command. Therefore, for the below:<br />

.SUBCKT INV<br />

.PARAM p1=v0<br />

.ENDSx1 ... inv<br />

.param p1=v1<br />

This is accepted, and p1 retains the value of v0 within x1 (when option PARHIER is set to<br />

local).<br />

Accessing Nodes Inside Subcircuit Instances from Outside<br />

The following example illustrates how inner nodes may be accessed from outside of a subcircuit<br />

instance in which they are defined.<br />

.subckt inner n1 n2 n3<br />

r1 n1 n3 1k<br />

r2 n3 n8 4k<br />

q27 n1 n7 n8 nbip<br />

*...<br />

.ends inner<br />

.subckt outer n1 n2 n3 n4<br />

q1 n1 n5 n6 pbip<br />

*...<br />

x1 n10 n12 vdd inner<br />

*...<br />

.ends outer<br />

x13 n21 n25 n30 vdd outer<br />

cmill1 x13.n1 x13.n5 1.2p<br />

cmill2 x13.x1.n1 x13.x1.n5 0.9p<br />

Where cmill1 is the Miller Capacitance of q1 located inside the subcircuit x13 and cmill2 is the<br />

Miller Capacitance of q27 located inside x1 which in turn is located inside x13. Note that in this<br />

example, the capacitances are declared from outside of the subcircuit definitions.<br />

128<br />

Eldo® User's Manual, 15.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!