anchor.diff:              end
           astate <= as;
           maxcount <= mc;
  -        ctrl_reset_inc_ce <= cric;
  -        serdes_setting.enq(1);
  +        serdes_setting.enq(cric);
       endrule
       rule afsmsecond_rule if (bvi_resets_reg.read() != 0 && astate == ASecond);
           serdes_end.deq();
  
positive.code: 
      //*************************** alignment operation FSM *****************
      rule afsminit_rule if (bvi_resets_reg.read() == 0);
          ctrl_reset_inc_ce <= 3'b100;
          serdes_bitslip.send(0);
          ctrl_samplein_i <= 3'b000;
          edge_init <= 0;
          data_init <= 0;
          maxcount <= -1;
          windowcount <= 0;
          retrycounter <= -1;
  
negative.code:                 begin
                  gc = gc - 1;
                  end
              serdes_setting.enq(cric);
              end
          astate <= as;
          gencounter <= gc;
  