anchor.diff:  		vsync: pack(vstate == Sync),
   		hsync: pack(hstate == Sync),
   		active_video: active_video_reg,
  -		video_data: xsvi_video_data_wire //videodata
  +		video_data: videodata
   	    };
   	endmethod
       endinterface: out
  
positive.code:     Reg#(Bit#(1))     framestart_reg <- mkReg(0, clocked_by slow_clock, reset_by slow_reset);
      Reg#(Bit#(1))     framestart_delay_reg <- mkReg(0, clocked_by slow_clock, reset_by slow_reset);
      Reg#(Bit#(1))     framestart_new <- mkReg(0);
      
      rule start_fsm if (framestart_new == 1);
          vsync_count <= 0;
  
negative.code: 	syncGearbox.deq;
          framestart_new <= syncGearbox.first[0];
      endrule
  
      rule update_videodata if (active_video_reg == 1);
  	dataGearbox.deq;
          videodata <= dataGearbox.first[0];
      endrule
  