- From the Flow Navigator, select IP
Catalog.
The AMD IP catalog displays in a new tab.
- You can work with the IP catalog in a variety of ways. You can search using keywords in the search box or browse through the catalog in the various categories.
- Type
fifoin the search box.The search results narrow the list of IP definitions displayed in the catalog.
- From the group select FIFO
Generator, as shown in the following figure.
- Right-click and select Customize IP,
or double-click the selected IP.
The FIFO Generator customization window opens, as shown in the following figure. There is a schematic symbol for the selected core displayed on the left. The schematic symbol changes as you customize the IP.
Note: This is not the original setting; it shows the change that you make to the customization. - Zoom into the schematic symbol using mouse strokes with the left mouse button, within the Device window.
- If checked, disable the Show Disabled Ports checkbox to hide unused ports on the symbol.
- Above the symbol, click the Documentation menu to examine the options for viewing available
information.
The Documentation menu lets you open the PDF file datasheet for the IP, open the change log to review the revision history of the core, or open an Internet browser to navigate to the IP webpage, or view any Answer Records related to the IP.
The IP Location specifies the location to which to save the IP customization (XCI) file and any generated output products. By default, these are saved inside the project directory structure in the project_wave_gen_ip/project_wave_gen.gen/ip directory.
The Switch to Defaults option resets the configuration options back to the default settings.
- In the Customize IP dialog box, change the following:
-
Component Name to char_fifo
from the default name.
The Basic tab defines the interface type, memory type, and other implementation IP options.
- Default Interface Type of
Native. - Change Fifo Implementation to
Independent Clocks Block RAM.
The customization window should now look like the preceding figure.
-
Component Name to char_fifo
from the default name.
- Select the Native Ports tab to set
the Read Mode, Data Port Parameters, ECC, and Output Register Options, and
configure Initialization.
- Set Read Mode to First Word Fall Through.
- Set the Write
Width to
8bits.Setting the Write Width automatically changes the Read Width to match when you click in the Read Width field.
- Click the Read
Width field to automatically change it to
8bits.
- Leave everything else with the default settings on this tab.
- Examine the fields of the Status Flags and Data Counts tabs.
These fields configure other options for the FIFO Generator. For this design, leave everything with the default settings.
- Click OK.
The Generate Output Products dialog box opens for you to generate required files, as shown in the following figure.
- Leave Out of context per IP selected, and click the Generate button.
- Click OK.
By default, the Vivado IDE generates the Synthesized Checkpoint (DCP) file.
To create this DCP, You see that the Vivado tools have added an OOC module run for the char_fifo IP to the Design Runs window, and launched the run to synthesize the IP, as shown in the following figure.
The out-of-context (OOC) run creates the DCP for the specified IP customization, which does the following:
- Allows the IP to be complete with regard to synthesis.
- Ensures that the integrity of the core is preserved in the current design.
- Reduces synthesis time for the top-level design in future iterations of the design flow.
For more information on OOC runs, and the use of DCP files, see the Vivado Design Suite User Guide: Designing with IP (UG896).
Important: Generate the DCP file to reduce synthesis time for the top-level design. Do not change the default synthesis setting for the IP Design Runs.The FIFO now appears in the Sources > IP Sources view, as shown in the following figure.
- In the Sources window > IP Sources tab, examine the output products
produced for the FIFO Generator customization. If you had not generated the
output products, they would generate automatically when you launch the top-level
synthesis run.
The FIFO IP is added to the design sources, but is not yet instantiated into your design. It is added at the same level as the top-level wave_gen module in the Hierarchy tab, and appears in the Block Sources folder in the Libraries and Compile Order tabs.
The FIFO Generator customization includes instantiation templates (this tutorial uses char_fifo.veo), synthesis constraints, VHDL entity and architecture definition, Verilog simulation files, and the synthesized design checkpoint (DCP).
Note: A char_fifo.vho template also exists, but can not be used in this design.Note: Because the FIFO IP was originally defined in VHDL, the entity and architecture are added as VHDL source files. However, because Verilog is the target language for the current project, the instantiation template is a VEO file for instantiating the VHDL FIFO entity into the Verilog design. You can also customize and add IP to your design using Tcl commands. - Examine the Tcl Console in the Vivado
IDE, as shown in the following figure and review the Tcl commands used to add
the FIFO Generator core to your project.
The following commands are related to the creation, customization, generation, and launch of the IP run:
- The
create_ipcommand adds the IP into the current project. - The
set_propertycommand sets the various configuration options selected in the Customize IP dialog box. Scroll up in the screen to see this command. - The
generate_targetcommand creates the specified output products for the customized IP. Scroll up in the screen to see this command. - The
create_ip_runcommand creates the Out-of-Context synthesis run for the customized IP. - The
launch_runscommand runs synthesis on the IP customization to produce the synthesis DCP file, functional simulation netlists, and stub files for third-party synthesis tools to infer a black box for the IP.
See the Vivado Design Suite Tcl Command Reference Guide (UG835) for specific information on the different Tcl commands used in this tutorial.
- The