
I am trying to code a state machine for the given state diagram:
I
module mealy(input x_in,rst_n,clk, output reg y_out);
parameter s0 = 2'b00, s1 = 2'b01 , s2 = 2'b10,s3 = 2'b11;
reg [1:0] p_state,n_state;
always@(posedge clk,negedge rst_n) begin
if(!rst_n) p_state = s0;
else
if(clk...