Chaya·Edu EDU.CHAYA.DEV

Long Island University · Brooklyn · Fall 2026

The Slowest Route Sets the Clock

Notes 08 put a price tag on every gate. Notes 09 put one on every wire. Tonight we stop pricing parts and price paths: add up the bill along every route a signal must travel, find the slowest one, and discover that this single number — the critical path — is what "3 GHz" actually means. Then, the designer's side of the story: what you do when the bill comes in too high.

SessionsS17–S18 · Mon & Wed, Nov 2 & 4, 2026
Time6:00 – 7:50 PM, Google Meet
Notes10 of 15
ReadingNotes 08 §6–7 + Notes 09 §3
This weekProject 3 in progress

1Every part has a price tag. Now read the whole bill.

Here is where we stand. A gate's delay is a bucket filling through a tap — R×C, the ruler, tens of picoseconds. A wire's delay is the brigade, or the hallway: five picoseconds for a short hop, hundreds for a long haul, fresh pumps to keep it honest. Every component on the drafting plate now carries a price tag in picoseconds. Notes 08 even showed you that delays along a chain simply add.

But a chip is not one chain. It is a city of routes — thousands of signals leaving thousands of starting points at the same moment, each one riding its own sequence of gates and wires to its own destination. So the question "how fast is this circuit?" has the same shape as "how long is the morning commute?" — and the same trap. The commute is not the sum of every road in the city. It is the time along your route. And if a whole busload of signals must all arrive before anything can proceed, the city's speed is set by the slowest route anyone has to take.

That route has the name you met briefly in Notes 08, and this week it gets the full treatment:

critical path: of all the routes a signal must finish between one clock tick and the next, the slowest one — and that route IS your speed limit(1.1)

One plain sentence, but it carries the whole week. Notice what it does not say. It does not say the average route. It does not say the longest wire or the slowest gate. A circuit full of fast parts can be slow, if one route strings too many of them together — and a circuit with one sluggish gate can be fast, if no route that matters passes through it. Speed lives in paths, not parts. Tonight we learn to walk the paths, add their bills, find the worst one — and then spend the second half of the week on what designers actually do about it.

This week's two sessions

Monday (S17): sections 1–3 — the clock as a metronome, the starting blocks, and the worked example: walking routes and adding bills. Wednesday (S18): sections 4–5 — the delay budget, the fixes, and pipelining, the big one. Bring both benches up during class. Project 3 is in progress — the §7 box has the nudge.

2The metronome and the starting blocks

First, a confession about something these notes have been using casually since week 1: the clock. "3 GHz" means a metronome ticking three billion times a second — one tick every 333 picoseconds, the same 333 ps tick Notes 09 held a ruler up to. But what is the metronome for? Why does a pile of gates and wires need a beat at all?

Because the parts are not equally fast, and somebody has to say when the answers are ready to be believed. Here is the arrangement, and it is the organizing idea of every synchronous chip ever built. At the start of each route stands a small memory cell — the engineers call it a register, or a flip-flop — which does exactly one thing: at each tick of the metronome, it grabs whatever is sitting on its input and holds it steady until the next tick. That is the whole job. (How such a cell is built from gates is a week-13 story; this week we only need what it does.) A register at the start of a route is a starting block: at the tick, it releases a fresh value onto the route. A register at the end is a finish line: at the next tick, it grabs whatever has arrived.

And now the rule that makes the clock mean something — say it in words before any arithmetic touches it:

between two ticks, every signal must leave its starting block, ride through its gates and wires, and arrive AND settle before the next tick grabs it(2.1)

The tick period is a budget. Every gate the signal passes through spends some of it. Every wire spends some of it. If the slowest route's total bill fits inside one tick — with a little left over, as we will see — the finish-line register grabs a settled, honest answer, and the machine works. If the bill runs over, the register grabs the route mid-flip: a bucket half-full, a voltage loitering in the forbidden zone, a value that is neither the old answer nor the new one. The register will hold that garbage with perfect confidence for the rest of time. Nothing downstream can tell it was garbage. That is why this week's arithmetic is not optional bookkeeping — it is the difference between a computer and a random-number generator.

