Draft preview. Lessons are being written and reviewed.

Verilog practice / Problem 19

MediumArithmetic

4 × 4 multiplier

Multiply two unsigned 4-bit numbers. The product p needs 8 bits, since 15 × 15 = 225.

Ports

NameDirectionBits
ainput4
binput4
poutput8

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