Encode the following 16-bit data with a Hamming error code: 0b1100011110001110. Now A 16-bit number was encoded
Question:
-
Encode the following 16-bit data with a Hamming error code: 0b1100011110001110.
Now A 16-bit number was encoded with a Hamming error code; later, we access the resulting 21-bit codeword as 0b100000101011111011100.
Q2: We notice that one bit was corrupted. Which bit was corrupted? Since we are working with Hamming codes, use the convention that the MSB is bit position 1, the second MSB is bit position 2, etc.
Q 3: What is the correct 16-bit data?
Now each bit gets stored 3 times in a row.
As an example, if the data bits were 1110, the code word would be 111111111000.
Q4 : For 8-bit data values, what is the fraction of code words that are valid?
How many possible data can you write using 8 bits? Now, apply the coding scheme, how many possible combinations do you have? What fraction of that are valid code words following the described coding scheme?
Digital Systems Design Using Verilog
ISBN: 978-1285051079
1st edition
Authors: Charles Roth, Lizy K. John, Byeong Kil Lee