Question: Is it possible to plot the voltage of a node that lies within a macro
during the simulation of the calling circuit?
Answer: All of the standard circuit variables within a macro or a subcircuit
are available for plotting during a simulation. To reference a node name or a part
name of an object within a macro or subcircuit, dot notation needs to be used as in
the following format:
Subcircuit\Macro Part Name + "." + Node\Part Name
For example, to reference the voltage of node 6 in the macro X3, the following expression
would be used:
V(X3.6)
Similarly, the expression:
I(X6.R1)
would plot the current through the resistor R1 that is within the macro or subcircuit
X6.
The dot notation may be used to plot circuit variables that are nested within multiple
layers of macros or subcircuits by concatenating the macro or subcircuit names. The
expression:
V(X1.X2.X3.10)
would plot the voltage of node 10 in the X3 subcircuit, within the X2 subcircuit, within
the X1 subcircuit.
The Variables list which is invoked by right clicking in a Y Expression field of the Analysis limits displays a menu which shows all of the circuit variables available for plotting. Subcircuit and macro variables will also be displayed in this list if they are present in the circuit.
|