Hardware Reference
In-Depth Information
35.
Write a procedure
hamming
(
ascii
,
encoded
) that converts the low-order 7 bits of
ascii
into an 11-bit integer codeword stored in
encoded
.
36.
Write a function
distance
(
code
,
n
,
k
) that takes an array
code
of
n
characters of
k
bits
each as input and returns the distance of the character set as output.