NMADDER 4.2.2017


NmAdder creates chip definitions in AstroChip, which add n numbers with m bits. The usage of this JAVA program is "java NmAdder test.txt m n" to create the AstroChip definition in test.txt. m and n must be positive integer numbers. The adder logic is based on adding all bits of one position and carrying them. The constants "CONSTANT cixj v;" at the beginning of "MODULE main" are filled with random numbers at the time of generation. These are the bits of the numbers to be added.