beautypg.com

Specifying constraints, Specifying constraints –8, Specifying constraints” on – Altera RapidIO MegaCore Function User Manual

Page 30: The quartus, Discussed in

background image

2–8

Chapter 2: Getting Started

Specifying Constraints

RapidIO MegaCore Function

August 2014

Altera Corporation

User Guide

Specifying Constraints

For non-Arria 10 variations, Altera provides constraint files in Tcl format that you
must apply to ensure that the RapidIO IP core meets design timing requirements.

1

Constraints are not set automatically. You must run the Tcl constraint script to apply
the constraints.

To use the generated constraint files, follow these steps:

1. Open your Quartus II project in the Quartus II software.

2. On the View menu, point to Utility Windows and then click Tcl Console.

3. Source the generated constraint file by typing the following command at the Tcl

console command prompt:

source <variation_name>/synthesis/submodules/<instance_name>_constraints.tcl

r

4. Add the Rapid IO constraints to your project by typing the following command at

the Tcl console command prompt:

add_rio_constraints

r

This command adds the necessary logic constraints to your Quartus II project.

If you rename any clocks in Qsys, you require the -ref_clk_name, -sys_clk_name,
-phy_mgmt_clk

, and -patch_sdc command-line options specified in

Table 2–2

.

The script automatically constrains the system clocks and the reference clock based on
the data rate chosen. For supported transceivers, Altera recommends that you adjust
the reference clock frequency in the Physical Layer tab of the RapidIO parameter
editor only. However, you can adjust the system clock frequency in the Tcl constraints
script or the generated Synopsys Design Constraint File (.sdc).

The Tcl script assumes that virtual pins and I/O standards are connected to
Altera-provided pin names. For user-defined pin names, you must edit the script after
generation to ensure that the assignments are made properly.

The add_rio_constraints command has the following additional options that you
can use:

add_rio_constraints

[-no_compile]

[-ref_clk_name

<name>] [-sys_clk_name <name>] [-phy_mgmt_clk_name <name>]

[-patch_sdc]

[-help]