Path Specific Constraints

Embed Size (px)

Citation preview

  • 8/10/2019 Path Specific Constraints

    1/31

    Path-Specific

    Timing Constraints

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    2/31

    Outline

    Inter-Clock Domain Constraints

    Multi-cycle Paths

    False Paths

    Miscellaneous Constraints

    Summary

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    3/31

  • 8/10/2019 Path Specific Constraints

    4/31

    Constraining Between

    Related Clock Domains Create a PERIOD constraint for one clock

    ! Define all related clocks in terms of this PERIOD constraint

    The implementation tools will use the relationships to determinehow tocross between clock domains

    DCM with multiple outputs:! Define a PERIOD constraint on the input to the DCM

    ! The implementation tools will "push# the constraint onto each output

    ! All constraints will be defined relative to the original PERIOD constraint

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    5/31

  • 8/10/2019 Path Specific Constraints

    6/31

    Constraining Between

    Unrelated Clock Domains To constrain the paths between the two clock domains (highlighted in

    gray)

    ! Define groups of registers CLK_A and CLK_B with the Group by Nets option

    Automatically done if you have specified a PERIOD constraint for both clock

    domains

    ! Place a Slow/Fast Path Exception between the two groups of registers

    D Q

    PERIOD CLK_A PERIOD CLK_B5 ns

    D

    OUT1

    Q

    CLK_A

    CLK_B

    QD Q D

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    7/31

    Step 1: Create the groupsby using the Group by Netsoption

    ! Group by clock net

    ! Skip this step if PERIOD

    constraints are defined Step 2: Create the

    constraint by clicking theSlow/Fast Path Exceptionsbutton

    Constraining Between

    Unrelated Clock Domains

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    8/31

    Enter a name for this constraint

    ! Must begin with "TS#

    Select the groups that define the

    constraint

    Specify the value of the constraint

    Constraining Between

    Unrelated Clock Domains

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    9/31

    Outline

    Inter-Clock Domain Constraints

    Multi-cycle Paths

    False Paths

    Miscellaneous Constraints

    Summary

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    10/31

  • 8/10/2019 Path Specific Constraints

    11/31

    Creating Multi-cycle Path

    Constraints Step 1: Create a global

    PERIOD constraint (not

    shown)

    Step 2: Create groups by

    using the Group by Nets

    option

    ! Group by enable net

    Step 3: Click the Multi-

    cycle Paths button

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    12/31

    Creating Multi-cycle Path

    Constraints Enter a TIMESPEC name

    Select the groups that were

    previously defined

    Define the constraint relative to

    the PERIOD constraint

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    13/31

    Outline

    Inter-Clock Domain Constraints

    Multi-cycle Paths

    False Paths

    Miscellaneous Constraints

    Summary

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    14/31

    False Paths

    The False Paths options

    will prevent constraints

    from being applied to

    specific paths

    ! Define False Paths to

    reduce the number ofconstrained paths in

    your design

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    15/31

  • 8/10/2019 Path Specific Constraints

    16/31

  • 8/10/2019 Path Specific Constraints

    17/31

    Outline

    Inter-Clock Domain Constraints

    Multi-cycle Paths

    False Paths

    Miscellaneous Constraints

    Summary

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    18/31

    Miscellaneous Tab

    Assign individual registers toIOBs

    Mark asynchronous registers

    ! Prevents "X# propagation duringsimulation

    Select nets to be routed on theLow Skew Resources

    ! Use for high-fanout controlsignals

    Assign timing group elements toarea groups for floorplanning

    FEEDBACK constraint for DCMs Define initial values for storage

    elements

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    19/31

    Prorating Constraints

    Prorating allows the tools to use the most accurate information

    ! The implementation tools use the worst-case operating temperature and

    voltage for your chosen device package (85 $ for Commercial, 100 $ for

    Industrial)

    Specify your own worst-case conditions

    ! This will prorate the device delay characteristics to accurately reflect your

    worst-case system conditions

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    20/31

    Timing Constraint Priority

    False Paths

    ! Must be allowed to override anytiming constraint

    FROM THRU TO

    FROM TO

    Pin-Specific OFFSETs

    Group OFFSETs

    ! Groups of pads or registers

    Global PERIOD and OFFSETs

    ! Lowest priority constraints

    Highest

    Lowest

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    21/31

    Timing Constraint

    Interaction Whenever a path is covered by more than one constraint, the tools must

    choose which constraint to use for timing analysis

    If the constraints are of different types, the highest priority constraint is

    applied

    If the constraints are of the same type (Example: FROM TO), the

    decision is more complex

    ! Can be dictated with the PRIORITY keyword in the UCF file

    To see where your constraints overlap, generate a Timing Specification

    Interaction (TSI) file

    ! Under Properties for Post-Place & Route Static Timing Report, type in a

    filename

    ! In the Timing Analyzer, select AnalyzeConstraints Interaction

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    22/31

    Outline

    Inter-Clock Domain Constraints

    Multi-cycle Paths

    False Paths

    Miscellaneous Constraints

    Summary

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    23/31

    Ski l ls CheckSki l ls Check

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    24/31

    Review Question

    Background Information Prescaled 16-bit counter is created in two blocks

    ! Q0 and Q1 in block PRE2 toggle at 200 MHz

    ! Q[15:2] toggle every fourth clock edge (50 MHz)

    ! The design is fully synchronous because all registers share the same clock

    However, COUT14 registers are disabled 3/4 of the time so they do not have to

    meet a 200-MHz PERIOD constraint

    Q0 Q1

    PRE2TC CE

    Q3 Q4 Q15Q14Q2

    COUT14

    200 MHz 50 MHz

    CLK

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    25/31

    Q0 Q1

    PRE2TC CE

    Q3 Q4 Q15Q14Q2

    COUT14

    200 MHz 50 MHz

    CLK

    Review Questions

    What constraints need to be placed on this design to assure it will meet the

    performance objectives?

    How would you enter these constraints through the Constraints Editor?

    How do multi-cycle path constraints improve your design%s performance?

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    26/31

    What type of constraints need to be placed on this design to assure it willmeet the performance objectives?

    ! Global PERIOD constraint of 5 ns (or 200 MHz)

    ! Multi-cycle path constraint of 5 x 4 = 20 ns (or 200 / 4 = 50 MHz)

    How would you enter these constraints through the Constraints Editor?

    ! PERIOD constraint: Use the Global tab! Multi-cycle path constraint:

    Group the flip-flops in COUT14 by clock enable net (group name: MSB)

    Constrain from MSB to MSB

    How do multi-cycle path constraints improve your design%s performance?

    ! They allow the implementation tools to place some logic farther apart and use

    slower routing resources

    Answers

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    27/31

    BIDIR_PAD(7:0)

    Control

    Register

    Status

    Register

    Control_Enable Status_Enable

    Review Questions

    If a PERIOD constraint were placed on this design, what delay paths would

    be constrained?

    If the goal is to optimize the input and output times without constraining the

    paths between registers, what constraints are needed?

    ! Assume that a global PERIOD constraint is already defined

    BIDIR_BUS(7:0)

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    28/31

    Answers

    If a PERIOD constraint were placed on this design, what delay paths

    would be constrained?

    ! Paths between the control registers and the status registers would be

    constrained

    BIDIR_PAD(7:0)

    Control

    Registers

    Status

    Registers

    Control_Enable Status_Enable

    BIDIR_BUS(7:0)

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    29/31

    Answers

    If the goal is to optimize the input and output times without constraining the

    paths between registers, what constraints are needed?

    ! Enter OFFSET constraints on the Global tab

    ! Define False Paths By Nets

    Select the BIDIR_BUS[7:0] nets

    Select the global PERIOD constraint to be ignored

    BIDIR_PAD(7:0)

    Control

    Registers

    Status

    Registers

    Control_Enable Status_Enable

    BIDIR_BUS(7:0)

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    30/31

    Summary

    Use a Slow/Fast Path Exception to constrain paths that cross between

    clock domains

    Identifying multi-cycle and false paths allows the implementation tools to

    make appropriate tradeoffs

    ! These paths will use slower routing resources, which frees up fast routing

    for critical signals

    Prorating your operating conditions gives the tools the most accurate

    picture of your design environment

    In general, more-specific constraints have a higher priority than less-

    specific constraints

    PDF created with pdfFactory Pro trial version www.pdffactory.com

    http://www.pdffactory.com/http://www.pdffactory.com/
  • 8/10/2019 Path Specific Constraints

    31/31