-
Notifications
You must be signed in to change notification settings - Fork 2
AWB example build 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.
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
There are 4 steps to building and running a model and awb can be used to perform them, so we start it.
% awb
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
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'
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'
This step isn’t used…

Click 'Next'
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.