Installing XSCHEM: Difference between revisions
Line 17: | Line 17: | ||
To run the simulation, first click on the ''Netlist'' tab located at the upper right corner of the XSCHEM window, then click on the ''Simulate'' tab. This will call NGSPICE, and will run the simulation. Note that this assumes you have setup NGSPICE, XSCHEM, and the SkyWater 130nm design kit using the default file locations. | To run the simulation, first click on the ''Netlist'' tab located at the upper right corner of the XSCHEM window, then click on the ''Simulate'' tab. This will call NGSPICE, and will run the simulation. Note that this assumes you have setup NGSPICE, XSCHEM, and the SkyWater 130nm design kit using the default file locations. | ||
Once the simulation completes, you will get plots for the common-source amplifier transfer characteristic, low frequency gain as a function of output swing, the power efficiency metric <math>\ | Once the simulation completes, you will get plots for the common-source amplifier transfer characteristic, low frequency gain as a function of output swing, the power efficiency metric <math>\tfrac{g_m}{I_D}</math>, the overdrive voltage, the frequency response, and the output noise power spectral density, as shown in Figs. 2-7. |
Revision as of 16:07, 28 July 2022
XSCHEM is a schematic capture program that allows to interactively enter an electronic circuit using a graphical interface. When the schematic has been created a circuit netlist can be generated for simulation.
Installation
You can install XSCHEM via git using:
$ git clone https://github.com/StefanSchippers/xschem
The XSCHEM documentation is here.
Using XSCHEM with the SkyWater 130nm PDK
To test your XSCHEM installation, you can use this sample schematic of a common-source amplifier, with the (1) test voltages and load capacitors, and (2) the simulation analyses added added as NGSPICE code. A screenshot of the schematic is shown in Fig. 1.
To run the simulation, first click on the Netlist tab located at the upper right corner of the XSCHEM window, then click on the Simulate tab. This will call NGSPICE, and will run the simulation. Note that this assumes you have setup NGSPICE, XSCHEM, and the SkyWater 130nm design kit using the default file locations.
Once the simulation completes, you will get plots for the common-source amplifier transfer characteristic, low frequency gain as a function of output swing, the power efficiency metric , the overdrive voltage, the frequency response, and the output noise power spectral density, as shown in Figs. 2-7.