SlideShare a Scribd company logo
1 of 11
Xilinx OFFSET IN and OFFSET OUT
Constraints
Reference: Xilinx WP237
 OFFSET constraints are used to define the timing relationship between an
external clock pad and its data in or data out.
 The relationship is also known as constraining the pad-to-setup or clock-to-out
paths on the device. These constraints are very important for specifying timing
interfaces with external components.
 Pad to Setup or OFFSET IN BEFORE constraint is used to ensure that the
external clock and external input data meet the setup time on the internal flip-
flop which latches the external data input.
 Clock-to-Out or OFFSET OUT AFTER constraint is used to control the setup/hold
requirement of the downstream devices.
What are OFFSET Constraints?
What Paths are Covered by OFFSET Constraints?
The OFFSET constraints cover the following paths:
From input pads to synchronous elements (OFFSET IN)
From synchronous elements to output pads (OFFSET OUT)
If the clock that clocks a synchronous element does not come through an input
pad – for example, it is derived from another clock – then the OFFSET constraint
will fail to return any paths during timing analysis.
 The OFFSET IN BEFORE constraint defines the time available for data to
propagate from the pad and setup at the synchronous element.
 You can visualize this as the time that the data arrives at the edge of the device
before the next clock edge arrives at the device.
 “OFFSET = IN 2 ns BEFORE clock_pad” constraint implies that the external data
is available at input data pad just 2ns before the next active clock edge arrives.
In this case tool has only 2 ns to route the data from pad to the synchronous
element.
OFFSET IN BEFORE
 The following equation defines the setup relationship:
TData + TSetup - TClock <= Toffset_IN_BEFORE
OFFSET IN BEFORE
 In the equation clock delay (Tclock) is
subtracted from the data delay (TData)
because data and clock are in series.
 As depicted in timing waveform below,
with the same data delay we have two
different Toffset_IN_BEFORE value
because of different clock delays.
 TIMEGRP DATA_IN OFFSET IN = 3ns
BEFORE CLK TIMEGRP FF_RISING;
 TIMEGRP DATA_IN OFFSET IN = 5ns
BEFORE CLK_DELAYED TIMEGRP
FF_RAISING;
The following is example of the OFFSET IN with the VALID keyword:
 TIMEGRP DATA_IN OFFSET IN = 1 VALID 3 BEFORE CLK TIMEGRP FF_RISING;
 In the above constraint setup requirement is 1 ns and the hold time
requirement is 2 ns (VALID – OFFSET IN VALUE).
 The OFFSET IN requirement value is used as a setup time requirement of the
FPGA during the setup time analysis. The VALID keyword is used in conjunction
with the requirement to create a hold-time requirement during a hold-time
analysis.
OFFSET IN BEFORE Constraint With Valid Keyword
SIMPLE EXAMPLE
Slack = (Requirement - (Data Path - Clock Path - Clock Arrival))
OFFSET IN EXAMPLE WITH PLL INVOLVED
FPGA
FF
OSCILL
ATOR
PHY
OSCILL
ATOR
50 MHz
25 MHz
DATA
 For the design shown in the previous slide, suppose the pad clock is clk25, the
internal sample clock is clk50 and the output clock to PHY is clk50.
 The OFFSET IN requirement with regards to clk50 is
TIMEGRP “DATA" OFFSET IN = 2 ns BEFORE clk50 RISING
 As clk50 clocks the incoming data on every rising edge, both rising and falling
edges of clk25 will be used as reference to specify the OFFSET IN at the input
pad clock. Please refer timing diagram in the previous slide to understand it
better.
 Since OFFSET constraints works only with external clocks, we have to define
OFFSET constraints with respect to CLK_25MHz.
 The OFFSET IN requirement with regards to CLK_25MHz is
TIMEGRP “DATA" OFFSET IN =12 ns BEFORE "<<input 25MHz pad clock>"
RISING";
TIMEGRP “DATA" OFFSET IN =12 ns BEFORE "<<input 25MHz pad clock>"
FALLING";
OFFSET IN BEFORE Constrain For The Above Example

