4676 views|1 replies

8

Posts

0

Resources
The OP
 

FPGA lossless fixed-point [Copy link]

I took a DJI written test a few days ago. One of the questions was how to do lossless fixed-point conversion of 12.918. What is the minimum bit width? I looked at other people's answers online, but they all seemed wrong, such as the following one. With 12 bits, the minimum precision that can be represented is 1/(2^12), 12.918/(1/(2^12)) = 12.918*(2^12), the result is not an integer, so it cannot be losslessly fixed-pointed. But according to this, no matter how many bits, this number cannot be losslessly fixed-pointed, right? So did I understand something wrong?
This post is from FPGA/CPLD

Latest reply

This post was last edited by coyoo on 2018-8-8 11:23 It depends on the specific definition of "lossless". If no error is allowed, then the method you mentioned will not work. However, fixed-point conversion is generally achieved by sampling the method you mentioned. It can only be said that the larger the bit width, the higher the accuracy.  Details Published on 2018-8-8 11:13
 

367

Posts

0

Resources
2
 
This post was last edited by coyoo on 2018-8-8 11:23 It depends on the specific definition of "lossless". If no error is allowed, then the method you mentioned will not work. However, fixed-point conversion is generally achieved by sampling the method you mentioned. It can only be said that the larger the bit width, the higher the accuracy.
This post is from FPGA/CPLD
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list