Forum Discussion
hsyn
New Contributor
2 years agoIn the "Cyclone V Hard Processor System Technical Reference Manual" PDF, there is a sample code provided for testing SDRAM with the preloader.
I have attached the image below.
When I executed this code, I encountered a verification error. Upon inspecting the code, it seems that they might have incorrectly incremented the "cnt" value in the "read" and "write" loops.
It worked correctly when I modified the "for" loop in the "read" section to be "cnt++".
Is it normal to have errors in the code provided in the PDF, or am I misinterpreting certain parts of it?