ONE TICK = ONE RACE at 3 GHz, the gun fires every 333 ps — and every route in the chip runs its race at once tick N — the gun tick N+1 — the camera the budget: one period, 333 ps at 3 GHz reg (start) starting block: releases the value at the tick gate gate a long wire — part of the route too gate reg (finish) finish line: grabs whatever is there at the next tick the race: leave at tick N, settle before tick N+1 — or the camera photographs you mid-stride
Fig 2.1 — The rule of the synchronous world. Registers are the starting blocks and finish lines; the combinational route between them — gates and wires, Notes 08 and 09's whole inventory — must finish its trip inside one tick period.

One more honest observation before the arithmetic. The metronome does not know which route is slow. It ticks at one rate for the whole chip — the laziest route and the snappiest route get the same 333 ps. So the designer's question is never "is my circuit fast on average?" It is: does the single worst route fit in the budget? Everything else could finish early and it would buy you nothing; early finishers just stand at the finish line and wait for the gun. Which is why the rest of tonight is about finding that one route.

3Walking the routes

Time to do it once, honestly, on a circuit small enough to hold in your head. The plate below is this week's specimen: three starting blocks (A, B, C), five gates, two finish lines (Y and Y2), and — because Notes 09 happened — one wire that is not a rounding error: a 2 mm haul across the block, repeaters included, carrying Notes 09's own price: 210 ps. Every other part wears the tag the last two weeks earned it: gates between 15 and 30 ps, short hops 5 ps each.

THE SPECIMEN — A PRICE TAG ON EVERYTHING A B C starting blocks 5 ps G1 30 ps 5 ps G2 15 ps fresh pump the long haul: 2 mm, repeatered — 210 ps (Notes 09: two 1 mm brigades at 80 ps + one 50 ps pump) 5 ps G3 30 ps 5 ps G4 30 ps 5 ps Y 5 ps G5 20 ps 5 ps Y2 finish lines thick copper route = the slow one (§3 finds out)
Fig 3.1 — This week's specimen, price-tagged. Three routes connect starting blocks to finish lines. One of them is carrying a 2 mm wire, and no cleverness in the gates will hide it.

Worked example · walk every route, add every tag

Route 1: A (or B) → G1 → G2 → long wire → G4 → Y. Read the tags off the plate and add: 5 + 30 + 5 + 15 + 210 + 30 + 5 = 300 ps. The wire alone is 210 of it — two-thirds of the route is travel, not logic. Notes 09 warned you.

Route 2: C → G3 → G4 → Y. Add: 5 + 30 + 5 + 30 + 5 = 75 ps. Same destination, a quarter of the bill — C simply lives closer to work.

Route 3: A → G1 → G5 → Y2. Add: 5 + 30 + 5 + 20 + 5 = 65 ps. Y2's answer is sitting at its finish line almost four tick-budgets before Y's.

The verdict. The critical path is Route 1 at 300 ps. First pass at a speed limit — pretend for one more section that starting and finishing are free: the tick can come no sooner than every 300 ps, and 1 ÷ 300 ps ≈ 3.33 GHz. (Check the division: 300 ps is 0.3 ns; one divided by 0.3 billionths of a second is 3.33 billion per second.)

Now the lesson most people learn the hard way. Suppose you heroically speed up Route 2 — replace G3 with a gate twice as fast, saving 15 ps. New speed limit: 300 ps. Nothing changed. Speed up Route 3 too: 300 ps. Still nothing. Making the other routes faster changes nothing at all — a highway system is only as fast as the slowest road you are required to take. Every picosecond of improvement spent anywhere but the critical path is wasted. This is why timing engineers talk about nothing else.

What you just did by hand — walk every route, add every tag, report the worst — is, one more time, the entire job of a static timing tool, now with the wires included. On a real chip there are billions of routes, so the tool does it with bookkeeping instead of walking, every night, for months. But every number in its report is an addition like yours. Nothing smarter.

4The allowance book

