I need help to fix my Hspice code!

Status
Not open for further replies.

ALIFARID

Newbie level 5
Joined
Oct 16, 2011
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Los Angles
Activity points
1,339
I need to help to fix my Hspice code!


For this problem I want to plot Vout, and I write this code for spice, but it dont work, plz help me to solve this problem, Vout has to be like a plot in the picture which i attached, but it dont works:


HTML:
Vdd  1 0 3.3
Vin  4 0
R1 1 2 10K
R2 2 3 10K
M2 3 2 1 0 PPMOS l=.35u w=10.5u
*.MODEL NNMOS NMOS  ad=36p as=36p pd=24u ps=24u
.MODEL PPMOS PMOS ad=36p as=36p pd=24u ps=24u
M1 3 4 0 0 NNMOS l=.35u w=14u
.MODEL NNMOS NMOS ad=36p as=36p pd=24u ps=24u
.DC vin -5 5 .01
.PROB V(R1)
.END
 

Re: I need to help to fix my Hspice code!

Code:
M2 3 2 1 [COLOR="#FF0000"]0[/COLOR] PPMOS l=.35u w=10.5u
You set M2's bulk to GND (0), this is wrong (and generates a short circuit for the power supply). Should be:
M2 3 2 1 1 PPMOS l=.35u w=10.5u
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…