zoomkrupesh
Newbie level 4
Hi All,
I am working on BCH code.I am using it to correct 4 bit of error of nand flash memory.
I have already implemented Hamming code to correct single bit errors.Below I have shown the steps for hamming implementation
(1)I applied hamming algorithm on 512bytes.
(2)During write operation in nand flash memory,I calculated a parity of 24 bits per 512 bytes.After completion of the writing of whole page in memory I stored calculated parity in spare area of nand flash memory.
(3)During read operation again I calculated the parity and I compare it with the previously stored bits.
(4)If both are equals then there is no error.
(5)If both are not equals then I calculated bit and byte address of error.
In BCH implementation I used the same procedure during writing operation in memory.
During decoding of BCH decoder I again count the parity
and I compare it with previously stored parity.If both are not equals then I am calculating the syndrome.
Now my question is that How to calculate the syndrome.In books I found that I need both data and previously calculated parity bits to calculate the syndrome.Is it the right way or should I calculate the syndrome using only previously stored parity bits
So please guide me I stuck here.
Thanks in advance
Krupesh
I am working on BCH code.I am using it to correct 4 bit of error of nand flash memory.
I have already implemented Hamming code to correct single bit errors.Below I have shown the steps for hamming implementation
(1)I applied hamming algorithm on 512bytes.
(2)During write operation in nand flash memory,I calculated a parity of 24 bits per 512 bytes.After completion of the writing of whole page in memory I stored calculated parity in spare area of nand flash memory.
(3)During read operation again I calculated the parity and I compare it with the previously stored bits.
(4)If both are equals then there is no error.
(5)If both are not equals then I calculated bit and byte address of error.
In BCH implementation I used the same procedure during writing operation in memory.
During decoding of BCH decoder I again count the parity
and I compare it with previously stored parity.If both are not equals then I am calculating the syndrome.
Now my question is that How to calculate the syndrome.In books I found that I need both data and previously calculated parity bits to calculate the syndrome.Is it the right way or should I calculate the syndrome using only previously stored parity bits
So please guide me I stuck here.
Thanks in advance
Krupesh