- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page