- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the advantage of creating for exapple a multiplier with the megafunction wizard for multiplying m and n, vs just writing m*n?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess the megafunction would be the most optimised code, having the choice of pipelining. You can open the .v file and see what optimisations they implement. I guess that a MF multiplier would also take care of some exceptional cases such as multiplying infinity and such.
Hope this makes sense- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A HDL multiply expression basically infers the same MegaFunction IP. But you don't have some of the options to control e.g. pipeling. For multipliers, the default is mostly O.K., so you don't need it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you're using multipliers wider than 18 bits you'll want to use the Megafunction and add some pipelining if fmax is of concern.

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