anchor.diff:          else
               begin
               gencounter <= gencounter - 1;
  -            ctrl_reset_inc_ce <= 3'b011;
  -            serdes_setting.enq(1);
  +            serdes_setting.enq(3'b011);
               end
       endrule
       rule afsmstart_rule if (bvi_resets_reg.read() != 0 && astate == AStart);
  
positive.code:             end
          astate <= as;
          maxcount <= mc;
          ctrl_reset_inc_ce <= cric;
          serdes_setting.enq(1);
      endrule
      rule afsmsecond_rule if (bvi_resets_reg.read() != 0 && astate == ASecond);
          serdes_end.deq();
  
negative.code:         if (ctrl_data != training)
              begin
              gencounter <= 8;
              as = AAlign;
              serdes_bitslip.send(1);
              serdes_setting.enq(3'b000);
              end
          astate <= as;
      endrule
  