Rules | Recent posts | topic RSS | Search | Register  | Log in

Hi some spectre simulation questions

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog IC Design & Layout
Author Message
kytan



Joined: 03 Jul 2004
Posts: 33


Post03 Aug 2004 11:31   Hi some spectre simulation questions

Wink
Hi there
I like to find out how to simulate ideal switches in spectre like those that you use when trying to simulate switches for switched capacitor integrators the equivalent in Spice would be something like
switmod
how to do that in spectre ?
Back to top
Hughes



Joined: 10 Jun 2003
Posts: 715
Helped: 85


Post04 Aug 2004 7:28   Hi some spectre simulation questions

You may use four terminal relay or a veriloga module:

module switch(s, d, g);
inout s, d;
input g;
electrical s, d, g;
parameter threshold = 2.5;
analog begin
if( V(g) > threshold )
V(s, d) <+ 0.0;
else
I(s, d) <+ 0.0;
end
endmodule
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog IC Design & Layout
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap