Verilog practice / Problem 19
4 × 4 multiplier
Multiply two unsigned 4-bit numbers. The product p needs 8 bits, since 15 × 15 = 225.
Ports
| Name | Direction | Bits |
|---|---|---|
a | input | 4 |
b | input | 4 |
p | output | 8 |
How it's checked
The test tries the input combinations and checks every output for each one.
Stuck? Read the lesson Multipliers and Booth encoding.
mult4.vCtrl + Enter runs