Skip to content

M5. Past midterms: pass transistors and layout

This page works every past-midterm problem on pass-transistor circuits and on stick layouts. A pass-transistor question has appeared on every midterm since 2021, and it is worth a quarter to a third of the exam: 55 of 150 points in 2021, 34 of 150 in 2023, 45 of 200 in 2024. A stick layout to read appeared on both recent midterms, for 10 and 15 points, and takes about five minutes once you know the rules.

Every answer below is re-solved here; none is copied from an answer key. Where a key disagrees, the folded note on the key at the end of the part explains why, and the table at the end lists them all.

After this page you can:

  1. read a pass-transistor network node by node and name what it computes (a multiplexer, an XOR, a full adder’s sum and carry);
  2. decide whether it is static, and tell a static circuit from a ratioed one by the lecture’s sizing test, including circuits with half latches;
  3. find its worst output levels, counting one threshold per path and a second one where a degraded node drives a gate;
  4. say what a half latch or a pair of cross-coupled PFETs restores, and what it costs;
  5. draw a complementary static CMOS gate with the same function;
  6. turn a stick layout into a schematic and a logic function.

Before you start

How to use this page. Each section restates one exam question with its source page (MT23-2c, p6 is Fall 2023, question 2c, physical PDF page 6) and its points, and shows the exam’s own figure. Each family opens with a short How to approach section: how to recognize the question, the moves in order, why the rules apply, and the traps. Then every part is worked the same way: what it asks, the idea behind the method, the solution in steps (each step gives its reason first), a check on the result, the answer, and one thing to remember. Try each part on your own first; open the Hint if you are stuck, and step through the solution before you press “Show all”. The answer key’s verdict is folded at the end of each part. The chapters teach each method in full, and every solution links the section.

FamilyQuestions (most recent first)PointsChapters
Pass-transistor logicMT24-3, MT23-2, MT21-1, MT21-345 (of 200), 34, 30, 25 (of 150)7, 10, 11
Stick layout to schematicMT24-4, MT23-415 (of 200), 10 (of 150)5, 9, 10

MT17 has neither family. The dynamic and domino circuits (MT17-3c, MT23-3, MT24-5) are on page M6.

Conventions the exams use

  • Levels. The exams want levels relative to the supply, not numbers: VDD−VTnV_{DD} - V_{Tn}, VDD−2VTnV_{DD} - 2V_{Tn}, ∣VTp∣|V_{Tp}|, 2∣VTp∣2|V_{Tp}|. Where this page needs numbers, it uses Chapter 10’s VDD=5 VV_{DD} = 5\,\mathrm{V} and VTn=∣VTp∣=1 VV_{Tn} = |V_{Tp}| = 1\,\mathrm{V} (so 4 V, 3 V, 1 V, 2 V).
  • The threshold rule (Chapter 10, Section 5). An NFET passes a 0 fully and a 1 only up to one VTnV_{Tn} below its own gate; a PFET passes a 1 fully and a 0 only down to one ∣VTp∣|V_{Tp}| above its gate. So two NFETs in series with their gates at VDDV_{DD} lose one threshold, not two. A second threshold is lost only when a degraded node drives a gate.
  • Static, ratioed, dynamic (Chapter 7, Section 4; Chapter 10, Section 9). Static: for every settled input, every node is connected to exactly one rail, and the right value is reached for any sizing. Ratioed: correct operation depends on the sizing (a node is connected to both rails, at least during a transition, and the stronger side wins). Dynamic: a node is connected to neither rail and holds its charge.
  • Drivers. Data reaches a pass transistor from a real gate, usually an inverter, which the exam figures draw (Chapter 10, Section 8). Inputs and their complements (AA, Aˉ\bar A) are full-rail signals.
  • Names. Internal node names on this page (P, Q, R, S, X, X̄ in MT24-3; the NFET names in MT23-2) are added; the exams’ own names (N9–N20, P3, P4, Mp,1, Mp,2, VC, M1–M6) are kept.

How to approach a pass-transistor question

Recognize it by the picture: transistors whose source and drain carry signals (A, Bˉ\bar B, CinC_{in}) instead of the rails, inverters that make the complements, and sometimes a PFET from VDDV_{DD} whose gate sits on another node. The exams ask the same four things in the same words: “Is this a static CMOS circuit? Explain”, “What logic function does this circuit perform”, “the lowest logic high and largest logic low” (or “what function are transistors P3 and P4 performing”), and “Draw a complementary static CMOS circuit”. The family carries a quarter to a third of the exam: 45 of 200 points in 2024, 34 of 150 in 2023, and 30 + 25 of 150 in 2021.

The moves, in order.

  1. Read it node by node. Each internal node is fed by two devices that never conduct together: two NFETs whose gates are complements, or an NFET and a PFET whose gates are tied. So each node is a two-way switch, “if the gate signal is 1, this input, else that one”. Write one line per node before answering anything; every part uses it.
  2. Static, ratioed or dynamic? Settled states first: in every input state, is each node connected to exactly one rail (through a conducting path to a driver)? Then one transition: must a node that is changing overpower a device that is still on? If the answer depends on the sizes, the circuit is ratioed.
  3. The function. Compose the switches into a Boolean expression and confirm it with a truth table. Then read which node feeds which labelled output.
  4. The levels. Follow each 1 through NFETs and each 0 through PFETs, and apply the threshold rule (below) to every device on the path.
  5. Restoring. A PFET from VDDV_{DD} whose gate is the complementary node is a half latch: say what it restores, and what it costs on a transition.
  6. The static CMOS equivalent. One complementary gate computes an inverted function, so build the complement of the output as one gate and add an inverter.

Why these rules.

  • Static, ratioed, dynamic (Chapter 7, Section 4). A static gate connects its output to exactly one rail for every settled input. Both rails at once is ratioed; neither is dynamic. The lecture’s test (Chapter 10, Section 9) adds the transitions: static CMOS reaches the right value for any sizing, however slowly; ratioed logic is correct only for some sizes. A half latch passes the settled-state check and fails the sizing test.
  • The threshold rule (Chapter 10, Section 5). An NFET passing a 1 has its source on the rising side, so its VGSV_{GS} is (its gate voltage) − (the output). It cuts off when that falls to VTnV_{Tn}: the output stops one VTnV_{Tn} below its own gate. It passes a 0 fully, because its source then stays at 0 V. A PFET is the mirror: a full 1, and a 0 only down to one ∣VTp∣|V_{Tp}| above its gate. So the level depends on the gate voltage, not on how many devices are in series: two NFETs in series with full gates lose one threshold. A second threshold is lost only when a degraded node drives a gate.
  • Duals (Chapter 7, Section 4). In a complementary gate the pull-up is the dual of the pull-down (series ↔ parallel), and the pull-down conducts when the output should be 0. So the gate computes the complement of whatever its pull-down network expresses.

Decisions to make on the way: which node feeds which labelled output (MT24-3 labels its inverters with the complements of the nodes that feed them); which input state gives the worst level (one where a degraded node is the gate of the device that passes the value); and whether “static” means the settled states or any sizing (write both).

Traps. Judging “static” from settled states alone. Counting one threshold per series device. Giving an input example that actually yields a full level (MT23-2c’s key). Reading an output node as the labelled output. “Only one select” when it must be exactly one.

1. MT24-3: a pass-transistor carry with half latches

Two networks of NFETs with outputs at the right. Upper network: N9 (gate A) from B and N10 (gate A-bar) from ground join at a node; N11 (gate A) from VDD and N12 (gate A-bar) from B join at another node; N13 (gate Cin-bar) and N14 (gate Cin) pass these two nodes to an output node, which drives an inverter labelled Cout-bar. Lower network: N15 (gate A) from ground and N16 (gate A-bar) from B-bar; N17 (gate A) from B-bar and N18 (gate A-bar) from VDD; N19 (gate Cin-bar) and N20 (gate Cin) to a second output node, which drives an inverter labelled Cout. PFET P3 from VDD to the upper output node has its gate on the lower one; PFET P4 from VDD to the lower node has its gate on the upper one.
MT24-3, p7 (source figure; the faint handwriting behind it shows through from the key’s next page).

