상속: XilinxProcess
예제 #1
0
        /// <summary>
        /// Cleans up temporary simulation files
        /// </summary>
        private void CleanSimulation()
        {
            Directory.Delete(currentWorkingDirectory, true);

            currentWorkingDirectory = null;
            currentResult           = null;
            isimProcess             = null;
        }
예제 #2
0
        public void Start()
        {
            if (running)
            {
                throw new Exception("Stop the instance before starting");
            }

            // System is now running
            running = true;

            BuildSimulation();

            // Execute the ISim Process
            Logger.Instance.WriteVerbose("Starting ISim Process at '{0}'", currentResult.ExecutableFile);
            isimProcess = new ISimProcess(currentWorkingDirectory, currentResult.ExecutableFile);
            isimProcess.RunGraphicalUserInterface = UseGraphicalUserInterface;
            isimProcess.Start();

            // Current example process
            while (isimProcess.Running)
            {
                // If using gui, dont run console prompt mode
                if (!UseGraphicalUserInterface)
                {
                    isimProcess.WaitForPrompt();

                    Console.Write("$ ");
                    string command = Console.ReadLine();
                    Console.WriteLine(isimProcess.InjectCommand(command));
                }
                else
                {
                    Thread.Sleep(1000);
                }
            }

            Logger.Instance.WriteVerbose("ISim terminated");
        }
예제 #3
0
        public void Start()
        {
            if (running)
            {
                throw new Exception("Stop the instance before starting");
            }

            // System is now running
            running = true;

            BuildSimulation();

            // Execute the ISim Process
            Logger.Instance.WriteVerbose("Starting ISim Process at '{0}'", currentResult.ExecutableFile);
            isimProcess = new ISimProcess(currentWorkingDirectory, currentResult.ExecutableFile);
            isimProcess.RunGraphicalUserInterface = UseGraphicalUserInterface;
            isimProcess.Start();

            // Current example process
            while (isimProcess.Running)
            {
                // If using gui, dont run console prompt mode
                if (!UseGraphicalUserInterface)
                {
                    isimProcess.WaitForPrompt();

                    Console.Write("$ ");
                    string command = Console.ReadLine();
                    Console.WriteLine(isimProcess.InjectCommand(command));
                }
                else
                {
                    Thread.Sleep(1000);
                }
            }

            Logger.Instance.WriteVerbose("ISim terminated");
        }
예제 #4
0
        /// <summary>
        /// Cleans up temporary simulation files
        /// </summary>
        private void CleanSimulation()
        {
            Directory.Delete(currentWorkingDirectory, true);

            currentWorkingDirectory = null;
            currentResult = null;
            isimProcess = null;
        }