Hi Yawei,
Thanks for your attention!
The following is my code:
`include "constants.vams"
`include "disciplines.vams"
module pump(clk,out);
input clk;
output out;
electrical clk, in, out;
real odd;
parameter real C = 1.0e-12;
parameter real VDD = 3.3;
parameter real Vth = 0.6;
parameter real f = 1e7; //freq=10MHz
parameter real N = 4; //pump stage
analog begin
odd = N%2;
@(initial_step)
begin
V(out) <+ 0;
end
@(above(V(clk) - 1.6))
begin
if(V(out) > (VDD - 1.2))
begin
V(in) <+ VDD+N*VDD-(N+1.0)*Vth;
V(out,in) <+ (N/(f*C))*I(in,out);
end
else
begin
V(in) <+ VDD+N*VDD-(N+1.0)*Vth;
V(out,in) <+ 35.0e3*I(in,out);
end
end
I(in,out) <+ ((4.0*N*N-N-3.0)*C/(12.0*(N+1.0)))*ddt(V(out))*odd + ((4.0*N*N+3.0*N+2.0))*C/(12.0*(N+1.0))*ddt(V(out))*(1-odd);
end
end
endmodule
__________________________________________________________
Kindly please help to debug it. Thanks a lot!
ywguo wrote on Aug 13th, 2008, 2:00am:Hi sprun,
It looks that it is a hint for warning that probably there is a convergence problem. That is not a syntax error. Would you please show your code here or an example which have the problem?
Yawei