Exemple #1
0
 public UnitàOperativa()
 {
     _sr        = ShiftRegister.GetInstance();
     _alu       = ALU.GetInstance();
     _busC      = BusC.GetInstance();
     _busB      = BusB.GetInstance();
     _registers = Registro.GetInstance();
     _systemBus = BusDiSistema.GetInstance();
 }
Exemple #2
0
        public static BusB GetInstance()
        {
            if (_busB != null)
            {
                return(_busB);
            }
            lock (Object)
            {
                if (_busB == null)
                {
                    _busB = new BusB();
                }
            }

            return(_busB);
        }