/***************************** add *****************************/ include "LIBRARY/add.lib"; define base = 16, n = 8; path value1[ n ], value2[ n ], carryIn, result[ n ], carryOut; input( "value1", 10, 50, base, n ) { out value1 }; input( "value2", 10, 100, base, n ) { out value2 }; literal( 1, 0 ) { out carryIn }; { in value1, value2, carryIn } add( n ) { out result, carryOut }; { in result } output( "result", 10, 150, base, n );