| Contents | Index |
| On this page… |
|---|
Before beginning:
Have your HDL code ready and the original model opened.
Set up your project tools by specifying the path to the executables. See Generate FIL Block in the User Guide.
For more detailed information, see FPGA-in-the-Loop (FIL). For a demonstration of FIL, see the FPGA-in-the-Loop demos under HDL Verifier.
At the MATLAB prompt, enter the following:
>> filWizard
Select the FPGA vendor you are using (FPGA design software) to display boards supported for that vendor. Choose either Altera or Xilinx. If you leave the selection at All, all supported boards will be displayed in the pull-down menu.
Select the board you are using. Adjust the Board IP address if applicable. Click Next to continue.

Select your HDL source files. Indicate the top-level module. Click Next to continue.

Review the DUT I/O ports. Change any settings if desired. Click Next to continue.

There must be at least one input and one output data port.
Select the output folder for the programming files. Click Next to continue.

Click Build.
During the build process, the following actions occur:
The FIL Wizard generates a FIL block named after the top-level module and places it in a new model.

After new model generation, the FIL Wizard opens a command window.
In this window, the FPGA design software performs synthesis, fit, place-and-route, timing analysis, and FPGA programming file generation.
When the process is finished, a message in the command window lets you know you can close the window.
For more detailed information about the FIL Wizard, see Generating a FIL Block Using the FIL Wizard. For more information about the FIL process, see FPGA-in-the-Loop (FIL). For a demonstration of FIL, see the FPGA-in-the-Loop demos under HDL Verifier.
Insert the generated FIL block into the existing model.
Open the block mask and load the programming files.

Make any other adjustments on the block mask, if desired.

Run the FIL simulation.
For more detailed information, see FPGA-in-the-Loop (FIL). For a demonstration of FIL, see the FPGA-in-the-Loop demos under HDL Verifier.
![]() | Generate HDL Cosimulation Interfaces from Existing HDL Code |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |