TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Interview Question: Clock Skew, Period and Max Frequency

The Editor's Desk
by
0
Share Facebook X LinkedIn WhatsApp Email

Assume that the timing diagram shows the limits of the allowed times (either minimum or maximum). For each of the terms listed below, answer which time periods (one or more of t1 to t9 or NONE) are examples of the term.

Terms: Clock Skew, Clock Period, Max Frequency.

The figure shows two clocks, clk1 and clk2, and data signals a and b. Crossed regions mark the windows where a signal may change; plain lines mark where it is stable. The labeled intervals t1 to t11 run between clock edges and the edges of those windows.

How to approach it

Before matching labels, be precise about what each term measures. Each one has a clear signature on a timing diagram, and once you know the signature, you can test every labeled interval against it.

Clock period

The clock period is the time from one edge of a clock to the next edge of the same clock in the same direction: rising to rising, or falling to falling. On the diagram, look for an interval whose both ends sit on the same clock waveform and on edges of the same direction. An interval from a rising edge to the following falling edge is not a period; it is the high time (pulse width), which is only half the period for a 50% duty cycle.

Clock skew

Clock skew is the difference in arrival time between two clock edges that are meant to happen at the same moment, for example the same edge of a clock seen at two different flip-flops, or two related clocks. On the diagram, look for an interval that starts on an edge of clk1 and ends on the corresponding edge of clk2. An interval that ends on a data signal is not skew; those are setup, hold or propagation times.

Max frequency

Maximum frequency is not a time interval at all. It is the reciprocal of the minimum allowed clock period: f_max = 1 / T_min. So none of the labeled intervals is an example of it, and the answer is NONE. If the diagram shows the minimum period, you compute f_max from that interval, but the interval itself is a period, not a frequency.

Answers

  • Clock Period: the labeled interval that spans one full cycle of a single clock, edge to same-direction edge.
  • Clock Skew: the labeled interval between corresponding edges of clk1 and clk2.
  • Max Frequency: NONE. It is 1 divided by the minimum clock period, not an interval on the diagram.

Work through the figure with these signatures. Check both ends of each interval: which signal it starts on, which signal it ends on, and whether each end is a clock edge or the edge of a data window.

What the other intervals usually are

Diagrams like this one normally include the other standard timing terms, so it helps to know them too:

TermStarts atEnds at
Setup timeEnd of the data change window (data becomes stable)The capturing clock edge
Hold timeThe capturing clock edgeStart of the next data change window
Propagation delay (clock-to-Q)The launching clock edgeOutput becomes stable
Contamination delayThe launching clock edgeOutput starts to change
Pulse width (high or low time)A clock edgeThe next opposite edge of the same clock
Clock skewAn edge of one clockThe corresponding edge of the other clock
Clock periodAn edge of a clockThe next same-direction edge of that clock

Deep dive: the numbers and details

This part holds the timing equations that tie period, skew and maximum frequency together, with a worked example. Skip it if the overview is all you need.

The equations

For a path from a flip-flop clocked by clk1 to a flip-flop clocked by clk2, define skew as the arrival time of the capturing clk2 edge minus the arrival time of the launching clk1 edge. Then:

Setup:  T + t_skew  >=  t_cq(max) + t_logic(max) + t_setup
Hold:   t_cq(min) + t_logic(min)  >=  t_hold + t_skew
f_max = 1 / T_min

Course notes such as the UP Microlab CoE 197U timing page define skew as the time difference between clock edges that should be simultaneous, and jitter as cycle-to-cycle variation of the edge, which reduces the usable period to T minus 2 t_jitter in the worst case. Textbooks use different sign conventions for skew, so state yours when you answer.

Worked example

Assume t_cq(max) = 0.3 ns, t_logic(max) = 2.0 ns, t_setup = 0.2 ns and t_hold = 0.1 ns.

  • With zero skew: T_min = 0.3 + 2.0 + 0.2 = 2.5 ns, so f_max = 1 / 2.5 ns = 400 MHz.
  • With the capture clock 0.3 ns late (t_skew = +0.3 ns): T_min = 2.5 - 0.3 = 2.2 ns, so f_max = about 455 MHz. Positive skew helps setup.
  • With the capture clock 0.3 ns early (t_skew = -0.3 ns): T_min = 2.8 ns, so f_max = about 357 MHz.
  • Hold with t_skew = +0.3 ns: if t_cq(min) + t_logic(min) = 0.35 ns, the requirement is 0.1 + 0.3 = 0.4 ns, so hold fails by 0.05 ns. The same skew that helped setup hurt hold, and lowering the frequency would not fix it.

With 0.05 ns of jitter, the setup check must hold for a period 0.1 ns shorter, so a 2.5 ns budget becomes 2.6 ns and f_max falls from 400 MHz to about 385 MHz.

Why "NONE" is the right kind of answer

Interview questions like this one check whether you separate quantities from their units. Period and skew are times and can be drawn as arrows on a diagram. Frequency is cycles per second and cannot. A candidate who points at an arrow for "max frequency" has confused the two; a candidate who answers "none, but it is 1 over the minimum period" has shown they understand the relationship.

The Editor's Desk
About the Author
The Editor's Desk
Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!