Esempio n. 1
0
        protected override void OnSchedule(Func <VGAAlienArtModuleInputs> inputsFactory)
        {
            base.OnSchedule(inputsFactory);
            vgaController.Schedule(() => new VGAControllerInputs());
            patternTimer.Schedule(() => new TimerInputs()
            {
                Restart = false
            });
            offsetTimer.Schedule(() => new TimerInputs()
            {
                Restart = false
            });

            Pipeline.Schedule(() => new IntDividerPipelineInputs <VGAAlienArtPipelinePayload>()
            {
                Payload = new VGAAlienArtPipelinePayload()
                {
                    Visible = vgaController.OutVisible,
                    HSync   = vgaController.HSync,
                    VSync   = vgaController.VSync
                },
                inNumerator   = ((State.offset + vgaController.OutVPixel) ^ vgaController.OutHPixel).Resized(32),
                inDenominator = State.denominator
            });
        }
Esempio n. 2
0
        protected override void OnSchedule(Func <BoardTimerModuleInputs> inputsFactory)
        {
            base.OnSchedule(inputsFactory);

            timerModule10.Schedule(() => nestedTimerInputs);
            timerModule20.Schedule(() => nestedTimerInputs);
        }