当前位置:网站首页>Floating point square root of vivado IP core floating point
Floating point square root of vivado IP core floating point
2022-07-29 06:39:00 【Doze in the wind】
Vivado IP Core floating point number square root Floating-point
Catalog
One 、 Floating point number square root example
Two 、Floating-point IP Core configuration steps
Preface
With the continuous development of manufacturing technology , Field programmable logic gate array (FPGA) More and more integration , More and more applications , Among them, some mathematical processing classes must be used when processing digital signals IP nucleus . Recently, research on Spatial Adaptive Anti-jamming Technology is under way FPGA Hardware implementation , Some of them are inevitably used IP nucleus , Today from Square root of floating point number Let's briefly introduce vivado In the middle of Floating-point This IP Nuclear bar , I hope it can help you in your study .
Tips : The following is the main body of this article , All are original by the author , It's not easy to write an article , I hope you will attach a link to this article when reprinting .
One 、 Floating point number square root example
In order to facilitate the analysis of the results of the later simulation , Here we list Square root of floating point number Example , The following example is directly used for simulation , To verify whether the simulation results are correct .
example: Set floating point number a=32'h3EB851EC, namely a=0.36, be
=32'h3F19999A, namely 
=0.6.
Two 、Floating-point IP Core configuration steps
1. First configuration Operation Selection Interface , Pictured 1 Shown .

2. Next configuration Precision of Inputs Interface , Pictured 2 Shown .

3. Then configure Optimizations Interface , Pictured 3 Shown .

4. Final configuration Interface Options Interface , Pictured 4 Shown .

above 4 After all the interfaces are configured, you can click on the lower right corner OK Button generation prescribing IP nucleus .
3、 ... and 、 Simulation
1. Top level code
Build a top-level module , Name it float_sqrt, Used to instantiate the just generated IP nucleus .
The code is as follows :
`timescale 1ns / 1ps
//
// Company: cq university
// Engineer: clg
// Create Date: 2022/07/28 10:26:26
// Design Name:
// Module Name: float_sqrt
// Project Name:
// Target Devices:
// Tool Versions: 2017.4
// Description:
// Dependencies:
// Revision:1.0
// Revision 0.01 - File Created
// Additional Comments:
//
module float_sqrt(
input clk, // Input clock signal
input a_valid, // Input data valid signal
input [31 : 0] a_data, // input data
output wire re_valid, // Output result valid signal
output wire [31 : 0] re_data // Output the square root result
);
float_sqrt_ip u1_float_sqrt_ip ( // Exemplification IP nucleus
.aclk(clk),
.s_axis_a_tvalid(a_valid),
.s_axis_a_tdata(a_data),
.m_axis_result_tvalid(re_valid),
.m_axis_result_tdata(re_data)
);
endmodule
2. Simulation code
Build a simulation module , Name it float_sqrt_tb, It is used to simulate the instantiation of the top-level module just now IP nucleus .
The code is as follows :
`timescale 1ns / 1ps
//
// Company: cq university
// Engineer: clg
// Create Date: 2022/07/28 10:34:15
// Design Name:
// Module Name: float_sqrt_tb
// Project Name:
// Target Devices:
// Tool Versions: 2017.4
// Description:
// Dependencies:
// Revision:1.0
// Revision 0.01 - File Created
// Additional Comments:
//
module float_sqrt_tb();
reg clk;
reg a_valid;
reg [31:0] a_data;
wire re_valid;
wire [31:0] re_data;
float_sqrt u1_float_sqrt(
.clk(clk),
.a_valid(a_valid),
.a_data(a_data),
.re_valid(re_valid),
.re_data(re_data)
);
always #5 clk=~clk;
initial begin
clk=1'b0;
#15;a_valid=1'b1;
a_data=32'h3EB851EC; //3.6
#280;a_valid=1'b0;
end
endmodule
Four 、 Analysis of simulation results
The simulation results are shown in the figure 5 Shown , Compare the examples of floating-point number square root listed above , It can be seen that this module successfully realizes the square root of floating-point numbers .

summary
This time, I introduce How do you use it? vivado Medium Floating-point IP Verify the square root of the floating-point number .
边栏推荐
- day09_static&final&代码块&抽象类&接口&内部类
- Design and simulation code of 4-bit subtracter based on FPGA
- 2022 summer second day information competition learning achievement sharing 1
- Joint use skills of joiner.on and stream().Map
- 八、 网络安全
- Webshell管理工具的流量特征
- 基于FPGA的4位减法器设计及仿真代码
- 8、 Network security
- 网站被挂马的解决方案
- 网站受DDoS攻击的表现以及查看方法
猜你喜欢
随机推荐
关于DDoS的几个误区
解决分频模块modelsim下仿真输出为stx的错误
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update
day02_基本语法
Several misunderstandings about DDoS
day14_单元测试&日期常用类&字符串常用类
Design of IIR filter based on FPGA
Multithreaded server programming
Explain the difference between FIR filter and IIR filter in detail
Clickhouse failed to import CSV without error but no data
On defect description style
What is the basic principle of Library collision and library collision attack
Noi online 2022 popular group problem solving & personal understanding
盘点 | 全球关键信息基础设施网络安全大事件
多线程服务器编程
day13_ Under multithreading
Ultra low cost DDoS attacks are coming. See how WAF protects Jedi
虹科Automation softPLC | MoDK运行环境与搭建步骤(1)——运行环境简介
Sequence list and linked list
Hog+svm for pedestrian detection









