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:
condition1: behavior description 1
condition2: behavior description 2
.... as may description as you like ....
else: behavior description for otherwise
The 'else' condition is optional.
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.