carbon9
Member level 3
Hello,
I'm trying to simulate a simple capacitor module written in Verilog-A as follows:
The capacitor has a value calculated with 2E9*q*L. When I use the commented line, i.e. "I(p,n) <+ (9.654E-17) * ddt(V(p,n));", the module acts correctly as a capacitor of that value. However, when I try to make Verilog-A to make the capacitance calculation as 2E9*q*L as the uncommented line "I(p,n) <+ (2E9*q*L) * ddt(V(p,n));", the component does not act as a a capacitor. I think the multiplication 2E9*q*L has error. How can I correct this?
Very thanks,
Regards,
I'm trying to simulate a simple capacitor module written in Verilog-A as follows:
Code:
`include "disciplines.vams"
`include "constants.vams"
module capacitor_model(p,n);
real q=1.609E-19;
real L=300E-9;
inout p,n;
electrical p,n;
analog begin
I(p,n) <+ (2E9*q*L) * ddt(V(p,n));
// I(p,n) <+ (9.654E-17) * ddt(V(p,n));
end
endmodule
The capacitor has a value calculated with 2E9*q*L. When I use the commented line, i.e. "I(p,n) <+ (9.654E-17) * ddt(V(p,n));", the module acts correctly as a capacitor of that value. However, when I try to make Verilog-A to make the capacitance calculation as 2E9*q*L as the uncommented line "I(p,n) <+ (2E9*q*L) * ddt(V(p,n));", the component does not act as a a capacitor. I think the multiplication 2E9*q*L has error. How can I correct this?
Very thanks,
Regards,