zoukankan      html  css  js  c++  java
  • cordic——sincos

    phase format :scaled radians,归化到多少pi

    roundmode :nearest even 近似值

    coarse rotation: selected-pi——pi。not set -pi/4-+pi/4

    phase in 2QN

    out 1QN

    端口名称及作用

    1

    s_axis_phase_tdata[C-1:0] In
    This port has one subfield, PHASE_IN. It is the polar operand.
    The subfield is Input_Width bits wide, padded to the next byte
    width.

    2

    s_axis_phase_tvalid In

    Handshake signal for channel S_AXIS_PHASE.(1)

    这个信号类似nd(

    Channels still have the non-optional tvalid signal, which is analogous to the
    New Data (ND) signal on many cores prior to the adoption of AXI4-Stream.

    3

    m_axis_dout_tdata[E-1:0] Out
    Depending on Functional Configuration this port contains the
    following subfields; X_OUT, Y_OUT, PHASE_OUT. Each subfield
    is Output_Width bits wide, padded to the next byte width
    before concatenation.

    4

    m_axis_dout_tvalid Out

    Handshake signal for channel M_AXIS_DOUT. (1)

    Sin and Cos函数功能
    When the Sin and Cos functional configuration is selected, the unit vector is rotated by
    input angle, , using the CORDIC algorithm. This generates the output vector (Cos( ),
    Sin( )).
    The input PHASE_IN is limited to the range given in Table 3-3 when coarse rotation is set.
    Inputs outside this range produce unpredictable results. See Input/Output Data
    Representation for more information about CORDIC binary data formats.
    An optional coarse rotation module is provided to extend the range of input angle, , to the
    full circle. For this functional configuration, the coarse rotation module is selected by
    default, but can be manually deselected. See Advanced Configuration Parameters for more
    information. When this option is not set, inputs must be constrained to lie in the first
    quadrant, -Pi/4 to + Pi/4.
    The compensation scaling module is disabled for the Sin and Cos functional configuration
    as it is internally pre-scaled to compensate for the CORDIC scale factor.

    Input/Output Data Representation

    In 2Q7, or Fix10_7, format values, +Pi and -Pi are:
    “01100100100” => 011.00100100 => +3.14
    “10011011100” => 100.11011100 => - 3.14
    When Phase Format is set to Scaled Radians PHASE_IN must be in the range: -1 <=
    (PHASE_IN) <= +1. PHASE_IN outside this range produce undefined results.
    In 2Q7, or Fix10_7 format values, +1 and -1 are represented as:
    “0010000000” => 001.0000000 => +1.0
    “1110000000” => 111.0000000 => - 1.0

  • 相关阅读:
    SpringCloud2.0 Eureka Client 服务注册 基础教程(三)
    美国会计准则 Generally Accepted Accounting Principles (GAAP) 与 中国会计准则
    JavaScript的订阅者模式--实现一个简单的事件监听框架
    设计模式在外卖营销业务中的实践
    20行代码做一个简易微信群发工具需要哪些单词
    南怀瑾老师:一阴一阳之谓道,是个什么道?
    怎么追女生?
    正态分布(Normal distribution)也称“常态分布”,又名高斯分布
    广义线性模型
    逻辑回归表达式
  • 原文地址:https://www.cnblogs.com/xiaoxuesheng993/p/7425618.html
Copyright © 2011-2022 走看看