protected QuSoCModuleSimulator PowerUp(uint[] instructions) { var sim = new QuSoCModuleSimulator(instructions); // first cycle handles CPU reset state sim.ClockCycle(); return(sim); }
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); } }