Environmental setup

  • OS
    • Windows (cygwin,mingw)
    • MacOS X
    • Linux
  • Ruby
    • Ruby version 1.9.3 or later is required. You can down load Ruby for free from here.
    • JSON Library for Ruby is required
      • JSON library files may be not installed if you find the following error messages when schesim.rb is executed.
        `require': no such file to load -- json (LoadError)
      • You can install the JSON library files by using gem command.

Procedures for execution of a sample program

1. Generate a sample application.

  • Make a directory for the sample application.
      # mkdir obj
  • Generate a JSON file of the sample application by executing an application generator.
      # ./utils/appgen.rb -t 1 -a 1 -c 1 -C -p rm -g fp -l fp -d obj/
    • 000001.json and 000001.rb are generated in the obj dir.

2. Execute simulation.
  • Execute a main script of schesim as follows.
      ./schesim.rb -t ./obj/000001.json -r ./obj/000001.res -d ./obj/000001.rb -e 500
  • You can obtain a simulation log like below.

3. Visualize a result of the simulation by TLV(Trace Log Visualizer)
  • NOTE: TLV(Trace Log Visualizer) can work only on Windows.
  • 3.1. If you want to visualize the result of the simulation, save the result of the simulation as follows.
      # ./schesim.rb -t ./obj/000001.json -r ./obj/000001.res -d ./obj/000001.rb -e 500 > obj/000001.log
  • 3.2. Download TLV Release 2.0.1 from here.
  • 3.3. Unarchive the TLV2.0.1.zip.

  • 3.4. Overwrite folders in TLV2.0.1/ with folders located in schesim/tlv/.
  • 3.5. Click TraceLogVisualizer.exe to execute TLV, then Click a create button.

  • 3.6. Select 000001.res and 000001.log, and click OK button.
  • 3.7. The specified log file(000001.log) is visualized as follows.

If you have any questions, please feel free to ask us. Enjoy it !