Questions tagged [floating-point]
The floating-point tag has no usage guidance, but it has a tag wiki.
14 questions
22
votes
9
answers
11k
views
Does the "Avoid using floating-point" rule of thumb apply to a microcontroller with a floating point unit (FPU)?
As a rule of thumb, I try to avoid using floating-point in my embedded system codebase.
Floating-point variables are:
Computation-intensive
Not atomic (can cause problems in an RTOS application or ...
41
votes
6
answers
10k
views
Is analog signal arithmetic faster than digital one?
Would it be theoretically possible to speed up modern processors if one would use analog signal arithmetic (at the cost of accuracy and precision) instead of digital FPUs (CPU -> DAC -> analog FPU -> ...
2
votes
1
answer
2k
views
System Generator: How to configure the CORDIC divider block. Understanding the block parameters
I have some dudes about the block parameters of the CORDIC DIVIDER.
I would like to someone explain me the parameter called "Latency for each processing element".
(See the parameters inside the red ...
40
votes
6
answers
8k
views
Why does Intel's Haswell chip allow floating point multiplication to be twice as fast as addition?
I was reading this very interesting question on Stack Overflow:
Is integer multiplication really done at the same speed as addition on a modern CPU?
One of the comments said:
"It's worth nothing ...
8
votes
5
answers
14k
views
How are numbers with decimal point handled in an MCU?
Please tell me how do MCUs handle decimal numbers like '23.3', '3.24' etc? How is it stored in a memory register? I know that I have to use float data type when handling these numbers while ...
8
votes
3
answers
2k
views
DIY FP - Implementing floating point math on a microcontroller without a hardware FPU
I'm working on a little personal project (targeting a Parallax Propeller, but this should be pretty generalizable) that needs floating point math.
The micro-controller I am working with does not have ...
4
votes
3
answers
13k
views
STM32F4 - Floating point unit ( FPU )
I would like to know, what is the purpose of the special FPU unit, that is advertised with STM32F4 microcontrollers ?
To quote this website :
" The Cortex-M4 core features a Floating point ...
2
votes
2
answers
638
views
Looking for a open-source ALU
I am looking for a open ALU to compute several equations like these:
y1 = e^((constant1 - x)^2/(2*x))
y2 = constant2/y1
y3 = y2*constant3 + x*constant4
Where x ...
2
votes
5
answers
5k
views
The bitwise complement of a floating point number's binary representation
I wonder if the bitwise complement (NOT) of a floating point number's binary representation of a number is the same number but with a change in its sign?
Thank you to all possible references to ...
1
vote
1
answer
2k
views
System Generator: How to configure the CORDIC divider block?
He all, I was wondering how should be the parameters fo the CORDIC divider block in order to get proper results.
In this example I´m trying to get 0.1/0.2 = 0.5 but I don´t get it and I don´t know why?...
1
vote
0
answers
75
views
Are there now 64-bit processors that deal with denorms routinely with no exception or interrupt? [closed]
Title says it all.
Are there processors with FPUs that deal with denorms arithmetically correctly (don't assume they're zero nor flush them to zero) and don't cause an exception? I would be interested ...
1
vote
2
answers
11k
views
STM32 crashing to Default_Handler
My STM32F4 Discovery is crashing when I try to run the sin or sinf function with the FPU enabled and with the FPU disabled.
...
1
vote
3
answers
1k
views
The NUCLEO F411RE Works with float point?
I need a MCU to works with Wifi and Floating point for PID application. In the later I acquire a Wifi expansion board, but I wants know if the STM32 NUCLEO FR11RE works with a Floating Point. I don't ...
0
votes
4
answers
3k
views
Convert IEEE Double to Integer - Verilog
I want to convert the IEEE Double value computed in my code to Integer.
E.g. I have computed: X = 64'hxxxxxxxxxxxxxxxx; Now i want to use it as index of an array as: some_array[X];
How can I do it? ...