anchor.diff:  
       rule qfsmall;
           fifo_reset_sync.send(pack(qstate != QIdle));
  -        astate_idle.send(pack(astate == ADelay || (astate == AFound && autoalign == 1)));
  +        astate_reset.send(pack(astate == AReset));
           astate_bitslip.send(pack(astate == AAlign));
  +        astate_found.send(pack(astate == AFound));
       endrule
   
       //*************************** alignment operation FSM *****************
  
positive.code:         astate <= as;
          serdes_start.enq(cric);
      endrule
      rule afsm1stable_rule if (bvi_resets_reg.read() != 0 && astate == A1Stable);
          serdes_end.deq();
          let as = astate;
          let mc = maxcount;
  
negative.code:         else if (maxcount[10] == 1)
              begin
              cric = 2'b00;
              as = AReset;
              end
          else
              begin
  