anchor.diff:      endrule
   
       rule calculate_framedata;
  -        let startframe_wire     = pack(raw_data_delay_reg[9:0] == host.decoder.code_fs() && raw_data_reg[9:0] == 10'h0);
           let startimageline_wire = pack(raw_data_delay_reg[9:0] == host.decoder.code_ls());
           let endimageline_wire   = pack(raw_data_delay_reg[9:0] == host.decoder.code_le());
           let datain_temp = raw_data_reg[49:10];
  
positive.code:     endrule
  
      rule update_debug;
          let dval = diff;
          //dval = {diff[29:0], framestart_reg, fs2};
          if (diff[17] == 1)
              begin
              debugind_value <= diff;
  
negative.code:         let fd = frame_delay+1;
          let fr = frame_run;
          let fstemp = 0;
          if (sframe_new_wire == 1)
              begin
              fr = 1;
              fd = 0;
              end
          if (frame_run == 1 && frame_delay == host.syncgen_delay() )
              begin
              fr = 0;
              fstemp = 1;
  