anchor.diff:  // SOFTWARE.
   
   import Vector::*;
  +import BuildVector::*;
   import FIFOF::*;
   import FIFO::*;
   import BRAMFIFO::*;
  
positive.code:    Reg#(Bit#(32))    rdBuffer <- mkReg(32);
     Reg#(Bit#(32))    wrBuffer <- mkReg(0); 
     
     rule start_read(rdIterCnt > 0 && rdBuffer >= burstLen);
        //$display("start_read %d", rdCnt);
        re.readServers[0].request.put(MemengineCmd{sglId:rdPointer, base:extend(rdCnt*4), len:(burstLen*4), burstLen:truncate(burstLen*4)});
        rdBuffer <= rdBuffer-burstLen;
        if(rdCnt+burstLen >= numWords) begin
  
negative.code:       burstLen  <= bl;
     endmethod
     endinterface
     interface MemReadClient dmaReadClient = vec(re.dmaClient);
     interface MemWriteClient dmaWriteClient = vec(we.dmaClient);
  endmodule
  