Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
733 Views

ROM inferring problem

Hello; 

In my design I write a VHDL code to infer ROMs. It were specified to be M9k with the following attribute: 

 

attribute romstyle : string; 

attribute romstyle of q: signal is "m9k"; 

 

Then after compiling I didnot find these settings in the fitter report, however, I find other attributes for the other entities. Also the ROMs are inferred with the Altsync_ram function but didnot consume any M9K blocks. each ROM size is 8*256 I use the stratix3-EP3SL150F1152 chip. My question is what attributes can force the synthesis to use M9K bloks to infefer these ROMs? 

Thanks
0 Kudos
2 Replies
Highlighted
Valued Contributor III
3 Views

If you are using the altsync_ram IP block, then you are not inferring a rom. Inference is done by writing behavioural RTL that behaves like a ram and the synthesis will replace your code with an altsyncram. If you are using an altsynram you need to set the ram style paramters.

0 Kudos
Highlighted
Valued Contributor III
3 Views

There are examples of inferred memory in volume 1 chapter 12 of the Quartus handbook.

0 Kudos