예제 #1
0
        static Stat()
        {
            for (uint i = 0; i < procs.Length; i++)
            {
                procs[i] = new ProcStat();
            }
            for (uint i = 0; i < mctrls.Length; i++)
            {
                mctrls[i] = new MemCtrlStat(i);
            }
            for (uint i = 0; i < busses.Length; i++)
            {
                busses[i] = new BusStat(i);
            }

            for (uint c = 0; c < Config.mem.channel_max; c++)
            {
                scheds[c] = new MemSchedStat();
                for (uint r = 0; r < Config.mem.rank_max; r++)
                {
                    for (uint b = 0; b < 8; b++)
                    {
                        banks[c, r, b] = new BankStat(c, r, b);
                    }
                }
            }
        }
예제 #2
0
        static Stat()
        {
            for (uint i = 0; i < procs.Length; i++)
                procs[i] = new ProcStat();
            for (uint i = 0; i < mctrls.Length; i++)
                mctrls[i] = new MemCtrlStat(i);
            for (uint i = 0; i < busses.Length; i++)
                busses[i] = new BusStat(i);

            for (uint c = 0; c < Config.mem.channel_max; c++) {
                scheds[c] = new MemSchedStat();
                for (uint r = 0; r < Config.mem.rank_max; r++) {
                    for (uint b = 0; b < 8; b++) {
                        banks[c, r, b] = new BankStat(c, r, b);
                    }
                }
            }
        }