|
|
|||||||||||||||||||||||
Logical Functions - revisitedAbout the writer: Harvey Morehouse is a contractor/consultant with many years of experience using circuit analysis programs. His primary activities are in Reliability, Safety, Testability and Circuit Analysis. He may be reached at harvey.annie@verizon.net. Simple questions for which I know the answer are free. Complex questions, especially where I am ignorant of the answers, are costly!!! Summary: In previous articles I showed how to create logical expressions. Here is another way. Nonlinear Source 'u' element: According to the definition of the uramp function, and I quote, ""uramp" is the integral of the unit step. The unit step is one if its argument is greater than zero and zero if its argument is less than zero. The ramp function (uramp) is 0 for argument values less than zero and equal to the argument for argument values greater than zero. Despite the misleading title, implying an integral, the uramp function returns the value of the argument when it is greater than zero. Thus, in some cases, where the 'test' is to return the value of the test when it is greater than zero, the uramp function can save some typing, and resultant errors. In other words, where an expression is to be logically,
The following circuit illustrates this:
The resultant output is shown in Figure 2 following:
I was misled by the 'ramp' part of the uramp name, actually intending to use it for another purpose; however, the intended purpose can be attained in other manners. Notice several other things. Besides being useful for logic expressions, this also functions as an ideal diode with no voltage drop. It pays to muck around with the library functions!!!!
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||