ijor wrote: 05 May 2022 21:41
exxos wrote: 05 May 2022 18:10
Removing the other terms causes problems to get worse. So IMO there is some odd timing issues going on somewhere between clock switching and accessing SDRAM.
If there are timing issues, as you both suspect, then results might always be unpredictable and very difficult to diagnose. You have to constrain the design properly and perform a full timing analysis. Otherwise you are IMHO shooting in the dark.
Just to go back to this as I didn't have time yesterday.
You're quite correct Ijor and I have (not for this project, but for DFB1) tried to set up timing requirements and a timing report is always available.
However there are a number of problems.
1) I don't know how to correctly set up timing requirements.
This is a bit of a biggie. Any requirement I can figure out how to set up never passes anyway
2) I don't know how to correctly interpret the timing report.
OK, I can read the delay from AS to AS_INT (say), but what are the key signals on the third state of nine of the DRAM controller? No idea.
3) Even if I could do both 1 and 2, I wouldn't know what to do about it afterwards.
So my approach has been to reduce complexity as much as possible, set everything to speed mode and measure the results. If it appears to work, test it extensively. If it doesn't, attempt mitigation and go again.
My theory is this is open source. It only needs to be good enough to work and then somebody who *does* know what they're doing can improve it later. Hence why this shipped with blitter not permitted to access altram. I don't think it could meet the timing requirement, but it wasn't a show-stopper and someone else may be able to.
What I hadn't quite understood from Exxos' posts (he works on it during the day, I try to follow it and act on it in a couple of hours at night -- we sometimes get out of sync) was that the stock firmware was not working reliably for him. I thought all these problems were caused by trying to get blitter to work so my answers have all revolved around the timing issue I picked up with that.
It's possible (more than likely now I see issues with stock too) that there are differences between the H5 and STE that need to be accommodated too.
BW