![]() ![]() Create your initial FXP number, this could be from a FPGA I/O, a constant or control.This can be fine for some circumstances, however if we need convert any FXP (with any word length) to a particular size integer, for example any size FXP to I16, we need to cast that FXP to have a word length of 16 bits before using the Fixed-Point to Integer Cast: ( Word and integer word length descriptions ) For example, if you have a FXP with a word length of 8 bits, this will be cast to a I8, but a FXP with word length of 9 will be cast to I16. The Fixed-Point to Integer Cast can be used to convert FXP number to an integer and the size of the integer will be based off the size of FXP number. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |