AHB read ECC support - ECC write data generation using software

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AHB read ECC support - ECC write data generation using software

Jump to solution
902 Views
pcchang
Contributor I

Hi,

We are studying the i.MX RT1170 Processor Reference Manual, chapter 30 FlexSPI Controller, 30.3.10 AHB read ECC support. There is a paragraph explaining the generation of wdata_ECC_swap from wdata. We are confused with step 2, converting 32 bits of wdata_swap into wdata_ECC. Specifically, how the matrix is applied ?

pcchang_0-1726217637863.png

 

-Chang

0 Kudos
Reply
1 Solution
858 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @pcchang ,

Thanks for your interest in NXP MIMXRT series!

In the process you mentioned, the calculation is done by one combination per 4 bits. Divide the 32-bit wdata_swap into 8 combinations, then each is a 1*4 matrix, and multiply it with a 4*4 matrix to get another 1*4 matrix. It is the corresponding four bits in wdata_ECC.

Best regards,
Gavin

View solution in original post

0 Kudos
Reply
1 Reply
859 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @pcchang ,

Thanks for your interest in NXP MIMXRT series!

In the process you mentioned, the calculation is done by one combination per 4 bits. Divide the 32-bit wdata_swap into 8 combinations, then each is a 1*4 matrix, and multiply it with a 4*4 matrix to get another 1*4 matrix. It is the corresponding four bits in wdata_ECC.

Best regards,
Gavin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1954123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAHB%20read%20ECC%20support%20-%20ECC%20write%20data%20generation%20using%20software%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1954123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20are%20studying%20the%20i.MX%20RT1170%20Processor%20Reference%20Manual%2C%20chapter%2030%20FlexSPI%20Controller%2C%2030.3.10%20AHB%20read%20ECC%20support.%20There%20is%20a%20paragraph%20explaining%20the%20generation%20of%20wdata_ECC_swap%20from%20wdata.%20We%20are%20confused%20with%20step%202%2C%20converting%26nbsp%3B32%20bits%20of%20wdata_swap%20into%20wdata_ECC.%20Specifically%2C%20how%20the%20matrix%20is%20applied%20%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pcchang_0-1726217637863.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pcchang_0-1726217637863.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299029i002E67EFE5B49BF1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pcchang_0-1726217637863.png%22%20alt%3D%22pcchang_0-1726217637863.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E-Chang%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1958260%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20AHB%20read%20ECC%20support%20-%20ECC%20write%20data%20generation%20using%20software%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1958260%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F240551%22%20target%3D%22_blank%22%3E%40pcchang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20interest%20in%20NXP%20MIMXRT%20series!%3C%2FP%3E%0A%3CP%3EIn%20the%20process%20you%20mentioned%2C%20the%20calculation%20is%20done%20by%20one%20combination%20per%204%20bits.%20Divide%20the%2032-bit%20wdata_swap%20into%208%20combinations%2C%20then%20each%20is%20a%201*4%20matrix%2C%20and%20multiply%20it%20with%20a%204*4%20matrix%20to%20get%20another%201*4%20matrix.%20It%20is%20the%20corresponding%20four%20bits%20in%20wdata_ECC.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%3C%2FLINGO-BODY%3E