Why do we use fixed point representation?

2 次查看(过去 30 天)
Hi
I would like to know why dont we use double precision floating point data type as such for simulink models to be exported to FPGA ? Is it because that FPGA do not support huge memory storage for double precision? Also please add some information about why do we decide to use 16 wordlength fixed point representation in most cases.
Krishnakumar

回答(3 个)

Ryan Johnson
Ryan Johnson 2014-1-7
Floating point math is typically expensive in terms of FPGA resources. FPGA primitive DSP elements are typically designed for 16-18 bit integer formats. You can build something which uses floating point, but it will require many more primitive elements (DSP blocks, LUTs, etc) to perform your operations.

Ryan Johnson
Ryan Johnson 2014-1-8
Sure, you can do double precision floating point math in most FPGAs these days, but at the cost of resources. It's all a trade off analysis. Do you want the highest throughput? Use fixed point. Do you need high dynamic range and precision? Use floating point. I've done designs which use both in different areas.
I guess I'd say that fixed point is still "preferred", as it's natively supported by primitives, but it comes down to what's right for the job.
Ryan

Krishnakumar
Krishnakumar 2014-1-8
Sir,
Thank you so much for your answer . But I would like to clear that if any of FPGA support double precision data. And also if still we will prefer fixed point representation due to the speed it offers in computing.
Krishnakumar

类别

Help CenterFile Exchange 中查找有关 Fixed-Point Designer 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by