24 Simple multiply

24 : Simple multiply

Select Project123456789ONSW2
  • Author: Anton Maurovic
  • Description: Multiply two 8-bit numbers, get a 16-bit result.
  • GitHub repository
  • Clock: 0 Hz

How it works

Do synchronous reset first, then on each rising clock edge...

Clock in each of two 8-bit values, one nibble at a time (high to low).

Then clock out a 16-bit value, one byte (via result) at a time (high to low).

How to test

After synchronous reset, expect result output to be 0.

Set nibble to a value of your choice, then pulse the clock.

Repeat 3 more times.

Then pulse the clock 1 more times, each time expecting to get a byte at the output result.

IO

#InputOutput
0clockresult[0]
1resetresult[1]
2result[2]
3result[3]
4nibble[0]result[4]
5nibble[1]result[5]
6nibble[2]result[6]
7nibble[3]result[7]