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
cordic——sincos的更多相关文章
- CORDIC原理与FPGA实现(2)
CORDIC算法实现极坐标(polar)到直角坐标系(Cartesian)的变换. 1: function [horizonal,vertical]=polar2car(mag, pha); 2: x ...
- CORDIC原理与FPGA实现(1)
CORDIC算法的来历与用途大家网上随处可以见到,这里写 一下自己的理解. 将P(x,y)旋转角度a得到新的坐标P’(x’,y’).这里的坐标变换为: x’= x cos(a) – y sin(a) ...
- 三角函数计算,Cordic 算法入门
[-] 三角函数计算Cordic 算法入门 从二分查找法说起 减少乘法运算 消除乘法运算 三角函数计算,Cordic 算法入门 三角函数的计算是个复杂的主题,有计算机之前,人们通常通过查找三角函数表来 ...
- (转)三角函数计算,Cordic 算法入门
由于最近要使用atan2函数,但是时间上消耗比较多,因而网上搜了一下简化的算法. 原帖地址:http://blog.csdn.net/liyuanbhu/article/details/8458769 ...
- 基于FPGA的cordic算法的verilog初步实现
最近在看cordic算法,由于还不会使用matlab,真是痛苦,一系列的笔算才大概明白了这个算法是怎么回事.于是尝试用verilog来实现.用verilog实现之前先参考软件的程序,于是先看了此博文h ...
- Cordic 算法之 反正切
在通信的算法中,常采用Cordic算法之一,知道角度产生正交的的正弦余弦, 或者知道正弦和余弦求角度,求反正切. 1. 求正弦和余弦值. 方法:旋转角度,得到正弦余弦值: 再旋转角度,到达下一个正弦余 ...
- Cordic 算法的原理介绍
cordic 算法知道正弦和余弦值,求反正切,即角度. 采用用不断的旋转求出对应的正弦余弦值,是一种近似求解发. 旋转的角度很讲求,每次旋转的角度必须使得 正切值近似等于 1/(2^N).旋转的目的是 ...
- Cordic算法——verilog实现
上两篇博文Cordic算法--圆周系统之旋转模式.Cordic算法--圆周系统之向量模式做了理论分析和实现,但是所用到的变量依然是浮点型,而cordic真正的用处是基于FPGA等只能处理定点的平台.只 ...
- Cordic算法——圆周系统之向量模式
旋转模式用来解决三角函数,实现极坐标到直角坐标的转换,基础理论请参考Cordic算法--圆周系统之旋转模式.那么,向量模式则用来解决反三角函数的问题,体现的应用主要是直角坐标向极坐标转换,即已知一点的 ...
随机推荐
- AI 最小二乘法
最小二乘法 参考链接: https://zhuanlan.zhihu.com/p/27204466
- C语言的基本数据类型
代码如下: // text.cpp: 定义控制台应用程序的入口点. // #include "stdafx.h" int main() { int a; //告诉编译器,分配 4 ...
- Selenium:集成测试报告
参考内容:虫师:<selenium2自动化测试实战——基于python语言> PS:书中的代码,只能做参考,最好还是自己码一码,不一定照搬就全是对的,实践出真知啊,踩了很多坑的说... 随 ...
- Linux java 命令行编译 jar包
Java 命令行编译成class,然后在打包成jar文件. 编译成class javac -classpath $CLASS_PATH -d class ./src/Hello.java 可以通过ja ...
- LiveCharts文档-4基本绘图-1基本线条图
原文:LiveCharts文档-4基本绘图-1基本线条图 4基本绘图-1基本线条图 using System; using System.Windows.Forms; using System.Win ...
- Ionic 中badge的应用
app中如果有服务端推送过来的消息,用户没有查看的话,出现一个数字提醒,类似微信的那种效果. 在Ionic中的实现过程还是很简单的: <ion-tab title="首页" ...
- 51Nod 1668 非010串
这是昨天上课ChesterKing dalao讲线代时的例题 当时看到这道题就觉得很水,记录一下后面两位的情况然后讨论一下转移即可 由于之前刚好在做矩阵题,所以常规的矩阵快速幂优化也很简单 好我们开始 ...
- POJ Remmarguts' Date
题目链接-> 题解: 次短路模板. 代码: #include<cstdio> #include<iostream> using namespace std; #defin ...
- mysql操作命令梳理(4)-grant授权和revoke回收权限
在mysql维护工作中,做好权限管理是一个很重要的环节.下面对mysql权限操作进行梳理: mysql的权限命令是grant,权限撤销的命令时revoke:grant授权格式:grant 权限列表 o ...
- PLSQL使用技巧 如何设置默认显示My Objects、记住密码等
https://www.cnblogs.com/yilinzi/p/7144852.html PL/SQL Developer实现双击table查询 https://blog.csdn.net/zhy ...