MT24-3, p7 (Fall 2024, 45 points). Consider the pass transistor circuit shown above. (a) Is this a static CMOS circuit? Explain. (10 points) (b) What logic function does this circuit perform to each of the outputs CoutC_{out} and Cout‾\overline{C_{out}}? (15 points) (c) What function are transistors P3 and P4 performing? (10 points) (d) Draw a complementary static CMOS circuit implementation that has the same logic function as this pass-transistor circuit. (10 points)

Read the circuit once, node by node, before answering anything (Chapter 10, Section 4). Every internal node is fed by two NFETs whose gates are complements, so each node is a two-way switch: exactly one of its two inputs gets through.

Reading MT24-3 node by node

  1. P, from N9 and N10. Their gates are A and Aˉ\bar A, so exactly one conducts. N9 passes B and N10 passes ground: for A = 1, P = B; for A = 0, P = 0. So P=ABP = AB.
  2. Q, from N11 and N12. Again gates A and Aˉ\bar A. N11 passes VDDV_{DD} and N12 passes B: for A = 1, Q = 1; for A = 0, Q = B. So Q=A+BQ = A + B.
  3. X, from N13 and N14. Their gates are Cin‾\overline{C_{in}} and CinC_{in}, so this pair chooses between the two nodes just found: N13 passes P, N14 passes Q. X=Cin‾ AB+Cin(A+B)X = \overline{C_{in}}\,AB + C_{in}(A + B). X drives the inverter labelled Cout‾\overline{C_{out}}.
  4. R and S, the lower network. It is the same structure with every data input complemented, so expect complements: N15 (A) passes ground and N16 (Aˉ\bar A) passes Bˉ\bar B, so R=AˉBˉ=A+B‾R = \bar A\bar B = \overline{A + B}; N17 (A) passes Bˉ\bar B and N18 (Aˉ\bar A) passes VDDV_{DD}, so S=Aˉ+Bˉ=AB‾S = \bar A + \bar B = \overline{AB}.
  5. X̄, from N19 and N20. N19 (Cin‾\overline{C_{in}}) passes S and N20 (CinC_{in}) passes R: Cin‾ AB‾+Cin(A+B)‾\overline{C_{in}}\,\overline{AB} + C_{in}\overline{(A + B)}, the complement of X in every state. X̄ drives the inverter labelled CoutC_{out}.
  6. P3 and P4, the only PFETs. Each runs from VDDV_{DD} to one output node, with the other node on its gate: P3 to X with X̄ on its gate, P4 to X̄ with X on its gate. They are cross-coupled, so whichever node is low turns on the PFET that pulls the other one up.

MT24-3a: is it static?

MT24-3a, p7 (10 points). Is this a static CMOS circuit? Explain.

Hint
Every settled state looks fine. Pick an input change that makes X fall: what is P3 doing at that moment?

What it asks. Whether the circuit is static CMOS, with a reason. The word “static” decides the method: its definition has a half for the settled states and a half for the transitions.

The idea. Static means every node reaches exactly one rail in every settled state, and the right value is reached for any sizing (Chapter 10, Section 9). P3 and P4 are half latches (Chapter 10, Section 6): when a node they hold high must fall, its pull-down meets a PFET that is still on. The tempting answer is “yes, static: only ever one path”, which looks only at the settled states.

Static, or ratioed?

  1. Settled states first. Without P3 and P4, every internal node is fed through exactly one conducting NFET (the two gates of each pair are complements), and every path ends at a rail or at an inverter that drives B or Bˉ\bar B. In every state each node is connected to exactly one rail: the pass networks alone are static, with weak highs.
  2. Choose a transition that makes a held node fall. P3 holds X high, so take the inputs from A, B, CinC_{in} = 1, 1, 0 (X = 1) to 0, 0, 0 (X = 0). Before: X = 1, held at VDDV_{DD} by P3, because its gate X̄ is 0.
  3. Look at X just after the change. N10 and N13 now pull X toward ground, but P3 is still on, because its gate X̄ is still 0. X is connected to both rails at once: a fight.
  4. Ask whether X̄ can free X by itself. N18 and N19 lift X̄, but through NFETs only, so to at most VDD−VTnV_{DD} - V_{Tn} (the threshold rule). P3 turns off only when its gate is within ∣VTp∣|V_{Tp}| of VDDV_{DD}. With equal thresholds, VDD−VTnV_{DD} - V_{Tn} leaves P3 exactly at its threshold (VSG=VTnV_{SG} = V_{Tn}); body effect (Chapter 5, Section 1) leaves the passed high a little lower still, so P3 stays partly on.
  5. So the sizes decide the contest. X is pulled down against P3 until it falls past the inverter’s threshold and P4 takes X̄ to VDDV_{DD}; where X sits meanwhile depends on the sizes. added Model every device as a resistor R/WR/W (Chapter 10’s switch model, a PFET counting 2R/W2R/W). The pull-down is two 1 µm NFETs in series, 2R2R; P3 of width ww is 2R/w2R/w. X sits on the divider between them: VX=5 V⋅2R2R+2R/w=5w/(w+1)V_X = 5\,\mathrm{V} \cdot \dfrac{2R}{2R + 2R/w} = 5w/(w + 1) V. That is 1 V for w=0.25 μmw = 0.25\,\mu\mathrm{m} (X switches), 2.5 V for w=1 μmw = 1\,\mu\mathrm{m}, 4 V for w=4 μmw = 4\,\mu\mathrm{m} (X still reads as 1).
  6. Apply the lecture’s test. Correct operation depends on P3 and P4 being weak against the pass paths: by the lecture’s definition (Lecture 10, 50:43), that is ratioed logic.

Check. The divider’s limits behave as they must. As w→0w \to 0, VX→0V_X \to 0: with no half latch there is no fight, and the pass network alone is static, as in step 1. As ww grows, VX→5V_X \to 5 V: a strong P3 always wins. The result swings with one width, so it is ratioed.

Answer: No. In every settled state each node has one path to one rail, but the cross-coupled half latches P3 and P4 make the circuit ratioed: on every transition the falling node must overpower a PFET that is still on, so the circuit works only if P3 and P4 are sized weak.

Remember. “Static?” is two checks: the settled states (one rail per node) and a transition (does anything fight?). A PFET held on by another node, a half latch, passes the first and fails the second. On the exam, write both.

The answer key differs

It says “Yes, this is static CMOS as there is only ever one path from the outputs to VDD/GND”. That is the settled-state view, and it ignores the transitions. The key’s own rubric gives “partial for understanding static criteria, full points for saying not static due to half latches”. Chapter 10 (Section 6) and Chapter 11 (Section 8) side with the rubric. The judgement rests on P3 being left at (or just above) its threshold in step 4.

MT24-3b: the function

MT24-3b, p7 (15 points). What logic function does this circuit perform to each of the outputs CoutC_{out} and Cout‾\overline{C_{out}}?

Hint
The reading already gives X as “if CinC_{in} then one function, else another”. What are the two functions, and what single expression covers both?

What it asks. The Boolean function at each of the two labelled outputs. The words “to each of the outputs” decide the last step: after finding what each node computes, you still have to follow it through its inverter to the label.

The idea. A pass network is a tree of two-way switches, so its function is built by composing them: “if the gate is 1, this input, else that one” is g x+gˉ yg\,x + \bar g\,y (Chapter 10, Section 4). The reading did that node by node. What is left is to simplify, recognize the function, and read the labels.

