v2025-07-10 or later
This manual is intended for simulating applications on an RTL-based
hardware platform. Applications developed in #(app dir) are converted into
RISC-V binary files through the build process, and are then loaded into
the main memory of the RTL platform at the start of simulation. The
simulation automatically terminates when the application’s main function returns.
Note that this process requires a license for the mixed-language RTL
simulator, which must be obtained separately.
Prerequisite: Synthesizing a Platform
Command:
cmd) cd #(platform dir)
cmd) make sim_rtl
Result:
#(platform dir)/sim_rtl
is created,
which we refer to as #(sim
dir).
Note: #(sim dir) is automatically managed by the RVX tool.
cmd) cd #(sim dir)
cmd) make clean
cmd) cd #(sim dir)
cmd) make compile_test
cmd) cd #(sim dir)
cmd) make compile_check
Prerequisite: Developing an Application
Build Mode:
The default value is debug for all simulation commands.
You can explicitly specify BUILD_MODE when invoking make.
Or, can be defined in #(sim dir)/rvx_each.mh.
Or, can be defined in #(platform dir)/user/sim/env/set_sim_env.mh.
Note:
Build compiles only the parts that have changed.
Included Process:
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).sim
Included Process:
Cleaning Build Results
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).resim
Included Process:
Cleaning All Simulation Results
Cleaning Build Results
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).all // make clean #(app name).resim
Included Process:
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).debug
Included Process:
Cleaning Build Results
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).redebug
Included Process:
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).debug_init
cmd) cd #(sim dir)
cmd) make view
cmd) cd #(sim dir)
cmd) make app_list
This command helps identify missing include files.
cmd) cd #(sim dir)
cmd) make compile_test_all
cmd) cd #(sim dir)
cmd) make compile_check