Home › Forums › General Electronics › Transistors › CMOS in Pspice › Re: CMOS in Pspice
Hi hurhassan
working in PSpice with customizable CMOS model is simple. I use 16.3 version, but it’s the same for 16.5.
Create a new project
![](https://youspice.com/vanilla/uploads/FileUpload/30/77cfde76b1d86393d3b808fb8dd055.jpg)
for a NMOS take MbreakN from BREAKOUT library and place on the layout
(for a PMOS take a MbreakP)
![](https://youspice.com/vanilla/uploads/FileUpload/76/fc89cb92a79a3926db874c44e226a8.jpg)
Select it, right click, “Edit PSpice model”, choose PSpice A/D, and then this window pops up
![](https://youspice.com/vanilla/uploads/FileUpload/9d/07105c5878e207c2cae7e601a1e050.jpg)
Excellent libraries for CMOS are available, for example you can use the cmosedu_models
by Jacob Baker. This a library for LTspice, Fortunately, the two syntaxes, with few exceptions, are compatible.To model a NMOS long channel, with 1 um minimum drawn channel length, copy the first .model statement and paste in the editor window, save
![](https://youspice.com/vanilla/uploads/FileUpload/7c/7dac4e5dbb374e9d2a41383519ab8b.jpg)
At this point right click on the CMOS, choose Edit Properties.Edit L 1u, and for example, W=10u
![](https://youspice.com/vanilla/uploads/FileUpload/e8/0a650e42783649821256fd44fd8b57.jpg)
to perform a DC sweep analysis, draw this simple circuit
![](https://youspice.com/vanilla/uploads/FileUpload/06/4c8285e4959478dd04c3542001185c.jpg)
Add a netsted DC sweep simulation, and run
this is the PSpice simulation result
![](https://youspice.com/vanilla/uploads/FileUpload/be/8690562f4944a04ce027f860b7a0dd.jpg)
that obviously is the same of LTspice
![](https://youspice.com/vanilla/uploads/FileUpload/e7/900042639decaaf966ca1d29199148.jpg)