The function

  1. Start from the reading. X=Cin‾ AB+Cin(A+B)X = \overline{C_{in}}\,AB + C_{in}(A + B). For Cin=0C_{in} = 0 that is ABAB; for Cin=1C_{in} = 1 it is A+BA + B.
  2. Find one expression for both cases. AB+Cin(A+B)AB + C_{in}(A + B) works: with Cin=0C_{in} = 0 the second term vanishes, and with Cin=1C_{in} = 1 it gives A+BA + B, which already contains ABAB.
  3. Recognize it. X=AB+ACin+BCinX = AB + AC_{in} + BC_{in} is 1 when at least two of the three inputs are 1. That is the majority function, the carry-out of a full adder.
  4. Follow each node to its label, because the inverters sit between the nodes and the labels. X feeds the inverter labelled Cout‾\overline{C_{out}}, so that output is X‾\overline{X}, and X̄ feeds the inverter labelled CoutC_{out}, so that output is X. Both labels are right.
  5. Write the truth table, which the question’s 15 points expect (A B CinC_{in} → CoutC_{out}): 000 → 0, 001 → 0, 010 → 0, 011 → 1, 100 → 0, 101 → 1, 110 → 1, 111 → 1; Cout‾\overline{C_{out}} is the complement in every row.

Check. Trace one row straight through the switches, without the algebra. A, B, CinC_{in} = 1, 0, 1: Cin=1C_{in} = 1 selects Q through N14; A = 1 makes Q = VDDV_{DD} through N11. So X = 1 and Cout=1C_{out} = 1, matching row 101. The lower network gives R = 0 (N15 passes ground), so X̄ = 0: the two nodes are complements, as they must be.

Answer: Cout=AB+Cin(A+B)=AB+ACin+BCinC_{out} = AB + C_{in}(A + B) = AB + AC_{in} + BC_{in}, the carry (majority) of A, B and CinC_{in}; Cout‾\overline{C_{out}} is its complement.

Remember. Compose the switches into g x+gˉ yg\,x + \bar g\,y terms, simplify, then follow each node through its inverter to its label. Here the upper network computes the carry itself, but its inverter is labelled Cout‾\overline{C_{out}}: reading the node as the output would invert your answer.

The answer key agrees

MT24-3c: what P3 and P4 do

MT24-3c, p8 (10 points). What function are transistors P3 and P4 performing?

Hint
Without P3 and P4, how high does a node get that is pulled up only through NFETs?

What it asks. The job of the two PFETs. “Function” here means their purpose in the circuit, not a Boolean function: what would be wrong without them, and how they fix it.

The idea. Every high in the pass networks arrives through NFETs, and an NFET passes a 1 only up to one VTnV_{Tn} below its gate (the threshold rule, Chapter 10, Section 5). A degraded high costs noise margin, and it leaves the next inverter’s PFET partly on. A half latch fixes it with feedback: a PFET from VDDV_{DD} whose gate is low exactly when its node should be high (Chapter 10, Section 6).

P3 and P4

  1. Find the level without them. Highs reach X and X̄ only through NFETs (N11 and N18 pass VDDV_{DD}; N9, N12, N16 and N17 pass B or Bˉ\bar B), and every one of those NFETs has a full-rail gate. So the high node stops at VDD−VTnV_{DD} - V_{Tn}, one threshold (for A, B, CinC_{in} = 1, 1, 0, X = VDD−VTnV_{DD} - V_{Tn}).
  2. Find the other node. Lows pass fully through NFETs, because the source stays at 0 V. So in every state the other node is a clean 0.
  3. See what that clean 0 does. It sits on the gate of the PFET that feeds the high node (P3 for X, P4 for X̄). That PFET turns on and pulls the high node the rest of the way to VDDV_{DD}.
  4. Name it. This is the lecture’s half latch, with one difference: Lecture 10 wraps the PFET around an inverter on its own node, while here the complementary node already supplies the inverted signal, so the two PFETs are simply cross-coupled.
  5. Say why it matters. The output inverters see a full VDDV_{DD}, so their PFETs turn fully off and the high noise margin isn’t eaten (Chapter 10, Section 5).
  6. Give the price. It is part (a): every transition starts with a fight against one of them, so they must be weak.

Check. Trace one row, A, B, CinC_{in} = 1, 1, 0, with Chapter 10’s 5 V and 1 V. X: N13 passes P, and N9 passes B = 1 into P, so the pass network leaves X at 5−1=45 - 1 = 4 V. X̄: N19 passes S, and N17 passes Bˉ=0\bar B = 0 into S, so X̄ is a full 0 V. P3’s gate is X̄, so VSG=5V_{SG} = 5 V and P3 is fully on: X goes to 5 V. P4’s gate is now X = 5 V, so P4 is fully off (VSG=0V_{SG} = 0) and leaves X̄ at 0. The settled state is consistent and nothing fights: the fight of (a) happens only on a transition. The widget below (after MT23-2c) shows every row with and without the latches.

Answer: P3 and P4 are cross-coupled half latches. The pass networks give only VDD−VTnV_{DD} - V_{Tn} on the high node; the other node is a full 0, which turns on the PFET feeding the high node and restores it to VDDV_{DD}. They must be weak, because the node that next falls has to overpower them.

Remember. A PFET from VDDV_{DD} whose gate is the complementary node is a half latch: it restores a high that NFETs degraded, and it makes the circuit ratioed. Expect the “static?” part and the “what do they do?” part to be two sides of the same device.

The answer key agrees

MT24-3d: a static CMOS equivalent

MT24-3d, p8 (10 points). Draw a complementary static CMOS circuit implementation that has the same logic function as this pass-transistor circuit.

Hint
A single complementary gate always inverts. Which of the two outputs is the complement of a simple expression?

What it asks. A complementary static CMOS circuit (a pull-up network of PFETs that is the dual of a pull-down network of NFETs) with the same two outputs as the pass-transistor circuit: CoutC_{out} and Cout‾\overline{C_{out}}.

The idea. The pull-down conducts when the output should be 0, so a single complementary gate computes the complement of its pull-down’s expression (Chapter 7, Section 4). So build Cout‾\overline{C_{out}} as one gate whose pull-down expresses CoutC_{out}, draw the pull-up as its dual (series ↔ parallel), and add an inverter for CoutC_{out}. Factoring the expression first saves transistors, as the lecture’s AOI gates do (Chapter 7, Section 5).

The static CMOS carry

  1. Choose what the gate computes. Cout‾=AB+Cin(A+B)‾\overline{C_{out}} = \overline{AB + C_{in}(A + B)}, as one gate, then an inverter for CoutC_{out}; the circuit then has both outputs, like the original.
  2. Pull-down, from the expression. It must conduct when Cout=1C_{out} = 1. An AND is a series pair and an OR is a parallel pair, so: NFETs A and B in series, in parallel with (A ∥ B) in series with CinC_{in}. Five NFETs, stacks two high.
  3. Pull-up, the dual. Swap every series for parallel and back: PFETs (A ∥ B) in series with (A–B in series, in parallel with CinC_{in}). Five PFETs; the A–B path is three high.
  4. Count, because the factoring is what saves transistors. 10 transistors in the gate, 12 with the inverter. Writing the majority unfactored, AB+ACin+BCinAB + AC_{in} + BC_{in}, also works but needs 12 in the gate (14 in all).
VDDC̄outABABCinABABCinGND
MT24-3d: the gate's output is C̄out; an inverter after it gives Cout. Boxes are transistors (a bubble marks a PFET); the network is drawn from VDD (top) to ground (bottom).

Check. Two rows, one for each output value. A = B = 1: the pull-down’s A–B branch conducts and the pull-up’s (A ∥ B) is off, so Cout‾=0\overline{C_{out}} = 0 and Cout=1C_{out} = 1. A = B = 0, Cin=1C_{in} = 1: no pull-down branch conducts (each needs A or B), while the pull-up’s (A ∥ B) is on and so is its A–B series pair, so Cout‾=1\overline{C_{out}} = 1 and Cout=0C_{out} = 0. In both rows exactly one network conducts, as a static gate must.

Answer: the factored majority gate above, followed by an inverter.

Remember. For “draw a static CMOS equivalent”: build the complement of the output as one gate (pull-down = the expression, pull-up = its dual), then invert. Factor the expression first.

The answer key agrees

It draws the same circuit.

2. MT23-2: a pass-transistor full adder

