- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everybody,
I have a problem in my nios II simulation. I have used the avalon memory-mapped master template for writting into a sdram memory. When I simulate the component and the master_write signal is asserted, the master_waitrequest signal reminds in a high level for 143350 ns, which is too long time.... I have upload the sdram parameters. Anyone can help me to solve this problem? Many thanks.Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK I will try to answer myself, until 200000ns the sdram is not initialized by nios. After this time the waitrequest signal is reduced to 143ns.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is that the first/only cycle, part of a back to back sequence, or a single cycle separated by a lot of idle time?
It might be that the initialisation hasn't finished. My experiments with SDAM seemed to imply that, under normal circumstances, the avalon cycle for isolated writes terminated immediately. My suspicions are that writes to adjacent addresses are buffered so that they can be sent as a burst.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That memory controller is not initialized/calibrated by Nios II, that is the old SDR SDRAM controller. Just like the newer DDR SDRAM controllers there is some time spend while the controller is coming up out of reset where it can't perform data accesses off-chip and as a result wait request must be asserted. I can't remember how long that delay is but 143us sounds about right.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page