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.

IF logical operator in Spice 3f5?

Status
Not open for further replies.

lighty

Member level 3
Member level 3
Joined
Oct 2, 2002
Messages
57
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Location
Universe
Activity points
490
pspice logical operator

I wanted to check out some PSpice model which use IF operators and I was surprised to learn that Spice 3f5 doesn't support it.

Is there any simple way for substituting IF with some other syntax?
 

Probably you might use the table function to do that.
Could you give some details about your question?
 

Just found the following statement in the Spice 3 manual
Note: In the original Berkeley release of Spice 3f4/5 the implementation of the following control structures contained several bugs. Many of the above commands leak memory so rapidly that they are all but useless in loops containing a significant number of repetitions. Subsequent workers (including MacSpice, and Spice Opus) have made serious attempts to correct these problems.

This could explain why sometimes my model work and sometimes doesn't.

However question still remains how can I then use the following statement in Spice 3 without too much hassle:

Code:
E_EBREAKDN_CONTROL         6 0 VALUE {
+  IF(ABS(V(1,2))>V_BREAKDN|ABS(I(V_VSENSE))>I_SUS,12,0) }
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top