Hand-annotated circuit. An input goes through two inverters, making A and then A-bar; an inverter at the top makes B; two inverters at the bottom make C and C-bar. An NFET with gate B passes A-bar to a node V_C; a PFET M_p,1 with gate B passes A to the same node. V_C drives the gates of three more pairs: PFET M_p,2 passes B and an NFET passes C to output D; an NFET passes C-bar and a PFET passes C to output E.
MT23-2, p5 (source figure; the Mp,1, Mp,2 and VC labels and the marks at A and B are handwritten on the key).

MT23-2, p5–6 (Fall 2023, 34 points). Consider the pass transistor circuit shown above. (a) Is this a static CMOS circuit? Explain. (8 points) (b) What logic function does this circuit perform to each of the outputs D and E? (16 points) (c) What is the lowest logic high and largest logic low values this circuit could produce at outputs D and E and under what static values for the input? (10 points)

This circuit is new in one way: its switches are an NFET and a PFET with their gates tied together, not two NFETs with complementary gates. For a full-rail gate signal, still exactly one of the pair conducts, so each node is again a two-way switch.

Reading MT23-2 node by node

  1. The drivers first, because every pass path ends at one. Inverters make A and Aˉ\bar A (two in a row), B, and C and Cˉ\bar C (two in a row): all full-rail signals.
  2. Node VCV_C. Its pair shares the gate B: an NFET passes Aˉ\bar A, and Mp,1 (a PFET) passes A. A gate of 1 turns on the NFET, a gate of 0 the PFET: for B = 1, VC=AˉV_C = \bar A; for B = 0, VC=AV_C = A. So VC=A⊕BV_C = A \oplus B.
  3. Output D. Its pair shares the gate VCV_C: an NFET passes C, and Mp,2 (a PFET) passes B. For VC=1V_C = 1, D = C; for VC=0V_C = 0, D = B.
  4. Output E. Its pair also shares the gate VCV_C: an NFET passes Cˉ\bar C, and a PFET passes C. For VC=1V_C = 1, E = Cˉ\bar C; for VC=0V_C = 0, E = C.
  5. Note what drives the gates. VCV_C is itself a pass-transistor output, and it steers four gates. A degraded VCV_C would weaken every device it drives. That is what part (c) is about.

MT23-2a: is it static?

MT23-2a, p5 (8 points). Is this a static CMOS circuit? Explain.

Hint
Is there any device here that holds a node against the path that should switch it?

What it asks. The same question as MT24-3a, about a circuit without half latches. As there, “static” needs both checks: one rail per node in every settled state, and the right value for any sizing.

The idea. Same test as MT24-3a; what differs is that nothing here can fight. A fight needs two conducting paths to different rails on one node, and that needs either a half latch (a device held on by another node) or two switches of one pair on at once. With full-rail gates, neither happens. The one thing to check is the one input that is not full-rail: VCV_C on the gates of the output pairs.

Static?

  1. One path per node. VCV_C, D and E are each fed by an NFET and a PFET with the same gate signal. For a gate at a full 0 or 1, exactly one of the two conducts.
  2. Each path ends at one rail. Every conducting path leads back to an inverter output, which is connected to one rail.
  3. Nothing fights. There is no half latch and no feedback, so no device has to overpower another. The sizes change the speed, never the logic value: Chapter 10’s test for static.
  4. Check the one gate signal that isn’t full-rail. VCV_C is degraded in two states (VDD−VTnV_{DD} - V_{Tn} or ∣VTp∣|V_{Tp}|, part c) and drives the D and E pairs. With VC=VDD−VTnV_C = V_{DD} - V_{Tn} on its gate, Mp,2 has VSG=VTnV_{SG} = V_{Tn}: with equal thresholds that is exactly its threshold, so it is still off. In the threshold model every node keeps exactly one path in every state (the widget below flags these devices “at the edge”).

Check. Compare with MT24-3a, where the answer was “ratioed”: there P3 stays on because another node holds its gate low while its own node must fall. Here every gate is an input or VCV_C, and none of them depends on the node it steers, so no node can hold itself.

Answer: Yes, static. In every input state each of VCV_C, D and E is connected to exactly one rail, through a complementary pair with a common gate, and nothing depends on sizing. It is not complementary static CMOS, and some levels are degraded, but it is neither ratioed nor dynamic.

added If you have time, add the caveat of step 4: the degraded VCV_C leaves the “off” device of the next pair right at its threshold, so in a real circuit (body effect, or ∣VTp∣<VTn|V_{Tp}| < V_{Tn}) it would conduct slightly.

Remember. Static fails through a fight (a half latch, two drivers on a node) or a float (no path). With no feedback and full-rail gates, a pass circuit is static, even when its levels are degraded.

The answer key agrees

MT23-2b: the functions

MT23-2b, p5 (16 points). What logic function does this circuit perform to each of the outputs D and E?

Hint
VCV_C tells you whether A and B differ. When they are equal, what is B?

What it asks. The Boolean functions at D and E, in terms of A, B and C. The 16 points go to an expression and a truth table for each.

The idea. Same method as MT24-3b: compose the two-way switches of the reading, then simplify. The new step is a substitution: when VC=0V_C = 0, D passes B, and VC=0V_C = 0 means A = B, so B can be read as A or as B, whichever makes the expression recognizable.

D and E

  1. The steering signal. VC=A⊕BV_C = A \oplus B (reading, step 2): it is 1 exactly when A and B differ.
  2. D, case by case. If A ≠ B (VC=1V_C = 1), D = C. If A = B (VC=0V_C = 0), D = B, and since A = B there, that is also ABAB. So D=(A⊕B) C+ABD = (A \oplus B)\,C + AB.
  3. Recognize D. Expand: (A⊕B)C+AB=ABˉC+AˉBC+AB=AB+AC+BC(A \oplus B)C + AB = A\bar BC + \bar ABC + AB = AB + AC + BC. D is 1 when at least two inputs are 1: the majority, a full adder’s carry.
  4. E, case by case. VC=1V_C = 1 gives Cˉ\bar C and VC=0V_C = 0 gives C, which is “C inverted when VCV_C is 1”: E=VC⊕C=A⊕B⊕CE = V_C \oplus C = A \oplus B \oplus C, a full adder’s sum.
  5. Write the truth table, which the question’s 16 points expect for each output (A B C → D E): 000 → 0 0, 001 → 0 1, 010 → 0 1, 011 → 1 0, 100 → 0 1, 101 → 1 0, 110 → 1 0, 111 → 1 1.

Check. A full adder adds three bits, so D and E together must count the ones in each row as the binary number DE. Row 011: two ones, DE = 10 ✓. Row 111: three ones, DE = 11 ✓. Row 100: one, DE = 01 ✓.

Answer: D=AB+AC+BCD = AB + AC + BC (the carry) and E=A⊕B⊕CE = A \oplus B \oplus C (the sum): the circuit is a full adder.

Remember. A switch steered by A⊕BA \oplus B is the sign of an adder: the carry passes C when A and B differ and A (= B) when they agree; the sum is C, inverted when A and B differ.

The answer key agrees

It writes D=A(B+C)+BCD = A(B + C) + BC, the same function.

MT23-2c: the worst levels

MT23-2c, p6 (10 points). What is the lowest logic high and largest logic low values this circuit could produce at outputs D and E and under what static values for the input?

Hint
A high is worst when it passes through an NFET whose own gate is already degraded. In which input states is VCV_C degraded?

What it asks. The lowest voltage that D or E can have while it is a logic 1, the highest while it is a logic 0, and the input states that produce them. “Under what static values for the input” means you must name a row that really gives the level.

The idea. Apply the threshold rule (Chapter 10, Section 5) along each path. An NFET passes a 1 only up to one VTnV_{Tn} below its own gate, and a PFET passes a 0 only down to one ∣VTp∣|V_{Tp}| above its gate. So a level loses one threshold when a 1 goes through an NFET (or a 0 through a PFET) with a full-rail gate, and a second one only when that device’s gate is itself degraded. The tempting slip is to count devices in series: a 1 that crosses two NFETs with full gates loses one threshold, not two. Here the degraded gate is VCV_C, so first find when VCV_C is degraded, then which output passes a 1 (or a 0) through a device that VCV_C steers.

