Download CircuitMaker User Manual

Transcript
CircuitMaker PRO only
CHANGE_TIME
Returns time when the specified pin last changed state.
General Form
CHANGE_TIME(<pin>)
Parameters
<pin>
Input or output pin name.
Use
This function returns a real value that indicates the last time
the specified input or output pin changed states.
Example
T1 = (CHANGE_TIME(INA));
CHANGED_xx
Checks if the specified pin has changed state.
General Form
CHANGED_xx(<pin> [{<}|{<=}|{>}|{>=} <var/time/value>])
Parameters
<pin>
Input or output pin name.
<var/time/value>
Item to which <pin> is compared.
Use
The CHANGED_xx function is used to determine if the
specified <pin> has changed state. The _xx that follows the
keyword CHANGED can be eliminated (to indicate any type
of change) or the xx can be set to:
LH, LX, HL, HX, XL, XH, LZ, ZL, ZH, ZX, HZ or XZ
to indicate a specific type of change. The optional compare
operator (<, <=, >, >=) and <var/time/value> would be
included to check for a more specific change. If they are not
included, the function will return 1 if the pin has changed at
the current simulation step.
Examples
IF (CHANGED_LH(CLK)) THEN ...
IF (CHANGED(DATA < 10n)) THEN ...
Chapter 17: Digital SimCode
17-331