日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

modelsim-altera

發布時間:2025/3/20 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 modelsim-altera 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?一、

?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 程序

2、仿真測試文件

?保存名為test_bench并將代碼

1 module test_bench 2 ( 3 output reg clk, 4 output reg rst_n 5 ); 6 initial 7 begin 8 clk=0; 9 rst_n=0; 10 #100 11 rst_n=1; 12 end 13 14 always 15 begin 16 #10 clk=~clk; 17 end 18 19 XGA i1 20 ( 21 .clk(clk), 22 .rst_n(rst_n) 23 ); 24 25 endmodule bench

拷入其中

三、NativeLink Settings to configure Modelsim-Altera:

1.? Go to the menu Assignments > Settings.
2.? Under? “EDA? Tool? Settings”? choose? “Simulation”.?
simulation appears.
3.? For Tool Name, choose “Modelsim-Altera”.
4.? Select "verilog" as the "Format for Output Netlist"
5.? Select "simulation/modelsim" as the "Output Directory".

6.? Under NativeLink? Settings, Choose? "Compile? test? bench".? Then? click? on? "Test
Benches".?
7.? A new window appears, select "New".

選擇文件  

?

添加成功

?

四、鏈接modelsim-altera

Using? the menu? “Tools”,? click? “Run EDA Simulation Tool”,? and? then? click
EDA Gate-level Simulation to automatically run the EDA simulator, compile
all necessary design files, and complete a simulation.

?

運行仿真。Tools>Run EDA Simulation Tool

其中,RTL Simulation是寄存器傳輸級仿真,它是理想化的仿真,不包含任何延時信息,通常用作功能檢驗,也稱作前仿真或功能仿真;

Gate-Level Simulation是門級仿真,通常也稱為后仿真或時序仿真,它包含邏輯電路、布局布線等延時信息,是對真實電路情況的仿真。要仿真門級仿真,需要在Fitter之后進行。

?

?

?

?

?

?

?

轉載于:https://www.cnblogs.com/TFH-FPGA/p/3285451.html

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的modelsim-altera的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。