Worst high and worst low

  1. When is VCV_C degraded? A = 0, B = 1: the NFET (gate B) passes Aˉ=1\bar A = 1, so VC=VDD−VTnV_C = V_{DD} - V_{Tn}. A = 0, B = 0: Mp,1 passes A = 0, so VC=∣VTp∣V_C = |V_{Tp}|. In the other two states VCV_C is a full rail, because each device then passes the value it passes well (the NFET a 0, the PFET a 1).
  2. Lowest high. We need a 1 that passes through an NFET whose gate is VC=VDD−VTnV_C = V_{DD} - V_{Tn}: it stops one VTnV_{Tn} below that gate, at VDD−2VTnV_{DD} - 2V_{Tn}. VCV_C is high, so the NFETs conduct: D = C, E = Cˉ\bar C. At D this gives a 1 for A, B, C = 0, 1, 1; at E for 0, 1, 0. The figure below marks the path for D.
  3. Highest low. The mirror: a 0 that passes through a PFET whose gate is VC=∣VTp∣V_C = |V_{Tp}| stops one ∣VTp∣|V_{Tp}| above that gate, at 2∣VTp∣2|V_{Tp}|. VCV_C is low, so the PFETs conduct: D = B, E = C. D is 0 for A = B = 0 with C either (through Mp,2); E for 0, 0, 0 (through E’s PFET).
  4. Single drops elsewhere, for comparison. A, B = 1, 0 makes VC=VDDV_C = V_{DD}, so D (for C = 1) and E (for C = 0) reach VDD−VTnV_{DD} - V_{Tn} through their NFETs; A, B = 1, 1 makes VC=0V_C = 0, so E (for C = 0) only falls to ∣VTp∣|V_{Tp}|.
  5. Put in numbers. With Chapter 10’s VDD=5 VV_{DD} = 5\,\mathrm{V} and VT=1 VV_T = 1\,\mathrm{V}: the worst high is 3 V and the worst low is 2 V. The two outputs can be only 1 V apart.
The MT23-2 circuit with two paths highlighted in blue. Path 1: from the A-bar inverter output through the NFET whose gate is B, onto the V_C node, along the V_C wire to the gate of the NFET that feeds D. Path 2: from C along its wire through that NFET to the output D. A legend below: 1, NFET with gate B = VDD passes A-bar = 1, so V_C stops at VDD − VTn; 2, NFET with gate V_C passes C = 1, so D stops at V_C − VTn = VDD − 2VTn.
MT23-2c at A, B, C = 0, 1, 1: the two threshold drops on the way to D (marked up by the study guide; the original is above).

Check. Every worst row has A = 0, and that is no accident. VCV_C’s NFET passes Aˉ\bar A, which is a 1 (the value an NFET degrades) only when A = 0; its PFET passes A, which is a 0 (the value a PFET degrades) also only when A = 0. With A = 1, VCV_C is a full rail and no output can lose more than one threshold. The widget below shows every row.

Answer: Lowest high VDD−2VTnV_{DD} - 2V_{Tn}: at D for A, B, C = 0, 1, 1 and at E for 0, 1, 0. Highest low 2∣VTp∣2|V_{Tp}|: at D for 0, 0, 0 and 0, 0, 1, and at E for 0, 0, 0. Both come from the degraded VCV_C driving the gate of the next pass device (Chapter 10, Section 5, its last check).

Remember. One threshold per path, plus one more where a degraded node drives a gate. To find the worst row, first find when the steering node is degraded, then pick the output value that passes through the device it steers.

The answer key differs

It gives the lowest high for “A = 1, B = 1, C = 1”. It doesn’t occur there: Aˉ=0\bar A = 0 passes through the NFET as a strong 0, so VC=0V_C = 0, Mp,2 is on and passes B = 1 to D at the full VDDV_{DD}. The worst high needs A = 0, B = 1, so that VCV_C is the degraded VDD−VTnV_{DD} - V_{Tn}. The key’s levels themselves, and its low example (A = B = 0), are right.

Run both adders here. Every node shows its logic value and its level; the table runs all eight rows.

VC
1: VDD − VTn (4 V)
D
1: VDD − 2VTn (3 V)
E
0: 0 (0 V)
output D
1
output E
0

At the edge of conduction (|VGS| = |VT| exactly, so just off): Mp,2, Mp,3. Numbers at VDD = 5 V, VTn = |VTp| = 1 V.

ABCVCDEDE
000|VTp|2|VTp|2|VTp|00
001|VTp|2|VTp|VDD01
010VDD − VTn0VDD − 2VTn01
011VDD − VTnVDD − 2VTn010
100VDD0VDD − VTn01
101VDDVDD − VTn010
1100VDD|VTp|10
1110VDDVDD11

Orange: a degraded level, one or two thresholds short of the rail. A pass device stops one threshold short of its own gate, so two NFETs in series with their gates at VDD lose one VTn, but a node at VDD − VTn that drives a gate costs a second one. Settled levels only: transitions, and any fight they start, are in the text.

What to notice.

  • MT23-2, A, B, C = 0, 1, 1: VCV_C is VDD−VTnV_{DD} - V_{Tn} and D is VDD−2VTnV_{DD} - 2V_{Tn}; Mp,2 and the PFET of E are flagged at the edge of conduction. Now set A = 1: VCV_C becomes a full 0 and D a full VDDV_{DD} (the key’s example).
  • MT24-3 without P3 and P4: every high node is VDD−VTnV_{DD} - V_{Tn}, never worse, because every NFET’s gate is a full-rail input. With them, every high node is restored to VDDV_{DD}.
  • The widget shows settled states only. The fight that makes MT24-3 ratioed happens during a transition (MT24-3a); the switch-level widget of Chapter 10, Section 4 replays transitions for the lecture’s circuits.
Check yourself MT24-3's pass networks lose at most one threshold, while MT23-2's lose two. What is the structural difference?

In MT24-3 every pass NFET’s gate is a full-rail input (AA, Aˉ\bar A, CinC_{in}, Cin‾\overline{C_{in}}), and series NFETs with full gates lose only one VTnV_{Tn} in total. In MT23-2 the gates of the output pairs are driven by VCV_C, which is itself a pass-transistor output and can be degraded; a device whose gate is one threshold short stops one threshold below that, two in all.

3. MT21-1: a pass-transistor multiplexer

Inputs D1 to D4 each feed an inverter; each inverter's output passes through an NFET whose gate is S1 to S4 respectively; the four NFETs join at the output Y.
MT21-1, p2 (source figure).

MT21-1, p2–3 (Fall 2021, 30 points). Consider the pass transistor multiplexer shown above. (a) What logic constraint on S1, S2, S3, and S4 ensures that this is a static CMOS circuit? (10 points) (b) In normal operation, what output high voltage will be achieved relative to the supply voltage VDDV_{DD}? Explain. (10 points) (c) Draw a complementary static CMOS circuit that achieves the same logic functionality of the pass transistor design. (10 points)

MT21-1a: the constraint on the selects

Hint
Count Y’s paths to a rail for no select on, one on, and two on.

What it asks. A rule on the four selects under which the multiplexer is static. Here the circuit is static or not depending on the inputs, so the answer is a condition, not a yes or no.

The idea. Static means exactly one path from Y to one rail (Chapter 7, Section 4). Unlike MT24-3 and MT23-2, these selects are four independent signals, not complements, so the circuit itself no longer guarantees one path: the selects must. Count Y’s paths for each number of selects that are on (Chapter 10, Section 7).

When is the multiplexer static?

  1. List the paths. Y has four possible paths, one per NFET, each to an inverter output and through it to one rail.
  2. No select on. Y is connected to nothing and floats. That is dynamic, not static.
  3. Two selects on, with different data. One inverter pulls Y up while another pulls it down, a fight decided by strength: ratioed.
  4. Exactly one select on. Exactly one path, to exactly one rail. Static.

