
This is a simple multiplier with two signed 4 bits numbers (a and b) and gives the product of a and b, with sign.
Introduce random numbers on the 'a' and 'b' inputs (two's complement for negative ones) and show the answer on 'out' pins.
Use DIP switches on the 'a' and 'b' inputs, and leds on 'out' pins to show the answer.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | a[0] | out[0] | |
| 1 | a[1] | out[1] | |
| 2 | a[2] | out[2] | |
| 3 | a[3] | out[3] | |
| 4 | b[0] | out[4] | |
| 5 | b[1] | out[5] | |
| 6 | b[2] | out[6] | |
| 7 | b[3] | out[7] |