当前位置:网站首页>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 
边栏推荐
- 古瑞瓦特冲刺港交所上市:创下“多个第一”,获IDG资本9亿元投资
- Electron official docs series: References
- 防火墙介绍
- Zoomeeper sets ACL permission control (only specific IP access is allowed to enhance security)
- Es sauvegarde et restauration des données par instantané
- Detailed practical sharing, two hours of funny videos after work, earning more than 7000 a month
- Input text to automatically generate images. It's fun!
- 8. [STM32] timer (TIM) -- interrupt, PWM, input capture experiment (proficient in timer)
- 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
猜你喜欢

12 SQL optimization schemes summarized by old drivers (very practical)
![[how to connect the network] Chapter 2 (next): receiving a network packet](/img/f5/33e1fd8636fcc80430b3860d069866.png)
[how to connect the network] Chapter 2 (next): receiving a network packet

MySQL数据库讲解(三)

Here Document免交互及Expect自动化交互

HW蓝队溯源流程详细整理

Common faults of MySQL database - forgetting database password

Mongodb series window environment deployment configuration

Update and download of Beifu EtherCAT XML description file

Detailed introduction to shell script (4)

May product upgrade observation station
随机推荐
【Spark】. Explanation of several icons of scala file in idea
SQL assigns the field value of data table B to a column in data table a
Typescript
遍历指定目录获取当前目录下指定后缀(如txt和ini)的文件名
Teacher Li Hang's new book "machine learning methods" is on the market! Purchase link attached
Design of simple digital circuit traffic light
Luogu p3426 [poi2005]sza-template solution
7-16 monetary system I
tauri vs electron
Oplg: new generation cloud native observable best practices
Lamp compilation and installation
I met the problem of concurrent programming in an interview: how to safely interrupt a running thread
Uva11582 [fast power]colossal Fibonacci numbers!
2. Introduction to parallel interface, protocol and related chips (8080, 8060)
Create your own cross domain proxy server
Electron official docs series: References
Electron official docs series: Development
H5 video automatic playback and circular playback
MySQL数据库讲解(六)
去某东面试遇到并发编程问题:如何安全地中断一个正在运行的线程