anchor.diff:          edgeo[9] = dout[0] ^ dout[9];
           edge_int <= edgeo;
           edge_intor_reg <= pack(edgeo != 0);
  -        dfifo.di({6'b0,dout});
  -        dfifo.wren(fifo_wren_sync.read());
  +        if (fifo_wren_sync.read() == 1)
  +            begin
  +            dfifo.di({6'b0,dout});
  +            dfifo.wren(1);
  +            end
  +        else
  +            begin
  +            dfifo.di(16'b0);
  +            dfifo.wren(0);
  +            end
       endrule
   
       rule handinit_rule if (bvi_resets_reg.read() == 0);
  
positive.code:             end
          hcounter <= hcounter + 1;
      endrule
  
      //rule hstate2_rule if (bvi_resets_reg.read() != 0 && hstate == HHigh && dackint.read() == 1);
          //item_req_wire.send(0);
      //endrule
  
      rule serdesrule;
          dfifo.rden(rden);
  
negative.code:         serdes_align_busy_reg <= serdes_align_busy_temp;
      endrule
  
      rule sendup_ibufdso;
         for (Bit#(8) i = 0; i < 5; i = i+1)
  	  serdes_v[i].ibufdso(ibufds_v[i]);
      endrule
  
      rule sendup_imageon_clock;
         Bit#(5) alignbusyw = 0;
         Bit#(5) alignedw = 0;
  