- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an entity with a generic.
and I need to process data (which its size differ according to the generic value) with megafunctions (mult,ram..). Can you advice me how to perform that?.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The megafunction generates an hdl file that instanciate an IP, it redefines the default parameters with parameters entered by the user.
You can manually instantiate the same IP and redefines the default parameters with your own generic ones, but care should be taken to avoid contradictions in the parameters.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you dont have to use the megawizard to instantiate mega functions. You can pass your generics to the generics on the megafunction.
In VHDL you just include the library: library altera_mf; use altera_mf.altera_mf_components.all; and instantiate to your hearts content. But have you thought about using infered megafunctuions (ie. you write behvioural code and Quartus makes the megafunctions for you when you compile it?) you can do this easily for most megafunctions (including multipliers and most types of ram).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- The megafunction generates an hdl file that instanciate an IP, it redefines the default parameters with parameters entered by the user. You can manually instantiate the same IP and redefines the default parameters with your own generic ones, but care should be taken to avoid contradictions in the parameters. --- Quote End --- Thank you it was really help full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- you dont have to use the megawizard to instantiate mega functions. You can pass your generics to the generics on the megafunction. In VHDL you just include the library: library altera_mf; use altera_mf.altera_mf_components.all; and instantiate to your hearts content. But have you thought about using infered megafunctuions (ie. you write behvioural code and Quartus makes the megafunctions for you when you compile it?) you can do this easily for most megafunctions (including multipliers and most types of ram). --- Quote End --- actually I'm not familiar with this way of using megafunction but I will try to use it. thank you
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