The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Is there a way to implement this kind of RC model in veriloga? https://designers-guide.org/forum/YaBB.pl?num=1512194498 Message started by ray0923 on Dec 1st, 2017, 10:01pm |
Title: Is there a way to implement this kind of RC model in veriloga? Post by ray0923 on Dec 1st, 2017, 10:01pm I am trying to implement a resistor and a voltage dependent capacitor in series. I know i can use ddt to implement a voltage dependent capacitor but with resistor in series, the voltage drop on the capacitor is not really straight forward to derive. It seems recursive to me. |
Title: Re: Is there a way to implement this kind of RC model in veriloga? Post by Ken Kundert on Dec 1st, 2017, 11:34pm There are two ways of adding a series resistance. First, you can simply add an internal node and an additional branch. For example, consider this nonlinear capacitor Code:
You can modify this model to add a series resistance as follows: Code:
Alternatively, you use an implicit formulation: Code:
-Ken |
Title: Re: Is there a way to implement this kind of RC model in veriloga? Post by ray0923 on Jan 9th, 2018, 2:34pm Is that the same if i replace i(res) with i(cap)? |
Title: Re: Is there a way to implement this kind of RC model in veriloga? Post by Ken Kundert on Jan 9th, 2018, 3:41pm More words are required. |
Title: Re: Is there a way to implement this kind of RC model in veriloga? Post by Geoffrey_Coram on Jan 10th, 2018, 6:22am I think the question is whether one can replace "I(res)" in the second line: Code:
by "I(cap)". While I(cap) and I(res) are equal by KCL, the matrix stamps (what the simulator sees when trying to solve the circuit) are different. Maybe it reduces to the same thing, but why would you want to do this? |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |