Bookmark this page: Feed Icon Feed Icon Feed Icon Feed Icon Feed Icon Feed Icon
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Spehro Pefhany on May 19, 2009, 1:49 pm
On Tue, 19 May 2009 09:19:33 -0700, Jim Thompson

>I need to evaluate...
>IF(t,1,0) (If t is true, output 1, if t is false, output 0 (numeric),
>t may be something like V11 >= 7, for example)
>BUT I have no IF statement handling capability at this level of a
>simulation.
>I do have algebraic capability.
>Is there some cute way to do this algebraically?
> ...Jim Thompson

(1+sgn(V11-7))/2 ?



Posted by Jim Thompson on May 19, 2009, 1:49 pm
On Tue, 19 May 2009 13:49:46 -0400, Spehro Pefhany

>On Tue, 19 May 2009 09:19:33 -0700, Jim Thompson
>>I need to evaluate...
>>IF(t,1,0) (If t is true, output 1, if t is false, output 0 (numeric),
>>t may be something like V11 >= 7, for example)
>>BUT I have no IF statement handling capability at this level of a
>>simulation.
>>I do have algebraic capability.
>>Is there some cute way to do this algebraically?
>> ...Jim Thompson
>(1+sgn(V11-7))/2 ?

I don't have function SGN :-(

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

Stormy on the East Coast today... due to Bush's failed policies.