当前位置:网站首页>Embedded virlog code running process
Embedded virlog code running process
2022-06-26 13:36:00 【Dressing】
be based on vivado Of virlog Operation process (Nexys A7 Development board )
The embedded virlog Code flow
One 、 New project
The chip used is Artix chip ,Nexys A7 Development board .
1. Set the project name and storage path

2. In general use RTL type , If there is no file you want to add , You can check
The box options below 
3. Here you can use the drop-down box to add chip search options , Select as needed

4.finish

Two 、 Design input and synthesis
The code structure is :
design: Design documents
constraints: Constraint file
Simuation: Simulation file 
1. Input design
increase design Code
The code is as follows :
module add(a,b,c,y);
input a,b,c;
output y;
assign y=~(a&b&c);
endmodule
2. To synthesize

3、 ... and 、 Conduct simulation
add to Simulation Code
The code is as follows ( Example ):
module add_sim( );
parameter N=3;// Is a few variable inputs ,n Just a few
reg clk=0;
reg [N-1:0] cnt;
wire a,b,c;
wire y;// Input / output port
always #10 clk=~clk;
[email protected](posedge clk)
begin
cnt=cnt+1'b1;
end
// On the rising edge cnt+1=cnt
initial
begin
cnt=3'b0;//3 Representation bit ,0 Represents the value ,b For binary
end
assign {
a,b,c}=cnt;//cnt to a,b,c Full scale change , Splicing operator
add utest(a,b,c,y);
endmodule

Simulation :
Behavior simulation 
Functional simulation
Time series simulation 
Different simulations will have different waveform effects
Four 、 Constraint
First understand the pin resources of the board 
1. Configure resources in constraint Wizard mode 
2.IO planning Mode configuration pin , Here I use IO Mode configuration 
Find the pin name corresponding to the resource in the board resource , stay ports Set in ,IO std If it turns red, choose other black types
here J15,L16,M13 Corresponding dial switch ;H17 Corresponding LED 
Save constraint file 

5、 ... and 、 Implementation and download
Perform synthesis to generate bitstream 
After the previous run ,BitStream It turns green , Click it to generate a bitmap file 
Open the board here , After the successful opening, the program The choice of , Click and then click the... That appears program You can run on the board 
边栏推荐
- A few lines of code can realize complex excel import and export. This tool class is really powerful!
- KITTI Detection dataset whose format is letf_ top_ right_ bottom to JDE normalied xc_ yc_ w_ h
- A primary multithreaded server model
- Log in to the server using SSH key pair
- 输入文本自动生成图像,太好玩了!
- code force Party Lemonade
- 去某东面试遇到并发编程问题:如何安全地中断一个正在运行的线程
- Basic methods for network diagnosis and hardware troubleshooting of Beifu EtherCAT module
- Echart stack histogram: add white spacing effect setting between color blocks
- Here document interaction free and expect automatic interaction
猜你喜欢
![[how to connect the network] Chapter 2 (middle): sending a network packet](/img/5f/602c59d3a7ee1154c7410fb2fcfc41.png)
[how to connect the network] Chapter 2 (middle): sending a network packet

33、使用RGBD相机进行目标检测和深度信息输出

HW蓝队溯源流程详细整理

Arcpy - - utilisation de la fonction insertlayer (): ajout de calques dans un document de carte

Beifu PLC realizes zero point power-off hold of absolute value encoder -- use of bias

Input text to automatically generate images. It's fun!

Use of wangeditor rich text editor

三维向量的夹角

Learn how to develop owl components by hand (7): practical use of owl projects

Es sauvegarde et restauration des données par instantané
随机推荐
Uva10341 solve it
输入文本自动生成图像,太好玩了!
Beifu PLC realizes zero point power-off hold of absolute value encoder -- use of bias
7-16 monetary system I
ES中索引别名(alias)的到底有什么用
33、使用RGBD相机进行目标检测和深度信息输出
Detailed introduction to shell script (4)
code force Party Lemonade
A collection of common tools for making we media videos
H - Sumsets POJ 2229
Traverse the specified directory to obtain the file name with the specified suffix (such as txt and INI) under the current directory
GO语言-管道channel
Electron official docs series: Processes in Electron
Analysis of state transition diagram of Beifu NC axis
Aesthetic experience (episode 238) Luo Guozheng
Hdu1724[Simpson formula for integral]ellipse
李航老师新作《机器学习方法》上市了!附购买链接
Mediapipe gestures (hands)
MySQL explanation (II)
[how to connect the network] Chapter 2 (middle): sending a network packet