Examples

Top  Previous  Next

This section describes the examples provided with Diamond.

 

The first thing you must do is import the examples into the IDE.

 

Start the IDE, then click the Import icon.

Examples Import

 

When the Import Wizard appears, click Select All and then Finish to import all of the examples into your workspace. You could import a selection of the examples, but it is easier to import them all.

 

Setting the Default Processor Type

Some of the examples assume that you have set a default processor type. If you did not do this when you installed Diamond, you need to make some changes before building the application:

1.

Set a default processor type using the 3L utility ProcType; or

2.

Expand the particular example (say, Example-1) in the Diamond source view on the left by clicking the +, then double-click root and select the correct processor type.

 

 

Building and Running

You can build an example by typing Ctrl+B. Note that an example requiring a new FPGA bitstream can take several minutes to build. Once your example has been built successfully, you can execute it by clicking run, the blue triangle icon at the top of the window (below Search) as shown on the picture below.

 

Examples Run