304 - Exercises
Exercise 301
Try to get the example for the counter-enforced SoC to work.
Exercise 302
Make a new (as in: don't modify the dummy) component that can calculated the Hamming distance of two values.
Make a comparison like the table in 202 where you compare your pure software implementation of the Hamming distance with the codesign.
Exercise 303
Make a new component that calculates the sine of a positive angle. The angle is provided as natural number (no decimals), in degrees and can be up to 10 bits.
To prevent decimal numbers, the resulting value should be multiplied with 1'000'000. The remaining decimal digits can be dropped. Hence the result should fit in 20 bits.
Negative numbers should be represented in
two's complement.
Some examples:
PROTIP: work smart, not hard !!