Check. The condition must exclude both failures, and “exactly one” does: “at most one” still allows the float, and “at least one” still allows the fight. A decoder’s outputs satisfy it by construction, which is why the lecture drives the selects from one.

Answer: exactly one of S1–S4 must be 1 at any time (the selects are one-hot, for example from a decoder).

Remember. When the gate signals are independent, being static is a condition on the inputs: no fight (at most one path) and no float (at least one). For a multiplexer, that is one-hot selects.

The answer key differs

It says “only one of the inputs can be logic 1 at any given time”, which reads as at most one. All four at 0 is also not static (Y floats), so say exactly one.

MT21-1b: the output high

Hint
When the NFET passes a 1, which of its terminals is the source, and what happens to VGSV_{GS} as Y rises?

What it asks. The voltage Y reaches when the multiplexer outputs a 1, relative to VDDV_{DD}, with the reason. “In normal operation” means one-hot selects: a single NFET with its gate at VDDV_{DD} connects Y to one inverter.

The idea. This is the threshold rule itself, the single-drop case of MT23-2c (Chapter 10, Section 5). An NFET’s source is whichever of its two terminals is lower. Passing a 1, that is the output, so the output’s own rise eats into VGSV_{GS} until the device cuts off. The gate is a full-rail select, so there is no second drop.

The high level

  1. Set up a 1 on the path. Say S3 = 1 and D3 = 0: the third inverter’s output is VDDV_{DD}, and the third NFET has its gate at VDDV_{DD}.
  2. Find the source. Passing a 1, the NFET’s lower terminal is Y, so Y is its source and VGS=VDD−VYV_{GS} = V_{DD} - V_Y.
  3. Follow Y up. As Y charges, VGSV_{GS} shrinks; the NFET cuts off when VGS=VTnV_{GS} = V_{Tn}, at VY=VDD−VTnV_Y = V_{DD} - V_{Tn}.
  4. Add what the model leaves out. Body effect raises VTnV_{Tn} as the source rises, so a real NFET stops a little lower still.
  5. Put in numbers, for example. The exam gives no values, so the answer stays symbolic. With illustrative values, VDD=2.5 VV_{DD} = 2.5\,\mathrm{V} and VTn=0.5 VV_{Tn} = 0.5\,\mathrm{V} (Chapter 10’s exam-style check; not the exam’s numbers, and not this page’s 5 V / 1 V), it is 2.0 V.

Check. The low side, by the same reasoning: passing a 0, the source is the inverter’s side, at 0 V, so VGSV_{GS} stays at VDDV_{DD} the whole way and Y reaches ground. An NFET-only multiplexer is asymmetric, a full 0 and a weak 1, which is what the rule predicts.

Answer: VOH=VDD−VTnV_{OH} = V_{DD} - V_{Tn}, because the pass NFET turns itself off once its gate is only VTnV_{Tn} above the output.

Remember. An NFET passing a 1 stops one VTnV_{Tn} below its gate, because the output is its source. One drop, however many NFETs with full gates are in series.

The answer key agrees

Its answer is the same, but it writes VGS=VDD−VtnV_{GS} = V_{DD} - V_{tn} (“high RDSR_{DS}”). At cut-off it is VGS=VTnV_{GS} = V_{Tn}; it is the output that sits at VDD−VTnV_{DD} - V_{Tn}.

MT21-1c: a static CMOS equivalent

Hint
The inverters already invert each data input. Can you write Y as the complement of an AND-OR expression of SiS_i and DiD_i?

What it asks. A complementary static CMOS circuit with the same function as the multiplexer, inverters included. Only the function has to match, not the structure.

The idea. Same move as MT24-3d: a single complementary gate computes the complement of its pull-down’s expression (Chapter 7, Section 4). What is new is that the multiplexer already inverts (it passes Dˉi\bar D_i), so with one-hot selects Y is itself the complement of an AND-OR expression, and one AND-OR-invert gate does it with no inverter at all (Chapter 7, Section 5).

An AND-OR-invert gate

  1. Write the function. With the inverters, the multiplexer passes Dˉ\bar D: Y=S1Dˉ1+S2Dˉ2+S3Dˉ3+S4Dˉ4Y = S_1\bar D_1 + S_2\bar D_2 + S_3\bar D_3 + S_4\bar D_4, assuming one-hot selects.
  2. Rewrite it as a complement, because that is what one gate computes. With one-hot selects, if SkS_k is the select that is on, Y=Dˉk=S1D1+S2D2+S3D3+S4D4‾Y = \bar D_k = \overline{S_1D_1 + S_2D_2 + S_3D_3 + S_4D_4}: only the kk-th term can be 1.
  3. Draw the gate. That is an AND-OR-invert gate: the pull-down has four series pairs (SiS_i, DiD_i) in parallel; the pull-up, its dual, has four parallel pairs (SiS_i ∥ DiD_i) in series. 16 transistors, and no inverters: DiD_i goes straight in.
  4. Note its cost. Its PFET stack is four high, which Chapter 7 would avoid in practice. The question asks only for a circuit with the same function.
  5. Compare the key’s form. It uses the complements Sˉi\bar S_i instead: pull-down (D1∥Sˉ1)(D_1 \parallel \bar S_1) in series with the other three such pairs, pull-up four series branches (Sˉi\bar S_i, DiD_i) in parallel. It computes ∑SiDˉi\sum S_i\bar D_i exactly, for any selects, but needs four inverters for Sˉi\bar S_i, and its NFET stack is four high.
VDDYS1D1S2D2S3D3S4D4S1D1S2D2S3D3S4D4GND
MT21-1c with one-hot selects: Y = NOT(S1·D1 + S2·D2 + S3·D3 + S4·D4).

Check. One row each way. S3 = 1, D3 = 0: in the pull-down the S3–D3 pair is off, and every other pair has its select off, so the pull-down is off; in the pull-up, pairs 1, 2 and 4 conduct through their select PFETs (selects at 0) and pair 3 through its D3D_3 PFET, so Y = 1 = Dˉ3\bar D_3 ✓. With D3 = 1 the S3–D3 pair conducts and Y = 0 ✓.

Answer: the AOI gate above (or the key’s equivalent form with Sˉi\bar S_i).

Remember. A pass-transistor multiplexer with one-hot selects is an AND-OR(-invert) of selects and data. Write the function as a complement first, then draw one gate.

The answer key agrees

It writes Y=S1Dˉ1+S2Dˉ2+S2Dˉ3+S4Dˉ4Y = S_1\bar D_1 + S_2\bar D_2 + S_2\bar D_3 + S_4\bar D_4: the third term should be S3Dˉ3S_3\bar D_3. Its circuit is otherwise correct.

4. MT21-3: the six-transistor XOR

Top left: PFET M3 between input B and node Y, and NFET M4 between Y and B_bar, both with input A on their gates. Top right: NFET M5 (gate B_bar) and PFET M6 (gate B) in parallel between Y and input A. Bottom: an inverter of PFET M1 and NFET M2 makes B_bar from B. A blue hand-drawn arrow runs from A at the right through M5, along Y and down through M4 toward B_bar.
MT21-3, p5 (source figure; the blue arrow is the key’s handwritten path).

MT21-3, p5 (Fall 2021, 25 points). Consider the six-transistor XOR gate shown above. As discussed in class, this is not a static CMOS circuit. Describe how one could size the circuit such that it produces a logically incorrect result.

Hint
Every row of the truth table is right, so look at a transition. When B rises with A = 1, which node must fall, and what still holds it up?

What it asks. A sizing that makes the gate give a wrong answer. The question already tells you the gate is not static, so the job is to find the transition where two paths fight, and say which device must lose for the wrong side to win.

The idea. Why the 6T XOR is ratioed (Chapter 10, Section 9): a settled-state check passes, because each row of the truth table has one path from Y to one rail. But on one transition a node is pulled both ways, and that node, Bˉ\bar B, is also the gate of a pass device (M5). So whichever side wins the fight decides whether M5 turns off, and with it the final state. A fight whose winner decides the answer is what makes a gate ratioed; a brief overlap that always ends the same way does not. Include the gates that drive A and B, as the lecture does (Lecture 10, 46:05): the fight runs through A’s driver.

