Control Internal Terminals
NSL uses control internal terminals for sending message to a object. Control internal terminals are declared with 'func_self'. We can refer the value of the terminal as input or output terminals. To activate a control insternal terminal, use a syntax 'control()' just like a function call of C language. Also control internal terminals can have arguments. A control internal terminal is a control signal of an object and the arguments are the associated data for the object which are required for the control operation. Arguments are declared as:
func_self control_terminal_name ( argument1, argument2, ... ) ;
Even if there is no argument at all, you cannot eliminate the parensis. We also declare associated behavior to the control terminal with func syntax.
func control_terminal_name behavior_description
Example-NS09
We will make a simulation on this circuitry as following command:
# ./exe NS09
The result will be available on your console.