The gyrator macro consists of just two VofI sources. There is only one parameter in this macro: g. The g parameter defines the gyrator ratio and is used to calculate the gain of the dependent sources. Each source uses the current through the other source as its input. The H1 source has a negative gain because its current input is actually the negative value of the current through H2, and the negative gain will give the two sources the correct opposite polarities.
The test schematic compares two equivalent circuits: one using an inductor and one using a gyrator and a capacitor. The equation for a gyrator transforming a capacitor to an inductor is as follows:
L=C/(g*g)
The 100nF capacitor and gyrator should produce the same output as a 1mH inductor.
As can be seen in the figure below, the AC output of the gain and the phase for both circuits produce the same results.
|