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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > c/c++ >内容正文

c/c++

IC-工具篇--VCS使用教程-卷二(202004013)

發(fā)布時間:2025/4/5 c/c++ 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 IC-工具篇--VCS使用教程-卷二(202004013) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

文章目錄

  • 引言
  • 1、基礎(chǔ)理論講義
    • Compile and Invoke UCLI Debugger
  • 2、實際基本操作dve的技巧-圖形界面參考資料
    • 2.1 查看波形與調(diào)試波形
    • 2.2 基本入門

引言

本文在上一講逐漸熟悉了VCS的開關(guān)選項后,下面繼續(xù)介紹VCS的使用,我始終關(guān)注于熟悉工具的使用,在本系列中,對Verilog的語法不作深入研究,這樣可以加快前進的步伐。也為了加快從FPGA中轉(zhuǎn)變到IC領(lǐng)域來。在本文中將介紹VCS 調(diào)試基礎(chǔ)。

1、基礎(chǔ)理論講義

—Afer completing this unit ,you should be able to:

  • Describe three methods of debugging Verilog code using VCS
  • Invoke UCLI debugger
  • Debug Verilog designs using UCLI

  • –VCS Debugging Suport
    4. Trance and locate causes of errors
    5. Three general debugging methods:

  • Verilog SystemVerilog System Task calls
    VCS UCLI
    VCS DVE(GUI)

  • Four factors to consider:
    simulation speed
    signal visibility
    sgnal tractability
    usability


  • Verilog System Task For Debugging 利用verilog的系統(tǒng)函數(shù)

  • Debug visibility:
    • $ display prints formatted message to console
    • $ strobe Like$dispaly except printing is delayed until all events in the current time step have executed
    • $ monitor Monitor signals listed and prints formatted message whenever one of the listed signals changes
    • $ time returns current simulation time as a 64bits integer
  • Stopping simulations:
    $stop halts simulation lie a breakpoint
    $finish halts simulation and terminated the simulation session

  • Simulation stimulus and reference:

    • readmemhReadsASCIIdatafromadiskfile,eachdigitishexadecimal?readmemh Reads ASCII data from a disk file,each digit is hexadecimal -readmemhReadsASCIIdatafromadiskfile,eachdigitishexadecimal? readmemb
      Reads ASCII dataform a disk file ,Each digit is binary

    Debugging via UCLI(no-recom)不推薦使用UCLI方式來查看波形

    • Simulation speed
      Speed depends on the scale of visibility you specify
    • Signal Vsisibiility
    • Signal Traceability
      -Usability

    Compile and Invoke UCLI Debugger

    -Compile and invoke UCLI in one step(一步走,編譯并且調(diào)用UCLI)

    $ vcs source.v -debug|debug_all -R -ucli
    -ucli invokes UCLI and stop simulation time at time 0

    -Compile and invoke UCLI in two step(分兩步走,先編譯,后執(zhí)行可執(zhí)行文件)
    vcs source.v -debug|debug_all|debug_pp(debug_pp只打開部分調(diào)試開關(guān),加快編譯速度)
    invoke UCLI and stop simulation time at time 0
    $simv -ucli


    UCLI Debugger Command Line Option

    -debug
    enables command line debugging option. This flag does not enable line stepping.

    -debug_all
    enables command line debugging option including line stepping

    -ucli
    forces runtime to go into UCI mode by default

    -gui
    compile time option invokes the DVE gui when issured at run time

    -l log_filename
    captures simulation output ,such as user input UCLI commands and responses to UCLI commands.

    -i input_filename
    reads interactive UCLI commands from a file the switches readding from standard command line input

    -k key_filename
    writes interactive commands entered to input_filename,which can be used by a latter simv as -i input_filename
    由于UCLI的陳舊,這里不再強調(diào)。

    退出UCLI
    quit 即可


    Problems in simulation?
    if you suspect simlation is having problems

    Determine whether or not time is advancing:
    halt simulation by hiting ctrl+c 通過ctrl+c來退出仿真

    check simulation time

    continue simulation by typing in run at UCLI prompt
    halt simulation again after a shor period of time

    if simulation time has not changed,simulation may be caught in infinite loop or waiting for a phantom triger

    -Determine potential location of problem:
    Re-compile with -debug_all compile-time option
    halt simulation
    use UCLI command show to dispaly variables
    trace code execution with UCLI command next

    官方的文檔位置:

    DVE(Discovery Visual Environment)
    An intuitive and easy to use GUI
    Quiickly fine bugs
    RTL or Gates
    Assertions
    Testbench
    Supports
    Interactive
    Post-simulaton analisis
    Multiple languages
    verilog
    VHDL
    SV
    C++、C
    NTB


    波性文件vpd
    verdi里面的波性文件為fsdb


    比較兩個信號

    2、實際基本操作dve的技巧-圖形界面參考資料

    2.1 查看波形與調(diào)試波形

    參考資料 DVE使用手冊
    以后在實驗中逐步訓練加強。

    程序,我們?nèi)匀皇褂迷诰硪恢兄v解的程序。并且用DVE打開。界面如下:


    主要分為:菜單、左邊的模塊、coding、下面的腳本、以及終端輸出反饋。
    DVE界面也有很多操作,涉及到了很多原理,我們不用一一來學,先上手搞懂基本操作再說,基本操作就是會看波形,把仿真跑起來。


    首先是添加波形,我這里不好截圖,選中波形后,右鍵即可,
    add to waves->new wave

    如圖已經(jīng)打開了波形,現(xiàn)在先運行起來再說。
    有個向下箭頭,這個就是運行。或者點擊快捷鍵F5,然后波形就出來了,此時肯定不太好看,希望看到一個full。使用按下F即可,或界面按鈕。
    旁邊是放大縮小。

    此時我明白你肯定希望像在modelsim中一樣,按住ctrl鍵滾動齒輪,對局部進行拉大。

    在DVE中,使用鼠標左鍵不放拖動,就可以在指定的區(qū)域進行放大了。而且非常有趣的是,分為橫向拖動和縱向拖動,縱向拖動是看full,還有斜著拖動,斜著拖動是看縮小,橫向拖動是放大。

    另外,在DVE中按住ctrl鍵,滾動齒輪,是波形向前向后。

    然后可以右鍵可以add marker

    2.2 基本入門

    使用dve -v
    或者在DVE的命令行輸入gui_get_version
    或者在help->about幫助菜單選項
    可以查看到DVE的版本,DVE和VCS的版本要一致才行


    在simulator中的選擇setup,然后執(zhí)行文件選擇simv文件即可


    該按鈕可以用來重啟波形

    總結(jié)

    以上是生活随笔為你收集整理的IC-工具篇--VCS使用教程-卷二(202004013)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 亚洲图片 自拍偷拍 | 欧美激情一区二区三级高清视频 | 久久综合成人网 | 加勒比在线免费视频 | 国产在线色视频 | 久久性片| 夜夜骚网站 | 国产+高潮+白浆+无码 | 啪视频网站| 国产精品激情偷乱一区二区∴ | 一级视频在线观看 | 香蕉久久一区二区三区 | 亚洲欧美日韩综合一区二区 | 日本在线视频中文字幕 | 国产精品一级片 | 色丁香在线 | 国产无限资源 | 亚洲一区二区av在线 | 成人网在线观看 | 久久综合狠狠综合久久综合88 | 夜夜嗨av一区二区三区四区 | 色网站免费在线观看 | 在线aa | 美女视频91 | 骚婷婷 | 天天干天天搞天天射 | 欧美日韩中文字幕一区二区 | 久草视频免费在线播放 | 婷婷爱五月天 | 人妻洗澡被强公日日澡电影 | 男人av影院 | 成人免费看片视频 | 狼色网| 亚洲春色一区二区三区 | 极品久久久久久 | 不卡日本 | 91se在线| 亚洲AV蜜桃永久无码精品性色 | 久久丁香 | 熟妇人妻无码xxx视频 | 日本久久影视 | 自拍偷拍亚洲欧洲 | 国产欧美一区二区三区在线看 | 午夜精品久久久久久久99黑人 | 久久久久一区二区精码av少妇 | 丰满人妻一区二区三区无码av | 最新在线黄色网址 | 国产精品一区二区网站 | 看一级黄色 | 亚欧综合在线 | 蜜桃精品久久久久久久免费影院 | 久久午夜夜伦鲁鲁片无码免费 | 日本黄色大片视频 | 91免费精品视频 | 国产在线视频91 | 中国毛片在线观看 | 好吊色在线视频 | 97视频免费观看 | 国产欧美在线观看 | 精品人妻一区二区三区久久嗨 | av老司机在线观看 | 日本一区成人 | 国产精品扒开腿做爽爽爽男男 | 成年人黄色免费网站 | 国产av无码专区亚洲av麻豆 | 一区二区视频在线看 | 卡通动漫亚洲综合 | 亚洲精品在线中文字幕 | 91社区福利 | 日韩中文字幕二区 | 精品一区李梓熙捆绑 | 日韩国产在线观看 | 一级肉体全黄毛片 | eeuss一区 | 亚洲一级Av无码毛片久久精品 | 五月网婷婷 | 国产chinese男男gaygay视频 | 夜夜嗨老熟女av一区二区三区 | 免费播放av | 日本欧美亚洲 | 人成免费在线视频 | 黑人巨大精品人妻一区二区 | 成人深夜视频在线观看 | 精品韩国一区二区三区 | 91精品国产综合久久国产大片 | 欧美一级在线免费 | 国产福利免费在线观看 | 色网导航站 | 日本一级大毛片a一 | 男人天堂aaa | 亚洲熟妇av日韩熟妇在线 | 天天做天天看 | 免费观看成人毛片 | 看av的网址 | 夜夜草| 超清av在线 | 国产青青草 | 在线播放黄色网址 | 欧美黑人一级片 |