一、
1. Go to the menu Tools > Options.
2. In the “General” category, select “EDA Tool Options”.
3. A dialogue box appears, where you can specify the location of the Modelsim-
Altera executable.
4. Specify the path to the directory with the executable of Modelsim-Altera.
5. Click “OK”.
二、新建一个quartus源文件、testbench文件
1、工程文件
1 module XGA 2 ( 3 input clk, 4 input rst_n 5 ); 6 reg [15:0] count ; 7 always @(posedge clk) 8 begin 9 if(!rst_n) 10 begin 11 count <= 0 ; 12 end 13 else 14 begin 15 count <= count + 1 ; 16 end 17 end 18 endmodule