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

How to increase number of words in RAM megafunction?

Altera_Forum
Honored Contributor II
1,432 Views

So I am using the dual port RAM mf, I noticed that the maximum number of words for any word size is 65536. Is there any way I can increase this? I want 3 bit words, and a lot of them. 

 

Will simulating with another board help? If yes, which one? Thanks in advance.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
579 Views

how many is a lot? THe megafunction is limited to 16 bit addressing. If you have to use the megawizard/mf, then you will have to generate multiple rams (why not have 3x 1x64k ram in parrallel, 1 bit per ram ?)  

 

Have you worked out exactly how many internal memory blocks your 3 bit word will need? 

Have you tried inferring the ram in HDL?
0 Kudos
Altera_Forum
Honored Contributor II
579 Views

 

--- Quote Start ---  

how many is a lot? THe megafunction is limited to 16 bit addressing. If you have to use the megawizard/mf, then you will have to generate multiple rams (why not have 3x 1x64k ram in parrallel, 1 bit per ram ?)  

 

Have you worked out exactly how many internal memory blocks your 3 bit word will need? 

Have you tried inferring the ram in HDL? 

--- Quote End ---  

 

 

I am basically building a 200X400 grid, so that would mean 80,000 cells with 3 bits each. I could probably try inferring the ram, would that be the best way?
0 Kudos
Altera_Forum
Honored Contributor II
579 Views

Did you try to type in 80000 in the MegaFunction's number of words field?

0 Kudos
Altera_Forum
Honored Contributor II
579 Views

 

--- Quote Start ---  

Did you try to type in 80000 in the MegaFunction's number of words field? 

--- Quote End ---  

 

 

Hah! That worked, my question looks very stupid now.! Thanks.
0 Kudos
Reply