Forum Discussion
Altera_Forum
Honored Contributor
19 years agoBuilding a SDRAM controller
Hi.....im quite new to the Altera DE2 board, and i have a very fundamental question. Lets say I wanted to build hardware that does Y = (A+B)*C where A is my input and B and C are prestored values in ...
Altera_Forum
Honored Contributor
19 years agoOk so lets say I have hardware that does this -> Y=5*a . It takes data from 1 memory location , feeds it to 'a' and then stores the result 'Y' in the same memory location. The module has an address generator which increments the address every clock cycle. So now I have 1 'clock' input, 1 'address' output, 1 'data' inout.
Now in my head, I have 3 parts to the system - my hardware, the NIOS system, and the SDRAM. The SDRAM is connected to the SDRAM controller (built as part of the NIOS system). My hardware is connected to the NIOS system as well. I have no use for the processor since im not going to run any C code on it. All it does is provide a master device for my SDRAM controller. (The only reason im using the NIOS is to get the SDRAM controller) How do I get NIOS system to redirect the address I generate to the SDRAM and get the data back and forth between my hardware and the SDRAM?