anchor.diff:          qstate <= QOn;
       endrule
       rule qfsmqon_rule if (bvi_resets_reg.read() != 0 && qstate == QOn);
  -// && busy_align_i == 1);
           qstate <= QOff;
       endrule
       rule qfsmqoff1_rule if (bvi_resets_reg.read() != 0 && qstate == QOff && serdes_counter <= 'h7fff);
  -//&& busy_align_i == 0 
           ctrl_sample <= ctrl_samplein_i;
           this_aligned_reg <= 1;
           qstate <= QIdle;
       endrule
       rule qfsmqoff2_rule if (bvi_resets_reg.read() != 0 && qstate == QOff && serdes_counter > 'h7fff);
  -//&& busy_align_i == 0 
           serdes_counter <= serdes_counter + 1;
           qstate <= QTrain;
       endrule
  
positive.code: 
      rule afsminit_rule if (bvi_resets_reg.read() == 0);
          start_handshake.clear();
          //busy_align_i <= 0;
          ctrl_reset_inc_ce <= 3'b100;
          ctrl_bitslip <= 0;
          ctrl_samplein_i <= 3'b000;
  
negative.code:     rule handhigh1_rule if (bvi_resets_reg.read() != 0 && hstate == HHigh && dackint.read() == 1);
          hcounter <= 0;
          hstate <= HLow;
      endrule
      rule handlow_rule if (bvi_resets_reg.read() != 0 && hstate == HLow);
          if (dackint.read() == 0 || hcounter >= 'h20)
  