当前位置:网站首页>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 
边栏推荐
- LeetCode_ Stack_ Medium_ 150. evaluation of inverse Polish expression
- Applicable and inapplicable scenarios of mongodb series
- Basic methods for network diagnosis and hardware troubleshooting of Beifu EtherCAT module
- Learn how to develop owl components by hand (7): practical use of owl projects
- HW蓝队溯源流程详细整理
- 2、并行接口、协议和相关芯片介绍(8080、8060)
- Awk tools
- A collection of common tools for making we media videos
- Guruiwat rushed to the Hong Kong stock exchange for listing: set "multiple firsts" and obtained an investment of 900million yuan from IDG capital
- Sed editor
猜你喜欢

Decorator

Oplg: new generation cloud native observable best practices
![8. [STM32] timer (TIM) -- interrupt, PWM, input capture experiment (proficient in timer)](/img/e7/2fd8ec8d5e5473c7f84f3e3bcedca8.png)
8. [STM32] timer (TIM) -- interrupt, PWM, input capture experiment (proficient in timer)

HW蓝队溯源流程详细整理

awk工具

First pass! Baidu AI Cloud Xiling platform has obtained the authoritative certification of digital human ability evaluation from the Institute of information technology

Beifu cx5130 card replacement and transfer of existing authorization files

ES基於Snapshot(快照)的數據備份和還原

I met the problem of concurrent programming in an interview: how to safely interrupt a running thread

C language: Exercise 2
随机推荐
Electron official docs series: Examples
Uva11582 [fast power]colossal Fibonacci numbers!
mysql讲解(一)
MongoDB系列之Window环境部署配置
LAMP编译安装
7-16 monetary system I
Adapter mode
Detailed practical sharing, two hours of funny videos after work, earning more than 7000 a month
C language: Exercise 2
Arcpy -- use of insertlayer() function: adding layers to map documents
DataGrip配置的连接迁移
Awk tools
MySQL数据库讲解(三)
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect
MySQL数据库讲解(四)
33、使用RGBD相机进行目标检测和深度信息输出
Log in to the server using SSH key pair
E - Apple Catching
Update and download of Beifu EtherCAT XML description file
[how to connect the network] Chapter 1: the browser generates messages