More Related Content

What's hot

Clock Tree Timing 101
Clock Tree Timing 101Clock Tree Timing 101
Clock Tree Timing 101Silicon Labs
 
Standard cells library design
Standard cells library designStandard cells library design
Standard cells library designBharat Biyani
 
Physical design-complete
Physical design-completePhysical design-complete
Physical design-completeMurali Rai
 
1. FPGA architectures.pdf
1. FPGA architectures.pdf1. FPGA architectures.pdf
1. FPGA architectures.pdfTesfuFiseha1
 
Contamination delay
Contamination delayContamination delay
Contamination delayNima Afraz
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)shaik sharief
 
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptxDesign and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptxRahul Phulwariya
 
12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_design12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_designUsha Mehta
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehtaUsha Mehta
 
Basic interfacing of LEDs
Basic interfacing of LEDsBasic interfacing of LEDs
Basic interfacing of LEDsVarad Manglekar
 
2Overview of Primetime.pptx
2Overview of Primetime.pptx2Overview of Primetime.pptx
2Overview of Primetime.pptxShivangPanara
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logicGaditek
 
Simulation of a Telephone system & Reliability Problem
Simulation of a Telephone system & Reliability ProblemSimulation of a Telephone system & Reliability Problem
Simulation of a Telephone system & Reliability ProblemAltafur Rahman
 

What's hot (20)

Clock Tree Timing 101
Clock Tree Timing 101Clock Tree Timing 101
Clock Tree Timing 101
 
Standard cells library design
Standard cells library designStandard cells library design
Standard cells library design
 
Physical design-complete
Physical design-completePhysical design-complete
Physical design-complete
 
1. FPGA architectures.pdf
1. FPGA architectures.pdf1. FPGA architectures.pdf
1. FPGA architectures.pdf
 
Contamination delay
Contamination delayContamination delay
Contamination delay
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)
 
MULTI Threshold
MULTI ThresholdMULTI Threshold
MULTI Threshold
 
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptxDesign and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
 
12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_design12 static timing_analysis_3_clocked_design
12 static timing_analysis_3_clocked_design
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehta
 
Basic interfacing of LEDs
Basic interfacing of LEDsBasic interfacing of LEDs
Basic interfacing of LEDs
 
Static_Time_Analysis.pptx
Static_Time_Analysis.pptxStatic_Time_Analysis.pptx
Static_Time_Analysis.pptx
 
2Overview of Primetime.pptx
2Overview of Primetime.pptx2Overview of Primetime.pptx
2Overview of Primetime.pptx
 
Eco
EcoEco
Eco
 
Time complexity
Time complexityTime complexity
Time complexity
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logic
 
Fuzzy sets and operators
Fuzzy sets and operators Fuzzy sets and operators
Fuzzy sets and operators
 
Simulation of a Telephone system & Reliability Problem
Simulation of a Telephone system & Reliability ProblemSimulation of a Telephone system & Reliability Problem
Simulation of a Telephone system & Reliability Problem
 
Floorplanning.pdf
Floorplanning.pdfFloorplanning.pdf
Floorplanning.pdf
 
Timing analysis
Timing analysisTiming analysis
Timing analysis
 

Similar to Offset in and offset out constraints

Timing closure document
Timing closure documentTiming closure document
Timing closure documentAlan Tran
 
Virtual Clocks.ppt
Virtual Clocks.pptVirtual Clocks.ppt
Virtual Clocks.pptssuser3b4a81
 
Timing notes 2006
Timing notes 2006Timing notes 2006
Timing notes 2006pavan kumar
 
Te442 lecture02-2016-14-4-2016-1
Te442 lecture02-2016-14-4-2016-1Te442 lecture02-2016-14-4-2016-1
Te442 lecture02-2016-14-4-2016-1colman mboya
 
