anchor.diff:  
       rule update_debug;
           let dval = diff;
  -        dval = {diff[29:0], framestart_wire, fs2};
  +        dval = {diff[29:0], framestart_reg, fs2};
           if (diff[17] == 1)
               begin
               debugind_value <= diff;
  
positive.code:     Reset defaultReset <- exposeCurrentReset();
  
      Reg#(TState)   tstate <- mkReg(TIdle);
      Reg#(Bit#(10)) videodata <- mkReg(0);
      Reg#(Bit#(1))  framestart_reg <- mkReg(0);
      Wire#(Bit#(1)) sframe_wire <- mkDWire(0);
      Wire#(Bit#(1)) fs2 <- mkDWire(0);
      Wire#(Bit#(1)) framestart_wire <- mkDWire(0);
      Reg#(Bit#(16)) delay_limit <- mkReg(0);
      Reg#(Bit#(16)) frame_delay <- mkReg(0);
      Reg#(Bit#(1))  frame_run <- mkReg(0);
      Reg#(Bit#(32)) tcounter <- mkReg(0);
  
negative.code:     endinterface: out
  
      method Bit#(1)get_framesync();
          return framestart_reg;
      endmethod
  endmodule
  
  