Quartus2 installation and use

table of Contents

installation

Insert picture description here
Click the exe file to execute. There is
always choose the installation path in the next step, choose the appropriate path to install by yourself

registered

2. The use of cracker
1. Put the
Quartus_13.0_x64 cracker.rar file under ******\quartus\bin64, and unzip the file and put the file in this directory, run the executable file 2. Find sys_cpt .dll file, then double-click this file
3. Generate a "license" file under the installation directory, click "Save"

Open here
Insert picture description here
Choose to copy a set of values ​​in the selected area.
Insert picture description here
Open license.dat in text mode
, change xxxxxxx to the copied value (NIC ID),
Insert picture description here
Insert picture description here
save and close, click... Reselect license.dat, click ok to
Insert picture description here
complete the registration

use

Create a new project folder in the location you are accustomed to, create a new project folder led_exam, enter this folder and create four new folders
( Note: each project needs to create a complete project folder first )
doc Stores project-related documents
par Stores Quartus The software engineering file
rtl stores the source code
sim stores the simulation file of the project.

Open quartus and click to
Insert picture description here
Insert picture description here
select the chip model. The
Insert picture description here
rest of the unshown pages are all next

New code file
Insert picture description here
Insert picture description hereInsert picture description here

Code

module flow_led( 
	input sys_clk , //系统时钟
	input sys_rst_n, //系统复位,低电平有效
	 
	output reg [3:0] led //4个LED灯 
	);
 
//reg define
reg [23:0] counter;

//*****************************************************
//** main code
//***************************************************** 
 
//计数器对系统时钟计数,计时0.2秒
always @(posedge sys_clk or negedge sys_rst_n) begin
	if (!sys_rst_n)
		counter <= 24'd0;
	else if (counter < 24'd1000_0000)
		counter <= counter + 1'b1;
	else
		counter <= 24'd0;
end

//通过移位寄存器控制IO口的高低电平,从而改变LED的显示状态
always @(posedge sys_clk or negedge sys_rst_n) begin
	if (!sys_rst_n)
		led <= 4'b0001;
	else if(counter == 24'd1000_0000)
		led[3:0] <= {
    
    led[2:0],led[3]};
	else
		led <= led;
end

endmodule

Configure the project
Select [Assignments]→[Device...], and then click the [Device and Pin Options] button
Insert picture description here
. Select Dual-Purpose Pin in the Category column on the left. . When you need to use the pins of the EPCS device, you need to change all the pins on the page below to Use as regular IO to
Insert picture description here
compile
Insert picture description here

Assign pins

To assign pins to the input and output ports in the project,
you can click [Assignments] → [Pin Planner] in the menu bar or click the icon of [Pin Planner] in the toolbar

Insert picture description here

After the configuration is completed, directly close the pin assignment window, the settings will be directly saved and the corresponding configuration file will be generated

Recompile and
Insert picture description here
connect the device
. Find the [Programmer] button on the toolbar or select the menu bar [Tools] → [Programmer] and
select the option in the red box

Insert picture description here
If the computer is connected to the device, there will be an option, and finally select the sof file that needs to be downloaded, and click start to download

Guess you like

Origin blog.csdn.net/xianyudewo/article/details/115350524