Main Content

FPGA-in-the-Loop Simulation

R2026b
Verification with FPGA hardware

FPGA-in-the-loop (FIL) simulation allows you to run a Simulink® or MATLAB® simulation with an FPGA board strictly synchronized with this software. When you use FIL in the Workflow Advisor, HDL Coder™ uses the loaded design to create the HDL code. See FPGA-in-the-Loop Simulation.

Apps

FPGA-in-the-Loop WizardGenerate an FPGA-in-the-loop (FIL) block or System object from existing HDL files
Logic AnalyzerVisualize, measure, and analyze transitions and states over time

Functions

filProgramFPGALoad programming file onto FPGA
programFPGA Load programming file associated with FILSimulation or FILFreeRunning system object onto FPGA
readPortReceive data from DUT ports (Since R2024b)
writePortSend data to DUT ports (Since R2024b)

Objects

hdlverifier.FILSimulation FIL simulation with MATLAB
hdlverifier.FILFreeRunning Free-running FIL simulation with MATLAB (Since R2024b)

Blocks

FIL Simulation blockFIL SimulationSimulate HDL code on FPGA hardware from Simulink

Topics

Overview

  • FPGA-in-the-Loop Simulation
    FPGA-in-the-loop (FIL) simulation provides the capability to use Simulink or MATLAB software for testing designs in real hardware for any existing HDL code.
  • FPGA-in-the-Loop Simulation Workflows
    Choose between generating a block or System object™, and decide whether to use the FIL Wizard or HDL Workflow Advisor.

FIL Requirements and Preparation

Generate FIL Interface from Legacy Code

Free Running FIL

Generate FIL System Object from MATLAB Code

Generate FIL Block from Simulink Model

Featured Examples