Running the example plugins
The SoC Designer plugin example folder contains the following plugin examples:
GuiPluginExampleshows how to create GUI-mode plugins.
BatchModePluginExampleshows how to create SoC Designer batch-mode plugins.
To run the example plugins provided follow these steps:
- Install the provided SoC Designer version
supporting plugins and ensure that the
MAXSIM_HOMEenvironment variable is pointing to the correct location.
If the plugin DLL/SO library is not already present in the provided package, compile the plugin sources and create the plugin DLLs/SOs.
NoteThe release version of the DLL/SO libraries is typically already provided as part of the plugins package. If you are not debugging the source code of the component, you do not require the debug versions. This step is only shown for completeness.
Copy the plugin DLLs/SOs into the following directories:
Copy the release version DLL into %MAXSIM_HOME%/etc/plugins/Release.
(for Linux, copy the SO into $(MAXSIM_HOME)/etc/plugins/Release).
Copy the debug version DLL into %MAXSIM_HOME%/etc/plugins/Debug.
(for Linux, copy the SO into $(MAXSIM_HOME)/etc/plugins/Debug)
NoteThe DLLs provided in the package are release version and must be placed into the release directory.
Start SoC Designer:
For the GUI-mode plugin example:
Open SoC Designer Canvas or SoC Designer Simulator and load any mxp system provided as an example in the gui_plugin_example directory.
Click the Hierarchy toolbar button or select Hierarchy from the Plugins menu. This launches the Hierarchy plugin functionality and displays the hierarchy of the current system in the Output window of SoC Designer Canvas or SoC Designer Simulator.
NoteTo see the output window results in SoC Designer Canvas, you must explicitly open the Output window from the Windows menu of the SoC Designer tool.
Right-click a component and select the Plugins/View ports… context menu. This launches the View ports plugin functionality that opens a dialog showing all the ports of the component selected.
- Right-click a component and select the Plugins/Edit parameters… context menu. This opens a dialog with the parameters of the component.
- Right-click a component and select the Plugins/Get Dll Path context menu. This opens a dialog and displays the path to the DLL file of the component respectively.
For the batch-mode example, perform one of the following:
Start SoC Designer Simulator using the following command:
sdsim –script my_example.mxscr
Use the provided batch script called run.bat (Win32) or run.csh (Linux).
This starts running the my_example.mxscr SoC Designer Simulator script that invokes the example batch-mode plugin.
- Opens the MxStub_example.mxp system.
- Displays the hierarchy.
- Runs the simulation.
- Displays some CAPI profiling results.
- Saves the system under a different MXP file.
- Opens or runs this other system.