alt block
NSL uses 'alt' block syntax for conditional behavior activation. The 'alt' bock has priority; higher priority for upper description. The syntax of 'alt' block is:
alt {
condition1: behavior description 1
condition2: behavior description 2
.... as may description as you like ....
else: behavior description for otherwise
}
The 'else' condition is optional.
Example-NS06
This example uses IO definitions and core behavior description. Two behavioral operations will be activated conditionally in the core behavior description.
It is an easy operation and you may image the result. We will make a simulation on this circuitry as following command:
# ./exe NS06
The result will be available on your console.