verilog RTL編程實踐之四

來源:互聯網
上載者:User

標籤:style   color   io   使用   ar   strong   for   sp   cti   

1.verilog平時三個層級:

    1.gate level: and or not xor

     2.RTL level: reg comb seq

     3.behavior:+ – * /

2.system tasks

    1.system tasks必須procedures(always/ initial/  tasks /function)中。

     always written inside procedures

    2.$monitor and $display 與time region有關。

    3.suspends sim ==> $stop

       finishes sim ==> $finish

    4.$fopen的參數好像不可以是變數(不確定)

        fd=$fopen(“path to file”);

3.$random(seed);

4.$display & $monitor string format

    %m or %M ==> display hierarchical  name

     %s or %S ==> string

    %h or %H ==> variable value

    %t or %t ==> time

5.compiler directives

    1.`include “filename”

    2.`define <text1><text2>

   3.`timescale <time unit>/<precision>

  6.parameters   <== 參數化設計 位寬 同2005verilog風格配合使用

    注意:parameters & define 的用法與區別

7.Flip-Flops 用行為級邏輯實現的

8.FSM

   1.mealy state machine & moore state mache

     Mealy: output may depend on current state and current input

     Moore:output depend on current state only

  2.結構:一段 、 二段、 三段

  3.先化狀態機器後code 

9.Blocking and Non-Blocking assignments   <<<====time region 有關

verilog RTL編程實踐之四

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.