Section 3 pretended the race was only the running. It is not, and the pretending ends now. At a real finish line, three more costs come out of the same tick, and a designer keeps all of them in one ledger called the delay budget. Think of the tick period as an allowance — 333 ps at 3 GHz — and watch who takes a cut:

  • The launch — about 30 ps here. The starting block is not magic: at the tick, it too is a gate flipping buckets, and its new value takes a moment to appear at its output. Engineers call it clock-to-out. The runner takes a beat to leave the blocks.
  • The settle — about 20 ps here. The finish-line register's camera needs the runner standing still for a moment just before the tick fires, or the photo smears. Engineers call it setup time: the input must arrive and stop changing a little before the next tick, not at it.
  • The safety margin — 10 ps here. The metronome itself is not perfectly punctual everywhere: on a chip centimeters wide, some corners hear the tick slightly late or slightly early — distance is time now, even for the clock. Engineers call the two flavors skew and jitter; we will not go deeper than this sentence. The designer just reserves a slice so the race does not depend on a perfect metronome.

So the honest version of rule (2.1), in numbers:

launch + slowest route + settle + margin  ≤  tick period    (here: 30 + 300 + 20 + 10 = 360 ps)(4.1)

And there is the bad news, in public: our specimen needs 360 ps per tick, but at 3 GHz the allowance is 333 ps. The slices overflow the bar by 27 ps. The rule here is absolute, and it is the most honest rule in this course: if the slices overflow the bar, the chip does not run at that speed. Period. Not "runs a little flaky." Not "usually fine." The finish line at Y photographs a runner mid-stride, the register holds the smear forever, and the machine is wrong three billion times a second. The only legal moves are to slow the metronome — 1 ÷ 360 ps ≈ 2.78 GHz, the real speed limit of this circuit — or to shrink the slices. Shrinking the slices is section 5.

Bench 4.1 · The allowance book

toggle the design choices — watch the slices fit or overflow the 333 ps bar
Launch (clock-to-out)30 ps
Gates + short hops90 ps
The long wire
Settle (setup) + margin30 ps
Total bill
Max honest clock

The bar is one tick at 3 GHz: 333 ps. Try all three designs. Repeaters off: the 2 mm haul runs as one unbroken brigade — Notes 09's square law, 80×2² = 320 ps — and the bill balloons to 470 ps (2.1 GHz). Repeaters on: 210 ps of wire, 360 ps total — still 27 ps over. Place the talking blocks next door and the haul collapses to a 10 ps hop: 160 ps total, and this circuit could tick at 6.25 GHz. Same logic, same gates — the floor plan moved the speed limit by a factor of three.

5When the bill is too high

Our specimen wants to run at 3 GHz and its bill says 360 ps. Every chip ever designed has lived this moment — the schedule says one speed, the critical path says a slower one — and the ways out form a short, honest menu. You already own the physics behind every item on it.

Fix 1 — buy faster parts (and read the fine print)

A gate's delay is R×C, and Notes 08 told you how to shrink the R: a bigger tap — wider transistors, more flow, faster fill. It works, and designers do it, surgically, on critical-path gates only (§3 taught you why fixing anything else is pointless). The fine print: a bigger tap has bigger plates, so it is a bigger bucket for the gate before it — push too hard and you just moved the delay upstream, while paying more area and more energy on every single flip. Faster parts are real but they run out: the returns diminish, and the energy bill (next week's whole subject) climbs the entire time.

Fix 2 — shorten the route

Two-thirds of our critical path is one wire. The cheapest picoseconds in the building are bought by moving the talking blocks closer together — Bench 4.1's "next door" toggle, which beat every other fix by a mile. Chip design calls this placement, and it is city planning, literally: put the offices that trade the most messages on the same street. Notes 09's locality lesson — keep the data near the work — was this fix wearing its software costume.

Fix 3 — fresh pumps on what must stay long

Some route always has to cross the block — somebody talks to the far side. For those, Notes 09 already handed you the tool: repeaters, chopping the brigade so delay grows in a straight line instead of as the square. Our specimen's haul already uses them (210 ps instead of a bare 320). This fix is usually applied before anyone even looks at the timing report; the bench's "repeaters off" state is what the report looks like when someone forgets.

Fix 4 — the big one: can't shorten the route? Split the race.

Now the move that changed computing. Suppose Fixes 1–3 are exhausted: the route is as short as the floor plan allows, the pumps are in, the taps are as big as the power budget tolerates — and the bill still will not fit the tick you want. You cannot make the road shorter. So instead: put a relay-exchange station in the middle of the route. That is, insert another register — a starting block that is also a finish line — partway along the path.

