Physics · Article
Digital logic and physical computing
Connect Boolean functions to powered CMOS voltage restoration, loading, delay, energy, clocks, metastability, error correction and the physical limits of information processing.
Previous article: Operational amplifiers and analog electronics
Back to PhysicsAfter reading, you can
- Translate truth tables into Boolean and arithmetic relations.
- Derive a declared CMOS inverter equilibrium and local gain.
- Distinguish model noise margins from guaranteed logic specifications.
- Calculate loading, RC delays and complete switching energy.
- Analyze combinational hazards and maximum/minimum register timing.
- Explain metastability and the limits of synchronization.
- Audit a single-error-correcting code without claiming broader correction.
- Relate conditional erasure thermodynamics to physical computing without confusing different energy models.
Begin with a voltage that means a bit
A temperature monitor compares a sensor reading with a limit and records whether a machine is too warm. The record may be a zero or a one, but the wire carrying that record has a voltage, capacitance, resistance and temperature. Its receiver needs a usable voltage at a usable time. Digital electronics makes reliable discrete decisions by controlling those continuous physical conditions.
A bit is an abstract choice between two symbols. A voltage band can represent that choice, but a bit is not intrinsically a particular number of volts. Different circuits use different supplies, thresholds, current levels, differential pairs or stored charge. A correct Boolean expression can still be implemented by a circuit that consumes too much power, misses its timing requirement or receives an ambiguous input.
We will move from truth tables to powered transistor networks, then examine noise margins, charging delays, clocks, metastability and errors. The final return connects information loss to thermodynamics. The purpose is to keep logic and physics together without pretending that a small teaching model qualifies an actual processor, memory or communication link.
Choose a first path and an advanced return
Begin with the binary functions, the complementary inverter and the resistor–capacitor delay example. Then follow a value through a combinational network into a clocked register. Keep separate questions in view: which value should appear, which voltages represent it, and when it can safely be used.
The advanced return derives a continuous inverter transfer curve, output slope and model noise margins. It adds unequal maximum and minimum path delays, a declared clock-skew convention, metastable regeneration, conditional reliability estimates, error-correcting codes and the thermodynamics of erasure. None of these is removed by calling a signal digital.
Earlier circuit lessons supply charge, energy, Kirchhoff equations and RC transients; lesson163 supplies transistor regions and small-signal gain. Lesson164 connects analog feedback, operating limits and settling. The following Fourier/filter and control lessons develop signal spectra and feedback more generally. Here we use only the specific circuit and timing assumptions stated alongside each calculation.
Define Boolean functions before building gates
Let a and b take values in {0,1}. NOT reverses one bit; AND is one only when both inputs are one; OR is one when at least one input is one; XOR is one when the two inputs differ. NAND and NOR are the complements of AND and OR. A truth table lists every permitted input combination and the required output.
Writing ab for AND and a+b for OR is common in Boolean algebra, but the plus sign then does not mean ordinary integer addition. For example, Boolean1+1=1, whereas an integer adder must represent the value2. We will write the operation explicitly whenever arithmetic and logic meet.
Equivalent expressions produce the same truth table. De Morgan's relations, NOT(a AND b)=(NOT a) OR(NOT b) and NOT(a OR b)=(NOT a) AND(NOT b), connect gate implementations. NAND alone or NOR alone can implement the usual finite Boolean functions through composition. Logical completeness says nothing by itself about transistor count, voltage compatibility, speed or energy.
Connect gate values to binary arithmetic
A half adder accepts two bits. Its sum bit is a XOR b and its carry is a AND b, so the integer relation a+b=sum+2carry holds. The carry represents a place value, not a Boolean output that somehow exceeds one.
A full adder also accepts an incoming carry c_in. Its sum is a XOR b XOR c_in; its carry is one whenever at least two of the three inputs are one. Equivalently, c_out=(a AND b) OR(a AND c_in) OR(b AND c_in). The integer check a+b+c_in=sum+2c_out provides a useful independent audit of all eight cases.
An n-bit word can represent an unsigned integer Σb_i2^i. Signed conventions such as two's complement assign a different meaning to the same finite patterns; overflow depends on that convention. Arithmetic circuits, state machines and instruction encodings all build on finite symbols, while their physical wires still face the voltage and timing requirements developed below.
The same bits support different logical functions
Read each row as one complete input case. The full-adder output is a two-bit encoding: sum + 2 × carry equals the ordinary integer total. These Boolean tables do not specify voltage thresholds, timing or a transistor technology.
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Complement: the complete two-state table.
| Case | Input a | NOT a |
|---|---|---|
| 1 | 0 | 1 |
| 2 | 1 | 0 |
Complete two-input functions, with the same input order in each column.
| Case | a | b | AND | OR | XOR | NAND | NOR |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 |
| 3 | 1 | 0 | 0 | 1 | 1 | 1 | 0 |
| 4 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
All full-adder inputs: integer total = sum + 2 × carry.
| Case | a | b | Carry in | Sum bit | Carry out | Integer total |
|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | 0 | 1 | 1 | 0 | 1 |
| 3 | 0 | 1 | 0 | 1 | 0 | 1 |
| 4 | 0 | 1 | 1 | 0 | 1 | 2 |
| 5 | 1 | 0 | 0 | 1 | 0 | 1 |
| 6 | 1 | 0 | 1 | 0 | 1 | 2 |
| 7 | 1 | 1 | 0 | 0 | 1 | 2 |
| 8 | 1 | 1 | 1 | 1 | 1 | 3 |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Make voltage bands an interface contract
A receiver's guaranteed low-input range and high-input range are separated by an intermediate region in which no binary interpretation is promised. Write its limits as V_IL and V_IH. A transmitter similarly has guaranteed output-low and output-high limits V_OL and V_OH under stated loading and operating conditions. The precise inequalities and test conditions belong to the particular logic specification.
For compatible common-reference interfaces, a low-state margin can be written N_ML=V_IL−V_OL and a high-state margin N_MH=V_OH−V_IH. Positive margins allow some voltage disturbance within that static contract. A typical switching voltage is not a replacement for guaranteed worst-case input and output bands, and connecting two parts because both use the word CMOS does not prove compatibility.
An intermediate input is not a third Boolean value in an ordinary two-valued truth table. It is a physical condition outside the promised binary interface. Circuit simulators may use an X symbol for unknown or conflicting logic, but that bookkeeping symbol does not uniquely specify a voltage, a probability, a metastable state or an electrical fault.
Build a powered complementary inverter
Connect a p-channel MOS transistor from V_DD to an output node and an n-channel transistor from that node to ground. Drive both gates with v_i. Tie the n-channel body to ground and the p-channel body to V_DD in this declared basic topology. The gate input mainly changes channel conduction; supply current provides the energy that charges an output load.
Near a low input, the p-channel path conducts and the n-channel path is off, so an unloaded output approaches V_DD. Near a high input the n-channel path conducts and the p-channel path is off, so the output approaches ground. The voltage inversion comes from this powered network, rather than from a passive switch that manufactures energy.
During a transition, both devices can conduct. Real devices also have leakage, terminal capacitances, body and protection structures, finite output drive and operating limits. The familiar ideal statement of zero static CMOS power refers to an ideal rail-state model with no leakage or external DC load. It does not describe every input voltage or every actual CMOS system.
Derive a continuous static inverter model
Use an original symmetric teaching model with V_DD=3.3 V, threshold magnitude V_T=0.6 V, K_n=K_p=0.002 A/V² and λ=0.05 V^−1. For either device use positive overdrive u and positive source-to-drain voltage magnitude w. Set I=0 for u≤0; for 0≤w<u use I=K(uw−w²/2)(1+λw); for w≥u use I=(K/2)u²(1+λw).
The same explicit channel-length factor is applied to both conducting regions to define this mathematical model continuously. That is a chosen constitutive law, not a universal compact model of a fabricated transistor. Threshold, mobility, short-channel effects, temperature and leakage of a selected device would require its appropriate model and characterization.
For the n-channel device, u_n=v_i−V_T and w_n=v_o. For the p-channel device, u_p=V_DD−v_i−V_T and w_p=V_DD−v_o. With no external DC load and no gate current, output KCL is I_n=I_p. Solve that equation within0≤v_o≤V_DD and use the actual device regions. The solution is a static voltage-transfer curve; it is not a transient switching waveform.
Differentiate the circuit before naming a gain
Define F(v_i,v_o)=I_n−I_p. Along an admitted equilibrium, dF=F_i dv_i+F_o dv_o=0, giving dv_o/dv_i=−F_i/F_o when F_o is nonzero. Because the p-channel overdrive and voltage magnitude both fall when their corresponding node voltages rise, the derivatives in F have the required added contributions: F_i=I_n,u+I_p,u and F_o=I_n,w+I_p,w.
At the symmetric point v_i=v_o=1.65 V, both devices have1.05 V overdrive and are in their saturation regions under the declared inequalities. Each current is 1.19345625 mA. The local voltage slope is approximately−41.2380952 V/V. A perturbation near that equilibrium can therefore be strongly inverted, although a large finite change must be found from the complete transfer curve.
The interior equilibrium consumes static supply power V_DD I_p, about 3.93840563 mW at that midpoint. The n-channel and p-channel dissipation terms, v_o I_n and(V_DD−v_o)I_p, add to the supply power when KCL holds. This ledger belongs to the stated unloaded DC model; it does not include switching energy, gate drive or a fabricated part's leakage.
Define model noise margins without claiming ratings
A common textbook construction places V_IL and V_IH where the continuous inverter slope is−1, on the low-input and high-input sides of the transition. To make an input-band contract for this monotone static model, use V_OH,min=v_o(V_IL) as the smallest high output for inputs from0 to V_IL, and V_OL,max=v_o(V_IH) as the largest low output for inputs from V_IH to V_DD. Then N_ML=V_IL−V_OL,max and N_MH=V_OH,min−V_IH.
At exactly rail inputs this unloaded ideal model produces0 V and3.3 V. Subtracting those nominal rails from the input boundaries gives larger rail-referenced headrooms, but does not bound the output over every accepted input voltage. We retain those quantities separately and use the conservative mapped-band margins when describing the static input/output contract.
The slope criterion explains restoration: a sufficiently small input-voltage variation in a flat part of the curve produces a smaller output variation in magnitude, while the central steep region can amplify disturbances. A chain of compatible gates can regenerate voltage levels as long as its interface, loading and timing assumptions hold. Regeneration is a physical mechanism, not a promise to correct any disturbance.
These slope-defined model quantities must not be advertised as guaranteed datasheet thresholds. A real contract includes manufacturing spread, supply, temperature, drive, load and test conditions. Dynamic noise, coupling, ground motion and slow crossings need their own analysis; positive static noise margins alone do not prove their absence.
A powered circuit gives a continuous transfer, not an ideal step
The complementary devices share an input and output, while their sources and bodies connect to opposite supply rails. The unloaded constitutive model has finite λ. VIL and VIH are slope −1 controls; the mapped output bands define the conservative model noise margins. Nominal rail headroom is a separate reference. No selected-device rating or real zero-leakage claim is implied.
Complementary inverter: supply, body and current references
The PMOS source and body connect to +3.3 V; the NMOS source and body connect to the common 0 V datum. Both insulated gates connect to Vin. Both drains connect to Vout, with no external DC load. Positive Ip flows down from the positive supply; positive In flows down to datum. The body ties are explicit, not extra output branches.
Continuous voltage transfer and its local slope
Both lanes use Vin in volts. The upper lane shows every retained Vout sample and two exact slope-bound controls. Vertical guides mark VIL and VIH; the boundary markers use the separately retained roots. The lower lane shows dVout/dVin, not a finite voltage gain. Full currents, regions and power ledgers accompany every sample in the table.
- Unloaded static transfer
- Low input boundary: VIL, VOH
- High input boundary: VIH, VOL
- Local derivative dVout/dVin
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Unloaded complementary-MOS model parameters; not selected device ratings.
| Quantity | Value | Unit |
|---|---|---|
| Supply voltage | 3.3 | V |
| Threshold magnitude | 0.6 | V |
| Equal current coefficient | 0.002 | A/V² |
| Channel-length factor | 0.05 | 1/V |
Complete static inverter samples. Supply power = NMOS heat + PMOS heat; local gain is a derivative, not a finite input change.
| Case | Input (V) | Output (V) | NMOS region | PMOS region | NMOS current (A) | PMOS current (A) | Local output/input slope (V/V) | Supply power (W) | NMOS heat (W) | PMOS heat (W) |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0.05 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 3 | 0.1 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 4 | 0.15 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0.2 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 6 | 0.25 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 7 | 0.3 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 8 | 0.35 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 9 | 0.4 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 10 | 0.45 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 11 | 0.5 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 12 | 0.55 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 13 | 0.6 | 3.3 | cutoff | triode | 0 | 0 | 0 | 0 | 0 | 0 |
| 14 | 0.65 | ≈ 3.29928955793 | saturation | triode | ≈ 0.00000291241119474 | ≈ 0.00000291241119474 | ≈ -0.0287673864322 | ≈ 0.00000961095694265 | ≈ 0.00000960888784322 | ≈ 2.06909942678e-9 |
| 15 | 0.7 | ≈ 3.29708616583 | saturation | triode | ≈ 0.0000116485430829 | ≈ 0.0000116485430829 | ≈ -0.0597620482091 | ≈ 0.0000384401921736 | ≈ 0.0000384062502508 | ≈ 3.39419228178e-8 |
| 16 | 0.75 | ≈ 3.29327143826 | saturation | triode | ≈ 0.0000262049303680 | ≈ 0.0000262049303680 | ≈ -0.0932735523157 | ≈ 0.0000864762702145 | ≈ 0.0000862999487225 | ≈ 1.76321491978e-7 |
| 17 | 0.8 | ≈ 3.28771109503 | saturation | triode | ≈ 0.0000465754221901 | ≈ 0.0000465754221901 | ≈ -0.129650488107 | ≈ 0.000153698893227 | ≈ 0.000153126532290 | ≈ 5.72360937428e-7 |
| 18 | 0.85 | ≈ 3.28025161613 | saturation | triode | ≈ 0.0000727507863004 | ≈ 0.0000727507863004 | ≈ -0.169317065074 | ≈ 0.000240077594791 | ≈ 0.000238640884337 | ≈ 0.00000143671045443 |
| 19 | 0.9 | ≈ 3.27071592385 | saturation | triode | ≈ 0.000104718221657 | ≈ 0.000104718221657 | ≈ -0.212795801096 | ≈ 0.000345570131469 | ≈ 0.000342503555092 | ≈ 0.00000306657637704 |
| 20 | 0.95 | ≈ 3.25889772195 | saturation | triode | ≈ 0.000142460748547 | ≈ 0.000142460748547 | ≈ -0.260739133459 | ≈ 0.000470120470205 | ≈ 0.000464265008906 | ≈ 0.00000585546129865 |
| 21 | 1.0 | ≈ 3.24455394279 | saturation | triode | ≈ 0.000185956431542 | ≈ 0.000185956431542 | ≈ -0.313974422972 | ≈ 0.000613656224090 | ≈ 0.000603345673149 | ≈ 0.0000103105509412 |
| 22 | 1.05 | ≈ 3.22739446613 | saturation | triode | ≈ 0.000235177368970 | ≈ 0.000235177368970 | ≈ -0.373569623544 | ≈ 0.000776085317600 | ≈ 0.000759010139172 | ≈ 0.0000170751784279 |
| 23 | 1.1 | ≈ 3.20706779730 | saturation | triode | ≈ 0.000290088347466 | ≈ 0.000290088347466 | ≈ -0.440931865091 | ≈ 0.000957291546639 | ≈ 0.000930332997532 | ≈ 0.0000269585491071 |
| 24 | 1.15 | ≈ 3.18314057437 | saturation | triode | ≈ 0.000350645001187 | ≈ 0.000350645001187 | ≈ -0.517960421215 | ≈ 0.00115712850392 | ≈ 0.00111615233048 | ≈ 0.0000409761734401 |
| 25 | 1.2 | ≈ 3.15506730184 | saturation | triode | ≈ 0.000416791211433 | ≈ 0.000416791211433 | ≈ -0.607293514406 | ≈ 0.00137541099773 | ≈ 0.00131500432289 | ≈ 0.0000604066748416 |
| 26 | 1.25 | ≈ 3.12214392237 | saturation | triode | ≈ 0.000488455290360 | ≈ 0.000488455290360 | ≈ -0.712725621368 | ≈ 0.00161190245819 | ≈ 0.00152502771615 | ≈ 0.0000868747420410 |
| 27 | 1.3 | ≈ 3.08343322080 | saturation | triode | ≈ 0.000565544113910 | ≈ 0.000565544113910 | ≈ -0.839954695073 | ≈ 0.00186629557590 | ≈ 0.00174381750866 | ≈ 0.000122478067242 |
| 28 | 1.35 | ≈ 3.03763782723 | saturation | triode | ≈ 0.000647933563891 | ≈ 0.000647933563891 | ≈ -0.998019897238 | ≈ 0.00213818076084 | ≈ 0.00196818750320 | ≈ 0.000169993257635 |
| 29 | 1.4 | ≈ 2.98286723932 | saturation | triode | ≈ 0.000735451751658 | ≈ 0.000735451751658 | ≈ -1.20233818718 | ≈ 0.00242699078047 | ≈ 0.00219375493612 | ≈ 0.000233235844349 |
| 30 | 1.45 | ≈ 2.91616521078 | saturation | triode | ≈ 0.000827846468239 | ≈ 0.000827846468239 | ≈ -1.48198158880 | ≈ 0.00273189334519 | ≈ 0.00241413707055 | ≈ 0.000317756274644 |
| 31 | 1.5 | ≈ 2.83240251135 | saturation | triode | ≈ 0.000924712301710 | ≈ 0.000924712301710 | ≈ -1.90062247697 | ≈ 0.00305155059564 | ≈ 0.00261915744564 | ≈ 0.000432393150002 |
| 32 | 1.55 | ≈ 2.72101682097 | saturation | triode | ≈ 0.00102528588405 | ≈ 0.00102528588405 | ≈ -2.63769726412 | ≈ 0.00338344341735 | ≈ 0.00278982013679 | ≈ 0.000593623280564 |
| 33 | 1.6 | ≈ 2.55093949158 | saturation | triode | ≈ 0.00112754697458 | ≈ 0.00112754697458 | ≈ -4.57571773732 | ≈ 0.00372090501611 | ≈ 0.00287630410606 | ≈ 0.000844600910050 |
| 34 | 1.65 | 1.65 | saturation | saturation | 0.00119345625 | 0.00119345625 | ≈ -41.2380952381 | 0.003938405625 | 0.0019692028125 | 0.0019692028125 |
| 35 | 1.7 | ≈ 0.749060508424 | triode | saturation | ≈ 0.00112754697458 | ≈ 0.00112754697458 | ≈ -4.57571773732 | ≈ 0.00372090501611 | ≈ 0.000844600910050 | ≈ 0.00287630410606 |
| 36 | 1.75 | ≈ 0.578983179035 | triode | saturation | ≈ 0.00102528588405 | ≈ 0.00102528588405 | ≈ -2.63769726412 | ≈ 0.00338344341735 | ≈ 0.000593623280564 | ≈ 0.00278982013679 |
| 37 | 1.8 | ≈ 0.467597488649 | triode | saturation | ≈ 0.000924712301710 | ≈ 0.000924712301710 | ≈ -1.90062247697 | ≈ 0.00305155059564 | ≈ 0.000432393150002 | ≈ 0.00261915744564 |
| 38 | 1.85 | ≈ 0.383834789221 | triode | saturation | ≈ 0.000827846468239 | ≈ 0.000827846468239 | ≈ -1.48198158880 | ≈ 0.00273189334519 | ≈ 0.000317756274644 | ≈ 0.00241413707055 |
| 39 | 1.9 | ≈ 0.317132760678 | triode | saturation | ≈ 0.000735451751658 | ≈ 0.000735451751658 | ≈ -1.20233818718 | ≈ 0.00242699078047 | ≈ 0.000233235844349 | ≈ 0.00219375493612 |
| 40 | 1.95 | ≈ 0.262362172774 | triode | saturation | ≈ 0.000647933563891 | ≈ 0.000647933563891 | ≈ -0.998019897238 | ≈ 0.00213818076084 | ≈ 0.000169993257635 | ≈ 0.00196818750320 |
| 41 | 2.0 | ≈ 0.216566779195 | triode | saturation | ≈ 0.000565544113910 | ≈ 0.000565544113910 | ≈ -0.839954695073 | ≈ 0.00186629557590 | ≈ 0.000122478067242 | ≈ 0.00174381750866 |
| 42 | 2.05 | ≈ 0.177856077630 | triode | saturation | ≈ 0.000488455290360 | ≈ 0.000488455290360 | ≈ -0.712725621368 | ≈ 0.00161190245819 | ≈ 0.0000868747420410 | ≈ 0.00152502771615 |
| 43 | 2.1 | ≈ 0.144932698158 | triode | saturation | ≈ 0.000416791211433 | ≈ 0.000416791211433 | ≈ -0.607293514406 | ≈ 0.00137541099773 | ≈ 0.0000604066748416 | ≈ 0.00131500432289 |
| 44 | 2.15 | ≈ 0.116859425634 | triode | saturation | ≈ 0.000350645001187 | ≈ 0.000350645001187 | ≈ -0.517960421215 | ≈ 0.00115712850392 | ≈ 0.0000409761734401 | ≈ 0.00111615233048 |
| 45 | 2.2 | ≈ 0.0929322026982 | triode | saturation | ≈ 0.000290088347466 | ≈ 0.000290088347466 | ≈ -0.440931865091 | ≈ 0.000957291546639 | ≈ 0.0000269585491071 | ≈ 0.000930332997532 |
| 46 | 2.25 | ≈ 0.0726055338687 | triode | saturation | ≈ 0.000235177368970 | ≈ 0.000235177368970 | ≈ -0.373569623544 | ≈ 0.000776085317600 | ≈ 0.0000170751784279 | ≈ 0.000759010139172 |
| 47 | 2.3 | ≈ 0.0554460572066 | triode | saturation | ≈ 0.000185956431542 | ≈ 0.000185956431542 | ≈ -0.313974422972 | ≈ 0.000613656224090 | ≈ 0.0000103105509412 | ≈ 0.000603345673149 |
| 48 | 2.35 | ≈ 0.0411022780546 | triode | saturation | ≈ 0.000142460748547 | ≈ 0.000142460748547 | ≈ -0.260739133459 | ≈ 0.000470120470205 | ≈ 0.00000585546129865 | ≈ 0.000464265008906 |
| 49 | 2.4 | ≈ 0.0292840761474 | triode | saturation | ≈ 0.000104718221657 | ≈ 0.000104718221657 | ≈ -0.212795801096 | ≈ 0.000345570131469 | ≈ 0.00000306657637704 | ≈ 0.000342503555092 |
| 50 | 2.45 | ≈ 0.0197483838662 | triode | saturation | ≈ 0.0000727507863004 | ≈ 0.0000727507863004 | ≈ -0.169317065074 | ≈ 0.000240077594791 | ≈ 0.00000143671045443 | ≈ 0.000238640884337 |
| 51 | 2.5 | ≈ 0.0122889049742 | triode | saturation | ≈ 0.0000465754221901 | ≈ 0.0000465754221901 | ≈ -0.129650488107 | ≈ 0.000153698893227 | ≈ 5.72360937428e-7 | ≈ 0.000153126532290 |
| 52 | 2.55 | ≈ 0.00672856174399 | triode | saturation | ≈ 0.0000262049303680 | ≈ 0.0000262049303680 | ≈ -0.0932735523157 | ≈ 0.0000864762702145 | ≈ 1.76321491978e-7 | ≈ 0.0000862999487225 |
| 53 | 2.6 | ≈ 0.00291383416588 | triode | saturation | ≈ 0.0000116485430829 | ≈ 0.0000116485430829 | ≈ -0.0597620482091 | ≈ 0.0000384401921736 | ≈ 3.39419228178e-8 | ≈ 0.0000384062502508 |
| 54 | 2.65 | ≈ 0.000710442066189 | triode | saturation | ≈ 0.00000291241119474 | ≈ 0.00000291241119474 | ≈ -0.0287673864322 | ≈ 0.00000961095694265 | ≈ 2.06909942678e-9 | ≈ 0.00000960888784322 |
| 55 | 2.7 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 56 | 2.75 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 57 | 2.8 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 58 | 2.85 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 59 | 2.9 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 60 | 2.95 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 61 | 3.0 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 62 | 3.05 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 63 | 3.1 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 64 | 3.15 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 65 | 3.2 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 66 | 3.25 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
| 67 | 3.3 | 0 | triode | cutoff | 0 | 0 | 0 | 0 | 0 | 0 |
Slope-bound accepted input bands and their mapped output bands. These are this unloaded model’s conservative static margins.
| Quantity | Value | Unit |
|---|---|---|
| Largest accepted low input VIL | ≈ 1.35055591191 | V |
| Smallest accepted high input VIH | ≈ 1.94944408809 | V |
| Largest mapped low output VOL | ≈ 0.262917534046 | V |
| Smallest mapped high output VOH | ≈ 3.03708246595 | V |
| Mapped-band low noise margin | ≈ 1.08763837787 | V |
| Mapped-band high noise margin | ≈ 1.08763837787 | V |
| Local slope at VIL | -1.0 | V/V |
| Local slope at VIH | -1.0 | V/V |
Nominal rail headroom is a separate reference; it is not the conservative mapped-band margin.
| Quantity | Value | Unit |
|---|---|---|
| Nominal low rail | 0 | V |
| Nominal high rail | 3.3 | V |
| Low rail → VIL headroom | ≈ 1.35055591191 | V |
| VIH → high rail headroom | ≈ 1.35055591191 | V |
Scope control: negative input domain.
| Quantity | Value | Unit |
|---|---|---|
| Out-of-domain input | -0.1 | V |
| Admitted output prediction | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | Input outside declared0..VDD interval; no extrapolated physical prediction. | Not a numerical quantity |
Scope control: above rail input domain.
| Quantity | Value | Unit |
|---|---|---|
| Out-of-domain input | 3.4 | V |
| Admitted output prediction | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | Input outside declared0..VDD interval. | Not a numerical quantity |
Scope control: lambda0 symmetric degeneracy.
| Quantity | Value | Unit |
|---|---|---|
| Channel-length factor | 0 | 1/V |
| Input voltage | 1.65 | V |
| Nonunique output interval | 1.05; 2.25 | V |
| Unique output prediction | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | Equal ideal saturation currents permit every output in this interval; midpoint is not uniquely selected. | Not a numerical quantity |
Scope control: logic undefined band.
| Quantity | Value | Unit |
|---|---|---|
| Input at undefined logic band | 1.65 | V |
| Guaranteed Boolean value | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | Static analog midpoint is not a guaranteed high or low logic band. | Not a numerical quantity |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Respect an ideal-model degeneracy
If λ is set to zero while the symmetric input remains1.65 V, both ideal saturated device currents become independent of output voltage. In this simplified model they are equal for every output from 1.05 V through 2.25 V, where both devices remain in saturation. KCL then does not pick a unique output in that interval.
Assigning1.65 V by symmetry is one possible equilibrium value, but it is not a unique solution selected by those zero-λ equations. Finite output conductance, imbalance, loading and other physical effects can resolve the ambiguity. A numerical solver returning a midpoint is not independent evidence that the degenerate model had a unique prediction.
This example connects digital circuits to the earlier lessons on linearization and model regions. A formal equation can lose information at a limit, and an apparently neat answer can conceal that loss. Preserve the nonuniqueness explicitly rather than tightening a solver tolerance until it hides the issue.
Separate a loaded switch model from the transfer curve
For a different simple model, replace an on p-channel path by R_p=1 kΩ and put R_L=100 kΩ from output to ground. With V_DD=3.3 V and the pull-down path off, the high output is v_o=V_DD R_L/(R_p+R_L)=3.26732673 V. The DC supply current is 32.6732673 μA.
This load draws power even though the input represents a steady low and the output represents a steady high. Supply power V_DD I divides between I²R_p and I²R_L; the output voltage is reduced by the pull-up drop. A stronger load or weaker pull-up can invalidate a receiver's high-level requirement.
This resistor model and the preceding unloaded transistor transfer curve answer different questions. Do not copy the loaded-switch output into the unloaded MOS calculation, or infer a transistor's resistance over all voltages from one chosen R_p. The resistor model is useful for an explicit approximation to charging and loading, with its own boundaries.
Derive charging delays from charge conservation
Open that external DC load for a separate switched-capacitor example. Let the output capacitance be C_L=20 pF, the pull-up resistance1 kΩ and the pull-down resistance500 Ω. Assume an instantaneous change between the two fixed-resistance switch states and a complete prior rail voltage. The rising equation is C_L dv_o/dt=(V_DD−v_o)/R_p; the falling equation is C_L dv_o/dt=−v_o/R_n.
The resulting waveforms are v_rise=V_DD[1−exp(−t/τ_r)] and v_fall=V_DD exp(−t/τ_f), with τ_r=R_pC_L=20 ns and τ_f=R_nC_L=10 ns. Setting either waveform equal to half its swing gives t_pLH=ln2 τ_r≈13.8629436 ns and t_pHL=ln2 τ_f≈6.93147181 ns.
A10%to90% rise takes ln9 τ_r≈43.9444915 ns; the corresponding90%to10% fall takes ln9 τ_f≈21.9722458 ns. Rise time, propagation delay and clock period are different definitions. Real gate delay depends on nonlinear drive, input slew, voltage, load and temperature, so the fixed-resistance exponential is a teaching approximation rather than a technology timing library.
Count fanout and interconnect capacitance
A gate usually drives several inputs and some wiring. In a simple load model, let the driver and wiring contribute5 pF and let each receiving input add5 pF. Then C_L=(5+5N)pF for fanout N. The total is 10 pF,20 pF and50 pF at N=1,3 and9 respectively.
With the fixed1 kΩ pull-up, the half-swing rising delays are approximately 6.93147 ns,13.86294 ns and34.65736 ns. The capacitance enters both delay and charging energy. Adding receiving gates can therefore consume timing and power margin even though their DC input currents are negligible in the ideal model.
Long interconnect can also have distributed resistance, capacitance, inductance, crosstalk and transmission-line behavior. Buffers can trade extra stages and input energy for drive and delay. A lumped single-RC model should not be extended to an arbitrary wire merely because both have capacitance.
Account for a complete switching cycle
Charge an initially empty capacitor C from an ideal constant source V_DD through a resistor. The source transfers charge Q=CV_DD and supplies energy E_source=V_DD Q=CV_DD². The stored field energy at the final voltage is CV_DD²/2; the other half is dissipated during charging in this ideal resistive path.
Discharging the capacitor to ground through a resistor dissipates its stored half. A complete settled0→1→0 cycle therefore draws CV_DD² from the supply and dissipates that amount in the two switch phases. For20 pF and3.3 V the cycle energy is 217.8 pJ, with108.9 pJ stored at the high state.
For average dynamic power write P_dyn=α_01 C_L V_DD² f when α_01 is the mean number of 0→1 charging events per clock cycle. If α_01=0.2 and f=100 MHz, the example gives 4.356 mW. A convention counting all transitions requires the corresponding factor change. Leakage, short-circuit overlap, internal nodes, clocks and supply losses are additional contributions; do not count the same charging event twice.
Charging time and switching energy belong to a stated load
These rising and falling curves start from complete opposite rail states with the external resistive load open. Rp=1 kΩ, Rn=500 Ω and C=20 pF. The separate 100 kΩ static-load ledger is not the unloaded MOS transfer. Fanout changes capacitance. A complete charge/discharge cycle draws C VDD²; α01 counts only rising events when estimating dynamic source power.
Opposite initial states under two switch resistances
All 101 samples are connected in time order. The solid circle key is charging through Rp=1 kΩ; the dashed square key is discharging through Rn=500 Ω. Horizontal time is nanoseconds and vertical output is volts. The external 100 kΩ DC load is open in these transients.
- Rising: Rp=1 kΩ
- Falling: Rn=500 Ω
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Separate loaded resistive switch, with external 100 kΩ load. This ledger does not modify the unloaded MOS transfer model.
| Quantity | Value | Unit |
|---|---|---|
| Static high output | ≈ 3.26732673267 | V |
| Supply/load current | ≈ 0.0000326732673267 | A |
| Source power | ≈ 0.000107821782178 | W |
| Pull-up heat | ≈ 0.00000106754239780 | W |
| Load heat | ≈ 0.000106754239780 | W |
Open-load switched-capacitor model: complete initial states, constant switch resistance and positive delays.
| Quantity | Value | Unit |
|---|---|---|
| Load capacitance | 2e-11 | F |
| Charging resistance | 1000.0 | Ω |
| Discharging resistance | 500.0 | Ω |
| Rise time constant | 2e-8 | s |
| Fall time constant | 1e-8 | s |
| Rising 50% crossing | ≈ 1.38629436112e-8 | s |
| Falling 50% crossing | ≈ 6.93147180560e-9 | s |
| 10% → 90% rise time | ≈ 4.39444915467e-8 | s |
| 90% → 10% fall time | ≈ 2.19722457734e-8 | s |
All time samples of the separate open-load switch. Falling derivative is signed.
| Case | Time (s) | Rising voltage (V) | Falling voltage (V) | Rising slope (V/s) | Falling slope (V/s) |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 3.3 | 165000000.0 | -330000000.0 |
| 2 | 1e-9 | ≈ 0.160942899148 | ≈ 2.98596347952 | ≈ 156952855.043 | ≈ -298596347.952 |
| 3 | 2e-9 | ≈ 0.314036520481 | ≈ 2.70181148516 | ≈ 149298173.976 | ≈ -270181148.516 |
| 4 | 3e-9 | ≈ 0.459663677797 | ≈ 2.44470012825 | ≈ 142016816.110 | ≈ -244470012.825 |
| 5 | 4e-9 | ≈ 0.598188514843 | ≈ 2.21205615192 | ≈ 135090574.258 | ≈ -221205615.192 |
| 6 | 5e-9 | ≈ 0.729957415864 | ≈ 2.00155117705 | ≈ 128502129.207 | ≈ -200155117.705 |
| 7 | 6e-9 | ≈ 0.855299871750 | ≈ 1.81107839911 | ≈ 122235006.412 | ≈ -181107839.911 |
| 8 | 7e-9 | ≈ 0.974529303928 | ≈ 1.63873150251 | ≈ 116273534.804 | ≈ -163873150.251 |
| 9 | 8e-9 | ≈ 1.08794384808 | ≈ 1.48278558159 | ≈ 110602807.596 | ≈ -148278558.159 |
| 10 | 9e-9 | ≈ 1.19582709965 | ≈ 1.34167987714 | ≈ 105208645.018 | ≈ -134167987.714 |
| 11 | 1e-8 | ≈ 1.29844882295 | ≈ 1.21400215587 | ≈ 100077558.853 | ≈ -121400215.587 |
| 12 | 1.1e-8 | ≈ 1.39606562574 | ≈ 1.09847457620 | ≈ 95196718.7128 | ≈ -109847457.620 |
| 13 | 1.2e-8 | ≈ 1.48892160089 | ≈ 0.993940899310 | ≈ 90553919.9555 | ≈ -99394089.9310 |
| 14 | 1.3e-8 | ≈ 1.57724893669 | ≈ 0.899354917012 | ≈ 86137553.1656 | ≈ -89935491.7012 |
| 15 | 1.4e-8 | ≈ 1.66126849749 | ≈ 0.813769981007 | ≈ 81936575.1256 | ≈ -81376998.1007 |
| 16 | 1.5e-8 | ≈ 1.74119037595 | ≈ 0.736329528490 | ≈ 77940481.2023 | ≈ -73632952.8490 |
| 17 | 1.6e-8 | ≈ 1.81721441841 | ≈ 0.666258509382 | ≈ 74139279.0793 | ≈ -66625850.9382 |
| 18 | 1.7e-8 | ≈ 1.88953072457 | ≈ 0.602855629374 | ≈ 70523463.7715 | ≈ -60285562.9374 |
| 19 | 1.8e-8 | ≈ 1.95832012286 | ≈ 0.545486331131 | ≈ 67083993.8572 | ≈ -54548633.1131 |
| 20 | 1.9e-8 | ≈ 2.02375462260 | ≈ 0.493576443435 | ≈ 63812268.8700 | ≈ -49357644.3435 |
| 21 | 2e-8 | ≈ 2.08599784413 | ≈ 0.446606434681 | ≈ 60700107.7933 | ≈ -44660643.4681 |
| 22 | 2.1e-8 | ≈ 2.14520542793 | ≈ 0.404106213235 | ≈ 57739728.6033 | ≈ -40410621.3235 |
| 23 | 2.2e-8 | ≈ 2.20152542380 | ≈ 0.365650422596 | ≈ 54923728.8102 | ≈ -36565042.2596 |
| 24 | 2.3e-8 | ≈ 2.25509866105 | ≈ 0.330854184285 | ≈ 52245066.9475 | ≈ -33085418.4285 |
| 25 | 2.4e-8 | ≈ 2.30605910069 | ≈ 0.299369245855 | ≈ 49697044.9655 | ≈ -29936924.5855 |
| 26 | 2.5e-8 | ≈ 2.35453417036 | ≈ 0.270880495459 | ≈ 47273291.4819 | ≈ -27088049.5459 |
| 27 | 2.6e-8 | ≈ 2.40064508299 | ≈ 0.245102808107 | ≈ 44967745.8506 | ≈ -24510280.8107 |
| 28 | 2.7e-8 | ≈ 2.44450713987 | ≈ 0.221778192041 | ≈ 42774643.0066 | ≈ -22177819.2041 |
| 29 | 2.8e-8 | ≈ 2.48623001899 | ≈ 0.200673206663 | ≈ 40688499.0504 | ≈ -20067320.6663 |
| 30 | 2.9e-8 | ≈ 2.52591804929 | ≈ 0.181576626186 | ≈ 38704097.5355 | ≈ -18157662.6186 |
| 31 | 3e-8 | ≈ 2.56367047151 | ≈ 0.164297325614 | ≈ 36816476.4245 | ≈ -16429732.5614 |
| 32 | 3.1e-8 | ≈ 2.59958168637 | ≈ 0.148662367899 | ≈ 35020915.6814 | ≈ -14866236.7899 |
| 33 | 3.2e-8 | ≈ 2.63374149062 | ≈ 0.134515273129 | ≈ 33312925.4691 | ≈ -13451527.3129 |
| 34 | 3.3e-8 | ≈ 2.66623530155 | ≈ 0.121714452424 | ≈ 31688234.9224 | ≈ -12171445.2424 |
| 35 | 3.4e-8 | ≈ 2.69714437063 | ≈ 0.110131790869 | ≈ 30142781.4687 | ≈ -11013179.0869 |
| 36 | 3.5e-8 | ≈ 2.72654598661 | ≈ 0.0996513652937 | ≈ 28672700.6693 | ≈ -9965136.52937 |
| 37 | 3.6e-8 | ≈ 2.75451366887 | ≈ 0.0901682840761 | ≈ 27274316.5566 | ≈ -9016828.40761 |
| 38 | 3.7e-8 | ≈ 2.78111735117 | ≈ 0.0815876373521 | ≈ 25944132.4417 | ≈ -8158763.73521 |
| 39 | 3.8e-8 | ≈ 2.80642355657 | ≈ 0.0738235471253 | ≈ 24678822.1717 | ≈ -7382354.71253 |
| 40 | 3.9e-8 | ≈ 2.83049556376 | ≈ 0.0667983077712 | ≈ 23475221.8118 | ≈ -6679830.77712 |
| 41 | 4e-8 | ≈ 2.85339356532 | ≈ 0.0604416083328 | ≈ 22330321.7340 | ≈ -6044160.83328 |
| 42 | 4.1e-8 | ≈ 2.87517481816 | ≈ 0.0546898288258 | ≈ 21241259.0920 | ≈ -5468982.88258 |
| 43 | 4.2e-8 | ≈ 2.89589378677 | ≈ 0.0494854035076 | ≈ 20205310.6617 | ≈ -4948540.35076 |
| 44 | 4.3e-8 | ≈ 2.91560227935 | ≈ 0.0447762447403 | ≈ 19219886.0326 | ≈ -4477624.47403 |
| 45 | 4.4e-8 | ≈ 2.93434957740 | ≈ 0.0405152216801 | ≈ 18282521.1298 | ≈ -4051522.16801 |
| 46 | 4.5e-8 | ≈ 2.95218255895 | ≈ 0.0366596885762 | ≈ 17390872.0527 | ≈ -3665968.85762 |
| 47 | 4.6e-8 | ≈ 2.96914581571 | ≈ 0.0331710579573 | ≈ 16542709.2143 | ≈ -3317105.79573 |
| 48 | 4.7e-8 | ≈ 2.98528176469 | ≈ 0.0300144144356 | ≈ 15735911.7656 | ≈ -3001441.44356 |
| 49 | 4.8e-8 | ≈ 3.00063075414 | ≈ 0.0271581652618 | ≈ 14968462.2928 | ≈ -2715816.52618 |
| 50 | 4.9e-8 | ≈ 3.01523116455 | ≈ 0.0245737241341 | ≈ 14238441.7724 | ≈ -2457372.41341 |
| 51 | 5e-8 | ≈ 3.02911950454 | ≈ 0.0222352250970 | ≈ 13544024.7729 | ≈ -2223522.50970 |
| 52 | 5.1e-8 | ≈ 3.04233050220 | ≈ 0.0201192636662 | ≈ 12883474.8902 | ≈ -2011926.36662 |
| 53 | 5.2e-8 | ≈ 3.05489719189 | ≈ 0.0182046625885 | ≈ 12255140.4054 | ≈ -1820466.25885 |
| 54 | 5.3e-8 | ≈ 3.06685099690 | ≈ 0.0164722598928 | ≈ 11657450.1550 | ≈ -1647225.98928 |
| 55 | 5.4e-8 | ≈ 3.07822180796 | ≈ 0.0149047171106 | ≈ 11088909.6021 | ≈ -1490471.71106 |
| 56 | 5.5e-8 | ≈ 3.08903805802 | ≈ 0.0134863457469 | ≈ 10548097.0991 | ≈ -1348634.57469 |
| 57 | 5.6e-8 | ≈ 3.09932679334 | ≈ 0.0122029502644 | ≈ 10033660.3332 | ≈ -1220295.02644 |
| 58 | 5.7e-8 | ≈ 3.10911374111 | ≈ 0.0110416860097 | ≈ 9544312.94435 | ≈ -1104168.60097 |
| 59 | 5.8e-8 | ≈ 3.11842337381 | ≈ 0.00999093065974 | ≈ 9078831.30931 | ≈ -999093.065974 |
| 60 | 5.9e-8 | ≈ 3.12727897037 | ≈ 0.00904016790194 | ≈ 8636051.48149 | ≈ -904016.790194 |
| 61 | 6e-8 | ≈ 3.13570267439 | ≈ 0.00817988218300 | ≈ 8214866.28070 | ≈ -817988.218300 |
| 62 | 6.1e-8 | ≈ 3.14371554951 | ≈ 0.00740146347430 | ≈ 7814222.52454 | ≈ -740146.347430 |
| 63 | 6.2e-8 | ≈ 3.15133763210 | ≈ 0.00669712109978 | ≈ 7433118.39494 | ≈ -669712.109978 |
| 64 | 6.3e-8 | ≈ 3.15858798134 | ≈ 0.00605980576420 | ≈ 7070600.93306 | ≈ -605980.576420 |
| 65 | 6.4e-8 | ≈ 3.16548472687 | ≈ 0.00548313900147 | ≈ 6725763.65643 | ≈ -548313.900147 |
| 66 | 6.5e-8 | ≈ 3.17204511416 | ≈ 0.00496134933683 | ≈ 6397744.29223 | ≈ -496134.933683 |
| 67 | 6.6e-8 | ≈ 3.17828554758 | ≈ 0.00448921452391 | ≈ 6085722.62120 | ≈ -448921.452391 |
| 68 | 6.7e-8 | ≈ 3.18422163147 | ≈ 0.00406200927882 | ≈ 5788918.42664 | ≈ -406200.927882 |
| 69 | 6.8e-8 | ≈ 3.18986820913 | ≈ 0.00367545798789 | ≈ 5506589.54345 | ≈ -367545.798789 |
| 70 | 6.9e-8 | ≈ 3.19523939995 | ≈ 0.00332569191586 | ≈ 5238030.00238 | ≈ -332569.191586 |
| 71 | 7e-8 | ≈ 3.20034863471 | ≈ 0.00300921048633 | ≈ 4982568.26468 | ≈ -300921.048633 |
| 72 | 7.1e-8 | ≈ 3.20520868914 | ≈ 0.00272284624678 | ≈ 4739565.54295 | ≈ -272284.624678 |
| 73 | 7.2e-8 | ≈ 3.20983171592 | ≈ 0.00246373316764 | ≈ 4508414.20380 | ≈ -246373.316764 |
| 74 | 7.3e-8 | ≈ 3.21422927503 | ≈ 0.00222927795814 | ≈ 4288536.24849 | ≈ -222927.795814 |
| 75 | 7.4e-8 | ≈ 3.21841236265 | ≈ 0.00201713411173 | ≈ 4079381.86761 | ≈ -201713.411173 |
| 76 | 7.5e-8 | ≈ 3.22239143868 | ≈ 0.00182517842149 | ≈ 3880428.06624 | ≈ -182517.842149 |
| 77 | 7.6e-8 | ≈ 3.22617645287 | ≈ 0.00165148973035 | ≈ 3691177.35627 | ≈ -165148.973035 |
| 78 | 7.7e-8 | ≈ 3.22977686975 | ≈ 0.00149432970353 | ≈ 3511156.51233 | ≈ -149432.970353 |
| 79 | 7.8e-8 | ≈ 3.23320169223 | ≈ 0.00135212543063 | ≈ 3339915.38856 | ≈ -135212.543063 |
| 80 | 7.9e-8 | ≈ 3.23645948414 | ≈ 0.00122345368351 | ≈ 3177025.79294 | ≈ -122345.368351 |
| 81 | 8e-8 | ≈ 3.23955839167 | ≈ 0.00110702667208 | ≈ 3022080.41664 | ≈ -110702.667208 |
| 82 | 8.1e-8 | ≈ 3.24250616369 | ≈ 0.00100167915566 | ≈ 2874691.81552 | ≈ -100167.915566 |
| 83 | 8.2e-8 | ≈ 3.24531017117 | ≈ 0.000906356780908 | ≈ 2734491.44129 | ≈ -90635.6780908 |
| 84 | 8.3e-8 | ≈ 3.24797742560 | ≈ 0.000820105529456 | ≈ 2601128.72000 | ≈ -82010.5529456 |
| 85 | 8.4e-8 | ≈ 3.25051459649 | ≈ 0.000742062169790 | ≈ 2474270.17538 | ≈ -74206.2169790 |
| 86 | 8.5e-8 | ≈ 3.25292802810 | ≈ 0.000671445617735 | ≈ 2353598.59498 | ≈ -67144.5617735 |
| 87 | 8.6e-8 | ≈ 3.25522375526 | ≈ 0.000607549119103 | ≈ 2238812.23701 | ≈ -60754.9119103 |
| 88 | 8.7e-8 | ≈ 3.25740751848 | ≈ 0.000549733176259 | ≈ 2129624.07578 | ≈ -54973.3176259 |
| 89 | 8.8e-8 | ≈ 3.25948477832 | ≈ 0.000497419147815 | ≈ 2025761.08401 | ≈ -49741.9147815 |
| 90 | 8.9e-8 | ≈ 3.26146072900 | ≈ 0.000450083457391 | ≈ 1926963.55012 | ≈ -45008.3457391 |
| 91 | 9e-8 | ≈ 3.26334031142 | ≈ 0.000407252353486 | ≈ 1832984.42881 | ≈ -40725.2353486 |
| 92 | 9.1e-8 | ≈ 3.26512822553 | ≈ 0.000368497168017 | ≈ 1743588.72334 | ≈ -36849.7168017 |
| 93 | 9.2e-8 | ≈ 3.26682894204 | ≈ 0.000333430026062 | ≈ 1658552.89786 | ≈ -33343.0026062 |
| 94 | 9.3e-8 | ≈ 3.26844671363 | ≈ 0.000301699963878 | ≈ 1577664.31854 | ≈ -30169.9963878 |
| 95 | 9.4e-8 | ≈ 3.26998558556 | ≈ 0.000272989416337 | ≈ 1500720.72178 | ≈ -27298.9416337 |
| 96 | 9.5e-8 | ≈ 3.27144940583 | ≈ 0.000247011038629 | ≈ 1427529.70851 | ≈ -24701.1038629 |
| 97 | 9.6e-8 | ≈ 3.27284183474 | ≈ 0.000223504830420 | ≈ 1357908.26309 | ≈ -22350.4830420 |
| 98 | 9.7e-8 | ≈ 3.27416635409 | ≈ 0.000202235533676 | ≈ 1291682.29562 | ≈ -20223.5533676 |
| 99 | 9.8e-8 | ≈ 3.27542627587 | ≈ 0.000182990278126 | ≈ 1228686.20670 | ≈ -18299.0278126 |
| 100 | 9.9e-8 | ≈ 3.27662475053 | ≈ 0.000165576450785 | ≈ 1168762.47329 | ≈ -16557.6450785 |
| 101 | 1e-7 | ≈ 3.27776477490 | ≈ 0.000149819768216 | ≈ 1111761.25485 | ≈ -14981.9768216 |
Fanout changes capacitance, crossings and full-cycle source energy in the same separate switch model.
| Case | Input count | Capacitance (F) | Rising half-delay (s) | Falling half-delay (s) | Rise time (s) | Cycle source energy (J) |
|---|---|---|---|---|---|---|
| 1 | 1 | 1e-11 | ≈ 6.93147180560e-9 | ≈ 3.46573590280e-9 | ≈ 2.19722457734e-8 | 1.089e-10 |
| 2 | 3 | 2e-11 | ≈ 1.38629436112e-8 | ≈ 6.93147180560e-9 | ≈ 4.39444915467e-8 | 2.178e-10 |
| 3 | 9 | 5e-11 | ≈ 3.46573590280e-8 | ≈ 1.73286795140e-8 | ≈ 1.09861228867e-7 | 5.445e-10 |
A complete charge/discharge cycle; α01 counts rising events per clock, not both edges.
| Quantity | Value | Unit |
|---|---|---|
| Source energy during charging | 2.178e-10 | J |
| Stored capacitor energy at high | 1.089e-10 | J |
| Heat during charging | 1.089e-10 | J |
| Heat during discharging | 1.089e-10 | J |
| Full-cycle source energy | 2.178e-10 | J |
| Rising events per clock | 0.2 | 1 |
| Clock frequency | 100000000.0 | Hz |
| Activity-weighted source power | 0.004356 | W |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Implement networks and account for their paths
In a complementary CMOS NAND, the n-channel pull-down transistors form a series path controlled by the inputs, while the p-channel pull-up transistors form parallel paths. The output is pulled low only when every required n-channel path is on. A NOR uses the dual arrangement. Series and parallel networks realize Boolean conditions through actual conducting connections.
The paths need not have the same drive as a single inverter. Series devices, internal node capacitance, input arrival order and device sizes affect the dynamics. A Boolean transformation can reduce one gate count while worsening fanout or creating a longer physical path. Area, energy and timing are engineering objectives constrained by the chosen technology.
For a combinational circuit, propagation delay bounds the time by which the correct stable output is assured after stable inputs, under its timing model. Contamination delay describes an earliest possible output change. The longest and shortest sensitizable paths can both matter. Neither bound alone specifies the exact transient waveform, and a truth table contains neither delay.
See a hazard that the truth table hides
Consider F=(a AND b) OR[(NOT a) AND c], with b=c=1. Its stable Boolean value is one for either value of a. Now let a fall from one to zero at t=0. In a declared ideal event model, suppose the direct product ab falls at 2 ns and the inverted product(NOT a)c rises at 5 ns, with a zero-delay final OR.
Between2 ns inclusive and5 ns exclusive, both product terms are zero, so the output has a three-nanosecond low pulse. This is a static-one hazard: the intended stable value stays one, yet unequal path arrivals create a transient low. It can matter if a receiving element interprets the pulse as data, a clock or an asynchronous control.
The consensus term bc is constantly one in this single-input example. Adding it gives F=ab+(NOT a)c+bc and suppresses the declared glitch without changing the stable truth table. This remedy is scoped to the topology, input event and delay assumptions. It does not prove an arbitrary multi-input implementation free of all dynamic hazards or analog disturbances.
Store state with feedback and a clock
Combinational outputs depend on current inputs after their delays. Sequential circuits also depend on stored state. Two cross-coupled restoring stages can support two stable states; a latch admits input changes while its control is active, while an edge-triggered flip-flop samples according to its specified clock interface.
A D flip-flop is often described as making Q equal to D at a clock edge. That description includes a dynamic discipline: D must be valid for a setup interval before the sampling edge and a hold interval after it, while the clock itself meets its electrical and timing requirements. Clock-to-Q delay separates the edge from the resulting output. A logical edge is an abstraction of a physical waveform with a finite transition.
In a synchronous state machine, registers hold the present state and combinational logic computes the next state. The clock period must allow the latest next-state value to reach its receiving register, and the earliest following change must not corrupt the current capture. The same circuit can therefore satisfy a maximum-delay condition and fail a minimum-delay condition.
Derive setup from the next capture edge
Place a launch clock edge at time zero and let the next capture edge occur at T+Δ, where Δ is capture-clock time minus launch-clock time. The latest new data arrives after t_cq,max+t_pd,comb,max. With setup time t_setup and a separate conservative setup uncertainty U_s, require t_cq,max+t_pd,comb,max≤T+Δ−t_setup−U_s.
Define setup slack as S_setup=T+Δ−U_s−t_cq,max−t_pd,comb,max−t_setup. Nonnegative slack means this declared maximum-delay inequality is satisfied. Positive capture-minus-launch skew gives the data more time for this next-edge setup test. Stating the skew sign is essential because some timing conventions define it in the opposite direction.
With T=10 ns, Δ=0.3 ns, U_s=0.2 ns, t_cq,max=1.5 ns, t_pd,comb,max=6 ns and t_setup=1 ns, the slack is 1.6 ns. Reducing only the period to8 ns makes it−0.4 ns. That failure must remain a failed timing prediction, rather than being called safe because the average delay is smaller.
Derive hold from the earliest new data
For the corresponding same-cycle hold test, the capture edge is at Δ relative to the launch edge. The earliest new data can arrive after t_cq,min+t_cd,comb,min. It must not arrive before the receiving hold interval ends. With hold uncertainty U_h, require t_cq,min+t_cd,comb,min≥Δ+t_hold+U_h.
Hold slack is S_hold=t_cq,min+t_cd,comb,min−Δ−U_h−t_hold. Use the minimum clock-to-Q and contamination delays here, rather than the maximum values from setup. Positive capture-minus-launch skew now makes the condition harder: the receiving register must retain the prior data longer relative to the earliest new arrival.
Take t_cq,min=0.5 ns, t_cd,comb,min=0.3 ns, t_hold=0.4 ns and U_h=0.05 ns. At Δ=0.3 ns, hold slack is 0.05 ns. At Δ=1 ns it is−0.65 ns, even though the10 ns-period setup slack improves to2.3 ns. Increasing only T does not appear in this hold equation and cannot repair the declared same-cycle hold failure.
Separate one-path arithmetic from timing closure
The10 ns,0.3 ns-skew case passes both stated inequalities, but the hold margin is much smaller than the setup margin. It is admitted only within this deterministic path example. The calculation includes neither a manufactured device population nor every path of an actual design.
Timing closure requires the applicable maximum and minimum paths, clock distributions, voltage and temperature conditions, input slew, loading and the device/library specification. Jitter and uncertainty definitions must be consistent so that they are neither forgotten nor counted twice. A nominal simulation of one path cannot establish all these bounds.
Pipelining can divide a long computation across registers and permit a shorter clock period at the cost of latency, extra state, clock energy and design constraints. Adding delay to repair hold may consume setup margin. The useful design changes depend on which inequality fails; a faster clock or a stronger driver is not a universal remedy.
Logic identity and reliable capture ask different questions
In the declared single falling-a event, unequal path delays create a static-one hazard on [2,5) ns despite identical stable truth values. The separate register-path controls require both setup and hold slack to be nonnegative. A longer clock period changes setup slack, not the hold inequality. These are deterministic teaching controls, not PVT or jitter closure.
A static-one hazard from unequal paths
The input a falls at t=0 while b=c=1. The direct term falls at 2 ns and the inverted term rises at 5 ns. The original output is low on the half-open interval [2,5) ns; hollow left-limit controls and filled right-limit controls distinguish the jumps. The consensus bc output remains high for this declared event.
Setup and hold slack respond differently to clock skew
Both lanes use capture-minus-launch skew in nanoseconds and signed slack in nanoseconds. Circles mean T=8 ns; larger hollow squares mean T=10 ns. Hold values coincide because clock period does not enter this hold inequality. Below zero is a failed bound. Separate tables retain the full status and unavailable reliable-capture prediction.
- Setup: T=8 ns
- Setup: T=10 ns
- Hold: T=8 ns
- Hold: T=10 ns
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Declared falling-a event with b=c=1. The final OR is ideal; the consensus term removes this event’s static-one hazard.
| Case | Time (ns) | Direct ab | Delayed NOT(a)c | Original output | With consensus bc |
|---|---|---|---|---|---|
| 1 | 0 | 1 | 0 | 1 | 1 |
| 2 | 1 | 1 | 0 | 1 | 1 |
| 3 | 2 | 0 | 0 | 0 | 1 |
| 4 | 4 | 0 | 0 | 0 | 1 |
| 5 | 5 | 0 | 1 | 1 | 1 |
| 6 | 7 | 0 | 1 | 1 | 1 |
All six deterministic path controls. Nonnegative setup and hold slack are both required; failure leaves reliable capture unavailable.
| Case | Clock period (ns) | Capture − launch skew (ns) | Setup slack (ns) | Hold slack (ns) | Declared model status | Failure reason | Reliable capture scope |
|---|---|---|---|---|---|---|---|
| 1 | 8.0 | 0 | -0.7 | 0.35 | timing-failure | setup-slack-negative | Unavailable under the stated assumptions |
| 2 | 8.0 | 0.3 | -0.4 | 0.05 | timing-failure | setup-slack-negative | Unavailable under the stated assumptions |
| 3 | 8.0 | 1.0 | 0.3 | -0.65 | timing-failure | hold-slack-negative | Unavailable under the stated assumptions |
| 4 | 10.0 | 0 | 1.3 | 0.35 | admitted-declared-path | None | Within this deterministic path timing model only |
| 5 | 10.0 | 0.3 | 1.6 | 0.05 | admitted-declared-path | None | Within this deterministic path timing model only |
| 6 | 10.0 | 1.0 | 2.3 | -0.65 | timing-failure | hold-slack-negative | Unavailable under the stated assumptions |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Understand metastability as analog dynamics
A bistable storage element has two stable states separated by an unstable equilibrium. If input and clock events place its internal state close to that balance, it can take unusually long to resolve to a valid output. A setup or hold violation does not imply a unique wrong bit or a fixed intermediate voltage; it removes the specified normal capture guarantee.
Near an unstable equilibrium, an abstract local displacement δ may satisfy dδ/dt=δ/τ, giving δ(t)=δ_0 exp(t/τ). The sign selects the direction in this ideal local equation. For a chosen validity displacement V_valid, the model resolution time is t_res=τ ln(V_valid/|δ_0|) when0<|δ_0|<V_valid.
The formula applies only while that local linearization remains valid. Once the displacement reaches the chosen boundary, nonlinear circuit behavior must complete the transition; the exponential must not be extrapolated into an unbounded output voltage. With exactly δ_0=0 the ideal noiseless equation stays balanced and gives no finite threshold-crossing time. Real noise, mismatch and disturbances change that ideal situation; no finite universal worst-case settling time follows.
Calculate a local resolution time
Choose hypothetical τ=50 ps and V_valid=0.2 V. Starting1 μV from balance gives t_res=50 ps×ln200000≈610.303632 ps. Starting10 mV from balance gives 50 ps×ln20≈149.786614 ps. These are original calculations in the declared local model, not timing specifications for a selected flip-flop.
Each decade reduction in the initial nonzero displacement adds τ ln10 to the local resolution time. This logarithmic relation explains why ever closer initial balance can produce ever longer resolution without a finite bound in the ideal model. It does not assign a probability to those initial conditions.
A distribution of input phases, internal noise and device behavior is needed to estimate an event rate. A digital simulator that resolves every input instantly to zero or one does not supply that analog distribution. Functional simulation and metastability characterization answer different questions.
State the assumptions of a reliability estimate
A commonly used phenomenological form is MTBF=exp(T_res/τ)/(T_0 f_clk f_data). Here T_res is the permitted resolution time, τ and T_0 are fitted parameters for the device and conditions, and the clock and data rates have units of inverse seconds. T_0 has units of seconds in this convention, so the denominator has units of inverse seconds and MTBF has units of seconds.
For a separate hypothetical example, let τ=50 ps, T_0=100 ps, f_clk=100 MHz and f_data=1 MHz. At T_res=1 ns the expression gives 48516.5195 s, about 13.476811 h. At2 ns it gives about 2.35385267×10^13 s. An extra nanosecond changes the exponential by exp20 in this chosen model, which explains the strong value of additional resolution time.
These enormous differences are conditional model estimates, not predictions for an uncharacterized product or a guaranteed failure-free lifetime. The fitted constants, the definition of a failure, actual transition statistics, loading, supply, temperature and implementation determine whether a formula is applicable. An ensemble mean interval is not an upper bound on one event's duration or a promise about the next event.
A local threshold time is separate from a statistical reliability model
Five positive initial perturbations are plotted as individual threshold-time controls; the logarithmic horizontal axis is voltage, not a probability. The noiseless exactly balanced control has no finite crossing and is not plotted at log zero. The local ODE ends at |δ|=0.2 V. A separate hypothetical MTBF model needs characterized τ and T0 before product use and cannot guarantee multi-bit transfer.
Local threshold-crossing time versus initial imbalance
Five source controls use a logarithmic voltage axis and nanoseconds vertically. They are points, not a measured population or a rail-to-rail waveform. Smaller nonzero imbalance takes longer to reach |δ|=0.2 V in this local noiseless model. Exactly zero has no finite threshold time and is omitted from the logarithmic plot with its reason retained below.
- Positive initial δ, local threshold time
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Local noiseless regeneration constants, not measured device specifications.
| Quantity | Value | Unit |
|---|---|---|
| Local regeneration constant | 5e-11 | s |
| Local model threshold magnitude | 0.2 | V |
All five positive initial perturbations: threshold-crossing time only. The local ODE stops at the threshold, not a supply rail.
| Case | Initial perturbation (V) | Threshold time (s) | Threshold perturbation (V) |
|---|---|---|---|
| 1 | 0.000001 | ≈ 6.10303632277e-10 | 0.2 |
| 2 | 0.00001 | ≈ 4.95174377627e-10 | 0.2 |
| 3 | 0.0001 | ≈ 3.80045122977e-10 | 0.2 |
| 4 | 0.001 | ≈ 2.64915868327e-10 | 0.2 |
| 5 | 0.01 | ≈ 1.49786613678e-10 | 0.2 |
Separate hypothetical statistical model, requiring characterization before any product interpretation.
| Quantity | Value | Unit |
|---|---|---|
| Hypothetical aperture parameter | 1e-10 | s |
| Clock rate | 100000000.0 | Hz |
| Asynchronous event rate | 1000000.0 | Hz |
Two separate hypothetical MTBF controls. Additional resolution time reduces a model risk; it does not guarantee arbitrary word transfer.
| Case | Available resolution time (s) | Dimensionless exponent | Hypothetical MTBF (s) | Hypothetical MTBF (h) |
|---|---|---|---|---|
| 1 | 1e-9 | 20.0 | ≈ 48516.5195410 | ≈ 13.4768109836 |
| 2 | 2e-9 | 40.0 | ≈ 2.35385266837e+13 | ≈ 6538479634.36 |
Scope control: exact balanced metastability.
| Quantity | Value | Unit |
|---|---|---|
| Initial imbalance | 0 | V |
| Finite threshold time | Unavailable under the stated assumptions | s |
| Scope and reason | Exactly balanced noiseless local ODE has no finite threshold crossing; this is not a real-device permanent-state claim. | Not a numerical quantity |
Scope control: mtbf not device spec.
| Quantity | Value | Unit |
|---|---|---|
| Device failure-rate prediction | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | T0 and tau are hypothetical and uncharacterized; a hypothetical model is not a product reliability rating. | Not a numerical quantity |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Synchronize a control without promising the impossible
For a slowly changing asynchronous control, a destination-clocked register followed by another register can provide time for the first stage to resolve before its result is used. The intermediate output should feed the intended synchronizer path rather than many unrelated combinational decisions. Available resolution time is reduced by the relevant path and receiving requirements, and the implementation must preserve that intended structure.
Additional stages can reduce residual failure risk under an applicable model at the cost of latency. They do not eliminate probability, establish a finite universal metastability bound or make an arbitrary input pulse visible. A pulse shorter than the destination sampling interval may be missed without ever causing a metastable failure.
Reset release and asynchronous control pins also have their own recovery/removal and synchronization requirements. A schematic label saying two flip-flops is not enough to establish these interfaces. The circuit, the device timing specification and the surrounding protocol must match the signal's behavior.
Transfer words with a protocol
Synchronizing each bit of a changing binary word independently does not guarantee a coherent word. Different bits can be sampled from different updates. Even if every bit eventually reaches a valid voltage, their combination can represent a value the source never intended to send.
A request/acknowledge handshake can require the source to hold a word stable until the receiving side has captured it and acknowledged the transfer, with the control crossings handled appropriately. Gray coding changes one bit between adjacent source counts and can help suitably constrained counter or FIFO-pointer crossings. It does not make arbitrary multi-bit jumps coherent, and route skew or multiple transitions in flight still require the appropriate implementation constraints.
An asynchronous FIFO separates producer and consumer clocks with storage and controlled pointer/full/empty logic. Its correctness depends on the protocol, pointer conventions, synchronization and timing assumptions. These are explanations of roles, not verification of a proposed FIFO. Metastability suppression, word coherence, throughput and pulse capture must be checked as separate requirements.
Distinguish channel errors from invalid voltages
After a receiver has made valid bit decisions, a communication or memory model may describe occasional bit flips. Redundant encoding can detect or correct certain patterns within that model. This is a different layer from guaranteeing electrical input levels and capture timing.
A parity bit constrains the XOR of selected bits. It detects any odd number of flips in its group but can miss an even number. Several independent parity equations can locate a single erroneous bit because each position participates in a distinct combination of checks.
Error-correcting codes do not by themselves turn an invalid analog voltage into a clean bit, cure a setup violation or make an incoherent clock-domain transfer valid. A useful system can combine electrical margins, synchronization protocols and error correction, with a separate error model and acceptance condition at each layer.
Construct a Hamming code with explicit bit order
Use a seven-bit Hamming(7,4) code with positions numbered1 through 7 from left to right in the displayed word. Positions1,2 and4 carry even-parity bits; positions3,5,6 and7 hold the data in that order. Parity check1 covers positions1,3,5,7; check2 covers2,3,6,7; check4 covers4,5,6,7.
For data1011, placing the data first and then choosing the parity bits gives the codeword0110011. Let s_1,s_2 and s_4 be the three received parity XORs, and define the syndrome index S=s_1+2s_2+4s_4 using ordinary integer addition. Each check result is one bit. If exactly one position j flips, the index is j because its binary digits identify its parity-check memberships.
Flipping position6 gives 0110001. The checks give s_1=0,s_2=1,s_4=1, so S=6. Flipping that position back recovers0110011 and data1011. All seven distinct single-position flips obey the same location rule; their exact checks provide a compact complete audit of this single-error example.
Refuse a correction outside the code model
A nonzero syndrome does not prove that exactly one bit flipped. If positions1 and2 both flip in 0110011, the received word is 1010011 and the syndrome is 3. A decoder that assumes one error will flip position3 and produce1000011, a different valid codeword. The original data have not been recovered.
The parity-check matrix has distinct nonzero columns for the seven positions. No single column and no sum of two distinct columns is zero, while some sums of three are zero. This corresponds to minimum codeword distance3: the code can correct one error, or detect up to two errors if it is used as a detector without the incompatible promise of correcting every nonzero syndrome as a single error.
Adding an overall parity bit creates the usual extended eight-bit Hamming construction with distance4. Under its stated error bounds, the syndrome and overall parity can distinguish single errors from double errors, providing single-error correction and double-error detection. That is a different code and decoder contract; the original seven-bit example must not be labeled SECDED.
A syndrome locates one error only under the one-error assumption
Positions run from 1 to 7 left to right. Hollow squares mark parity positions 1, 2 and 4; circles mark data positions 3, 5, 6 and 7. The parity rows show which positions participate. Every single flip is retained below. A nonzero syndrome does not establish that exactly one bit flipped; both two-error controls refuse admission. Hamming(7,4) is not SECDED.
Hamming(7,4) bit order and parity memberships
The encoded 0110011 word carries original data 1011 in positions 3,5,6,7. Three even-parity checks include their own parity bits. Membership circles show the index-bit rule; no line or color alone carries meaning. The complete single- and double-error controls are in the linked equivalent tables.
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Even-parity Hamming(7,4), bit positions increase from left to right. Data positions are 3, 5, 6, 7.
| Quantity | Value | Unit |
|---|---|---|
| Original data word | 1011 | bits |
| Encoded word | 0110011 | bits |
All seven single-bit errors: a syndrome indexes a correction under the assumed single-error channel.
| Case | Flipped position | Received word | Syndrome index | Corrected word | Recovered data |
|---|---|---|---|---|---|
| 1 | 1 | 1110011 | 1 | 0110011 | 1011 |
| 2 | 2 | 0010011 | 2 | 0110011 | 1011 |
| 3 | 3 | 0100011 | 3 | 0110011 | 1011 |
| 4 | 4 | 0111011 | 4 | 0110011 | 1011 |
| 5 | 5 | 0110111 | 5 | 0110011 | 1011 |
| 6 | 6 | 0110001 | 6 | 0110011 | 1011 |
| 7 | 7 | 0110010 | 7 | 0110011 | 1011 |
Two-error controls refuse admission. Applying a single-error decoder anyway can corrupt the original message.
| Case | Flipped positions | Received word | Syndrome index | Misapplied corrected word | Original recovered? | Admitted correction | Refusal reason |
|---|---|---|---|---|---|---|---|
| 1 | 1; 2 | 1010011 | 3 | 1000011 | No | Unavailable under the stated assumptions | Two errors exceed the stated single-error model; a nonzero syndrome alone does not prove exactly one error. |
| 2 | 2; 6 | 0010001 | 4 | 0011001 | No | Unavailable under the stated assumptions | Two errors exceed the stated single-error model; a nonzero syndrome alone does not prove exactly one error. |
Scope control: hamming two errors.
| Quantity | Value | Unit |
|---|---|---|
| Admitted correction | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | 7,4 code is single-error correcting, not SECDED. | Not a numerical quantity |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Connect information loss to thermal entropy
A physical memory can store a bit in two distinguishable states. For an initially unbiased bit, the logical uncertainty has entropy k_B ln2. An error-free reset to a known logical state removes that uncertainty from the memory, independent of which initial value it held.
In the conventional isothermal, equal-logical-energy thermal erasure setting, with the memory and auxiliary machinery returned to the required operating configuration and no retained side information that changes the accounting, the missing entropy must be exported. The reversible quasistatic limit gives an average heat cost to the bath of at least k_B T ln2 per such erased unbiased bit. Finite speed and other losses can increase the cost.
This is a conditional thermodynamic statement about a specified reset process and ensemble, not a universal fixed energy for every gate transition or every individual noisy trajectory. Biased initial bits, erasure errors, correlations, state energies and side information change the appropriate information/free-energy accounting. The barrier that makes a bit stable is also not automatically the heat dissipated in one erasure.
Compare energy scales without merging models
At T=300 K, using exact SI k_B=1.380649×10^−23 J/K, k_B T ln2≈2.87097889×10^−21 J for the stated unbiased-bit erasure setting. The earlier20 pF,3.3 V RC switching cycle draws2.178×10^−10 J. Their ratio is approximately 7.58626269×10^10.
The ratio compares two explicitly different physical models and their scales. It is not a measured efficiency of a computer, a promised transistor scaling improvement or proof that a practical gate can reach the erasure limit at its required rate and error probability. Actual computing includes clocks, wires, memory access, control, fabrication constraints, cooling and communication as well as logical operations.
Primary experimental tests of erasure thermodynamics can use systems such as a colloidal particle in a controlled double well. Such an experiment probes the stated thermal reset relation; it does not measure the delay or supply energy of the CMOS teaching circuit. A meaningful connection preserves what each experiment or model actually describes.
Compare two energy scales without treating them as the same experiment
The thermal bound concerns quasistatic logically irreversible erasure of one initially unbiased bit with entropy exported. The separate C VDD² value is source energy for a complete ideal switched-capacitor cycle. Their ratio is a scale comparison, not an achieved device limit, universal logic-operation cost or finite-speed reliable-computing budget.
≈ marks rounding to 12 significant digits. Units accompany each quantity. A refused or undefined prediction is not zero.
Different-model energy comparison: unbiased-bit quasistatic irreversible erasure versus a complete ideal RC switching cycle.
| Quantity | Value | Unit |
|---|---|---|
| Boltzmann constant | 1.380649e-23 | J/K |
| Temperature | 300.0 | K |
| Conditional erasure lower bound | ≈ 2.87097888508e-21 | J |
| Separate switching cycle source energy | 2.178e-10 | J |
| Switch energy / conditional bound | ≈ 75862626901.2 | 1 |
Scope control: landauer not every switch.
| Quantity | Value | Unit |
|---|---|---|
| Actual circuit minimum energy | Unavailable under the stated assumptions | Not a numerical quantity |
| Scope and reason | A conditional thermodynamic erasure bound is not a measured CMOS switch or per-operation system energy. | Not a numerical quantity |
On a narrow screen, focus the diagram or table and use the arrow keys to scroll horizontally.
Understand what reversible computation preserves
A logically reversible transformation has a one-to-one mapping between its permitted input and output states. NOT is reversible on a single bit. A bare two-input AND with only its one-bit result is many-to-one, but a larger transformation can retain enough additional information to embed useful operations reversibly.
Reversible computation can retain and later uncompute intermediate information rather than discard it indiscriminately. Preparing blank storage, preserving correlations and handling unwanted information belong in the full accounting. Merely saving every intermediate result forever does not solve finite memory management, while a reversible logical design does not guarantee zero dissipation in its physical finite-speed implementation.
The connection to physics is constructive: information has a physical representation and physical transformations have entropy, energy, time and reliability constraints. It is also precise. It does not imply that all information processing has the same erasure cost, that measurement must always erase a bit or that thermodynamic reasoning can replace transistor, timing and communication analysis.
Audit the whole chain of assumptions
For a proposed digital system, first verify the functional mapping and state-transition meaning. Then check electrical levels and loading, maximum and minimum timing, clocks and domain crossings, activity and energy, error assumptions and the relevant device conditions. Each layer supplies a contract used by the next.
The models in this lesson are deliberately separate. The unloaded complementary-MOS equilibrium, loaded resistive high state, open-load RC transition, deterministic register path, local metastability equation, phenomenological MTBF, Hamming bit-flip channel and thermal erasure process each has its own inputs and validity conditions. A result from one cannot silently fill a missing assumption in another.
This layered discipline connects digital design to experimental science. Predict a specified observable, state the operating conditions, test the applicable limits and retain a failed or undefined prediction honestly. The next lessons on signals, filters and control extend the same approach to how information-bearing waveforms vary and how systems respond.
Worked examples
Audit a full adder with an integer relation
Find the sum and carry for a=b=c_in=1, and explain why Boolean OR cannot replace integer addition.
- The sum bit is 1 XOR1 XOR1=1. The carry bit is 1 because at least two inputs are one.
- The Boolean carry expression(ab) OR(ac_in) OR(bc_in) equals1; its three terms are joined by OR, not added as three integer carries.
- Check the integer relation: a+b+c_in=3 and sum+2c_out=1+2×1=3.
- The output pair therefore represents binary11, whereas the single Boolean result a OR b OR c_in represents only one bit.
sum=1 and c_out=1. Boolean and arithmetic addition have different meanings, joined here by an explicit place-value equation.
Check the symmetric CMOS equilibrium and power
Use the declared3.3 V,0.6 V-threshold,K=0.002 A/V²,λ=0.05 V^−1 model at v_i=1.65 V.
- Symmetry and positive finite output conductance give v_o=1.65 V. Both overdrives are1.05 V and both source-to-drain voltage magnitudes are1.65 V, so both devices meet the saturation inequality w≥u.
- Each current is(0.002/2)(1.05)²[1+0.05(1.65)]=0.00119345625 A. Equal currents satisfy the unloaded output KCL.
- The total input derivative is 0.0045465 A/V and the total output derivative is 0.00011025 A/V, giving dv_o/dv_i=−0.0045465/0.00011025≈−41.2380952.
- Supply power is 3.3×0.00119345625=0.003938405625 W. Each device dissipates half at the symmetric output; the sum equals the supply power.
The midpoint is an admitted static analog equilibrium with finite supply conduction and a steep negative slope. It is not a guaranteed binary input level or a switching-time prediction.
Calculate the two model noise margins
For the declared unloaded transfer curve, use the two independently solved slope−1 points to form the static margins.
- Solving I_n=I_p together with dVout/dVin=−1 gives V_IL≈1.35055591 V and V_IH≈1.94944409 V. The corresponding outputs are approximately3.03708247 V and0.262917534 V.
- For inputs in the low band, the minimum high output is V_OH,min=v_o(V_IL)≈3.03708247 V. For inputs in the high band, the maximum low output is V_OL,max=v_o(V_IH)≈0.262917534 V.
- Thus N_ML=V_IL−V_OL,max≈1.08763838 V and N_MH=V_OH,min−V_IH≈1.08763838 V. Symmetry makes these conservative model margins equal.
- The larger differences V_IL−0 and3.3−V_IH are each approximately1.35055591 V. They describe nominal rail-referenced headrooms; they are not the band-mapped margins. Neither construction is a guaranteed fabricated-device specification.
Both conservative mapped-band margins are about1.08764 V. Keep their input/output band definitions distinct from rail-reference diagnostics, transistor threshold and the switching midpoint.
Account for a loaded high output
In the separate resistive model, a3.3 V source feeds R_p=1 kΩ and R_L=100 kΩ to ground. Find the high output and account for power.
- The series current is I=3.3/(101000)≈32.6732673 μA, and v_o=I×100000≈3.26732673 V.
- Source power is 3.3I≈107.821782 μW. It is nonzero because the external load provides a DC path.
- The pull-up heat is I²R_p≈1.06754240 μW and the load heat is I²R_L≈106.754240 μW; their sum equals the source power, to displayed rounding.
- Compare the loaded output with the actual receiver requirement before calling it a valid high. No receiver specification was selected for this teaching example.
The output is approximately 3.26733 V and the source supplies approximately 107.822 μW. An ideal no-load static-power statement cannot be applied to this loaded circuit.
Find an RC crossing and the fanout penalty
Open the external DC load, use R_p=1 kΩ and C_L=20 pF, and compare the fanout model at N=9.
- The rise time constant is R_pC_L=20 ns. Half the final voltage is reached when exp(−t/20 ns)=1/2.
- Thus t_pLH=20ln2 ns≈13.8629436 ns, while the10%to90% rise takes 20ln9 ns≈43.9444915 ns.
- At N=9, the separate capacitance rule C_L=(5+5N)pF gives 50 pF, making the rise time constant50 ns.
- The same half-swing criterion now gives 50ln2 ns≈34.6573590 ns. The factor2.5 follows from the capacitance ratio within the fixed-resistance model.
The default half-swing delay is about 13.863 ns; fanout9 makes it about 34.657 ns under the declared load approximation.
Calculate a complete switching cycle and average activity power
Use C_L=20 pF,V_DD=3.3 V,α_01=0.2 rising events per clock and f=100 MHz.
- A completed charging event draws C_LV_DD²=20×10^−12×3.3²=217.8 pJ from the ideal supply.
- At the high state,108.9 pJ is stored in the capacitor and108.9 pJ has become heat in the charging resistor. Discharge dissipates the stored108.9 pJ.
- The complete settled0→1→0 cycle therefore draws and dissipates217.8 pJ in this model; it does not draw only the stored half.
- The average charging-event rate is α_01 f=20 MHz, so dynamic supply power is 217.8 pJ×20 MHz=4.356 mW. Other power terms remain outside this calculation.
The cycle energy is 217.8 pJ and the stated activity power is 4.356 mW. The activity convention is part of the formula.
Locate a hazard despite a constant truth-table value
Let b=c=1 in F=ab+(NOT a)c. After a falls at t=0, ab falls at 2 ns and(NOT a)c rises at 5 ns; the final OR has zero delay.
- Before2 ns, ab is still1 and the output is 1.
- For2≤t<5 ns, the direct term is already0 and the inverted term is still0. The output is therefore0.
- At5 ns the inverted term rises and restores output1. The low interval has duration3 ns.
- Adding the consensus term bc supplies a constant1 during this declared event and removes this particular static-one hazard without altering the stable Boolean function.
The output has a low pulse on[2,5)ns in the original timing model. Stable truth-table equivalence alone does not remove the pulse.
Check setup and hold with one consistent skew convention
Use the stated register path at T=10 ns and capture-minus-launch skew Δ=0.3 ns, then change only Δ to1 ns.
- At Δ=0.3 ns, setup slack is 10+0.3−0.2−1.5−6−1=1.6 ns.
- Hold slack is 0.5+0.3−0.3−0.05−0.4=0.05 ns. Both inequalities are satisfied for this declared deterministic path.
- At Δ=1 ns, setup slack becomes2.3 ns while hold slack becomes−0.65 ns. The improved setup margin is accompanied by a hold failure.
- Increasing the clock period would add setup margin but would not change the same-cycle hold expression. A proposed remedy must address the failing constraint.
The0.3 ns-skew case passes the two path inequalities; the1 ns-skew case fails hold. Neither calculation establishes full-device timing closure.
Keep local resolution and statistical reliability distinct
Compare a1 μV initial displacement in the local model with the separate hypothetical MTBF model.
- With τ=50 ps and V_valid=0.2 V, local resolution time is 50 ps ln(0.2/10^−6)≈610.303632 ps. This describes one specified nonzero initial displacement until the local validity boundary.
- For the separate MTBF expression, T_0=100 ps,f_clk=100 MHz and f_data=1 MHz give T_0f_clkf_data=10000 s^−1.
- Allowing T_res=1 ns gives exp20/10000≈48516.5195 s. Allowing2 ns gives exp40/10000≈2.35385267×10^13 s.
- The local deterministic displacement calculation supplied no initial-condition probability. The second expression requires its own fitted/statistical assumptions and hypothetical parameters.
A local time of about 610.304 ps and an ensemble MTBF are different quantities. Neither result is a characterized device guarantee.
Recover one flipped Hamming bit with explicit ordering
Use data1011 in positions3,5,6,7 of the declared even-parity Hamming(7,4) code. The received word is 0110001.
- The original parity-completed code is 0110011. The received word differs at position6, but calculate the syndrome rather than assuming that observation.
- Parity over positions1,3,5,7 gives s_1=0. Positions2,3,6,7 give s_2=1; positions4,5,6,7 give s_4=1.
- The integer syndrome index is S=0+2×1+4×1=6. Under the single-error channel model, flip position6.
- The corrected word is 0110011, and reading positions3,5,6,7 returns1011. The other six single-position flips can be audited by the same membership rule.
The single flipped sixth bit is corrected, recovering1011 under the stated single-error assumption.
Show why a nonzero syndrome does not prove a single error
Flip positions1 and2 in the original code0110011, then apply a decoder that blindly assumes every nonzero syndrome means one error.
- The received word is 1010011. Its parity-check result has index1 XOR2=3, where XOR is bitwise on the position labels.
- A single-error decoder would therefore flip position3, producing1000011.
- That word has zero syndrome but differs from the original codeword. Its data positions are0011 rather than 1011.
- The channel violated the one-error correction assumption. The seven-bit code has no overall parity bit to give the usual extended SECDED contract.
The attempted correction is a miscorrection. Retain a refusal to claim recovery outside the stated error model.
Compare a conditional erasure bound with an RC cycle
At300 K compare the stated unbiased-bit thermal erasure limit with the20 pF,3.3 V settled switching cycle.
- Using k_B=1.380649×10^−23 J/K, the thermal expression is k_BTln2≈2.87097889×10^−21 J.
- The separate resistive switching-cycle energy is CV_DD²=2.178×10^−10 J.
- Dividing the two gives approximately 7.58626269×10^10. This is a ratio of two explicitly different model energies.
- The thermal expression concerns mean heat in the specified quasistatic reset setting. The RC expression concerns supply work in a complete fixed-voltage charging/discharging cycle. Neither is a whole-computer measurement.
The model energy scales differ by about 7.59×10^10. That numerical comparison does not establish an attainable speed, error rate or energy efficiency for hardware.
Try it yourself
Why is a typical switching voltage insufficient to prove that two logic devices are compatible?
Show the answer and reasoning
Compatibility requires the applicable guaranteed input and output bands under their specified operating conditions.
Loading, supply, temperature, drive and timing conditions can change the guarantee. A typical switching point is neither a worst-case output level nor a complete receiver specification.
If a=b=1, what are a OR b and the ordinary integer sum a+b?
Show the answer and reasoning
The Boolean OR is 1; the integer sum is 2.
A Boolean result is one bit. An adder preserves arithmetic value with place-weighted sum and carry outputs.
Are a MOS threshold, an inverter switching midpoint and a logic input-band limit the same quantity?
Show the answer and reasoning
No.
They describe device conduction, a circuit transfer point and an interface contract respectively. The model slope-defined V_IL and V_IH are also distinct from guaranteed datasheet bands.
Does an ideal CMOS rail-state zero-static-current model imply zero supply current for every input voltage?
Show the answer and reasoning
No.
Both channels can conduct near an intermediate input, and external loads or real leakage can draw steady current. The claim applies only within its stated ideal regime.
At the declared symmetric input with λ=0, why is a numerical midpoint not proof of a unique output?
Show the answer and reasoning
The equal saturation currents admit an entire output interval in that ideal model.
The simultaneous-saturation inequalities give1.05≤v_o≤2.25 V. KCL does not select one member; finite output conductance or another physical effect is needed to remove the degeneracy.
For an exponential rise, are the half-swing delay and the10%to90% rise time equal?
Show the answer and reasoning
No: they are τln2 and τln9 respectively.
They use different voltage crossings. A clock-period constraint uses the relevant full register-path timing rather than either definition by itself.
In P=α_01CV²f, what does α_01 count?
Show the answer and reasoning
The mean number of 0→1 charging events per clock cycle.
If an activity measure counts both rising and falling edges, its numerical convention must be converted. A completed charge draws CV² even though only half remains stored at the high state.
Can additional ideal MOS gate inputs slow a driver even if their steady input currents are zero?
Show the answer and reasoning
Yes.
Their capacitance requires charging and discharging. The total load also includes internal and interconnect contributions; zero DC gate current does not imply zero dynamic load.
Can two circuits with the same stable truth table have different transient glitches?
Show the answer and reasoning
Yes.
Different path delays and topologies can produce different event sequences. Functional equivalence alone does not establish hazard-free timing.
A path fails the stated same-cycle hold inequality. Does increasing only its clock period repair that inequality?
Show the answer and reasoning
No.
The hold slack depends on minimum data delays, capture-minus-launch skew, hold time and its uncertainty. The period appears in the next-edge setup test instead.
Under capture-minus-launch skew, what does a positive skew change in the declared path tests?
Show the answer and reasoning
It increases setup slack and decreases hold slack.
The next capture edge moves later, giving the latest data more setup time; the same-cycle receiving hold window also moves later relative to the earliest new arrival.
Does every setup or hold violation yield the same wrong binary result after a fixed delay?
Show the answer and reasoning
No.
The normal capture guarantee no longer applies. Analog initial conditions and dynamics can produce variable outcomes or unusually delayed resolution.
What finite resolution time does the ideal local equation predict for δ_0=0?
Show the answer and reasoning
None; the exactly balanced noiseless solution has no finite threshold crossing.
This is a statement about the ideal local equation. It does not claim that real noisy hardware remains exactly balanced forever or that an arbitrary time clamp is physically justified.
Does a calculated MTBF guarantee that no failure will happen before that many seconds have passed?
Show the answer and reasoning
No.
It is a conditional ensemble mean under an applicable statistical model. The parameters, event definition and operating conditions require characterization.
Do independent two-register synchronizers on every bit prove a coherent transfer of a changing word?
Show the answer and reasoning
No.
Individual valid bit decisions can come from different updates. Word stability, handshakes, constrained Gray transitions or a suitable asynchronous storage protocol must establish the intended transfer.
Does a nonzero syndrome in the seven-bit Hamming example establish that exactly one bit flipped?
Show the answer and reasoning
No.
Two flipped positions can yield the syndrome of another position. Blind single-error correction can then produce a different valid codeword; the one-error assumption is essential.
Can a Hamming decoder by itself repair metastable voltages or establish setup and hold timing?
Show the answer and reasoning
No.
Its bit-flip channel model starts with valid bit decisions. Electrical validity, clock capture and protocol coherence belong to other contracts that still need verification.
Is k_BTln2 a universal measured energy for every logic gate transition?
Show the answer and reasoning
No.
It is the conditional mean-heat limit for the specified unbiased-bit thermal reset setting in the appropriate quasistatic limit. Actual switching, finite-speed reliability and total system energy have additional and different requirements.
What to carry forward
- Digital symbols require physical voltage, timing and reliability contracts.
- A truth table specifies stable function, not a transient waveform or energy budget.
- CMOS restoration comes from powered device networks with explicit regions and loading.
- The continuous transfer curve, transistor threshold and guaranteed logic bands answer different questions.
- A complete resistive charging/discharging cycle draws CV² from the ideal supply.
- Setup uses latest arrival; hold uses earliest arrival, with a stated clock-skew sign.
- Metastability and synchronization require analog and statistical assumptions; no finite universal resolution bound is promised.
- Word coherence and error correction require their own protocols and channel models.
- Thermal erasure bounds and reversible logic connect information to physics under explicit conditions.
References
Sources for the concepts and teaching approaches in this article.
Massachusetts Institute of Technology4 sources
- MIT 6.012 Microelectronic Devices and CircuitsClifton G. Fonstad, MITCourse notes · PDFLecture 15: Digital Circuits: CMOS (3 November 2009)CMOS Gate Delays, Power, and Scaling (course posting marked10/5/09)Lecture14: Digital Circuits: Inverter Basics (29 October 2009)
- Computation StructuresSteve Ward, MIT Department of EECSCourse notesComputation Structures, chapter6: CMOSComputation Structures, chapter7: Combinational LogicComputation Structures, chapter8: Sequential LogicComputation Structures, chapter 5: The Digital Abstraction
- Synchronization, Metastability and Arbitration (26 February2009)MIT 6.004 teaching staffCourse notes · PDF
- Recitation7, Signals, Systems and Information for Media Technology (Fall2007)MIT MAS.160 / MAS.510 / MAS.511 teaching staffCourse notes · PDF
- Experimental verification of Landauer’s principle linking information and thermodynamics, Nature483,187-189(2012), DOI10.1038/nature10872Antoine Berut, Artak Arakelyan, Artyom Petrosyan, Sergio Ciliberto, Raoul Dillenschneider and Eric LutzResearch paper · PDF
- The International System of Units: Defining constantsBIPMReference guide