SIMULATING WITH SPECTRES

4. Setting up the simulation:

4.1 Provide stimulus:

From analogLib, get your signal source. You can find anything you need for this project (and much more), in there: vdc, idc, vpwl, vsin, vpulse, etc. For this example, let's get vdc, and connect it to the gate of the transistor.
Edit the properties of vdc so that it supplies a DC voltage of 770 mV, and an AC magnitude of 1 V.

4.2 Place a battery in the circuit:

Get another vdc from analogLib, and connect it to vdd! and gnd!. You can place more vdd! and gnd! symbols since they are global (that's what the exclamation mark '!' means).
Edit the properties of vdc so that it supplies a DC voltage of 5 V.

Your schematic should now look something like this:
Figure 4.1: Schematic ready for simulation.

5. Simulate:

In Schematic Window:
In Analog Artist Simulation Window:
The following two steps only need to be done for this first session. The simulator status can be seen in the log (CIW) window. Ignore the warnings about the model files, and wait until it finishes.

6. View Results

To see the operating point, do the following in the Analog Artist Simulation Window: The node voltages will be annotated in the schematic window. You can also annotate the transistors operating points by choosing:
Figure 2: DC operating point results.
To see the results of the ac analysis, do the following:
In the Analog Artist Simulation Window:
Then, in the Calculator:
The Waveform Window opens. You can find, for example, the unity gain frequency easily by choosing: You can also see the output voltage in dB. Just click the 'dB20' button in the calculator, and then 'Plot'. To delete other plots, click directly on the curve and press Delete.
Figure 3: AC analysis results