The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 1st, 2024, 11:54am
Pages: 1
Send Topic Print
CCCS in verilog AMS not working (Read 2809 times)
Saroj Rout
Guest




CCCS in verilog AMS not working
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.
Back to top
 
 
  IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: CCCS in verilog AMS not working
Reply #1 - 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
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.