anchor.diff:      //*************************** alignment operation FSM *****************
       rule afsminit_rule if (bvi_resets_reg.read() == 0);
           serdes_bitslip.send(0);
  -        ctrl_samplein_i <= 3'b000;
  +        ctrl_samplein_i <= 0;
           edge_init <= 0;
           data_init <= 0;
           data_init1 <= 0;
  
positive.code:     rule afsmsecond_rule if (bvi_resets_reg.read() != 0 && astate == ASecond);
          serdes_end.deq();
          let as = astate;
          let cric = 3'b001;
          if (ctrl_data == rotateBitsBy(data_init, 10-2))
              begin
              gencounter <= {7'b0, windowcount[9:1]} - 16'b10;
  
negative.code:             begin
              if (maxcount[10] == 1)
                  begin
                  cric = 2'b00;
                  as = ADelay;
                  end
              else
                  begin
                  windowcount <= windowcount + 1;
                  cric = 2'b11;
                  maxcount <= maxcount - 1;
                  end
              end
  