-
Notifications
You must be signed in to change notification settings - Fork 2
AWB example browse GUI
In this example, we will use the GUI-based model editor, apm-edit to browse the modules that comprise a design.
As with all awb-based activities, you should be in an AWB workspace, e.g., in the directory with an command line file. The appropriate packages must be available in the workspace, such as was demonstrated in the AWB example setup command line and GUI-based examples. In our example you cd to the workspace as follows:
% cd ~/workspaces/demo
Opening the modeling editor can be done from the GUI using awb, so we start it.
% awb
Now in the model table select a model and right click on the model to edit it.

Select the directory Models-->leap-->demos-->hello in the left pane Select the .apm file hello_hybrid_exe in the right pane Right click on the model and select edit.
One can also invoke the model editor (apm-edit) directly from the command line.
apm-edit config/pm/leap/demos/hello/hello_hybrid_exe.apm
In the model editor, one can see the tree of modules that comprise a module. On configure, copies of the source files for each module are put (via symbolic link) into the build tree for the design along with any automatically created glue files that are needed.

One can also browse the source for these module, by right clicking on a module in the module tree in the model editor. Then one can select one of following actions:
- Edit
- Open an editor with all the source files from the module, or
- Opens the model editor for a submodel
- This action is also invoked by double clicking on the module.
- Open at containing folder
- Open a file browser, e.g., nautilus, at the directory containing the module’s source code
- Shell at containing folder
- Open a terminal, e.g., gnome-terminal, at the directory containing the module’s source code
For further information on editing a model, see the apm-edit page.