Class Simulator


  • public final class Simulator
    extends java.lang.Object
    The Simulator class simulates the input program on the target model.
    • Constructor Summary

      Constructors 
      Constructor Description
      Simulator()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean simulate​(Options options, java.lang.String modelName, java.lang.String inputProgram, java.lang.String inputResourceDir)
      Simulates a program on the microprocessor model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Simulator

        public Simulator()
    • Method Detail

      • simulate

        public static boolean simulate​(Options options,
                                       java.lang.String modelName,
                                       java.lang.String inputProgram,
                                       java.lang.String inputResourceDir)
        Simulates a program on the microprocessor model.
        Parameters:
        options - the simulator settings.
        modelName - the microprocessor model name.
        inputProgram - the binary file name.
        inputResourceDir - the path to resource directory.
        Returns:
        result of simulation: true if success and false if failed.