The failing transition

  1. Name the devices. M1 and M2 make Bˉ\bar B from B; M3 (PFET, gate A) joins B to Y; M4 (NFET, gate A) joins Bˉ\bar B to Y; M5 (NFET, gate Bˉ\bar B) and M6 (PFET, gate B) join A to Y. Every row of the truth table gives XOR.
  2. Add the drivers, because the fight’s path runs through one: every node is driven by a real gate.
  3. Start at A = 1, B = 0. Bˉ=1\bar B = 1, so M5 and M6 pass A = 1 to Y; M4 (gate A = 1) also joins Y to Bˉ\bar B, which is 1 too. Y = 1, and nothing fights.
  4. Switch B to 1, and say what should happen. Y should fall: M2 pulls Bˉ\bar B down, M5 turns off, and M4 pulls Y down to Bˉ=0\bar B = 0.
  5. Find the path that resists. While Bˉ\bar B is still high there is a path from VDDV_{DD} through the PFET of A’s driver, M5 (gate Bˉ\bar B, still on), Y and M4 (gate A = 1) to Bˉ\bar B. It holds Bˉ\bar B up against M2.
  6. Choose the sizes that let it win. Size M2 very weak, and M5, M4 and A’s driver strong. Then Bˉ\bar B never falls far enough, M5 stays on, and Y stays at 1 for A = B = 1: the wrong answer, with current flowing from VDDV_{DD} to ground.
  7. Put numbers on it added. With every device as R/WR/W (A’s driver PFET 2 µm, M5 and M4 1 µm, so the path is 3R3R per µm), Bˉ\bar B sits on a divider between that path and M2’s R/W2R/W_2: VBˉ=5 V/(1+3W2)V_{\bar B} = 5\,\mathrm{V}/(1 + 3W_2) for an M2 of width W2W_2 in µm. W2=1 μmW_2 = 1\,\mu\mathrm{m} gives 1.25 V (it switches); W2=0.2 μmW_2 = 0.2\,\mu\mathrm{m} gives 3.125 V, with Y at 3.75 V (it fails). The switch-over is at W2=1/3 μmW_2 = 1/3\,\mu\mathrm{m}.

Check. At the switch-over, W2=1/3 μmW_2 = 1/3\,\mu\mathrm{m}, M2’s resistance is R/W2=3RR/W_2 = 3R, equal to the path’s 3R3R, and VBˉ=5/(1+1)=2.5 VV_{\bar B} = 5/(1 + 1) = 2.5\,\mathrm{V}, half the supply. A ratioed contest should flip exactly where the two sides are equally strong, and it does.

Answer: make M2, the NFET of the inverter that produces Bˉ\bar B, much weaker than the series path through A’s driver, M5 and M4. Then on the transition A = 1, B: 0 → 1, Bˉ\bar B can’t be pulled low, M5 stays on and Y stays at 1. Because correct operation depends on sizing, the gate is ratioed.

Remember. To show a gate is ratioed, give a transition, the two paths that fight on one node, and the device whose weakness lets the wrong side win. The truth table alone can never show it.

The answer key agrees

It names the M5–M4 path; the PFET of A’s driver belongs to that path too.

Check yourself Does the 6T XOR fail on any other transition? Consider A = 0, B: 0 → 1.

It fights only briefly. When B rises, Bˉ\bar B falls on its own (M2 pulls it down and nothing holds it up, since M4 is off with A = 0). M5 turns off, M3 connects Y to B = 1, and the gate settles correctly whatever the sizes. A transient overlap is not what makes a gate ratioed; a fight whose winner decides the final state is. Only 10 → 11 has one (Chapter 10, Section 9).

How to approach a stick-layout question

Recognize it by the picture: two rails (VDDV_{DD} at the top, ground at the bottom), two horizontal diffusion lines (p near VDDV_{DD}, n near ground), vertical poly lines labelled with the inputs, metal lines, and square contacts. The question always says “Draw the schematic corresponding to this layout. What logic function does this gate perform?” It is short: 15 of 200 points in 2024 and 10 of 150 in 2023, about five minutes, with most of the points for the schematic.

The moves, in order.

  1. Find the transistors. Every place a poly line crosses a diffusion line is one transistor, with that poly’s signal on its gate: a PFET on the p line, an NFET on the n line.
  2. Name the nodes. The pieces of diffusion between polys are the transistors’ sources and drains. A contact joins a piece to the metal over it; follow that metal to name the net (VDDV_{DD}, ground, the output, or an internal net). A poly with no input label gets its signal through a contact from metal, so it is driven by an internal net.
  3. Series or parallel. An uncontacted piece joins only its two neighbours, so they are in series. Two transistors whose ends reach the same two nets are in parallel, wherever they sit on the line.
  4. Find the stages. A net that ends on a poly is a gate’s output driving another gate: the layout has two stages.
  5. Then the function. Write each stage’s pull-down, check that its pull-up is the dual, and compose the stages.

Why these rules (Chapter 9, Section 10). A stick diagram draws one line per layer, so a transistor is exactly where gate poly crosses active diffusion, and only a contact joins two layers: metal that merely crosses a poly or a diffusion line touches nothing. Neighbouring transistors on one line share the diffusion between them (Chapter 5, Section 6): uncontacted, that shared piece is an internal node of a series stack; contacted, it is a net that other devices may also reach. The duality check comes from complementary static CMOS (Chapter 7, Section 4): if your pull-up is not the dual of your pull-down, you have misread a contact.

Traps. Metal crossing a poly or a diffusion line without a contact (both exam figures have one). A poly with no input label, which means a second stage (without MT24-4’s inverter you would answer NOR, not OR). Calling two transistors in series because they sit side by side, when their outer ends reach the same nets.

5. MT24-4: a stick layout with two stages

Colour stick layout. A blue vdd rail at the top and gnd rail at the bottom; a yellow pDIFF line and a green nDIFF line; four red vertical poly lines, the first three labelled A, B, C at the bottom, the fourth unlabelled. Black squares mark contacts. Blue metal: a vertical line joining the left ends of both diffusions, which also runs right along a horizontal line to a contact on the fourth poly; a short drop from vdd to the p diffusion between C and the fourth poly; drops from gnd to the n diffusion between A and B and between C and the fourth poly; a vertical line from the n diffusion between B and C up to the horizontal line; a vertical line joining the right ends of both diffusions, with a branch labelled Output.
MT24-4, p9 (source figure: yellow p diffusion, green n diffusion, red poly, blue metal, black contacts).

MT24-4, p9 (Fall 2024, 15 points). Consider the stick layout above with a row of pFET devices and a row of nFET devices. Draw the schematic corresponding to this layout? What logic function does this gate perform? (Schematic 10 points, output 5 points.)

Hint
The fourth poly has no input label. Where does its signal come from?

What it asks. The schematic of the eight transistors (10 points) and the logic function at “Output” (5 points). The unlabelled fourth poly is the detail that decides the function.

The idea. Read it with the rules of the section above (Chapter 9, Section 10): transistors where poly crosses diffusion, nets named by following contacts and metal, series through uncontacted pieces, parallel where two devices reach the same two nets. The new idea here is a second stage: one metal net both collects the first gate’s output and ends in a contact on the fourth poly, so the first gate drives the second.

The MT24-4 stick layout with marks: the horizontal metal line is labelled X; small rings where it crosses polys A, B and C without contacts; a bold ring around its contact on the fourth poly. Legend below: a small ring means metal crosses poly with no contact, not connected; a bold ring is a contact where X drives the fourth poly, a second stage.
MT24-4: the net X and where it does and doesn’t connect (marked up by the study guide; the original is above).

