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++

sdram and other memories

Altera_Forum
Honored Contributor II
1,198 Views

hello everyone 

can any one guide me how to use the SDRAM or any other memory . 

how can i write the program to access it.. 

can i access through c-program where i write my custom instruction.. 

and can i access any memory both by c-prog and h/w block(custom instruction) 

bye
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
214 Views

Yes, to all questions. I would advise going through both the HW and SW tutorials, prior to trying anything else. 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
214 Views

 

--- Quote Start ---  

originally posted by ramesh_8051@Aug 16 2005, 04:18 AM 

how can i write the program to access it.. 

can i access through c-program where i write my custom instruction.. 

and can i access any memory both by c-prog and h/w block(custom instruction) 

--- Quote End ---  

 

It's going to look like any other memory, no special instructions needed. 

 

As for Nios2 custom instructions, they live in the ALU and don't access memory themselves; the Nios2 CPU handles the memory access. 

 

Did you mean custom hardware, like custom DMA peripherals? Custom hardware (Avalon bus masters) will see the SDRAM like any other memory. Additionally, custom hardware can take advantage of pipelined reads to increase bandwidth for block transfers; those details are in the Avalon Bus Specification, avazilable on the Altera web site.
0 Kudos
Altera_Forum
Honored Contributor II
214 Views

my webpage (http://www.slscorp.com/up3support/pages/documents.php

 

you can find what you want.
0 Kudos
Reply