//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); } }
//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; }