Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16608 Discussions

How to force Quartus to use M9K memory

Altera_Forum
Honored Contributor II
1,427 Views

Hi, 

 

I have large array that I want to initialize with constant data: 

 

reg [9*1024-1:0] Data=9215'h....; 

 

that I want to use as m9k array, for example, as following: 

 

A<=Data[i*18+,18]; 

 

but if I do this, Quartus try to allocate this data in logic. 

 

In case if I download this data from external pin into the Data array, everything is ok, but I cannot use this approach in the real application. 

 

Please, advise me how to force Quartus to put some data into: 

 

1. M9K, 

2. MLAB 

3. M144 

4. Logic 

 

Thank you! 

 

Ilghiz
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
593 Views

look up the Verilog ramstyle synthesis attribute in Quartus Help

0 Kudos
Altera_Forum
Honored Contributor II
593 Views

Thank you for the fast and simple answer, (* ramstyle="M9K" *) before reg declaration solves my problem!

0 Kudos
Reply