Verilog: Can you put “assign” statements within always@ or begin/end statements?

后端 未结 7 2150
北海茫月
北海茫月 2020-12-18 10:34

Is this allowed?

input w;
     input [8:0]y;
     output reg [8:0]x;
     always@(w)
     begin


     //x[0] or A is never on in any next state
     as         


        
7条回答
  •  长情又很酷
    2020-12-18 11:02

    There is no need using assign inside a procedural block (In this case Always)

    Assign is a continuous assignment, and it has to go outside a procedural block.

提交回复
热议问题