design-compiler.pdf
design-compiler.pdfdesign-compiler.pdf
design-compiler.pdfFrangoCamila
 
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...Waqas Afzal
 
Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009mattsmiley
 
FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...ASHIMA GUPTA
 
MariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
MariaDB Server 10.3 - Temporale Daten und neues zur DB-KompatibilitätMariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
MariaDB Server 10.3 - Temporale Daten und neues zur DB-KompatibilitätMariaDB plc
 
ESD III UNIT.pptx
ESD III UNIT.pptxESD III UNIT.pptx
ESD III UNIT.pptxECEHOD19
 
Oracle Join Methods and 12c Adaptive Plans
Oracle Join Methods and 12c Adaptive PlansOracle Join Methods and 12c Adaptive Plans
Oracle Join Methods and 12c Adaptive PlansFranck Pachot
 
User Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDBUser Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDBKai Sasaki
 
Design of chip controller
Design of chip controllerDesign of chip controller
Design of chip controllerasha
 
Jack_Knutson_SNUG2003_ Copy
Jack_Knutson_SNUG2003_ CopyJack_Knutson_SNUG2003_ Copy
Jack_Knutson_SNUG2003_ CopyJack Knutson
 
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedyUsha Mehta
 

Similar to Offset in and offset out constraints (20)

Timing closure document
Timing closure documentTiming closure document
Timing closure document
 
PL/SQL and radix tree structure
PL/SQL and radix tree structurePL/SQL and radix tree structure
PL/SQL and radix tree structure
 
file-3.ppt
file-3.pptfile-3.ppt
file-3.ppt
 
file-3.ppt
file-3.pptfile-3.ppt
file-3.ppt
 
Virtual Clocks.ppt
Virtual Clocks.pptVirtual Clocks.ppt
Virtual Clocks.ppt
 
Timing notes 2006
Timing notes 2006Timing notes 2006
Timing notes 2006
 
Te442 lecture02-2016-14-4-2016-1
Te442 lecture02-2016-14-4-2016-1Te442 lecture02-2016-14-4-2016-1
Te442 lecture02-2016-14-4-2016-1
 
design-compiler.pdf
design-compiler.pdfdesign-compiler.pdf
design-compiler.pdf
 
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
 
Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009Basic Query Tuning Primer - Pg West 2009
Basic Query Tuning Primer - Pg West 2009
 
Basic Query Tuning Primer
Basic Query Tuning PrimerBasic Query Tuning Primer
Basic Query Tuning Primer
 
FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...FPGA implementation of synchronous and asynchronous counter and simulation of...
FPGA implementation of synchronous and asynchronous counter and simulation of...
 
MariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
MariaDB Server 10.3 - Temporale Daten und neues zur DB-KompatibilitätMariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
MariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
 
ESD III UNIT.pptx
ESD III UNIT.pptxESD III UNIT.pptx
ESD III UNIT.pptx
 
Oracle Join Methods and 12c Adaptive Plans
Oracle Join Methods and 12c Adaptive PlansOracle Join Methods and 12c Adaptive Plans
Oracle Join Methods and 12c Adaptive Plans
 
User Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDBUser Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDB
 
Design of chip controller
Design of chip controllerDesign of chip controller
Design of chip controller
 
Jack_Knutson_SNUG2003_ Copy
Jack_Knutson_SNUG2003_ CopyJack_Knutson_SNUG2003_ Copy
Jack_Knutson_SNUG2003_ Copy
 
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
13 static timing_analysis_4_set_up_and_hold_time_violation_remedy
 
5 Cool Things About SQL
5 Cool Things About SQL5 Cool Things About SQL
5 Cool Things About SQL
 

Recently uploaded

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxhublikarsn
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptAfnanAhmad53
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information SystemsAnge Felix NSANZIYERA
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 

Recently uploaded (20)

Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 