Reading the layout (Chapter 9's rules)

  1. Count the transistors. Four poly lines cross both diffusion lines: eight transistors. A, B and C enter from the bottom; the fourth poly has no input label and gets its signal through the contact on it.
  2. Name the metal, because the nets decide every connection. The left vertical line joins the left ends of both rows and runs along the horizontal line to the contact on the fourth poly: call it X. The right vertical line joins the right ends of both rows: the output. The horizontal line crosses polys A, B and C with no contact, so it does not touch them.
  3. PFET row, left to right: X, poly A, an uncontacted piece, poly B, an uncontacted piece, poly C, a contact to VDDV_{DD}, the fourth poly, the output. The uncontacted pieces join only their neighbours, so A, B and C are in series from VDDV_{DD} to X (C nearest VDDV_{DD}), and the fourth PFET runs from VDDV_{DD} to the output.
  4. NFET row: X, poly A, ground, poly B, X (the contact wired up to the horizontal line), poly C, ground, the fourth poly, the output. A runs from X to ground, B from ground to X, C from X to ground: every one reaches the same two nets, so all three are in parallel between X and ground (Chapter 5, Section 6). The fourth NFET runs from ground to the output.
  5. Find the stages. First stage: series PFETs over parallel NFETs, X=A+B+C‾X = \overline{A + B + C}, a three-input NOR. Second stage: one PFET and one NFET, both gated by X, between the rails and the output: an inverter.
  6. Compose them. OUT=X‾=A+B+C\mathrm{OUT} = \overline{X} = A + B + C.
VDDXCBAABCGND
MT24-4, first stage: X = NOT(A + B + C), with the PFETs in the layout's order (C nearest VDD).
VDDOUTXXGND
MT24-4, second stage: an inverter, OUT = NOT X.

Check. Duality: the first stage’s pull-up (A, B, C in series) is the dual of its pull-down (A, B, C in parallel), as a complementary gate’s must be. And every transistor is used once: six in the NOR, two in the inverter, eight in all, matching the eight crossings.

Answer: a three-input NOR whose output X drives an inverter: OUT=A+B+C\mathrm{OUT} = A + B + C, an OR gate.

Remember. A poly with no input label is driven by an internal net, so look for a second stage before you write the function. Chapter 9’s exam-style practice is the two-input version of this layout.

The answer key agrees

6. MT23-4: a stick layout with four inputs

Hatched stick layout. VDD rail at the top and GND rail at the bottom; a grey p diffusion line and n diffusion line; four hatched vertical polys A, B, C, D. Black contacts on the p line at the left end (to VDD), between C and D, and at the right end (to VDD); on the n line at the left end (to GND), between A and B, between B and C (to GND), between C and D, and at the right end. A metal line joins the n-line contacts between A and B and between C and D. Another metal line runs from the p-line contact between C and D, across poly D, down to the n-line contact at the right end, labelled Y.
MT23-4, p10 (source figure).

MT23-4, p10 (Fall 2023, 10 points). Consider the stick layout above with a row of pFET devices and a row of nFET devices. Draw the schematic corresponding to this layout? What logic function does this gate perform?

Hint
Name the net of every contacted piece on the n line first. How many different nets are there?

What it asks. The schematic and the logic function of a single gate with four inputs. Every poly is labelled, so there is one stage; the work is in the nets.

The idea. Same rules as MT24-4. What is different: one stage, and an internal net (P) that is contacted and joined by metal, so devices that are not neighbours on the line still meet at it. That is how a parallel group and a series device share one row.

Reading the layout

  1. Count the transistors. Four polys, A to D, each cross both rows: eight transistors.
  2. PFET row: VDDV_{DD}, A, an uncontacted piece, B, an uncontacted piece, C, a contact wired to Y, D, VDDV_{DD}. The uncontacted pieces make A, B and C in series from VDDV_{DD} to Y; D runs from Y to VDDV_{DD}, the same two nets, so it is in parallel with that stack.
  3. NFET row: ground, A, a contact (call its net P), B, ground, C, a contact wired to the first one by the metal line (P again), D, Y. A runs from ground to P, B from P to ground, C from ground to P: all reach the same two nets, so they are in parallel between ground and P. D runs from P to Y.
  4. Write both networks. Pull-down: D in series with (A ∥ B ∥ C); it conducts when D(A+B+C)D(A + B + C). Pull-up: (A–B–C in series) ∥ D, which is its dual, as it must be.
  5. The function. The output is low when the pull-down conducts: Y=D (A+B+C)‾=Dˉ+AˉBˉCˉY = \overline{D\,(A + B + C)} = \bar D + \bar A\bar B\bar C, an OR-AND-invert gate.
VDDYABCDDABCGND
MT23-4: Y = NOT(D·(A + B + C)).

Two traps in this figure. The Y metal crosses poly D on its way down, and the P metal crosses polys B and C; neither has a contact there, so neither connects.

Check. One row through the transistors themselves. A = B = C = 0, D = 1: on the n line the D NFET is on but A, B and C are all off, so P has no path to ground and the pull-down is off; on the p line A, B and C are all on, so the series stack pulls Y to VDDV_{DD}. Y = 1, and the formula gives 1⋅0‾=1\overline{1 \cdot 0} = 1 ✓.

Answer: Y=D (A+B+C)‾=Dˉ+Aˉ Bˉ CˉY = \overline{D\,(A + B + C)} = \bar D + \bar A\,\bar B\,\bar C.

Remember. Name every contacted piece by its net before deciding series or parallel: devices far apart on a line are in parallel if they reach the same two nets.

The answer key agrees

Check yourself Is the order A, B, C, D in MT23-4 an Euler path of both networks? How can you tell from the layout alone?

Yes. Both diffusion rows run unbroken from end to end, with every pair of neighbouring transistors sharing a piece of diffusion. That is exactly what an Euler path common to both networks buys (Chapter 10, Section 1): straight polys and no breaks in either row.

Patterns

Pass-transistor circuits (every midterm since 2021: 23–37% of the points).

  • Moves (the approach): read node by node; static (settled states, then a transition); the function; the levels by the threshold rule; what the half latch restores; one complementary gate plus an inverter.
  • The answers that keep coming back: one-hot selects; VDD−VTnV_{DD} - V_{Tn}; VDD−2VTnV_{DD} - 2V_{Tn} and 2∣VTp∣2|V_{Tp}| when a pass output drives a gate; half latches restore the rail but make the circuit ratioed; the carry AB+C(A+B)AB + C(A + B) and the sum A⊕B⊕CA \oplus B \oplus C.
  • Traps: “static” from settled states only; one threshold per series device; a worst-level example that gives a full level; an output label that is the complement of its node; “only one select” for exactly one.
  • Time: 15–17 minutes for the whole question (about 30 seconds a point on a 150-point exam, 22.5 on a 200-point one).

Stick layout to schematic (MT23-4, MT24-4: 7–8% of the points).

  • Moves (the approach): a transistor at every poly–diffusion crossing; name the nets by contacts and metal; series through uncontacted pieces, parallel to the same two nets; find the stages; then the function, with the duality check.
  • Traps: metal crossing without a contact; an unlabelled poly, which means a second stage (NOR, not OR, if you miss MT24-4’s inverter).
  • Time: about 5 minutes.

What the keys get wrong

Re-solving every part found these disagreements; all are recorded in this page’s review/decisions.md.

PartThe keyHere
MT24-3a“Yes, this is static CMOS”Not static: ratioed because of the half latches (the key’s own rubric gives full points for this)
MT23-2clowest high VDD−2VTnV_{DD} - 2V_{Tn} “Ex: A = 1, B = 1, C = 1”at 1, 1, 1 D is a full VDDV_{DD}; the lowest high is at 0, 1, 1 (D) and 0, 1, 0 (E)
MT21-1a“Only one of the inputs can be logic 1”exactly one: with none on, Y floats
MT21-1bVGS=VDD−VtnV_{GS} = V_{DD} - V_{tn}at cut-off VGS=VTnV_{GS} = V_{Tn}; the output is VDD−VTnV_{DD} - V_{Tn} (the key’s answer is right)
MT21-1cthird term S2Dˉ3S_2\bar D_3S3Dˉ3S_3\bar D_3; the circuit is otherwise right

Every other part (MT24-3b–d, MT24-4, MT23-2a–b, MT23-4, MT21-3) agrees with its key after re-solving.