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

how to simulate .bdf files in ModelSim-Altera

Altera_Forum
Honored Contributor II
3,842 Views

Hi, 

I am new to Altera QuartusII,  

I am trying to simulate a block design file in ModelSim. 

 

I have generated a HDL file from the design and are able to simulate it and view some of the signals. 

 

My problem is that the design uses a BUSMUX mega function, and I am not able to find how to include it in the simulation. All output from the MUX are always "XXXX...X" 

 

Has any one any hints on how to preform a simulation on block design files?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
2,523 Views

 

--- Quote Start ---  

Hi, 

I am new to Altera QuartusII,  

I am trying to simulate a block design file in ModelSim. 

 

I have generated a HDL file from the design and are able to simulate it and view some of the signals. 

 

My problem is that the design uses a BUSMUX mega function, and I am not able to find how to include it in the simulation. All output from the MUX are always "XXXX...X" 

 

Has any one any hints on how to preform a simulation on block design files? 

--- Quote End ---  

 

 

Hi, 

 

did you have a look into your generated designfile ? Is the BUSMUX function implemented as blackbox ? 

 

Kind regards 

 

GPK
0 Kudos
Altera_Forum
Honored Contributor II
2,523 Views

Your approach is the correct one. What you have probably done is create a HDL file for the top level. If you open this file in a text editor this will show you the interconnections between all of your blocks. 

 

However you are also missing the HDL for the other components in your top level ie BUSMUX 

 

You must also create a HDL file for the BUSMUX primitive. Just open the BUSMUX primitive in another BDF file and create a HDL file for this primitive. 

 

Once this HDL file is created then you can add this file to the compilation list in modelsim. 

 

This will make sure all files are needed for your design.  

 

You would have probably got a binding error if you initially tried to start modelsim since the BUSMUX HDL file was missing from your original compilation 

 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
2,523 Views

 

--- Quote Start ---  

Hi, 

 

did you have a look into your generated designfile ? Is the BUSMUX function implemented as blackbox ? 

 

Kind regards 

 

GPK 

--- Quote End ---  

 

 

Hi, 

 

it is not neccessary to generate a HDL file for the BUSMUX. This is done by the Megawizard itself. All what you have to do is to compile the HDL in Modelsim , but 

don't forget to include the resource library "220model_ver" (in case you are using Verilog). 

After doing this all works fine. I have a small project attached. 

 

Kind regards 

 

GPK
0 Kudos
Reply