anchor.diff:          else
               begin
               gc = gc - 1;
  -            serdes_start.enq({autoalign, 1'b1});
  +            serdes_start.enq(autoalign);
               end
           gencounter <= gc;
       endrule
  
positive.code:             as = AReset;
          else
              begin
              cric = 2'b11;
              maxcount <= maxcount - 1;
              end
          astate <= as;
          serdes_start.enq(cric);
      endrule
      rule afsm1stable_rule if (bvi_resets_reg.read() != 0 && astate == AFirst);
          serdes_end.deq();
          let as = astate;
          let mc = maxcount;
          let cric = 2'b11;
          if (gencounter >= 'h8000)
              begin
              windowcount <= windowcount + 1;
  
negative.code:             && retrycounter >= 'h8000);
          serdes_end.deq();
          let mc = maxcount;
          let inctemp = 0;
          let as = AEdge;
          if (edge_int != 0)
              begin
              data_init1 <= rotateBitsBy(ctrl_data, 10-1);
              data_init2 <= rotateBitsBy(ctrl_data, 10-2);
              edge_init <= edge_int;
              as = AWait;
              end
          else if (maxcount[10] == 1)
              as = AReset;
          else
              begin
              maxcount <= maxcount - 1;
              inctemp = 1;
              end
          retrycounter <= retrycounter - 1;
          astate <= as;
          serdes_start.enq(inctemp);
      endrule
      rule afsmwait_rule if (bvi_resets_reg.read() != 0 && astate == AWait);
          serdes_end.deq();
  