Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21599 Discussions

megafunction ram and DE2 board

Altera_Forum
Honored Contributor II
1,341 Views

Still very much a beginner here. 

 

I am using a de2 board as my development board. I have written a program which uses various Altsyncram for storing data from my program. 

 

When i run it on the simulator all seams fine and i can see the data values stored and changing, but when i run in on the board it look like it does not store any data. I have set up both hex and mif files. 

But not clear how you can set up the ram on taget board so the values gets stared and read. 

 

There is no cpu or anything flash just ins out and bits of memory to store data. 

 

Not sure what you have to set up to get the de2 to set up memory so the program will use this I guess i am missing something basic !!! 

 

jan
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
456 Views

Besides FPGA internal RAM, the DE-2 board also has 512Kbyte SRAM, 8MByte SDRAM, 4MByte Flash, SD-Card-Slot. Many options for data storage. But you didn't yet tell, what you're trying to achieve with it.

0 Kudos
Altera_Forum
Honored Contributor II
456 Views

Hi sorry, 

 

All i need to do is store some values in ram. 

 

I am reading values in from a serial line device not (rs232) 57 bits of info from 200 different devices, and storing these values, moving some of the bits about and re outputting them onto another serial line. 

 

I have set up the megafunction rams with 3 differnt mif files. 

 

As I said if i run the system in the simulator i can see the data in the memory slots and see it changing with different input samples, but when i run it on a live system i get nothing out on 7 seg displays, i have set up the 7 seg displays to read the values from the ports, i can change the 7 seg inputs to my address counter then it counts up so i know the data ports are working if there is data there but the ports just sit at zero. 

 

The question is do i have to or how do i to set up the sram or internal ram to use it for storage of these values, how do i get my mif files or hex files into the ram.  

 

I have 3 sets of storage for the various data 2 @256x8 {2K} and 1 @256x64.{16K} 

 

I hope this makes it a bit clearer.  

 

As far as i can see everything is working apart from the data going in and out of the memory locations. 

 

yours 

 

jan  

yours 

 

jan
0 Kudos
Reply