当前位置:网站首页>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 
边栏推荐
- Electron official docs series: Processes in Electron
- 2. Introduction to parallel interface, protocol and related chips (8080, 8060)
- Beifu cx5130 card replacement and transfer of existing authorization files
- F - Charm Bracelet
- 【Proteus仿真】Arduino UNO按键启停 + PWM 调速控制直流电机转速
- Update and download of Beifu EtherCAT XML description file
- MySQL explanation (I)
- Electron official docs series: Examples
- LeetCode_ Stack_ Medium_ 150. evaluation of inverse Polish expression
- MySQL数据库讲解(六)
猜你喜欢

MongoDB系列之Window环境部署配置

NVM installation tutorial

Adapter mode

12 SQL optimization schemes summarized by old drivers (very practical)
![[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect](/img/e3/a666ba2f48e8edcc7db80503a6156d.png)
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect

Beifu PLC model selection -- how to see whether the motor is a multi turn absolute value encoder or a single turn absolute value encoder
![[MySQL from introduction to mastery] [advanced part] (II) representation of MySQL directory structure and tables in the file system](/img/03/a1885e4740bbfdbdee2446e3dd81d0.png)
[MySQL from introduction to mastery] [advanced part] (II) representation of MySQL directory structure and tables in the file system

Nexys A7开发板资源使用技巧

HW蓝队溯源流程详细整理

MySQL explanation (II)
随机推荐
May product upgrade observation station
Electron official docs series: References
ES基于Snapshot(快照)的数据备份和还原
Log in to the server using SSH key pair
HW蓝队溯源流程详细整理
7-2 a Fu the thief
J - Wooden Sticks poj 1065
Basic methods for network diagnosis and hardware troubleshooting of Beifu EtherCAT module
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect
12 SQL optimization schemes summarized by old drivers (very practical)
code force Party Lemonade
MySQL数据库常见故障——遗忘数据库密码
MediaPipe手势(Hands)
Custom encapsulation drop-down component
嵌入式virlog代码运行流程
imagecopymerge
[shell] generate strings between specified dates
Electron official docs series: Best Practices
Generate JDE dot train
三维向量的夹角