Simulate

  1. Open a terminal (Linux) or Command Prompt (Windows).
  2. Change to your SoC module's Testbench directory.
  3. Set up the Efinity environment:
    • Linux: source /<path to Efinity>/bin/setup.sh
    • Windows: source c:\<path to Efinity>\bin\setup.bat
  4. To simulate with the default software application, use the command python3 run.py. A successful simulation returns the following messages:
    #  [EFX_INFO]: EfxSapphireSocRV64 is out of reset state                #  [EFX_INFO]: Test Pass
  5. (Optional) If you want to simulate with your own software application (you need to develop your own sequence for your application):
    • Copy your application binary into the Testbench directory.
    • Simulate with the command python3 run.py -b <path to app><application>.bin
    Argument Description
    -h Help menu.
    -b Convert the user application into memory initialization files for external memory.
    -l Convert the user application into memory initialization files for the SoC on-chip RAM.
Note: By default, the memory initialization files contain a bootloader application that fetches the data size corresponding to the on-chip RAM size you selected in the IP Manager. If you would like to build a custom bootloader, you can refer to Modify the Bootloader.