To add an ELF to the project and associate it with an embedded processor, use the following steps:
- In Add Sources.
Add or create design sources is selected by default. This option lets you add an ELF file as a design and simulation source.
Tip: If you are adding an ELF file for simulation purposes only, select Add or Create Simulation Sources.
, select - Click Next.
The Add or Create Design Sources page opens as shown in the following figure.
- Click Add Files.
The Add Source Files dialog box opens, as shown in the following figure.
- Navigate to the ELF file, select it, and click OK.
In the Add or Create Design Sources page, you see the ELF file added to the project.
- Select Copy sources into project to copy the ELF file into the local project, or leave the option unchecked to work with the original ELF file.
- Click Finish.
In the Sources window, you see the ELF file added under the ELF folder, as shown in the following figure.
After adding the ELF file to the project, you must associate the ELF file with the microprocessor in the design.
- In the Sources window, right-click the block design, and select
Associate ELF Files, as shown in the
following figure.
The Associate ELF File dialog box opens as shown in the following figure.
- To associate an ELF as a design source for including in the bitstream, or as a
source for use during simulation, click the appropriate Browse button.
The Select ELF Files dialog box opens.
- Highlight the ELF file that you added to the project earlier, as
shown in the following figure.
Tip: You can also click Add Files on the Select ELF Files dialog box to navigate to and add ELF files to the design at this time. In this case, the ELF file is referenced from its original location, and you do not have the option to copy it to the local project as you do if you add it using theAdd Sources
command. - Ensure that the ELF file displays in the Associated ELF File
column, as shown in the following figure, and click OK.
With the ELF file added to the project, the Vivado tools automatically merge the Block RAM memory information (MMI file) and the ELF file contents with the device bitstream (BIT) when generating the bitstream to program the device.