topic need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types- in Other FPGA Architecture
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1007927#M35991
<P><SPAN>Hello,</SPAN></P><P><SPAN>i need to subtracte two signal, those have different data types: "first_signal: floating-point data type" ; "second_signal: fixed-point data type".</SPAN></P><P><SPAN>i am going to prepare a vhdl code to calculate the subtraction of these two inputs. i would like to hear from you and get some suggestion, like what i need to avoid or to take into consideration. </SPAN></P><P><SPAN>I am very glad to hear from you and thanks in advance.</SPAN></P><P> </P>Wed, 14 Aug 2019 12:17:28 GMTkikibillel522019-08-14T12:17:28Zneed to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1007927#M35991
<P><SPAN>Hello,</SPAN></P><P><SPAN>i need to subtracte two signal, those have different data types: "first_signal: floating-point data type" ; "second_signal: fixed-point data type".</SPAN></P><P><SPAN>i am going to prepare a vhdl code to calculate the subtraction of these two inputs. i would like to hear from you and get some suggestion, like what i need to avoid or to take into consideration. </SPAN></P><P><SPAN>I am very glad to hear from you and thanks in advance.</SPAN></P><P> </P>Wed, 14 Aug 2019 12:17:28 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1007927#M35991kikibillel522019-08-14T12:17:28ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008414#M36015
<P>How are u handling floating point .</P>
<P> </P>Thu, 15 Aug 2019 15:30:37 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008414#M36015drjohnsmith2019-08-15T15:30:37ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008630#M36034
<P>good morning drjohsmith</P><P>thank you very much for your comment.</P><P>so, i have two system doing the same function (multiplication), one is prepared in vhdl code and using no floating-point library (just fixed-point data type). The second system is implemented in cyclone V with ARM proccessor, and the floating point library is available (i will use the single precision - 32 bits). 32 bits precision equivalent to 7 decimal digits.</P><P>So, the both systems doing the same operation, have the same results with different data type.</P><P>Do you have any suggestions that i can follow to do this kind of comparison and thanks in advance.</P><P>LG, Billel </P>Fri, 16 Aug 2019 06:53:42 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008630#M36034kikibillel522019-08-16T06:53:42ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008708#M36035
<P>can I ask how your using a cyclone V on a Xilinx Part ?</P>
<P> </P>Fri, 16 Aug 2019 10:02:38 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008708#M36035drjohnsmith2019-08-16T10:02:38ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008719#M36036
that what is available now, my Problem is how do this comparison between two different data types, not how to use Cyclone V, that is not my fucus, it can be also XILINX, and getting the same output data type (Floating point).<BR />Thanks in advance.Fri, 16 Aug 2019 10:26:10 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008719#M36036kikibillel522019-08-16T10:26:10ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008735#M36037
<P>Just a reminder this is a forum run by Xilinx for Xilxin support,</P>
<P> </P>Fri, 16 Aug 2019 11:10:49 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008735#M36037drjohnsmith2019-08-16T11:10:49ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008759#M36038
<P>thanks for your advice.</P><P>if you have any suggestions regarding the issue, i would like to hear from you.</P><P> </P>Fri, 16 Aug 2019 12:11:18 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008759#M36038kikibillel522019-08-16T12:11:18ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008776#M36040
<P>Buy a Xilinx chip? That would make it easy. Xilinx has their Floating Point IP core, and Xilinx's Vivado HLS can easily accept both fixed-point and floating-point values, do maths on them, and spit out a result.</P>
<P> </P>
<P>At the highest level, the easiest approach here is probably to get the fixed-point values into the PS, convert them to floating-point (easy), and then do the comparison in C code. It'll be easier to get the PS to handle fixed-point than getting the PL to handle floating-point. By far the hardest part is likely to be getting the values into the PS - and you won't get much help for that here, since it'll be manufacturer-specific and everyone here just knows how to do it with Xilinx chips.</P>Fri, 16 Aug 2019 13:12:11 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008776#M36040u42233742019-08-16T13:12:11ZRe: need to subtract two numbers/signals, those have different data types -floating-point and fixed-point data types-
https://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008780#M36041
<P>thanks a lot for your suggestions. a very helpful.</P>Fri, 16 Aug 2019 13:19:39 GMThttps://forums.xilinx.com/t5/Other-FPGA-Architecture/need-to-subtract-two-numbers-signals-those-have-different-data/m-p/1008780#M36041kikibillel522019-08-16T13:19:39Z