Hi im trying to convert a matlab code to HDL using HDL coder, the code gives me floating point output.
after getting the HDL code, when i m trying to synthesize it, it gives me an error that floating data is not synthesizable? can anyone tell me that di i need to convert my data to some other format then the code will get synthesized.
the HDL (VHDL and verilog ) doesnt even have the float data type and system verilog has the data type but it is used in verification only.for the floating point calculations in HDL we have the ieee spec for the floating point numbers. there are two modes in which we can represent the floating point number in HDL. one is as a 32 bit number where the first 23 bits are the mantissa, the next 8 bits are the exponent and the MSB is the sign bit. also there is the 64 bit number where the first 53bits are mantissa and next 11 bits are exponent and the msb is the sign bit
you can represent the floating point in this format and that will be synthesized