
The eight input pins are split into two groups of four (REG0_0-3 and REG1_0-3). The result of adding the two numbers is stored as a 5-bit number in pins RESULT_0 to RESULT_4.
Go through all pairs of 4-bit numbers and check the output is the sum.
No external hardware is used.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | REG0_0 | RESULT_0 | |
| 1 | REG0_1 | RESULT_1 | |
| 2 | REG0_2 | RESULT_2 | |
| 3 | REG0_3 | RESULT_3 | |
| 4 | REG1_0 | RESULT_4 | |
| 5 | REG1_1 | ||
| 6 | REG1_2 | ||
| 7 | REG1_3 |