单项选择题
A.always@(posedge clk)case (state )0:next_state<=1;1:ne……
定义状态机当前状态为state ,次态为next _state;输入a,输出b,则下列为Mealy状态机的写法是()。
A.always@(posedge clk)case (state )0:next_state<=1;1:next_state<=x
B.always@(posedge clk)case (state )0:if(a==0)next_state<=1;else next_state<=x;1:next_state<=x
C.always@(posedge clk)case (state )0:if(state==0)next_state<=1;else next_state<=x;1:next_state<=x
D.以上都不对