Esempio n. 1
0
 public CorrelationMatrixCalculator(
     ICycleProvider cycleProvider,
     ITermCountInTextsProvider termCountInTextsProvider,
     ITermOccurrenceCountProvider termOccurrenceCountProvider,
     IBinomialProvider binomialProvider)
 {
     _cycleProvider               = cycleProvider;
     _termCountInTextsProvider    = termCountInTextsProvider;
     _termOccurrenceCountProvider = termOccurrenceCountProvider;
     _binomialProvider            = binomialProvider;
 }
Esempio n. 2
0
        public Cache(ICycleProvider cycleProvider, CacheGeometry geometry)
        {
            this.CycleProvider = cycleProvider;
            this.Geometry = geometry;

            this.Sets = new List<CacheSet> ();
            for (uint i = 0; i < this.NumSets; i++) {
                this.Sets.Add (new CacheSet (this, this.Associativity, i));
            }

            this.Directory = new Directory (this.NumSets, this.Associativity);
        }
Esempio n. 3
0
        public CoherentCacheNode(ICycleProvider cycleProvider, string name)
        {
            this.CycleProvider = cycleProvider;
            this.Name = name;

            this.EventQueue = new ActionEventQueue ();
            this.CycleProvider.EventProcessors.Add (this.EventQueue);
        }
Esempio n. 4
0
        public CoherentCache(ICycleProvider cycleProvider, CacheConfig config, CacheStat stat)
            : base(cycleProvider, config.Name)
        {
            this.Config = config;
            this.Stat = stat;
            this.Cache = new Cache (cycleProvider, config.Geometry);

            this.Random = new Random ();
        }
Esempio n. 5
0
        public TranslationLookasideBuffer(ICycleProvider cycleProvider, TlbConfig config, TlbStat stat)
        {
            this.CycleProvider = cycleProvider;
            this.Config = config;
            this.Stat = stat;

            this.Cache = new Cache (cycleProvider, config.Geometry);

            this.EventQueue = new ActionEventQueue ();
            this.CycleProvider.EventProcessors.Add (this.EventQueue);
        }
Esempio n. 6
0
 public MemoryController(ICycleProvider cycleProvider, MainMemoryConfig config, MainMemoryStat stat)
     : base(cycleProvider, "mem")
 {
     this.Config = config;
     this.Stat = stat;
 }