anchor.diff:     Vector#(2,FIFOF#(Bit#(entryIdxSize)))  rp <- replicateM(mkFIFOF);
      Vector#(2,FIFOF#(Offset))            offs <- replicateM(mkFIFOF);
      Vector#(2,FIFOF#(ReqTup))            reqs <- replicateM(mkFIFOF);
  +   Vector#(2,FIFOF#(Bit#(3)))      pageSizes <- replicateM(mkFIFOF);
      Vector#(2,FIFO#(Bit#(addrWidth))) pageResponseFifos <- replicateM(mkFIFO);
      Reg#(Bit#(8))                      idxReg <- mkReg(0);
      
  
positive.code: 	 return x.portB;
     endfunction
  
     // pipeline the address lookup
     for(Integer i = 0; i < 2; i=i+1) begin
        rule req0;
  	 reqs[i].deq;
  	 let ptr = tpl_1(reqs[i].first);
  	 let off = tpl_2(reqs[i].first);
  	 Offset o = tagged OOrd0 0;
  	 Bit#(8) pbase = 0;
  	 Bit#(8) idxOffset = 0;
  	 Region region8 <- portsel(reg8,i).response.get;
  	 Region region4 <- portsel(reg4,i).response.get;
  	 Region region0 <- portsel(reg0,i).response.get;
  	 Bit#(40) barrier8 = region8.barrier;
  	 Bit#(40) barrier4 = region4.barrier;
  	 Bit#(40) barrier0 = region0.barrier;
  
  	 if (off < barrier8) begin
  	    //$display("request: ptr=%h off=%h barrier8=%h", ptr, off, barrier8);
  	    o = tagged OOrd8 truncate(off);
  	    pbase = truncate(off>>page_shift8);
  	    idxOffset = region8.idxOffset;
  	 end 
  	 else if (off < barrier4) begin
  	    //$display("request: ptr=%h off=%h barrier4=%h", ptr, off, barrier4);
  	    o = tagged OOrd4 truncate(off);
  	    pbase = truncate(off>>page_shift4);
  	    idxOffset = region4.idxOffset;
  	 end
  	 else if (off < barrier0) begin
  	    //$display("request: ptr=%h off=%h barrier0=%h", ptr, off, barrier0);
  	    o = tagged OOrd0 truncate(off);
  	    pbase = truncate(off>>page_shift0);
  	    idxOffset = region0.idxOffset;
  	 end 
  	 else begin
  	    $display("mkSGListMMU.addr[%d].request.put: ERROR   ptr=%h off=%h\n", i, ptr, off);
  	    dmaIndication.badAddrTrans(extend(ptr), extend(off), barrier0);
  	 end
  	 offs[i].enq(o);
  	 pbases[i].enq(pbase);
  	 idxOffsets[i].enq(idxOffset);
  	 ptrs[i].enq(ptr);
        endrule
        rule req1;
  	 let ptr <- toGet(ptrs[i]).get();
  	 let pbase <- toGet(pbases[i]).get();
  	 let idxOffset <- toGet(idxOffsets[i]).get();
  	 Bit#(8) p = pbase + idxOffset;
  	 rp[i].enq({ptr-1,p});
        endrule
        rule req2;
  	 rp[i].deq;
  	 //$display("pages[%d].read %h", i, rp[i].first());
  	 portsel(pages, i).request.put(BRAMRequest{write:False, responseOnWrite:False, address:rp[i].first, datain:?});
        endrule
        rule pageResponse;
  	 let page <- portsel(pages, i).response.get;
  
negative.code: 	 pageResponseFifos[i].enq(truncate(rv));
        endrule
     end
  
     Vector#(2, FIFO#(ReqTup)) incomingReqs <- replicateM(mkFIFO);
     for (Integer i = 0; i < 2; i=i+1)
        rule incomingReqRule;
  