Пример #1
0
        public override void OnClock(DigitalLevel level)
        {
            if (_currentPart != null)
            {
                _currentPart.OnClock(level);
            }

            base.OnClock(level);
        }
Пример #2
0
        private void Clock_OnChanged(object sender, DigitalLevelChangedEventArgs e)
        {
            _cycles.OnClock(e.Level);
            _interruptManager.OnClock(e.Level);
            _state.OnClock(e.Level);

            if (_state.IsComplete)
            {
                SwitchToNextState();
            }
        }