Data Internal Terminals

NSL uses data internal terminals for temporary data signals. Data internal terminals are declared with 'wire'. We can refer and transfer value to the terminal as input or output terminals.

Example-NS08

declare NS08 { input a,b; output f; } module NS08 { wire c,d; c = a & ~b; d = ~a & b; f = c | d; }



We will make a simulation on this circuitry as following command:

# ./exe NS08



The result will be available on your console.



a:0, b:0, c:0, d:0, f:0 a:1, b:0, c:1, d:0, f:1 a:0, b:1, c:0, d:1, f:1 a:1, b:1, c:0, d:0, f:0



PREV UP NEXT