Given a 8-bit word 00111001, suppose when the word is read from memory, the new check bits are calculated based on the fetched reading is 0001. Provide details regarding how you get the answer.
Part 1) Is the data fetched correctly?
Part 2) If no, is the data bit or check bit goes wrong?
Part 3) What is the additional checking bit that you need to store
in the memory if you want to use it to detect two bits error?
Part 1).
Calculating hamming code check bits for the data
The check bit positions will be 20 = 1, 21 = 2, ,22 = 4 , and 23 = 8
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
0 |
1 |
1 |
C8 |
1 |
0 |
0 |
C4 |
1 |
C2 |
C1 |
0 |
0 |
1 |
1 |
1 |
Considering even parity
The check bits are in bit numbers 8, 4, 2, and 1.
Check bit for c8 = D12 ® D11® D10 ® D9 =0®0®1®1=0
Check bit for c4= D12® D7® D6® D5 =0®1®0®0=1
Check bit for c2 =D11® D10® D7® D6 ® D3 =0®1®1®0®1=1
Check bit for c1 =D11® D9® D7® D5 ® D3 =0®1®1®0®1=1
Thus, the check bits are: 0 111
This does not matches with the calculated check bit 0001.So there is an error.The data has not fetched correctly.
2) for the wrong bit we xor(0111, 0001) = 0110 =6
So there is an error in the 6th bit. Which is a data bit.
3.An extended Hamming code having one extra parity bit is often used. Extended Hamming codes achieve a Hamming distance of four, which allows to check when any two-bit errors occur.
Given a 8-bit word 00111001, suppose when the word is read from memory, the new check...
Question 10 (10 points) Consider a cache of 8 lines of 16 bytes each. Main memory is divided into blocks of 16 bytes each. That is, block 0 has bytes with addresses 0 through 15, and so on. Now consider a program that accesses memory in the following sequence of addresses: Loop three times: 10 through 20; 32 through 52. Once: 20 through 35. Suppose the cache is organized as direct mapped. Memory blocks 0, 8, 16 and so on...
Practice 5 The followings are 8-bit words is stored in the memory. Suppose when the words were read from the memory, the check bits are calculated to be 0010. Using Hamming error correction code, find the he check bits stored together with the word, the syndrome word and the word fetched from the memory for the word given below. a) 1111 0001 (11 marks)
Show how you got your answer. 5.12 For the 8-bit word 00100001, the check bits stored with it would be 1001. Suppose when the word is read from memory, the check bits are calculated to be 0101. What is the data word that was read from memory? You manu check hits are needed if the Hamming error correction code is used to 12
23. The followings are 12-bit words read from the memory. Suppose when the words were sent to the memory, the check bits are calculated to be 10001. Using Hamming error correction code, find the new check bit, the syndrome word and the original word stored in the memory for the word retrieved given below. a. 1000 1101 0010 (12 marks) b. 1101 1000 1101 (12 marks)
5) (2 pt) A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit word read out is 010011111000? Show your work. 5) (2 pt) A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit...
A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit word read out is as follows: 101110000110
Extra problem: Use the attached sheet to draw a 8- bit odd parity generator and a odd-parity checker for the 8 data bits and odd parity bit. Let the Error output be active-low (so that it goes low if there is an error and is high if there is no error) Parity Error-Detection System Using 74280s, design a complete parity generator/checking system. It is to be used in an 8-bit, even-parity computer configuration. Solution: Parity generator: Because the 74280 has...
1. Cache memory (8pts) Consider adding cache to a processor-memory system design. The microprocessor without cache needs 12 clock cycles to read a 16-bit word from the memory. With cache, it takes only 4 clock cycles if the data happens to be in the cache and a total 20 clock cycles including the cache misses. a. What is the performance ratio of the cache system to the non-cache system given a hit rate of 80%? b. For what hit rate...
1. Cache memory (8pts) Consider adding cache to a processor-memory system desigrn. The microprocessor without cache needs 12 clock cycles to read a 16-bit word from the memory. With cache, it takes only 4 clock cycles if the data happens to be in the cache and a total 20 clock cycles including the cache misses a. What is the performance ratio of the cache system to the non-cache system given a hit rate of 80%? b. For what hit rate...
In a sensible language ( any of C#/Java/Python) write a program which correctly calculates add, subtract, multiply and divide using our ‘minifloat’ binary format using an algorithm you code yourself. Some details: Your program only needs to work on two ‘numbers’ at a time, read those in from a text file – failure to read those values from a text file will result in a grade of 0. For each ‘number’ store the sign, exponent and mantissa separately. You can hard code your...