3
\$\begingroup\$

I've been working my way through Digital Design and Computer Architecture, but am very confused by the equations for time delay - what each of the variables are, and how to conceptualize these equations.

Assuming no clock skew, the book gives the following two formulae:

$$t_{pd} \le T_c - (t_{pcq} + t_{setup})$$

$$t_{cd} \ge t_{hold} - t_{ccq}$$

What I understand so far is that contamination delay is the minimum amount of time that will pass before an inputted value will start to change, and the propagation delay is the maximum amount of time that will pass before the output is sure to be resolved. I also understand that the setup time is the amount of time before the rising edge of the clock that an input must have stabilized, and the hold time is the amount of time after the edge that we wait before we can be certain that the output is stable.

Assuming this understanding and no further, can you please explain and help me conceptualize the two above equations?

\$\endgroup\$
2
\$\begingroup\$

The first equation tells you the maximum propagation delay allowable through a block of combinational logic between two clocked registers. For ideal flip-flops the delay would just be the clock period, \$T_C\$, but for real flip-flops you have to subtract the time from the clock edge until the inputs of the combinational block (the outputs of the first set of flip-flops) become stable, \$t_{PCQ}\$, and the required setup time (when the outputs of the combinational block must be stable before the clock edge on the second set of flip-flops), \$t_{setup}\$.

The other side of the timing analysis is that the flip-flop inputs must remain stable for a short period of time after the clock edge to make sure that the inputs are properly latched. This characteristic of a flip-flop is called the hold time, \$t_{hold}\$. In order to satisfy the second flip-flop's hold time requirement, it is necessary that the clock-to-q contamination delay, \$t_{ccq}\$, plus the contamination delay of the combinational logic, \$t_{cd}\$, must be greater than the flip-flops hold time requirement. Rearranging the equation, you can specify the relationship between a characteristic of the combinational logic, \$t_{cd}\$, to the two characteristics of the flip-flops, \$t_{hold}\$ and \$t_{ccd}\$.

In practice, you will have many combinational paths in a block of logic between two sets of registers. For the first equation you should use the largest propagation delay of any path, while for the second you should use the smallest contamination delay on any path.

\$\endgroup\$
  • \$\begingroup\$ Can you explain in a little more detail why tccq + tcd must be greater than the flip-flop's hold time requirement? \$\endgroup\$ – Kvass Mar 5 '14 at 2:47
  • \$\begingroup\$ The sum of \$t_{ccq}\$ plus \$t_{cd}\$ is the minimum time from a clock edge until the outputs of the combinational logic will start to change. The combinational logic outputs are connected to the inputs of other flip-flops, and the logic outputs must satisfy the hold time of those flip-flops, which is \$t_{hold}\$. \$\endgroup\$ – Joe Hass Mar 5 '14 at 2:54
  • \$\begingroup\$ I don't understand how the min time at which the outputs of the combinational logic will start to change is at all related to the hold time of the other flip-flop. If the output of the combinational logic becomes the input of the second flip-flop, why is the hold time, which is a measurement of stable time AFTER the second flip-flop (unless that's wrong), relevant at all? \$\endgroup\$ – Kvass Mar 5 '14 at 3:08
  • \$\begingroup\$ I don't know how to explain it differently. The \$t_{hold}\$ is a specified requirement of the flip-flop regarding how long data must remain stable after a clock edge. The sum of \$t_{ccq}\$ and \$t_{cd}\$ tells us how long data actually will remain stable after a clock edge. \$\endgroup\$ – Joe Hass Mar 5 '14 at 11:56
  • \$\begingroup\$ Wait - is \$t_{hold}\$ a measurement of how long after the clock edge it will take for the data to reach a stable state or is \$t_{hold}\$ a measurement of how long after the clock edge we can be sure that the output is stable? \$\endgroup\$ – Kvass Mar 5 '14 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.