SIM_add_module_dir — add loadable module search path
#include <simics/simulator-api.h> // in C
import "simics/simulator-api.dml"; // in DML
void
SIM_add_module_dir(const char *path);
import simics
simics.SIM_add_module_dir(...)
Add given path to the list of paths where Simics searches for loadable modules. The function SIM_module_list_refresh has to be called after calling this function, for the change to take effect.
Global Context
SIM_get_all_failed_modules — return a list of all modules that failed to load
#include <simics/simulator-api.h> // in C
import "simics/simulator-api.dml"; // in DML
attr_value_t
SIM_get_all_failed_modules();
import simics
simics.SIM_get_all_failed_modules(...)
A failed module is a module that is not loadable by the current version of Simics. The list returned contains information about why the module failed. Each list entry is another list with module specific information. The layout of this sub-list is described below. The list may change in future Simics versions.
Cell Context
SIM_get_all_modules — return a list of all modules
#include <simics/simulator-api.h> // in C
import "simics/simulator-api.dml"; // in DML
attr_value_t
SIM_get_all_modules();
import simics
simics.SIM_get_all_modules(...)
The list returned contains information about all modules that can be loaded into Simics. Each list entry is another list with module specific information. The layout of this sub-list is described below. The list may grow in future Simics version, but the currently defined fields will not change.
Cell Context
SIM_load_module — load a module
#include <simics/simulator-api.h> // in C
import "simics/simulator-api.dml"; // in DML
void
SIM_load_module(const char *NOTNULL module);
import simics
simics.SIM_load_module(...)
Load a Simics module. Normally, modules are loaded automatically as needed for the configuration classes they implement, and there is rarely any need to call this function explicitly.
The module argument is the name of the module (not file name) to be loaded.
SimExc_License Thrown if the module requires a non-existing license feature.
SimExc_General Thrown if the module failed to load for other reasons.
Global Context
SIM_module_list_refresh — refresh list of loadable modules
#include <simics/simulator-api.h> // in C
import "simics/simulator-api.dml"; // in DML
void
SIM_module_list_refresh();
import simics
simics.SIM_module_list_refresh(...)
Simics maintains a list of all modules that can be loaded successfully. If a module is changed or added, the list has to be refreshed before Simics can load this module.
Global Context