0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Zybo > Chronicles blog 27 > to align the decimal points with C

Last updated at Posted at 2016-05-27

MicroZed Chronicles リスト http://adiuvoengineering.com/?page_id=285
@ Adam Taylor blog
https://forums.xilinx.com/t5/Xcell-Daily-Blog/The-Zynq-PS-PL-Part-Seven-Adam-Taylor-s-MicroZed-Chronicles-Part/ba-p/438888

To perform the final addition with constant C we need to have the decimal point aligned. Therefore, we need to divide the results and Ax2 and Bx by a power of two to align the decimal points with C. The result will also be formatted in this value which is 8,8.

A Format Bx Format Cx2 Format
8,8 5,27 8,40
*1 2^19 2^32

ここで*1: Divider to align decimal points for addition

8,8 > 8 integer bits and 8 fractional bits

上記の表の理解としては、

  • 5,27をX,8の形式にするには 19ビットずらすので2^19
  • 8,40をX,8の形式にするには 32ビットずらすので2^32
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?