Capacitance of MOS cap in spice

  • Thread starter Thread starter Lanot
  • Start date Start date
  • Tags Tags
    Capacitance
Click For Summary

Discussion Overview

The discussion revolves around obtaining the capacitance-voltage (C-V) curve of a MOS capacitor (MOSCAP) using SPICE simulations, specifically HSPICE. Participants explore various methods to measure the AC current through the MOSCAP while applying a DC voltage, addressing issues related to simulation setup and analysis types.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning
  • Experimental/applied

Main Points Raised

  • One participant seeks an easy method to obtain the C-V curve from a MOSCAP in SPICE, emphasizing the need for the transistor to behave as a capacitor.
  • Another suggests connecting a resistor to the MOSCAP and driving it with a small AC voltage superimposed on a DC voltage to measure the AC current.
  • A participant proposes a specific DC sweep setup but notes that the AC current is zero, raising questions about the simulation's effectiveness.
  • Suggestions are made to include an AC source in series with the DC source to observe the dependence of AC current on capacitance.
  • One participant expresses frustration at not being able to replicate the experiment and mentions obtaining an estimate of MOS capacitance using a .op simulation for low frequencies, while seeking high-frequency behavior.
  • Concerns are raised about the utility of the .op simulation, with suggestions to replace the MOS with a capacitor to verify the simulation's functionality.
  • Another participant questions why there would be zero AC current through a capacitor and recommends adjusting the AC frequency and resistance values.
  • Discussions reveal confusion about measuring AC current during a DC sweep analysis, leading to suggestions for using transient analysis instead.
  • One participant shares a transient analysis setup but expresses uncertainty about the correctness of the resulting curve.
  • A later reply emphasizes using transient analysis with a pulse input to calculate capacitance based on the current and voltage slope.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to obtain the C-V curve or the reasons behind the observed zero AC current. Multiple competing views and unresolved issues regarding simulation setups and analysis types persist throughout the discussion.

Contextual Notes

Participants express limitations in their understanding of SPICE simulations, particularly regarding the distinction between DC sweep and transient analysis. There are unresolved questions about the high-frequency behavior of the MOSCAP and the effectiveness of different simulation approaches.

Lanot
Messages
40
Reaction score
0
Hi guys,

I'm trying to obtain the CxV curve from moscap in SPICE (hspice).
Note that I'm not talking about the sum of the capacitances from the mos transistor, but the transistor behaving as a capacitor.
Is there an easy way to do this?
 
Engineering news on Phys.org
How about a resistor connected to the moscap, Resistor driven by small AC voltage superimposed on DC, measure AC current through resistor while sweeping DC.
 
Do you mean a DC sweep like this?

Vin vin 0 AC 1 SIN (0 1 0.159)
R1 vin v2 1k
M1 0 v2 0 0 nmos l=1 w=10
.DC SWEEP vin -1 3 1m
.end

The current is zero though.
 
Put an AC source in series with the DC source. Then, the AC current will depend on the capacitance value.
 
Nothing changed.

Vin vin 0
Vac vin vr1 AC 1 SIN (0 1 0.159)

R1 vr1 v2 1k
M1 0 v2 0 0 nmos l=1 w=10

.DC SWEEP vin -1 3 1m
.end
 
Why would there be zero AC current through a capacitor? Set the AC frequency to 100MHz. set the R to a higher value also. Replace the MOSCAP with a Capacitor. Play around with it a bit and figure it out.
 
Unfortunately, I couldn't replicate this experiment. I don't know what's the problem.
I was able to obtain an estimate of the MOS capacitance with a .op simulation (cgtot parameter), for low frequencies.
The only thing that is missing is the high frequency behavior of the moscap.
 
I don't see how .op provides any useful information.

Can you just replace the MOS with a capacitor and measure AC current. Then you know the sim is working.
 
I forgot to tell. I tested the circuit with a capacitor, and the current is zero.
 
  • #10
Then you are doing something very wrong. If you can't see the AC current through a simple cap then you are looking in the wrong place. Can you see the AC voltage across the cap?
 
  • #11
No, I can't. Isn't it because it's a DC sweep analysis?

The code is as follow:

Vin vin 0 DC 1
Vin vin 0
Vac vin vr1 AC 1 SIN (0 1 100MEG)

R1 vr1 v2 100k
M1 0 v2 0 0 nmos l=1 w=10

.DC SWEEP vin -1 3 1m
.end
 
  • #12
sorry
Do a .tran
Then,
Do a .TRAN with a piecewise linear DC source and constant AC source.
I don't use spice much. I'm surprised no one else pointed out the issue. I actually didn't know you can't measure AC during a DC sweep.
 
  • #13
Sorry for the delay. Now I can see the transient response. But the curve doesn't seem right I guess.

The code is:
Vin vin 0 DC 0 pulse=(0 1.2 0 50n 0 0 0 0 51n)
Vac vin vr1 AC 0 SIN (0 10m 100MEG)
R1 vr1 v2 100k
M1 0 v2 0 0 nmos l=1 w=10
.TRAN 1p 50n
.end

The response is as follows:
image.png
 
  • #14
The easiest way to do this is with a transient analysis and a pulse so your input should be fine. Remember in the time domain that I = C dV/dT or C = I / (dV/dT). So divide the measured current with the voltage slope and that is your capacitance. You should do it with a rising and falling pulse and average the value you calculate.

AC analysis is also possible and may be more useful if you're using the MOSCAP as a decoupling device (so you mostly care about the capacitance around a small operating region.
 

Similar threads

  • · Replies 22 ·
Replies
22
Views
8K
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 26 ·
Replies
26
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K