Verilog Always block using (*) symbol

前端 未结 6 2173
野的像风
野的像风 2020-12-15 12:29

I have a simple question regarding how to write an always block in a Verilog module.
If I have the following inputs in my Verilog module:



        
6条回答
  •  一向
    一向 (楼主)
    2020-12-15 12:45

    It's just a shortcut for listing all of the wires that the always block depends on. Those wires are the "sensitivity list". One advantage of using it is that synthesized code is unlikely to care what you put in the sensitivity list (other than posedge and negedge) because the wires will be "physically" connected together. A simulator might rely on the list to choose which events should cause the block to execute. If you change the block and forget to update the list your simulation might diverge from the actual synthesized behavior.

提交回复
热议问题