The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> CCCS in verilog AMS not working
https://designers-guide.org/forum/YaBB.pl?num=1135895511

Message started by Saroj Rout on Dec 29th, 2005, 2:31pm

Title: CCCS in verilog AMS not working
Post by Saroj Rout on Dec 29th, 2005, 2:31pm

I am modeling a current-controlled-current-source in the following way.

`include "disciplines.vams"
`include "constants.vams"

module cccs_int (inp,inn,outp,outn)

input inp;
input inn;
output outp;
output outn;

electrical inp;
electrical inn;
electrical outp;
electrical outn;

parameter gain=1.0;

analog begin
    I(outp,outn) <+ gain*I(inp,inn);
end

endmodule

When I terminate the output with a resistor it seems to be working fine. But when I terminat it with a capacitor, I was expecting a integrated output but the output seems to be some very High constant voltage instead.

Does anybody know why the cap is not integrating the output of the controlled current source ?

Thanks in advance.

Title: Re: CCCS in verilog AMS not working
Post by Ken Kundert on Dec 29th, 2005, 5:24pm

You probably need to give an initial condition on the capacitor. The large voltage on the capacitor probably stems from the initial DC analysis that precedes the transient.

-Ken

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.