09.03.2013 Views

Processor Local Bus Functional Model Toolkit User's Manual

Processor Local Bus Functional Model Toolkit User's Manual

Processor Local Bus Functional Model Toolkit User's Manual

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.

4.3 Invoking the <strong>Bus</strong> <strong>Functional</strong> Compiler<br />

The bus functional compiler operates on files with the extension “.bfl”, and it generates a file with the<br />

same name but with a “.cmd” or “.do” or “.v” extension depending on the target simulator. If the “.bfl”<br />

extension is omitted, the “.cmd” extension is simply added to the end of the filename.<br />

It is possible to invoke the BFC with multiple command files by specifying each file as an argument<br />

(input parameter) to the BFC. When multiple files are used in a single BFC call, the command file<br />

which is generated will be named using the first input file name.<br />

To invoke the bus functional compiler, type “BFC filename1.bfl filename2.bfl...”.<br />

Note: If the message “perl: not found” or other system error is encountered when invoking the BFC,<br />

ensure that the path for the Perl executable is correct on the first line of the BFC source<br />

program as required by the Perl interpreter specification. To locate the Perl executable, try<br />

using the UNIX command “which perl.”<br />

4.4 Initializing the <strong>Bus</strong> <strong>Functional</strong> <strong>Model</strong>s<br />

The command files which are generated by the bus functional compiler should be executed at<br />

simulation time 0. For the VHDL toolkit this is accomplished with an “include” or “do” type command<br />

after the model is loaded by the simulator. For the Verilog toolkit the BFC generates a Verilog<br />

initialization command file which should be included when the simulation model is compiled.<br />

Version 4.9.2 PLB <strong>Bus</strong> <strong>Functional</strong> Compiler 13

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

Saved successfully!

Ooh no, something went wrong!