I have a text-file with a bunch of fractional numbers(like +-1.8423) that I'm going to feed to my module to do some calculations with. The calculations are as follows:
temp1 = frac_num - integer_num
temp2 = temp1*temp1
What do I need in my port-declaration to take in this? And to do the previously mentioned operations on them.
Also, in the end this module is to work together with a c++ script, which operates on float-numbers. Would it be easier to implement the fore mentioned code directly with float numbers or to convert the float-numbers from the c-code to fixed point and then operate on these?