==RF Circuit Analysis==
RF circuit analysis, by nature, is an AC analysis that you typically run at high frequencies ranging from tens of Megahertz to tens of Gigahertz. At such high frequencies, the dimensions of your circuit may become comparable in order of magnitude to the wavelength, and when wave retardation effects start to appear. In other words, your circuit starts to act like a distributed structure rather than a lumped circuit where signals propagate instantaneously. In the analysis of a low frequency circuit, two nodes that are connected to each other through a wire are assumed to have equal potentials or identical voltages. In RF circuits, however, the connecting wires act as [[Transmission Lines|transmission lines]], whose lengths play an important role in determining the voltages and currents at different points of the circuit.
The RF devices of RF. Spice are characterized and modeled based on their frequency-domain scattering (S) [[parameters]]. The S-[[parameters]] are tabulated as a function of frequency and interpolated in between the frequency samples. RF.Spice performs an AC analysis of these RF devices by converting their S-[[parameters]] to Y-[[parameters]] and using them in conjunction with SPICE’s nodal admittance matrix formalism. The high frequency AC analysis is carried out by the same analog and mixed-mode SPICE simulation engine. As a result, you can mix the RF devices in your circuits with all the other analog and mixed-mode devices of [[B2.Spice A/D]].