It works by multiplying two 4-bit binary numbers using full adders and outputing the product.
To test, you open the test.py file and input two 4-bit binary numbers. The first 4 are the first number and the last 4 are the second number. The expected value should be the product of the two numbers.
None
# | Input | Output | Bidirectional |
---|---|---|---|
0 | n[0] | p[0] | |
1 | n[1] | p[1] | |
2 | n[2] | p[2] | |
3 | n[3] | p[3] | |
4 | m[0] | p[4] | |
5 | m[1] | p[5] | |
6 | m[2] | p[6] | |
7 | m[3] | p[7] |