v2025-10-23 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_rtlResult:
#(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 cleancmd) cd #(sim dir)
cmd) make compile_testcmd) cd #(sim dir)
cmd) make compile_checkPrerequisite: 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).simIncluded Process:
Cleaning Build Results
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).resimIncluded 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).resimIncluded Process:
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).debugIncluded Process:
Cleaning Build Results
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).redebugIncluded Process:
Building an Application
Compiling the Platform RTL Code
cmd) cd #(sim dir)
cmd) make #(app name).debug_initcmd) cd #(sim dir)
cmd) make viewcmd) cd #(sim dir)
cmd) make app_listThis command helps identify missing include files.
cmd) cd #(sim dir)
cmd) make compile_test_allcmd) cd #(sim dir)
cmd) make compile_check