30.04.2013 Views

BSV by Example - Computation Structures Group

BSV by Example - Computation Structures Group

BSV by Example - Computation Structures Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.2.5 Compile<br />

Figure 2: Main window components<br />

Figure 3: Workstation Toolbar<br />

Building a project includes running the compiler and simulating designs. All build options are<br />

available from the Build menu and the toolbar, shown in Figure 3.<br />

Some options combine multiple build actions into single option or button, for example, Compile +<br />

Link.<br />

Compile the design <strong>by</strong> selecting Compile from the Build menu, or <strong>by</strong> using the Compile button<br />

on the toolbar and make sure you have no errors in your file.<br />

To simulate the design, run the compile, link, and simulate steps. You will see the ”Hello World!”<br />

message in the workstation message window.<br />

In this manual: Source code files (.bsv) and Bluespec Development Workstation project files<br />

(.bspec) are provided for all examples in this manual. Open the project (.bspec) file to run<br />

any of the examples. To run the provided Hello World example from workstation, open the file<br />

getting_started/hello_world/hello_world.bspec. The source code and directory location for<br />

all examples are in the Appendix A.<br />

2.3 Multiple modules in a single package<br />

Source directory: getting_started/mult_modules<br />

Source listing: Appendix A.1.2<br />

20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!