[snip]
PSpice considers "^" to be Boolean XOR as well. The model probably originated with SmartSpice, or of that ilk.
...Jim Thompson
[snip]
PSpice considers "^" to be Boolean XOR as well. The model probably originated with SmartSpice, or of that ilk.
...Jim Thompson
-- | James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
Mike, The old-style Microsim Schematics, which I use, rejects "^", but I can manually get PSpice itself to run a netlist with "^" in it as exponentiation.
The manual lists "^" as XOR, but I've not tried it... I only use the canned digital parts ;-)
Also, the manual only lists "**" for exponentiation. Maybe "^" is a legacy holdover that PSpice can handle simply because it's pretty easy to recognize logical operations as opposed to Algebraic.
...Jim Thompson
-- | James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.
Cut n' Paste -- but I I am having problems getting my simulator to accept the TABLE for controlling the VCVS -- from a spice library
**************************************************************************** ***Thank you both.
Jack
Johnson,
It's a native PSpice model. LTspice can run it, but you need to change the "^" to "**" because LTspice understands "^" to be Boolean XOR instead of exponentiation. Below is the model running in a simple netlist in LTspice.
--Mike
..Subckt IL300 A C A1 C1 A2 C2 PARAMS: K1=0.007 K2=0.007 K3=1 DLED A E Demit VE E C 0 E2 D1 0 TABLE ; {Ip2 vs IF}
..tran 50u 50u ..probe ..end
Jim,
I wish it true because it's one of the few incompatibilities between LTspice and PSpice that I can't change without breaking models already using "^" as XOR. But in this ABM context, PSpice uses "^" as exponentiation instead of XOR. Here's an example to illustrate:
Regards,
--Mike
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.