Look what that does to the race. The marathon from A to Y becomes two sprints: tick 1 runs A to the station, tick 2 runs the station to Y. Each tick now has to cover only a shorter leg, so the ticks can come faster — the clock is set by the slowest leg, not the slowest journey. The full journey now takes two ticks instead of one. That sounds like a loss until you notice the assembly-line fact that pays for everything: the moment the first value clears the station, the starting block launches the next value behind it. Both legs run at once, carrying different values — like a washer and dryer running different loads simultaneously. A new finished answer drops out of Y every tick. This is a pipeline, and it is how every processor you own actually runs: your laptop's "one instruction per tick" is a bucket brigade of half-finished instructions, each tick advancing all of them one station.

THE RELAY STATION — SAME ROAD, FASTER TICKS without: one marathon per tick (tick = 360 ps) value #1 runs the whole route value #2 runs the whole route value #3… an answer lands every 360 ps · each answer spends 360 ps in flight with a mid-route station: two sprints, overlapped (tick = 195 ps) leg 1: A → station leg 2: station → Y #1 #2 #3 #4 #1 #2 #3 #4 an answer lands every 195 ps — nearly twice as often · but each answer now spends 2 × 195 = 390 ps in flight
Fig 5.1 — Pipelining is a laundromat. One washer-dryer pair, two loads in the building at once. Answers come out faster (one per short tick) even though each individual answer takes slightly longer door to door.

Read the figure's last line again, because it is the honest cost, and it is the reason "GHz" alone never tells you how fast a chip finishes your job. Pipelining raises the throughput — answers per second — but each individual answer's door-to-door time, its latency, goes up a little: every station is a real register taking its launch-and-settle cut (that is why two 195 ps sprints cost 390 ps, not 360), and the budget bar gets sliced per leg, overhead and all, once per station. A pipelined chip at 5 GHz can hand you your first answer later than a plain one at 2.8 — it just hands you the next million answers much faster. Which number you care about depends on your job, not on the advertisement.

