Introduction to Logic Circuit Design (University of Utah) - Time Analysis (Lecture 19)
Overview
The lecture develops a BCD counter from cascaded modulo-10 counters, then compares ring and Johnson counters with binary counting in terms of state encoding, switching, and flip-flop use. It then introduces sequential-circuit timing analysis, defining setup time, hold time, clock-to-Q delay, combinational delay, and clock skew, and applies maximum- and minimum-delay path checks to determine a safe clock frequency and detect hold violations.
Key takeaways
- A two-digit BCD counter can be built from two modulo-10 digit counters: the ones digit rolls over after 9, and that terminal-count event enables the tens digit.
- An n-stage one-hot ring counter provides n states, while an n-stage Johnson counter can provide 2n states by feeding the inverted final output back to the first stage.
- Ring counters can reduce switching and simplify one-hot control decoding, but they use more flip-flops per state and require reliable initialization.
- A register-to-register setup check uses maximum launch tCQ and maximum combinational delay; the worst such path determines the minimum clock period and maximum operating frequency.
- A hold check uses minimum launch tCQ and minimum combinational delay, because data arriving too soon after the capture edge can violate the hold requirement.
- Clock skew must be included in both setup and hold analysis: a delayed capture clock can help setup timing while making hold timing more difficult.
Chapters
- The lecture aims to finish Chapter 5 and begin Chapter 6, covering BCD counters, ring counters, Johnson counters, and timing analysis.
- Homework 8 and Lab 3 are announced as due the upcoming day at 11:59 p.m.
- Grades and the midterm solution are available through Canvas and Gradescope, with a limited period to request grade corrections.
- Binary-coded decimal represents each decimal digit separately with a 4-bit code, rather than converting the full number to ordinary binary.
- For example, decimal 27 is represented by the BCD codes for 2 and 7, one nibble per digit.
- A two-digit decimal counter must cycle from 00 through 99 and then return to 00.
- The ones digit uses a four-bit counter that counts decimal values 0 through 9 instead of all 16 binary states.
- When the count reaches 9, the counter detects that state and loads 0 on the next count.
- An external clear can also force the digit counter to 0, making the initial state explicit.
- The tens-digit counter increments only when the ones digit rolls over from 9 to 0.
- The ones counter's terminal-count detection acts as an enable for the tens counter, so the tens digit holds its value between rollovers.
- Cascading the two modulo-10 stages produces decimal counting from 00 to 99, followed by rollover to 00.
- A ring counter connects a chain of flip-flops so each clock shifts a stored bit to the next stage.
- Feedback from the final stage to the first makes the bit pattern circulate rather than disappear from the register.
- The illustrated one-hot operation starts with one bit set and moves that 1 through the register on successive clock cycles.
- With four flip-flops and a one-hot initialization, a ring counter cycles through four distinct positions of its single 1.
- Each state can directly select an output or control action, avoiding a separate binary decoder for those one-hot signals.
- A decoder can also translate the ring's active position into a compact binary count when a binary output is needed.
- A Johnson counter differs from a ring counter by feeding the inverted output of the last flip-flop into the first stage.
- The remaining stages still shift their values forward once per clock, creating a sequence of progressively filled and emptied bit patterns.
- For an n-stage Johnson counter, the complemented feedback supports up to 2n distinct states, compared with n states in an n-stage one-hot ring counter.
- A one-hot ring counter changes only a small number of bits per clock, which can reduce switching activity compared with a binary counter.
- Its regular state transitions can make output decoding and glitch management simpler.
- The tradeoff is hardware cost: a four-state ring uses four flip-flops, while a two-bit binary counter represents four states with two flip-flops.
- A ring counter also depends on correct initialization; an unintended multi-hot or all-zero state may not enter the intended sequence.
- Real gates and flip-flops have nonzero propagation delays, so data cannot change arbitrarily close to a clock edge.
- Setup time is the interval before the active clock edge during which the flip-flop input must remain stable.
- Hold time is the interval after the edge during which the input must continue to remain stable.
- Violating either interval can prevent reliable capture of the intended data.
- Clock-to-Q delay, often written tCQ, measures the time from a clock transition until the flip-flop output reflects its captured data.
- An input transition inside the setup window is too late for dependable capture; a transition inside the hold window arrives too soon after the edge.
- The timing diagrams distinguish stable data that meets the required windows from transitions that cause setup or hold violations.
- The sequential path consists of a launching flip-flop, combinational logic, and a capturing flip-flop.
- Clock-to-Q delay belongs to the launching flip-flop, while setup and hold requirements belong to the capturing flip-flop.
- Combinational propagation delay is measured along the logic between the launch register's output and the capture register's input.
- Clock frequency and clock period are related by F = 1/T; a higher frequency means less time per cycle.
- The setup check adds the launch flip-flop's maximum tCQ, the path's maximum combinational delay, and the capture flip-flop's setup time.
- That total must fit within the available clock period, with clock skew included when launch and capture clock arrivals differ.
- A path that exceeds the available period cannot deliver stable data to the capture register in time.
- The hold check uses minimum launch tCQ and minimum combinational delay because the risk is data reaching the capture input too quickly.
- The earliest arriving new data must not violate the capture flip-flop's hold requirement.
- Unlike setup analysis, hold analysis is not fixed simply by slowing the clock; it depends on minimum path delay and clock arrival relationships.
- Clock skew is the capture clock's arrival time minus the launch clock's arrival time, and it can be positive or negative.
- A later capture clock can give a path more setup time but makes the hold requirement harder to satisfy.
- Including skew in both timing checks accounts for the fact that a large clock network does not deliver the clock to every flip-flop simultaneously.
- To find maximum clock frequency, identify every register-to-register path and evaluate its setup constraint.
- The path with the greatest maximum delay sets the minimum safe clock period and therefore limits Fmax.
- For hold analysis, evaluate the shortest paths using minimum delays; every path must satisfy its hold inequality.
- The example supplies setup and hold times, a range for tCQ, and inverter delays, then asks for maximum frequency and a hold check.
- Each path is traced from a flip-flop output through its combinational gates to another flip-flop input.
- The setup calculation uses maximum values to find the worst-case slow path; the hold calculation uses minimum values to test the fastest path.
- When flip-flop timing values are identical across paths, comparing the combinational path delays identifies the limiting setup path or the shortest hold path.
Transcript excerpt
0:50 Good afternoon everyone. Hope you all are doing well. Today we have our lecture 19 and hopefully we want to finish chapter 5 and start chapter 6 if you are lucky. So these are the content that we want to go over. We in previous sessions we got familiar with normal binary counter. Now we want to see how we can use that to design a binary coded decimal. counter what are the differ between binary counter and ring counter and then there is one very important topic called time analysis are many equations and everything so are very all very important topics
1:38 terms of the deadlines homework 8 and lab 3 deadline would be this upcomingay at 119 pm all grades have been posted on canvas quiz and lab and have been canvas have been before on grade scope but i will give time until the one week after the releasing the grade so if are any request for grade to be done with that if you see any inconsistency between your grades on canvas and on grade scope let me know unless that if delay 25 hours
2:27 dead if anything otheralcully send me try to finish upgrading the midterm by end of this week hopefully so you see the results already have posted the solution of the midterm on canvas can take a look and also the as you know your grade on grade scope shows your overall grade till basically here I think it should be pretty accurate I have applied all the equations for instance to not include the [گلویش را صاف میکند] least two grades of your homework and the least quiz but as we go forward for instance
3:14 like if you get a better grade on quiz that equation would beom something you can always see and take
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MEDAL-Research.