Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThank you for reply!
But the problem is, at the moment I can not use the CI floating point division. I have enabled the division in the floating point custom instuction in SOPC Builder. Every time I run BSP Editor I get # Hardware Floating Point Custom Instruction without Divider present. ALT_CFLAGS += -mcustom-fpu-cfg=60-1 ALT_LDFLAGS += -mcustom-fpu-cfg=60-1 and I think it should be -mcustom-fpu-cfg=60-2, right? But manually changing seems not to work for me with ci floating point division. Do you have some comments? I have used the standard CI Tutorial from Altera, here are the results --Performance Counter Report-- Total Time: 0.00193648 seconds (242060 clock-cycles) +---------------+-----+-----------+---------------+-----------+ | Section | % | Time (sec)| Time (clocks)|Occurrences| +---------------+-----+-----------+---------------+-----------+ |FP CI ADD | 4.55| 0.00009| 11017| 1000| +---------------+-----+-----------+---------------+-----------+ |FP SW ADD | 42.4| 0.00082| 102575| 1000| +---------------+-----+-----------+---------------+-----------+ --Performance Counter Report-- Total Time: 0.00193874 seconds (242343 clock-cycles) +---------------+-----+-----------+---------------+-----------+ | Section | % | Time (sec)| Time (clocks)|Occurrences| +---------------+-----+-----------+---------------+-----------+ |FP CI SUBTRACT | 4.55| 0.00009| 11016| 1000| +---------------+-----+-----------+---------------+-----------+ |FP SW SUBTRACT | 42.8| 0.00083| 103763| 1000| +---------------+-----+-----------+---------------+-----------+ --Performance Counter Report-- Total Time: 0.00212669 seconds (265836 clock-cycles) +---------------+-----+-----------+---------------+-----------+ | Section | % | Time (sec)| Time (clocks)|Occurrences| +---------------+-----+-----------+---------------+-----------+ |FP CI MULTIPLY | 4.52| 0.00010| 12017| 1000| +---------------+-----+-----------+---------------+-----------+ |FP SW MULTIPLY | 50| 0.00106| 132823| 1000| +---------------+-----+-----------+---------------+-----------+ --Performance Counter Report-- Total Time: 0.00498763 seconds (623454 clock-cycles) +---------------+-----+-----------+---------------+-----------+ | Section | % | Time (sec)| Time (clocks)|Occurrences| +---------------+-----+-----------+---------------+-----------+ |FP CI DIVIDE | 40.1| 0.00200| 250195| 1000| +---------------+-----+-----------+---------------+-----------+ |FP SW DIVIDE | 38.9| 0.00194| 242463| 1000| +---------------+-----+-----------+---------------+-----------+ Thank you, etricky