Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

master_waitrequest

Altera_Forum
Honored Contributor II
1,107 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
348 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.

0 Kudos
Altera_Forum
Honored Contributor II
348 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.
0 Kudos
Altera_Forum
Honored Contributor II
348 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.

0 Kudos
Reply