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:     Reg#(Bit#(32)) trigger_cnt_trigger_reg <- mkSyncReg(0, axi_clock, axi_reset, defaultClock);
  
      Reg#(Bit#(40)) dataout_reg <- mkReg(0);
      Reg#(Bit#(50)) raw_data_delay_reg <- mkReg(0);
      Reg#(Bit#(50)) raw_data_reg <- mkReg(0);
      Reg#(Bit#(1)) raw_empty_reg <- mkReg(0);
      Reg#(TState)   tstate <- mkReg(TIdle);
      Reg#(Bit#(1)) sframe_reg <- mkReg(0);
  
negative.code:             dval = 0;
              end
          diff <= dval;
      endrule
  
      interface ImageonSensorControl control;
  