anchor.diff:          fifo_reset <= fifo_reset_sync.read();
       endrule
   
  -    rule clear_fifo if (astate_idle.read() == 1);
  +    rule clear_fifo if (astate_reset.read() == 1);
           dfifo.clear();
       endrule
       rule setrule;
  -        delaye2.reset(astate_idle.read());
  +        delaye2.reset(astate_reset.read());
           delaye2.cinvctrl(0);
           delaye2.cntvaluein(0);
           delaye2.ld(0);
  
positive.code:     //*************************** serdes setting FSM *****************
      rule serdes_idle_rule if (bvi_reset_reg != 0 && serdes_running == 0);
          serdes_start.deq();
          sync_reset_inc_ce <= serdes_start.first;
          sync_bitslip <= astate_bitslip.read();
          serdes_running <= 1;
          dcounter <= 3;
  
negative.code:         if (ctrl_data == data_init1)
              begin
              gencounter <= 15;
              as = AFirst;
              end
          else if (maxcount[10] == 1)
              as = AReset;
          else
              begin
              cric = 2'b11;
  