下面以上图一个简单的FSM说明三段式Verilog状态机范式: `timescale 1ns / 1ps module FSM( clk,rst_n, in1,in2, out1,out2, CS,NS ); input clk,rst_n; input in1,in2; output out1,out2; :] CS,NS; :] CS,NS; reg out1,out2; 'b00, St1 = 'b01, St2 = 'b10, St3 = 'b11; // 1.状态切换 always @…