Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hi some spectre simulation questions

Status
Not open for further replies.

kytan

Member level 1
Joined
Jul 3, 2004
Messages
33
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
271
: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 ?
 

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
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top