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.
construct hamming code for the message (1001) Consider even parity 2p ≥ p+m+1
construct hamming code for the message (1001) Consider even parity 2p ≥ p+m+1
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.
Show the bits that represent the letters ‘1HpQ’ in 8-bit ASCII, using even parity.
Show the bits that represent the letters ‘1HpQ’ in 8-bit ASCII, using even parity.
4. Using Hamming code, assume the sender want to send a message of 4 bits, 1111....
4. Using Hamming code, assume the sender want to send a message of 4 bits, 1111. (a) What is actually being transmitted (b) Assume during transmission the parity bit p1 is inverted by an error (noise) i. How does the receiver detect the error? ii. How does the receiver correct the error? Show your work by calculating parity bits and syndrome bits.
Assume that for each character code we add an odd parity bit as the most significant...
Assume that for each character code we add an odd parity bit as the most significant bit. What are the 8-bit code values for the phrase "Digital Design" (without the quotes) with the added parity bit?
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
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT