anchor.diff:                  begin
                   gc = gc - 1;
                   end
  -            serdes_setting.enq(cric);
  +            serdes_start.enq(cric);
               end
           astate <= as;
           gencounter <= gc;
  
positive.code:                 as = AEdge;
                  end
              maxcount <= mc;
              serdes_setting.enq(cric);
              end
          astate <= as;
      endrule
  
negative.code:                 end
              end
          astate <= as;
          serdes_start.enq(cric);
      endrule
      rule afsmfound_rule if (bvi_resets_reg.read() != 0 && astate == AFound);
          serdes_end.deq();
  