You are ready to add RTL files into the project to package as an IP. The RTL files have been provided for you in this tutorial, but this is the point at which you would insert your own RTL code.
In the Sources view, click the Add Sources command (). The Add Sources window is displayed.
Click Add or create design sources, and then click Next.
Click Add Directories, browse to
reference-files/src
, and select theIP
directory (which contains the RTL sources).NOTE: To add your own RTL IP, specify the required folder or files.
Select the Copy sources into project and Add sources from subdirectories.
Click Finish.
The files are added to the project, and the Vivado Design Suite automatically identifies the
Vadd_A_B.v
file as the top level of the design. This RTL module has an interface which is compatible with the Hardware Interface Requirements for RTL kernels as discussed in the Introduction. This can be seen in theVadd_A_B
module definition by double-clicking the file in the Sources view to open it in a Code Editor window.module Vadd_A_B #( parameter integer C_S_AXI_CONTROL_ADDR_WIDTH = 12 , parameter integer C_S_AXI_CONTROL_DATA_WIDTH = 32 , parameter integer C_M00_AXI_ADDR_WIDTH = 64 , parameter integer C_M00_AXI_DATA_WIDTH = 512, parameter integer C_M01_AXI_ADDR_WIDTH = 64 , parameter integer C_M01_AXI_DATA_WIDTH = 512 )