One sentence of lore to carry out of the room: this menu is literally the story of the 2000s, when CPUs sprinted from hundreds of megahertz toward 4 GHz on ever-deeper pipelines and ever-bigger taps — until the energy bill of all those fast flips (next week's subject) and the wire bills of Notes 09 made the next gigahertz cost more than it was worth, and the industry stopped chasing ticks and started putting several slower, cooler processors on one chip instead. The GHz race ended at the power wall; your laptop has eight cores instead of a 12 GHz clock because of the arithmetic on this page.

Bench 5.1 · Set the clock

drag the tick period — find the speed limit — then add the station
Clock
Slowest leg's bill
Max safe clock
A→Y: ticks per answer
A→Y: time per answer

Each bar is one leg's full bill — launch, route, settle, margin, stacked left to right — racing the copper period line. Start at the default 333 ps: the long route misses the tick and Y grabs garbage, exactly §4's overflow. Drag the period up past 360 and watch it come good: max safe clock 2.78 GHz, set by the highlighted route. Now switch the station on. The marathon splits into two sprints, the limit jumps to 5.13 GHz — and the latency readout rises from one tick to two. Drag the period down and find which sprint gives out first.

6Check yourself

Five questions, answers hidden behind each. Commit to your answer out loud before you tap.

A teammate speeds up every gate on Route 2 of the specimen by 50%. How much faster can the chip clock?

Not one picosecond faster. Route 2's bill was 75 ps against a critical path of 300; it was finishing early and waiting for the gun. The clock is set by the slowest route, and only the slowest route — improvement anywhere else is wasted effort. First find the critical path; then spend everything there.

Compute the max clock: a route's tags are a 10 ps hop, a 40 ps gate, a 120 ps wire, a 15 ps gate, and a 5 ps hop. Launch is 30 ps, setup 20 ps, margin 10 ps. It is the slowest route in the circuit.

Walk and add: 10 + 40 + 120 + 15 + 5 = 190 ps of route. Add the register cuts: 30 + 190 + 20 + 10 = 250 ps per tick, minimum. Max clock: 1 ÷ 250 ps = 4.0 GHz. (250 ps is a quarter of a nanosecond; four of those fit in every billionth of a second.) Note the wire is again the biggest single item on the bill.

Why does the finish-line register need the signal to arrive a little before the tick, rather than exactly at it?

The register's grab is itself a physical act — buckets inside it filling through taps. If the input is still changing while the grab happens, the cell can capture a half-filled, forbidden-zone value: the camera photographs a moving runner and the photo smears. Setup time is the "stand still before the flash" requirement, and it is paid out of the tick budget on every single path. (What happens when you violate it anyway — metastability — is a week-13 horror story.)

The specimen's clock is set to 333 ps but its bill is 360 ps. A classmate says "so it'll work 92% of the time." What actually happens?

It fails essentially every time that route carries a changing value, three billion chances a second. This is not a lottery: physics takes 360 ps on that route, the camera fires at 333, and the register captures and holds an unsettled value as if it were truth. The budget rule is binary — fit or do not fit. The only honest options are a slower clock (2.78 GHz) or a shorter bill (§5's menu).

Pipelining made the specimen's clock jump from 2.78 to 5.13 GHz. Name the two prices paid, and say who shouldn't buy it.

Price one: latency — each answer now crosses two legs with a full launch-and-settle cut on each, so door-to-door time rises from 360 ps to 2 × 195 = 390 ps. Price two: hardware and energy — the station is a real register, flipped every tick, drawing from the tank. Who shouldn't buy: anyone whose job is a long chain of answers where each one is needed before the next can start — a pipeline full of bubbles pays the latency price and collects none of the throughput. "GHz" tells you how often the metronome ticks, not how fast your job finishes.

→Work before Session 19

Session 19 is Monday, November 9. Before then:

  • Review these notes. The memory test: define the critical path in one sentence from memory; name the four slices of the budget (launch, route, settle, margin); and say the honest rule about an overflowing bar out loud.
  • Ten minutes per bench. On Bench 4.1, write down the max clock for all three designs before toggling, then check yourself. On Bench 5.1, find the exact period where the unpipelined circuit first goes green, then switch the station on and find the new limit — and say where the extra tick of latency physically comes from.
  • Re-walk Fig 3.1's three routes on paper, tags from memory, and land on 300 / 75 / 65 ps without peeking. Then redo Route 1 with the long wire placed next door (10 ps) and find the new critical path. (Careful: it may not be Route 1 anymore.)
  • Find the advertised clock speed of your own machine, turn it into a tick budget in picoseconds, and bring the number. Everything on that chip, every tick, fits inside it.

Project 3 · in progress

Project 3 is in progress — the spec is on the course page: a short mission built straight on Notes 08–10, about thirty minutes of work, a link and a screenshot to hand in. These notes are the project's second half in disguise: the max-frequency question in the spec is exactly Bench 5.1's arithmetic. It is due in week 12 — start it this week while the material is warm.

And the tease. Twice tonight the menu said "it costs power" and moved on — bigger taps, deeper pipelines, three billion flips a second, and somewhere a battery draining and a fan spinning up. Next week we follow the money: where the energy of a flip actually goes, why a chip burns power even when it computes nothing, and the trade that rules all modern design — every picosecond you buy has a price in joules, and every joule has a price in picoseconds. Notes 11 prices the other currency.

§Symbols and constants

Symbol / termMeaningValue / units
critical pathThe slowest register-to-register route; the circuit's speed limitspecimen: 300 ps of gates and wires
tick periodTime between metronome beats; the whole budget333 ps at 3 GHz; period = 1 / frequency
register (flip-flop)Memory cell that grabs its input at each tick — starting block and finish linebuilt from gates — week 13
clock-to-out ("launch")The starting block's own delay getting the value out after the tick30 ps in these notes' examples
setup time ("settle")How long the input must stand still before the capturing tick20 ps in these notes' examples
skew / jitter ("margin")The metronome heard slightly late or unevenly in some corners; a reserved slice10 ps in these notes' examples
delay budgetlaunch + route + settle + margin ≤ period — the allowance bookeq. (4.1); overflow = does not run
pipeliningRelay stations mid-route: shorter legs, faster ticks, answers overlapthroughput up; latency slightly up
throughput / latencyAnswers per second vs. door-to-door time of one answerthe two numbers "GHz" is not