Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

master_waitrequest

Altera_Forum
Honored Contributor II
868 Views

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.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
109 Views

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.

Altera_Forum
Honored Contributor II
109 Views

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.
Altera_Forum
Honored Contributor II
109 Views

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