Exemplo n.º 1
0
 //constructor
 public Channel(MemCtrl mc, uint rmax, uint bmax)
 {
     this.cid = mc.cid;
     this.mc = mc;
     this.rmax = rmax;
     ranks = new Rank[rmax];
     for (uint i = 0; i < ranks.Length; i++) {
         ranks[i] = new Rank(mc, this, i, bmax);
     }
 }
Exemplo n.º 2
0
        //constructor
        public Bank(MemCtrl mc, Rank rank, uint bid) {
            this.cid = mc.cid;
            this.rid = rank.rid;
            this.bid = bid;

            this.mc = mc;
            curr_rowid = -1;   //closed-row

            curr_proc = int.MaxValue;
        }