anchor.diff:      rule afsminit_rule if (bvi_resets_reg.read() == 0);
           ctrl_sample <= 0;
           edge_init <= 0;
  -        data_init <= 0;
           data_init1 <= 0;
           data_init2 <= 0;
           maxcount <= -1;
  
positive.code:         serdes_end.deq();
          maxcount <= 31;
          gencounter <= 15;
          astate <= AWDelay;
      endrule
      rule afsmwdelay_rule if (bvi_resets_reg.read() != 0 && astate == AWDelay);
          astate <= AEdge;
          serdes_start.enq(0);
      endrule
  
negative.code:             gencounter <= {7'b0, windowcount[9:1]} - 16'b10;
              as = AFound;
              end
          else if (maxcount[10] == 1)
              begin
              cric = 2'b00;
              as = ADelay;
              end
          else
              begin
              windowcount <= windowcount + 1;
              cric = 2'b11;
              maxcount <= maxcount - 1;
              end
          astate <= as;
          serdes_start.enq(cric);
  