- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is it normal that a double precision multiply operation between local variables is taking about 1100 cycles for a NIOS II to execute it? Note: The nymber of cycles is measured using the perfomance counters peripheral. Thank you, GeorgeLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know the exact number of cycles, but floating point calculations are not quick if you do not have dedicated hardware for the job. Having the double precision doesn't help matters. If you want this to be fast, I think their is a relatively small floating point core in this forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanx for pointing this out. I will keep this alternative in mind.
But before i decide to add a hardware FPU i would like to make sure that it is actually needed. 1100 cycles for a single double precision multiply operation sounds too big to be true. So, i am suspecting that i am doing something wrong here. Perhaps someone from Altera could say a word here. I wouldn't like to add a hardware FPU now and find out later that i am actually "killing a mosquito using a cannon!" I am using the Nios II/f and something like 50 cycles per double percision multiply operation would be more than enough for my application.
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