--- Quote Start ---
Example:
for (i=0; i<0x10000; i++) {
*((int*)SDRAM_BASE_ADDRESS+i) = i;
}
error = 0;
for (i=0; i<0x10000; i++) {
if ( *((int*)SDRAM_BASE_ADDRESS+i) != i ) {
error = i;
break;
}
}
--- Quote End ---
Thank you for your reply again Cris :)
I haven't write C/C++ for about 4 years :shock:
can you give me the complete C code? # include ... bla bla bla
void ....bla bla bla
--- Quote Start ---
This way you can identify if the problem is always with specific addresses or data, while the jtag debugger simply tells you the address range where the error occurred, but not the exact address neither what the data mismatch was.
--- Quote End ---
And if I already know the specific addresses/data of error , what will be the next step?
--- Quote Start ---
A few tenths of ns difference should not matter in your case and with your clock freq.
Probably your design can work with any shift from -1.0ns to -2.0ns
--- Quote End ---
I got it .. thank you , Cris :o