Академический Документы
Профессиональный Документы
Культура Документы
Design Entry
Function Simulation
Synthesis, Technology mapping placement and routing
Implementation
Timing Verification
Download
1-2
1-3
CLK D
tS setup time tH hold time
Q
tclk
Q
Critical path Critical Path: The signal path that has the longest propagation delay Assume that each gate has the same delay d
The delay of the critical path in the above circuit is 3d
1-5
The delays of the critical paths in comb. logic 1 and comb. Logic 2 are d1 and d2, respectively. In addition, d1>d2
+ d1 + tS
tCLK
T d1
tS
1-6
DFF clk
DFF
DFF
tCLK
T d1
Set-up time violation
tS
1-7
DFF clk
DFF
DFF
tCLK
d1
Q
Clock Skew
Due to interconnect delay, the same clock signal may switch at different time depending on the distance from the clock source. This effect is called clock skew.
DFF 3ns clk1 Comb. Logic 1 1ns CLK clk1 clk2
tCLK d1 tS tCLK
Q
DFF clk2
DFF
clk1 clk2
Q
d1
tS
Signal propagation
Signal propagation
Clock Skew
DFF 1ns clk1 Comb. Logic 1 5ns CLK DFF clk2 Comb. Logic 2 2ns Propagation delay caused by interconnect clk1 clk2
thold dl tCLK thold dl
DFF
clk1 clk2
tCLK
1-11
DFF
DFF
tsk
To avoid setup time violation
clock
data clock
DFF
DFF
data clock
DFF
Comb. Logic
DFF
1-13
logic
FF
logic
FF
IPAD IPAD
logic
OPAD
1-14
Period Constraint
Period constraints specify delay of paths between synchronous elements that are clocked by the same clock
Period constraint is also called register-to-register delay
Synchronous elements include D flip-flops, latches, and synchronous Rams In the following example, the period constraint specify delay of a path between two D flip-flops Path between DFFS
IPAD
logic
FF
logic
FF
OPAD
IPAD IPAD
logic
OPAD
- tS
1-15
Offset Constraint
Offset constraints specify delays of paths:
From input pads to synchronous elements. The constraints for this type paths are called as offset in constraints. For the input paths, external setup time and external hold time have to be considered From synchronous elements to output pads. The constraints for this type paths are called as offset out constraints. Offset In Constraints
IPAD
logic logic
FF
FF
IPAD
1-16
logic logic
IPAD
tCLK Worst case setup time for input occurs when input is DELAYED relative to CLK. Means clock edge arrives early, requiring input to be ready sooner.
1-17
logic logic
IPAD
tCLK Worst case hold time for input occurs when CLK is DELAYED relative to input. Means clock edge arrives late, requiring input to hold its value longer.
1-18
logic
FF
logic
FF
OPAD
IPAD IPAD
OPAD
It specifies delays for paths that are from input pads to output pads Purely combinatorial delay paths do not contain any synchronous elements
1-19
clk
1-20
1-21
1-22
Done
1-23
Perform timing analysis at fast corner to check hold time violations and perform timing analysis at slow corner to check setup time violations
1-24
Due to process variations and other factors, including operating voltage, circuit design, etc, devices from the same family can achieve different operating speeds:
Source: www.xilinx.com
1-25
1-26
CLK
Undefined region
Metastable state
If the asynchr. input is in undefined region when the DFF latches it, the DFF output will be possibly in metastable state. The DFF output will eventually settle to logic 1 or 0. However, this process must complete with a certain period. Otherwise, it will be a failure.
1-28
1-29
Metastability Analysis
Mean Time Between Failure: MTBF
tr
e MTBF = T0 f in f clock
Where, 1. 2. 3. 4. tr is metastability resolution time, maximum time the output can remain metastable without causing synchronizer failure. T0 and are constants that depend on the electrical characteristics of the flip-flop. fin is the frequency of the asynchronous input fclock is the frequency of the sampling clock
1-30
Increasing MTBF
Mean Time Between Failure: MTBF
D Asynchronous signal
Synchronous circuit
CLK Synchronizer
1-31
OUT1
BUFG
FLOP D Q
Clock domain 2
FLOP D Q
OUT2
BUS [7..0]
CLK2
CDATA
Synchronizer
clk2 Clock domain 1 Clock domain 2
FIFO Handshaking
1-33