anchor.diff:              begin
               let gc = gencounter - 1;
               if (ctrl_data == rotateBitsBy(data_init, 10-1))
  -                cric = 3'b000;
  +                cric = 2'b00;
               else
                   begin
  -                cric = 3'b011;
  +                cric = 2'b11;
                   mc = mc - 1;
                   gc = 15;
                   as = A1Changed;
  
positive.code:         else
              begin
              gencounter <= gencounter - 1;
              serdes_setting.enq(3'b001);
              end
      endrule
      rule afsmresetman_rule if (bvi_resets_reg.read() != 0 && astate == AManual);
          serdes_end.deq();
          if (gencounter >= 'h8000)
              astate <= AStart;
          else
              begin
              gencounter <= gencounter - 1;
              serdes_setting.enq(3'b011);
              end
      endrule
      rule afsmstart_rule if (bvi_resets_reg.read() != 0 && astate == AStart);
  
negative.code:     rule afsmsecond_rule if (bvi_resets_reg.read() != 0 && astate == ASecond);
          serdes_end.deq();
          let as = astate;
          let cric = 2'b01;
          if (ctrl_data == rotateBitsBy(data_init, 10-2))
              begin
              gencounter <= {7'b0, windowcount[9:1]} - 16'b10;
  