parallel execution

NSL basic action works in parallel.

Example-NS05

declare NS05 { input a,b; output f,g; } module NS05 { f = a & b; g = a | b; }

This example uses IO definitions and core behavior description. Two behavior operation will be activated 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 NS05

The result will be available on your console.

a:0, b:0, f:0, g:0

a:1, b:0, f:0, g:1

a:0, b:1, f:0, g:1

a:1, b:1, f:1, g:1



PREV UP NEXT