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

How will Altera ModelSim recognise RAM blocks

Altera_Forum
Honored Contributor II
1,309 Views

Hi guys, 

 

My question is regarding simulating a multi-port memory using QuartusII. I have the code given in the Recommended HDL Coding Styles chapter for a simple dual port ram. I have written the test bench for it. We cannot simulate using Quartus II. How will Altera ModelSim recognize the code as a RAM block?!!! :confused:  

 

Thanks.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
634 Views

I don't think that ModelSim must "recognize" the RAM block. It will model the functional behaviour defined in your code whatever it is, being synthesizable or not. Most likely it will be shown as memory object. 

 

The more interesting question is, if your RAM code will be recognized (inferred) by Quartus, which can be read from the compilation report. 

 

You can by the way, still simulate the code in recent Quartus versions using Qsim. And you can perform a gate level simulation of the synthesized code.
0 Kudos
Altera_Forum
Honored Contributor II
634 Views

Thanks for you reply FvM. 

 

I have one more question. I created a .hex file to initialise the RAM memory and I want to use it in Modelsim. I referred the document which said -  

Search for the following lines in the modelsim.ini file: 

; List of dynamically loaded objects for Verilog PLI applications 

; Veriuser = veriuser.sl 

Remove the semicolon (;) from the "Veriuser" line and point to the location of the .dll file as follows: 

Veriuser = \eda\mentor\modelsim\convert_hex2ver.dll 

 

I do not have the modelsim folder in \eda\mentor 

 

However, in another Altera s document it is mentioned that convert_hex2ver.dll can be found in : <modelsim-altera_install_dir>\win32aloem/../win32aloem/convert_hex2ver.dll 

But I dont have the .dll file there as well!!! I dont know why...Is there any reason why that .dll is missing? 

 

Can anybody kindly attach the convert_hex2ver.dll file so that I can download it and use it. It will help me proceed with my work. 

 

Thanks.
0 Kudos
Altera_Forum
Honored Contributor II
634 Views

Hi,  

 

Hi know this thread is old, but I have the same matter. Then, Jedstevens, Did you solve it? How?  

It would be so helpful!! 

 

Thanks in advance, 

 

Luana 

 

 

--- Quote Start ---  

Thanks for you reply FvM. 

 

I have one more question. I created a .hex file to initialise the RAM memory and I want to use it in Modelsim. I referred the document which said -  

Search for the following lines in the modelsim.ini file: 

; List of dynamically loaded objects for Verilog PLI applications 

; Veriuser = veriuser.sl 

Remove the semicolon (;) from the "Veriuser" line and point to the location of the .dll file as follows: 

Veriuser = \eda\mentor\modelsim\convert_hex2ver.dll 

 

I do not have the modelsim folder in \eda\mentor 

 

However, in another Altera s document it is mentioned that convert_hex2ver.dll can be found in : <modelsim-altera_install_dir>\win32aloem/../win32aloem/convert_hex2ver.dll 

But I dont have the .dll file there as well!!! I dont know why...Is there any reason why that .dll is missing? 

 

Can anybody kindly attach the convert_hex2ver.dll file so that I can download it and use it. It will help me proceed with my work. 

 

Thanks. 

--- Quote End ---  

0 Kudos
Reply