protected QuSoCModuleSimulator PowerUp(uint[] instructions)
        {
            var sim = new QuSoCModuleSimulator(instructions);

            // first cycle handles CPU reset state
            sim.ClockCycle();

            return(sim);
        }
Ejemplo n.º 2
0
        protected QuSoCModuleSimulator <T> PowerUp <T>()
            where T : QuSoCModule, new()
        {
            using (new CurrentDirectory(Path.Combine(PathTools.SolutionPath, "qusoc", "qusoc.demos")))
            {
                var module = new T();

                var sim = new QuSoCModuleSimulator <T>(module);

                // first cycle handles CPU reset state
                sim.ClockCycle();

                return(sim);
            }
        }