Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Floating Point in NIOS II

Altera_Forum
Honored Contributor II
1,060 Views

Hi All, 

 

How floating point numbers are handled in NIOS processor ?  

Do I have to use seperate registers for both mantissa & exponent?  

 

How a two dimensional array (each element is a floating number) is accessed in Verilog ?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
342 Views

 

--- Quote Start ---  

originally posted by mohana sundaram.s.v+aug 26 2005, 09:14 am--><div class='quotetop'>quote (mohana sundaram.s.v @ aug 26 2005, 09:14 am)</div> 

--- quote start ---  

how floating point numbers are handled in nios processor?[/b] 

--- quote end ---  

 

niosii does not have an fpu. floating point is done in software. that said, some people have done floating-point coprocessors, but i haven&#39;t used any of them, so i can&#39;t say. 

 

if you&#39;re looking to do heavy-duty floating point, you might want to generate a custom peripheral (either with bus mastering, or with extra slave ports for altera dma peripherals to use) to do the job. this sounds like it is more in the realm of megacore ip blocks and dsp builder. 

 

<!--quotebegin-mohana sundaram.s.v@Aug 26 2005, 09:14 AM 

how a two dimensional array (each element is a floating number) is accessed in verilog ? 

--- Quote End ---  

 

That would be a three-dimensional &#39;reg&#39; array (rows, columns, and bits). Altera&#39;s Verilog implementation is crippled in that it does not support multidimensional register arrays (except in the limited case of one-dimensional memory spaces). Again, DSP Builder handles this a bit better.
0 Kudos
Reply