/***************************** incMem *****************************/ include "LIBRARY/add.lib"; define base = 16, n = 8; path data[ n ]; path sum[ n ]; path one[ n ]; path read, write; path carryIn, carryOut; literal( n, 1 ) { out one }; counter( "Inc", 10, 100, base, 1 ) { out write }; { in write } not( 1 ) { out read }; { in read, write, clear, set, sum } memory( "data", 10, 200, base, n, 0 ) { out data }; { in data, one, carryIn } add( n ) { out sum, carryOut };