Offset in and offset out constraints

  • 1. Xilinx OFFSET IN and OFFSET OUT Constraints Reference: Xilinx WP237
  • 2.  OFFSET constraints are used to define the timing relationship between an external clock pad and its data in or data out.  The relationship is also known as constraining the pad-to-setup or clock-to-out paths on the device. These constraints are very important for specifying timing interfaces with external components.  Pad to Setup or OFFSET IN BEFORE constraint is used to ensure that the external clock and external input data meet the setup time on the internal flip- flop which latches the external data input.  Clock-to-Out or OFFSET OUT AFTER constraint is used to control the setup/hold requirement of the downstream devices. What are OFFSET Constraints?
  • 3. What Paths are Covered by OFFSET Constraints? The OFFSET constraints cover the following paths: From input pads to synchronous elements (OFFSET IN) From synchronous elements to output pads (OFFSET OUT) If the clock that clocks a synchronous element does not come through an input pad – for example, it is derived from another clock – then the OFFSET constraint will fail to return any paths during timing analysis.
  • 4.
  • 5.  The OFFSET IN BEFORE constraint defines the time available for data to propagate from the pad and setup at the synchronous element.  You can visualize this as the time that the data arrives at the edge of the device before the next clock edge arrives at the device.  “OFFSET = IN 2 ns BEFORE clock_pad” constraint implies that the external data is available at input data pad just 2ns before the next active clock edge arrives. In this case tool has only 2 ns to route the data from pad to the synchronous element. OFFSET IN BEFORE
  • 6.  The following equation defines the setup relationship: TData + TSetup - TClock <= Toffset_IN_BEFORE OFFSET IN BEFORE  In the equation clock delay (Tclock) is subtracted from the data delay (TData) because data and clock are in series.  As depicted in timing waveform below, with the same data delay we have two different Toffset_IN_BEFORE value because of different clock delays.  TIMEGRP DATA_IN OFFSET IN = 3ns BEFORE CLK TIMEGRP FF_RISING;  TIMEGRP DATA_IN OFFSET IN = 5ns BEFORE CLK_DELAYED TIMEGRP FF_RAISING;
  • 7. The following is example of the OFFSET IN with the VALID keyword:  TIMEGRP DATA_IN OFFSET IN = 1 VALID 3 BEFORE CLK TIMEGRP FF_RISING;  In the above constraint setup requirement is 1 ns and the hold time requirement is 2 ns (VALID – OFFSET IN VALUE).  The OFFSET IN requirement value is used as a setup time requirement of the FPGA during the setup time analysis. The VALID keyword is used in conjunction with the requirement to create a hold-time requirement during a hold-time analysis. OFFSET IN BEFORE Constraint With Valid Keyword
  • 8. SIMPLE EXAMPLE Slack = (Requirement - (Data Path - Clock Path - Clock Arrival))
  • 9.
  • 10. OFFSET IN EXAMPLE WITH PLL INVOLVED FPGA FF OSCILL ATOR PHY OSCILL ATOR 50 MHz 25 MHz DATA
  • 11.  For the design shown in the previous slide, suppose the pad clock is clk25, the internal sample clock is clk50 and the output clock to PHY is clk50.  The OFFSET IN requirement with regards to clk50 is TIMEGRP “DATA" OFFSET IN = 2 ns BEFORE clk50 RISING  As clk50 clocks the incoming data on every rising edge, both rising and falling edges of clk25 will be used as reference to specify the OFFSET IN at the input pad clock. Please refer timing diagram in the previous slide to understand it better.  Since OFFSET constraints works only with external clocks, we have to define OFFSET constraints with respect to CLK_25MHz.  The OFFSET IN requirement with regards to CLK_25MHz is TIMEGRP “DATA" OFFSET IN =12 ns BEFORE "<<input 25MHz pad clock>" RISING"; TIMEGRP “DATA" OFFSET IN =12 ns BEFORE "<<input 25MHz pad clock>" FALLING"; OFFSET IN BEFORE Constrain For The Above Example