如何使用modelsim-altera 生成Fsdb

来源:互联网 发布:超图软件(300036)股吧 编辑:程序博客网 时间:2024/05/21 09:50

转自:http://bbs.eetop.cn/thread-161960-1-1.html

第一步:挂 PLI

在 modelsim.ini 這個檔案中, 找到如下的敘述
; List of dynamically loaded objects for Verilog PLI applications
; Veriuser = veriuser.sl

並將; Veriuser = veriuser.sl 改為  Veriuser = c:\novas\debussy\share\pli\modelsim_pli\winnt\novas.dll 拿掉前面那個 ";"

第二步:修改环境变量:
環境變數D_LIBRARY_PATH
變數值: C:\novas\debussy\share\pli\modelsim_pli\winnt\novas.dll


環境變數PLIOBJS
變數值: C:\novas\debussy\share\pli\modelsim_pli\winnt\novas.dll



第三步:在 TestBench 中加入
initial
begin
  $fsdbDumpfile("filename_you_want.fsdb");
  $fsdbDumpvars;
end
0 0
原创粉丝点击