Implementation - Implementation - 2022.2 English - UG905

Vivado Design Suite User Guide: Hierarchical Design (UG905)

Document_ID
UG905
Release_Date
2022-10-19
Version
2022.2 English

This section describes the necessary commands to implement a module instance in an out-of-context flow. Note that if this module has multiple instances instantiated in a top level design and the Assembly Flow is going to be used, multiple OOC implementations each with unique Pblock constraints are required to generate the necessary implementation results.

If synth_design -mode out_of_context was previously run, and the results are still in memory, then implementation can be run directly. For example, the following implementation commands can be used.

  • read_xdc: Use this command if all constraints are not already loaded. It might be necessary to apply certain module-level XDC constraints to the OOC implementation only. See Top-Level Reuse Commands and Constraints for a description of the OOC-only constraints).
  • set_property HD.PARTITION 1 [current_design]: This identifies the cell as being implemented OOC, and enables DRCs and the required software features during the reuse flows. It is not required for the OOC implementation, but setting it is a good way to ensure the final DCP is imported correctly during the reuse flow. See Top-Level Reuse Commands for more information on what HD.PARTITION does in the reuse flow.
  • opt_design (optional, but recommended)
  • place_design
  • phys_opt_design (optional but recommended)
  • route_design

If there is currently no design in memory, then a design must be loaded. This can be done in one of several ways.

Method 1: Read Netlist Design

read_edif <file_name>.edf/edn/ngc
link_design -mode out_of_context -top <top_module_name> -part <part>
Table 1. link_design Options
Command Option Description
-mode out_of_context

Load a netlist design in an out-of-context mode. Enables special checking and optimization for downstream tools.

-part This is the Xilinx part being targeted (e.g., xc7k325tffg900-3).
-top

This is the module/entity name of the module being implemented. This

switch can be omitted if set_property top <top_module_name>[current_fileset] is issued prior to link_design.

If the -mode out_of_context option is not issued for link_design after reading the design netlist(s), subsequent implementation steps treat the design as a full design and trim any sourceless or loadless signals. The OOC mode must be defined during either synth_design or link_design to run the Module Analysis flow.

Method 2: Open Checkpoint

open_checkpoint <file_name>.dcp
Important: The open_checkpoint command does not have a - mode out_of_context option. The mode is saved as part of the checkpoint, therefore it is critical to make sure that the tools are in the correct mode when writing out a checkpoint.

Method 3: Add Various File Types

The add_files command can be used with link_design to load in modules that include multiple files and various file types.

add_files <file_name>.dcp
add_files <file_name>.edf
add_files <file_name>.xdc
link_design -mode out_of_context -top <top_module_name> -part <part>