LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PLS!!!hellp

We want to divide two integer numbers on the FPGA. For example to get 1 / 3 = 0333, not 1 / 3 = 0. We do not want it to be done on computer. Is it possible ?????? We use SbRio9632.

0 Kudos
Message 1 of 3
(2,155 Views)

i have no idea of FPGA, but some general comments:

1. subject - choose a meaningful name.

2. punctuation marks - they are not living in groups

3. integer division - it just works like this:

1/3 = 0

3/3 = 1

4/3 = 1

and so on.

If you want floating point results, you need to use floating point data types. Casting your integer to floating point should fix your problem.

Message 2 of 3
(2,150 Views)

@frosi wrote:

Is it possible ??????


Yes. You have to program it yourself in the FPGA code. For example, you could multiple numerator and denominator by 1000 and then divide. You could also do what was previously suggested. Lots of possibilities, depending on how much FPGA code you want to write.

 

And what is your LabVIEW question?

0 Kudos
Message 3 of 3
(2,147 Views)