G9.8.1 Where Do the Repeaters Go?

MediumOptimizengspice 42 + SKY130 · serverReview the topic

Choose the number and the size of the repeaters on a narrow 4 mm wire: fast enough, without wasting energy.

Circuit context: A 4 mm signal wire across a chip between two inverters of size 8. Choose how many repeaters a long wire needs and how large they are.

A narrow 4 mm wire carries a signal across a crowded part of a chip. An inverter of size 8 drives it, and another of size 8 receives it. On its own the wire is far too slow.

This is an Optimize problem. Design one repeater, the block rep, from SKY130 transistors. Then set nrep to 0, 1, 3 or 7. That many copies of rep cut the wire into equal pieces.

The mean delay from the input to the wire end must be 1.27 ns or less. The energy the whole link draws in one input cycle must be 3.65 pJ or less.

What the Grader Measures

Your subcircuit rep (ports in, out, vdd) under the grader's own bench, one run per corner (tt):

CheckCornerRule
nrep is 0, 1, 3 or 7tt≥ 1
Mean delay, input to wire endtt≤ 1.27 ns
Budget: Energy per cyclett≤ 3.65 pJ, the lower the better
Full specification
What is checked (keep the names and the ports)
.param nrep = 0
.subckt rep in out vdd
* sky130_fd_pr__nfet_01v8 and sky130_fd_pr__pfet_01v8
.ends
CheckRuleHow it is measured
nrep0, 1, 3 or 7pieces of 4, 2, 1 or 0.5 mm
Mean delay≤ 1.27 nsinput to wire end at 0.9 V, the mean of the rising and the falling input
Energy per cycle (budget)≤ 3.65 pJ1.8 V times the charge the link draws while the input rises and falls once

The wire is 2 Ω and 0.2 fF per µm in sections of 100 µm: twice the resistance of lesson G9.8's wire. The energy counts the driver, the repeaters and the receiver. The check runs once at tt, 27 °C and 1.8 V.

Examples

Example 1

The Starter: No Repeater
Design
.param nrep = 0
.subckt rep in out vdd
XN out in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15 m=8
XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=2 L=0.15 m=8
.ends
Measured by the grader
nrep is 0, 1, 3 or 7: 1 (needs ≥ 1)
Mean delay, input to wire end: 2.764 ns (needs ≤ 1.27 ns)
Energy per cycle: 3.435 pJ (budget ≤ 3.65 pJ)

The driver must charge all 4 mm through the wire's own resistance: 2763.9 ps.

Example 2

One Repeater of Size 8
Design
.param nrep = 1
.subckt rep in out vdd
XN out in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15 m=8
XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=2 L=0.15 m=8
.ends
Measured by the grader
nrep is 0, 1, 3 or 7: 1 (needs ≥ 1)
Mean delay, input to wire end: 1.823 ns (needs ≤ 1.27 ns)
Energy per cycle: 3.24 pJ (budget ≤ 3.65 pJ)

Two 2 mm pieces: 1822.8 ps. Better, but far over 1.27 ns.

Example 3

Seven Repeaters of Size 8
Design
.param nrep = 7
.subckt rep in out vdd
XN out in 0 0 sky130_fd_pr__nfet_01v8 W=1 L=0.15 m=8
XP out in vdd vdd sky130_fd_pr__pfet_01v8 W=2 L=0.15 m=8
.ends
Measured by the grader
nrep is 0, 1, 3 or 7: 1 (needs ≥ 1)
Mean delay, input to wire end: 1.128 ns (needs ≤ 1.27 ns)
Energy per cycle: 3.77 pJ (budget ≤ 3.65 pJ)

Fast enough at 1128.0 ps, but seven repeaters draw 3770 fJ per cycle. That is over the budget.

Constraints and Contract

  • The netlist has one line .param nrep = <0, 1, 3 or 7> and defines .subckt rep in out vdd ... .ends exactly once.
  • Inside rep: X instances of sky130_fd_pr__nfet_01v8 or sky130_fd_pr__pfet_01v8, with comments and .param lines. No sources, resistors or capacitors. Use m= for parallel copies; mult= is refused.
  • The check writes the .lib line itself. Everything else is replaced by its own bench.

Hints

Hint 1

Run the starter. With nrep = 0 the delay is far over the limit. Try each count with the starter's repeater and read the delay and the energy.

Hint 2

Each repeater is an inverter. Its size sets how fast it charges its piece of wire, and how much it loads the piece before it.

Hint 3

With twice the resistance per µm, the best spacing is shorter than in lesson G9.8. Find a count that can meet the delay, then the smallest repeater that does.

What the grader checks: The check builds the wire with 0, 1, 3 and 7 copies of rep, each link on its own supply. It grades the link that nrep selects. The wire is a round teaching value, not extracted SKY130 metal. The tool is ngspice 42 (libngspice0 42+ds-3build1) with the pinned SKY130 models, through tools/spice-judge.mjs. Other corners and coupling to neighbours are outside this problem.

Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only the subcircuit rep and makes 1 ngspice run. The numbers come from ngspice and the SKY130 models the site pins; they prove the measured cases, not every condition a chip meets.

See all 1 steps and the final capstone

Report a problem with this page

Your netlist SPICESaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs
Not run yet
Run your netlist to see its measurements and the ngspice log here.
ngspice 42 + SKY130 · server