Skip to content

AWB example build GUI

Kermin E Fleming edited this page Feb 15, 2015 · 2 revisions

AWB example GUI

In this example, we will use the hardware setup GUI to build and run a single model in Bluesim simulation mode. After you are successful at running in simulation, you can do the appropriate FPGA_hardware setup and redo these instructions for a model that runs directly on an FPGA.

Getting ready to build and run a model

To build a model 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

Building and running a model using the GUI

There are 4 steps to building and running a model and awb can be used to perform them, so we start it.

% awb

Model tab

The first step is configuring a model, which takes an build tree and generates a glossary#Workspace.

Select the directory Models-->leap-->demos-->hello in the left pane
Select the .apm file hello_hybrid_exe in the right pane
Click 'Configure'

Click 'OK' to the 'log' window.

Click 'Next' on awb model tab

Build tab

The second step in building the model, which is actually just invoking make in the build tree.

Click 'Build'
Click 'OK' to the 'log' window.

Click 'Next'

Benchmarks tab

The third step is called setup and takes a benchmark benchmark directory. This step collects the executable and files need for the run into a Glossary#Workspace

Select the directory Benchmarks->leap->demos.cfx->benchmarks in the left pane
Select benchmark configuration null.cfg in the right pane
Click 'Setup'
Click 'OK' to the 'log' window.

Click 'Next'

Parameters tab

This step isn’t used…

Click 'Next'

Run tab

In the final step, we run the program, which just involves invoking ./run in the benchmark directory.

Click 'Run'

Click 'OK' to the 'log' window.

Check out how to build and run the example using the command line.

Or you might want to browse the source code for the example from the command line or GUI.

Clone this wiki locally