摘要: arctan 在verilog 里是1qn或2qn格式,所以要把浮点数转换成1qn格式 1、dec2bin(十进制整数变为二进制) <!-- SYNCHTO: _funcalpha.html --> Convert decimal to binary number in string expand 阅读全文
posted @ 2017-08-28 16:18 喵喵小学僧 阅读(4198) 评论(0) 推荐(0)
摘要: Matlab中的fopen和fprintf函数可以生成txt格式文件,并将波形数据以 %d 整数 %e 实数:科学计算法形式 %f 实数:小数形式 %g 由系统自动选取上述两种格式之一 %s 输出字符串 格式存入txt文件, 如果以读方式打开,matlab首先搜索工作目录,其次搜索matlab的其他 阅读全文
posted @ 2017-08-28 15:31 喵喵小学僧 阅读(1012) 评论(0) 推荐(0)
摘要: 仿真中常常要对寄存器文件ram,rom建模。使用寄存器的一维数组来表示存储器。数组中的每个元素为一个元素或者word。由一个数组索引来指定。每个word的位宽可为一位或者多位。n个1位寄存器和n位寄存器是不同的。reg membit [0:1023]; reg [1023:0] x(向量);reg 阅读全文
posted @ 2017-08-28 10:24 喵喵小学僧 阅读(286) 评论(0) 推荐(0)
摘要: B=2'b00 C=2'b10 Y={B,C}=4'b0010 将多个操作数组成一个操作数,必须是有确定位宽的数 arctan需要输入Y_in and X_IN 阅读全文
posted @ 2017-08-27 20:00 喵喵小学僧 阅读(155) 评论(0) 推荐(0)
摘要: 1 `timescale为模块指定参考时间单位 `timescale<reference_time_unit>/<time_precision> 2 module endmoudule 为模块声明,中间不能插入其他模块声明 从模板创建对象的过程叫实例化instantiation 创建的对象叫inst 阅读全文
posted @ 2017-08-26 20:47 喵喵小学僧 阅读(567) 评论(0) 推荐(0)
摘要: Square RootWhen the square root functional configuration is selected, a simplified CORDIC algorithm isused to calculate the positive square root of th 阅读全文
posted @ 2017-08-26 17:14 喵喵小学僧 阅读(799) 评论(0) 推荐(0)
摘要: ArcTanWhen the ArcTan functional configuration is selected, the input vector (X_IN,Y_IN) is rotated(using the CORDIC algorithm) until the Y component 阅读全文
posted @ 2017-08-26 17:14 喵喵小学僧 阅读(944) 评论(0) 推荐(0)
摘要: Q Numbers FormatAn XQN format number is an 1+X+N bit twos complement binary number; a sign bitfollowed by X integer bits followed by an N bit mantissa 阅读全文
posted @ 2017-08-25 10:44 喵喵小学僧 阅读(430) 评论(0) 推荐(0)
摘要: 春水初生 春林初盛 春风十里 你在哪里 阅读全文
posted @ 2017-08-24 22:44 喵喵小学僧 阅读(101) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-08-24 22:41 喵喵小学僧 阅读(594) 评论(0) 推荐(0)