anchor.diff:                  gc = 14;
                   as = AEdge;
                   end
  -            maxcount <= mc;
               serdes_start.enq(cric);
               end
           else
  
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:     rule afsminit_rule if (bvi_resets_reg.read() == 0);
          ctrl_sample <= 0;
          edge_init <= 0;
          data_init1 <= 0;
          data_init2 <= 0;
          maxcount <= -1;
  