anchor.diff:              fr = 1;
               fd = 0;
               end
  -        if (frame_run == 1 && frame_delay == syncgen_delay_reg )
  +        if (frame_run == 1 && frame_delay == syncgen_delay_reg)
               begin
               fr = 0;
               fstemp = 1;
  
positive.code:         frame_delay <= fd;
          frame_run <= fr;
          output_framesync_reg <= fstemp;
      endrule
  
      Reg#(Bit#(32)) diff <- mkReg(0);
  
negative.code:             dval = 0;
              end
          diff <= dval;
      endrule
  
      interface ImageonSensorControl control;
  