Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab to HDL conversion problem with floating point numbers

Status
Not open for further replies.

samiksha

Junior Member level 1
Joined
Jan 3, 2008
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,397
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top