204 - Exercises

Exercise 201

Try to get the example for the Hamming distance to work.

Make a comparison like the table in 202 where you compare your pure software implementation of the Hamming distance with the codesign.

Exercise 202

Transform the Hamming distance coprocessor to work on the div instruction in stead of the mul instruction.

Exercise 203

Make a new coprocessor that calculates the average of two integer numbers. If the result is non-integer, round it down. For example avg(32,16) = 24 and avg(3,4) = 3. Try to avoid using the pcpi_wait signal. Compare a software-only version with a hardware/software codesign of the solution.