SlideShare a Scribd company logo
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

address-translation-mechanism-of-80386 (1).ppt
address-translation-mechanism-of-80386 (1).pptaddress-translation-mechanism-of-80386 (1).ppt
address-translation-mechanism-of-80386 (1).ppt
1556AyeshaShaikh
 
ASIC DESIGN : PLACEMENT
ASIC DESIGN : PLACEMENTASIC DESIGN : PLACEMENT
ASIC DESIGN : PLACEMENT
helloactiva
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
Marajulislam3
 
Physical design
Physical design Physical design
Physical design
Manjunath hosmani
 
Pipelining approach
Pipelining approachPipelining approach
Pipelining approach
GopinathD17
 
3673 mosfet
3673 mosfet3673 mosfet
3673 mosfet
vidhya DS
 
Short Channel Effect In MOSFET
Short Channel Effect In MOSFETShort Channel Effect In MOSFET
Short Channel Effect In MOSFET
Sudhanshu Srivastava
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
GurleenKaur408
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
ShivamSood22
 
Event driven simulator
Event driven simulatorEvent driven simulator
Event driven simulator
Sahil Abrol
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
Daniel Ilunga
 
CMOS TG
CMOS TGCMOS TG
CMOS TG
aghila1994
 
FPGA Introduction
FPGA IntroductionFPGA Introduction
FPGA Introduction
Kamlesh Kumar
 
Short channel effects
Short channel effectsShort channel effects
Short channel effects
aditiagrawal97
 
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
SIVA NAGENDRA REDDY
 
VLSI Physical Design Automation.ppt
VLSI Physical Design Automation.pptVLSI Physical Design Automation.ppt
VLSI Physical Design Automation.ppt
RichikDey5
 
Uart
UartUart
Uart
cs1090211
 
UART
UARTUART
Project single cyclemips processor_verilog
Project single cyclemips processor_verilogProject single cyclemips processor_verilog
Project single cyclemips processor_verilogHarsha Yelisala
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 

What's hot (20)

address-translation-mechanism-of-80386 (1).ppt
address-translation-mechanism-of-80386 (1).pptaddress-translation-mechanism-of-80386 (1).ppt
address-translation-mechanism-of-80386 (1).ppt
 
ASIC DESIGN : PLACEMENT
ASIC DESIGN : PLACEMENTASIC DESIGN : PLACEMENT
ASIC DESIGN : PLACEMENT
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
Physical design
Physical design Physical design
Physical design
 
Pipelining approach
Pipelining approachPipelining approach
Pipelining approach
 
3673 mosfet
3673 mosfet3673 mosfet
3673 mosfet
 
Short Channel Effect In MOSFET
Short Channel Effect In MOSFETShort Channel Effect In MOSFET
Short Channel Effect In MOSFET
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
Event driven simulator
Event driven simulatorEvent driven simulator
Event driven simulator
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
CMOS TG
CMOS TGCMOS TG
CMOS TG
 
FPGA Introduction
FPGA IntroductionFPGA Introduction
FPGA Introduction
 
Short channel effects
Short channel effectsShort channel effects
Short channel effects
 
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
 
VLSI Physical Design Automation.ppt
VLSI Physical Design Automation.pptVLSI Physical Design Automation.ppt
VLSI Physical Design Automation.ppt
 
Uart
UartUart
Uart
 
UART
UARTUART
UART
 
Project single cyclemips processor_verilog
Project single cyclemips processor_verilogProject single cyclemips processor_verilog
Project single cyclemips processor_verilog
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 

Similar to Offset in and offset out constraints

Timing closure document
Timing closure documentTiming closure document
Timing closure documentAlan Tran
 
PL/SQL and radix tree structure
PL/SQL and radix tree structurePL/SQL and radix tree structure
PL/SQL and radix tree structure
Viacheslav Kalyakin
 
file-3.ppt
file-3.pptfile-3.ppt
file-3.ppt
teja411944
 
file-3.ppt
file-3.pptfile-3.ppt
file-3.ppt
teja411944
 
Static_Time_Analysis.pptx
Static_Time_Analysis.pptxStatic_Time_Analysis.pptx
Static_Time_Analysis.pptx
Ahmed Abdelazeem
 
Virtual Clocks.ppt
Virtual Clocks.pptVirtual Clocks.ppt
Virtual Clocks.ppt
ssuser3b4a81
 
Timing notes 2006
Timing notes 2006Timing notes 2006
Timing notes 2006pavan kumar
 
Timing Analysis
Timing AnalysisTiming Analysis
Timing Analysis
rchovatiya
 
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
colman mboya
 
design-compiler.pdf
design-compiler.pdfdesign-compiler.pdf
design-compiler.pdf
FrangoCamila
 
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 2009
mattsmiley
 
Basic Query Tuning Primer
Basic Query Tuning PrimerBasic Query Tuning Primer
Basic Query Tuning Primer
Command Prompt., Inc
 
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
 
Standard cells library design
Standard cells library designStandard cells library design
Standard cells library design
Bharat Biyani
 
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
MariaDB plc
 
ESD III UNIT.pptx
ESD III UNIT.pptxESD III UNIT.pptx
ESD III UNIT.pptx
ECEHOD19
 
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
Franck Pachot
 
User Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDBUser Defined Partitioning on PlazmaDB
User Defined Partitioning on PlazmaDB
Kai Sasaki
 
Design of chip controller
Design of chip controllerDesign of chip controller
Design of chip controller
asha
 

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
 
Static_Time_Analysis.pptx
Static_Time_Analysis.pptxStatic_Time_Analysis.pptx
Static_Time_Analysis.pptx
 
Virtual Clocks.ppt
Virtual Clocks.pptVirtual Clocks.ppt
Virtual Clocks.ppt
 
Timing notes 2006
Timing notes 2006Timing notes 2006
Timing notes 2006
 
Timing Analysis
Timing AnalysisTiming Analysis
Timing Analysis
 
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...
 
Standard cells library design
Standard cells library designStandard cells library design
Standard cells library design
 
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
 

Recently uploaded

Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 

Recently uploaded (20)

Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 

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