Question

An 8-bit byte with binary value 11001101 is to be encoded using an even-parity Hamming code....

An 8-bit byte with binary value 11001101 is to be encoded using an even-parity Hamming code. What is the binary value after encoding?

Homework Answers

Answer #1

Step1: Counting the number of parity bits

2p ≥ n + p + 1

Here, n is the number of data bits and p is the number of parity bits.

2p ≥ 8 + p + 1

2p ≥ 9 + p,     when p=4   24 ≥ 13

Step2: positioning all the parity bits

It is located at bit positions of powers of 2, i.e. 1, 2, 4, 8, etc. Data bits in other positions.

1

2

3

4

5

6

7

8

9

10

11

12

13

P1

P2

D1

P3

D2

D3

D4

P4

D5

D6

D7

D8

P1

P2

1

P3

1

0

0

P4

1

1

0

1

Step 3) Parity check

Parity bits need to be calculated based on data bits and the redundant bits.

p1 checks the positions (1, 3, 5, 7, 9, 11…) and total the number of 1’s in all this positions should be even number

similarly, p2 checks the positions (2, 3, 6, 7, 10, 11… )

p3 checks the positions (4-7, 12-15, 20-23… )

p4 checks(8-15,…..)

p1 -> p1,1,1,0,1,0 -> number of 1’s 3, to make it even p1=1

p2->p2,1,0,0,1,0-> number of 1’s even, so p2=0

p3->p3,1,0,0,1 ->number of 1’s even, so p3=0

p4->p4,1,1,0,1->number of 1’s 3, to make it even p4=1

1

2

3

4

5

6

7

8

9

10

11

12

13

P1

P2

D1

P3

D2

D3

D4

P4

D5

D6

D7

D8

1

0

1

0

1

0

0

1

1

1

0

1

Encoded data=101010011101

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A 4-bit data is transmitted using a Hamming code to ensure that the receiver can detect...
A 4-bit data is transmitted using a Hamming code to ensure that the receiver can detect and correct single bit errors. Show the bit pattern transmitted for data 1010 (left to right: from the most significant bit to the least significant bit). Assume that even parity is used in the Hamming code. How many redundant bits are needed in the Hamming code? And what is the value of each Hamming code bit? In your answer, please indicate the data bit...
A set of parity-check equations for a distance-4 Hamming code with 64 data bits and 8...
A set of parity-check equations for a distance-4 Hamming code with 64 data bits and 8 parity-check bits are specified by the eight 72-bit constants below, each representing one row the parity-check matrix: C[1] = 72'h80000000000000007f; C[2] = 72'h400000003FFFFFFF80; C[3] = 72'h20001FFFC0007FFF80; C[4] = 72'h100FE03FC07F807F80; C[5] = 72'h0871E3C3C78787878F; C[6] = 72'h04B66CCCD9999999B3; C[7] = 72'h02DAB5556AAAAAAAD5; C[8] = 72'hFFFFFFFFFFFFFFFFFF; Assuming that bits are numbered D[17:0], bits D[71:64] are the check bits, D[63:0] are the data bits. Write a Verilog model for a...
Course: Computer Architecture Theme: Internal Memory What is parity bit? What is Hamming code? Give examples.
Course: Computer Architecture Theme: Internal Memory What is parity bit? What is Hamming code? Give examples.
How to convert a decimal value to 7-bit ASCII code and ASCII with even parity? Please...
How to convert a decimal value to 7-bit ASCII code and ASCII with even parity? Please use 1234 as an example.
convert 0.83828125 to binary using 8 bit to right of binary point
convert 0.83828125 to binary using 8 bit to right of binary point
Assuming you are using a 64-bit (8-byte) block cipher in CBC mode. Show the results of...
Assuming you are using a 64-bit (8-byte) block cipher in CBC mode. Show the results of padding the following plaintexts so they can fit into an even number of blocks. (A) 0f8353c2 8e1ff6 (B) 8c521e (C) c1 (D) 9f6bef2c 902fe4ba
Assume a string is stored in memory using Hamming codes that may experience 1 bit errors...
Assume a string is stored in memory using Hamming codes that may experience 1 bit errors per 8 bit ASCII character (12 bit Hamming codes). write the string with explanation? The answer was given on another post which is; 010000110000: C 000001101000: h 000010100110: n 111000001011: r 011100100000: s 110001110011: ( 0000101100101: 00000000101 Please type the line by line explanation.
Design an even parity detection circuit. A parity bit is an error checking mechanism. Your circuit...
Design an even parity detection circuit. A parity bit is an error checking mechanism. Your circuit will count the number of 1’s in a stream of bits. If the number of 1’s is even, the circuit turns on an output called Y. Assume a single bit at each cycle – call the input X. Do not use an accumulator or counter. Design the even parity detection circuit using J-K flip-flops. Your answer must include: a. The state diagram. b. The...
(B) A SECDED encoded character has been retrieved, with the hexadecimal value of 40916. You may...
(B) A SECDED encoded character has been retrieved, with the hexadecimal value of 40916. You may assume that the SECDED parity is even. i. Was there an error in transmission? Explain your answer. ii. If there was an error, either correct it (reporting the corrected ASCII character) or explain why it could not be corrected (Show your Hamming/SECDED table)
(a) Consider binary codes determined by a parity-check matrix H. Let r be a vector of...
(a) Consider binary codes determined by a parity-check matrix H. Let r be a vector of received symbols. The syndrome of r happens to be a sum of some columns of H. What columns are these? Hint: They are determined by the errors occurring in transmissions. (b) Let G be a k × n generating matrix of a code C the form G = [I_k | B] , where Ik is the k × k identity matrix, and B is...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT