首页 > 代码库 > verilog behavioral modeling ---Block statements

verilog behavioral modeling ---Block statements

block statements :

          1. sequential block  : begin-end block

          2.parallel block       :  fork - join block

block name :

          如果block有自己的label,

                1.可以disable 此block.

                 2.可以穿层次应用 block中的变量。

                变量都是静态存储。

PS:  when an assignement is to be made after two separate events have occured,known as the joining of events,a fork-join block can be useful.(此种方式,可以实现事件Aevent/Bevent的与操作)

             begin

                  fork

                       @Aevent;

                       @Bevent;

                  join

                      areg = breg;

                 end

 

 

   


                                  STRUCTURED PROCEDURES

                       All procedures in the verilog HDL are specified within one of the following four statements

              -------initial construct

             --------always construct

            ---------task

            ----------function

 

verilog behavioral modeling ---Block statements