anchor.diff:  	 v = writeDataMimo.first();
   	 writeDataMimo.deq(unpack(truncate(writeDwCount)));
   	 writeDwCount <= 0;
  +	 writeInProgress <= False;
   	 doneTag.enq(writeTag.first());
   	 writeTag.deq();
   	 $display("writeDwCount=%d will be zero", writeDwCount);
  
positive.code:       end
     endrule
  
     rule writeTlps if (writeDwCount > 0);
        TLPData#(16) tlp = defaultValue;
        tlp.sof = False;
        Vector#(4, Bit#(32)) v = unpack(0);
  
negative.code: 	  return 0;
      endfunction
  
     rule writeHeaderTlp if (!writeInProgress);
        let tlp = tlpWriteHeaderFifo.first;
  
        TLPMemory4DWHeader hdr_4dw = unpack(tlp.data);
  