1 / 17

檔案處理與測試平台

18. CHAPTER. 檔案處理與測試平台. 測試平台. 18-1.  每 20 ns 產生一個 Clk 脈波訊號. Verilog 的檔案處理. 18-2. Verilog 的 $fopen 以及 $fclose Verilog 的 $readmemb 以及 $readmemh Verilog 的 $display 、 $write 、 $fdisplay 及 $fwrite. Verilog 的除錯輔助功能. 18-3. 18-3-1. Verilog 的 $monitor 以及 $fmonitor.

Download Presentation

檔案處理與測試平台

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 18 CHAPTER 檔案處理與測試平台

  2. 測試平台 18-1

  3. 每 20 ns 產生一個 Clk 脈波訊號

  4. Verilog 的檔案處理 18-2 • Verilog 的 $fopen 以及 $fclose • Verilog 的 $readmemb 以及$readmemh • Verilog 的 $display、$write、$fdisplay 及 $fwrite

  5. Verilog的除錯輔助功能 18-3 18-3-1 Verilog 的 $monitor 以及 $fmonitor

  6. 18-3-2 Verilog 的 $strobe 以及 $fstrobe

  7. Verilog的時間格式與精確度 18-4 • Verilog 的 $timeformat • Verilog 的 $printtimescale • Verilog 的 $time、$stime 以及 $realtime

  8. Verilog 的資料型態轉換 18-5 18-5-1 Verilog 的 $realtobits 以及 $bitstoreal

  9. 18-5-2 Verilog 的 $rtoi 以及 $itor

  10. Verilog 的系統任務 18-6

  11. VHDL的檔案(File)處理 18-7 18-7-1 VHDL 檔案處理的函數以及副程序 檔案格式  開啟檔案的模式  檔案的宣告方法  開啟檔案與關閉檔案  檔案的狀態  其他用於檔案處理的函數或者是副程序

  12. 18-7-2 VHDL 對文字檔案的處理方式

  13. 文字檔案的處理,使用 TEXTIO 對文字檔案作 16 進制資料格式或者是 8 進制 資料格式存取,使用 std_logic_textio  std_logic_textio 二進制檔案的處理,使用 TEXTIO

  14. VHDL 測試碼產生的方法 18-8 •  測試碼(test bench)產生的方法主要分成二大類: • 運用VHDL的“wait敘述”來產生測試訊號的 方式 • 運用“檔案”來產生測試訊號的方式

More Related