Algorithm Search⌘K

Definitionintro

Inertial and transport delay

Also called inertial delay, transport delay.

Two delay models of logic simulation, where transport delay passes every pulse after a delay, inertial delay also swallows pulses shorter than the gate delay.

A delay model of logic simulation says how the output of a gate follows the value that its Boolean function asks for. This page is in the logic simulation half of the sub-area, and the delay models it defines are the nominal fixed delay dd per gate in two forms. Transport delay copies the asked-for value to the output after dd, so every pulse goes through, however short. Inertial delay also copies it after dd, but it removes every pulse that is shorter than dd: a gate must see a new value for at least its delay before its output follows. Transport delay models an ideal wire or delay line. Inertial delay models a gate that has to charge a load and cannot follow a fast input. Neither is the behavior of a real gate, whose delay depends on the load, the input slope and the process, but they are the two rules that event-driven logic simulation and the hardware description languages use.

Definition

Signals. Let z(t)z(t) be the value that the gate function asks for, computed from the present values of the gate inputs. It is piecewise constant: it starts at z0z_0 at time 0 and changes at the times s1<s2<⋯s_1 < s_2 < \cdots to the values v1,v2,…v_1, v_2, \ldots, with vk≠vk−1v_k \ne v_{k-1} and v0=z0v_0 = z_0. Call the interval [sk,sk+1)[s_k, s_{k+1}) the kk-th piece of zz, with s0=0s_0 = 0 and sk+1=∞s_{k+1} = \infty for the last piece. Its width is wk=sk+1−skw_k = s_{k+1} - s_k. A pulse of width ww is a piece of width ww between two pieces of the other value. Let d>0d > 0 be the gate delay, and let the output yy start at y(0)=z0y(0) = z_0.

Transport delay. y(t)=z(t−d)y(t) = z(t - d) for t≥dt \ge d, and y(t)=z0y(t) = z_0 for t<dt < d. As an event rule: when zz changes to vv at time ss, schedule the output event "y=vy = v at s+ds + d", and keep all earlier pending events.

Inertial delay. As an event rule: when zz changes to vv at time ss, first apply any output event that is due at ss, then cancel every pending output event, and schedule "y=vy = v at s+ds + d" if vv differs from the present output value. This is the rule of line L10 on the event-driven logic simulation page.

Characterization of inertial delay (exact). Call the kk-th piece of zz long if k=0k = 0 or wk≥dw_k \ge d. Let F(t)F(t) be the value of the last long piece jj with sj+d≤ts_j + d \le t, where the piece 0 counts with s0+d≤ts_0 + d \le t for all t≥0t \ge 0. Then the inertial rule gives y=Fy = F. In words: the output is zz delayed by dd with every piece shorter than dd removed, and the value before a removed piece held through it.

Proof. The claim is that the following holds just after the rule acts at each change time sks_k, for k≥1k \ge 1:

  1. y(t)=F(t)y(t) = F(t) for 0≤t≤sk0 \le t \le s_k;
  2. the only pending event is "y=vky = v_k at sk+ds_k + d" if vk≠F(sk)v_k \ne F(s_k), and there is none otherwise.

Before s1s_1, z=z0z = z_0, nothing is pending, y=z0y = z_0, and F=z0F = z_0 since only piece 0 qualifies. At s1s_1 nothing is due, and the rule cancels nothing and schedules v1v_1 at s1+ds_1 + d exactly when v1≠y(s1)=z0=F(s1)v_1 \ne y(s_1) = z_0 = F(s_1). So both parts hold for k=1k = 1.

Suppose both hold for kk, and look at the interval (sk,sk+1](s_k, s_{k+1}]. No long piece j<kj < k changes FF in this interval, since sj+d≤sj+1≤sks_j + d \le s_{j+1} \le s_k. A piece j>kj > k has sj+d>sk+1s_j + d > s_{k+1}. So FF can change in the interval only at sk+ds_k + d, to vkv_k, and only if piece kk is long. There are two cases.

  • Piece kk is long, sk+1≥sk+ds_{k+1} \ge s_k + d. The pending event, if any, falls in the interval. It sets y=vky = v_k at sk+ds_k + d, which is where FF becomes vkv_k. If there was no event, vk=F(sk)v_k = F(s_k) and neither yy nor FF changes. At sk+1s_{k+1} an event due at that time is applied first, so the present output is F(sk+1)F(s_{k+1}).
  • Piece kk is short, sk+1<sk+ds_{k+1} < s_k + d. The pending event lies after sk+1s_{k+1}, so nothing changes yy in the interval, and FF does not change either. At sk+1s_{k+1} the rule cancels the event before it is due.

In both cases y=Fy = F on (sk,sk+1](s_k, s_{k+1}], nothing is pending after the cancel step, and the rule then schedules vk+1v_{k+1} at sk+1+ds_{k+1} + d exactly when vk+1≠y(sk+1)=F(sk+1)v_{k+1} \ne y(s_{k+1}) = F(s_{k+1}). So both parts hold for k+1k + 1. If there is no next change, the same case analysis on (sk,∞)(s_k, \infty) ends the proof. □\square

Pulses (exact). Take a pulse of width ww between two long pieces of the other value aa, so zz is aa, then bb on [s,s+w)[s, s + w), then aa.

  • Transport delay gives the output pulse bb on [s+d,s+w+d)[s + d, s + w + d), of the same width ww, for every w>0w > 0.
  • Inertial delay gives the same output pulse if w≥dw \ge d, and no pulse if w<dw < d. This follows from the characterization: piece bb is long exactly when w≥dw \ge d, and the value before it is aa. A pulse of width exactly dd passes, because at s+ds + d the rule applies the due event y=by = b before it reacts to the change back to aa.

So inertial delay filters pulses shorter than the delay, and transport delay keeps them.

In the languages. In VHDL, y <= x after 5 ns; is inertial, y <= transport x after 5 ns; is transport, and y <= reject 2 ns inertial x after 5 ns; keeps the delay at 5 ns but uses a pulse rejection limit of 2 ns in place of the delay. In Verilog, a delay on a continuous assignment or a gate instance, such as assign #5 y = x;, acts as an inertial delay, and a nonblocking assignment with an intra-assignment delay in an always block, y <= #5 x;, schedules every change and acts as a transport delay. The exact rules, for example for a signal with pending events of several values, are in the standards cited below.

Examples and non-examples

Example: one buffer. A buffer with d=3d = 3 gets z=0z = 0, with changes to 1 at 2, to 0 at 4, to 1 at 10 and to 0 at 15. The first pulse has width 2 and the second width 5.

model output events output pulses
transport 1 at 5, 0 at 7, 1 at 13, 0 at 18 [5,7)[5, 7) and [13,18)[13, 18)
inertial 1 at 13, 0 at 18 [13,18)[13, 18)

Under the inertial rule, the change at 2 schedules 1 at 5, and the change at 4 cancels it, since 4<54 < 5, and schedules nothing, since the output is still 0. A script ran the event rule and the formula FF on 20000 random waveforms with integer change times and delays from 1 to 5, and they agreed on all of them. With d=3d = 3 and a pulse from 10 to 13, of width exactly dd, the rule gives the output pulse [13,16)[13, 16).

Example: a hazard pulse. On the event-driven logic simulation page, a static hazard makes a gate function go to 0 for a short time. With transport delay the pulse appears at the output and travels on. With an inertial delay longer than the pulse, the output stays at 1. For power estimation this pulse is real switching; see glitch power.

Non-example: two inertial buffers in series. Two inertial buffers with d=2d = 2 each do not act like one inertial buffer with d=4d = 4. A pulse of width 3 at the input passes the first buffer, since 3≥23 \ge 2, and the second for the same reason, so the output has a pulse [14,17)[14, 17) for an input pulse [10,13)[10, 13). One buffer with d=4d = 4 removes it. Inertial delay is not additive, so moving delay from one gate to the next changes which pulses survive. Transport delay is additive: two buffers with d1d_1 and d2d_2 give y(t)=z(t−d1−d2)y(t) = z(t - d_1 - d_2).

Non-example: unequal rise and fall delays. Let a buffer have rise delay dr=4d_r = 4 and fall delay df=1d_f = 1, with transport delay. A 1 pulse of width 2 at the input asks for 1 at s+4s + 4 and for 0 at s+3s + 3, which comes first. The output events are out of time order, and the pulse has width w+df−dr=−1w + d_f - d_r = -1. So with unequal rise and fall delays even the transport model loses pulses, here every 1 pulse of width at most 3, and a simulator must either use the inertial rule or keep the events sorted and drop the pulse. The event-driven page lists the same pitfall.

Non-example: zero delay. With d=0d = 0 the two models agree, because no pending event can be cancelled before it is due. The order of the changes at one time is then given by delta cycles, not by these rules.

  • Event-driven logic simulation. The algorithm that applies both rules, and its proof that transport delay matches a step-by-step simulation.
  • Delta cycle. The order of zero-delay changes at one time.
  • Ternary simulation. Finds hazards for every choice of gate delays at once, in place of fixing one delay model.
  • Glitch power. The power used by short pulses, which an inertial model can hide.
  • Timing simulation. Follows node voltages, so a short input pulse gives a partial swing at the output instead of all or nothing.
  • Event-driven simulation. The generic event loop that holds the pending events.

References

  1. Miron Abramovici, Melvin A. Breuer and Arthur D. Friedman, Digital Systems Testing and Testable Design, IEEE Press, 1994, the chapter Logic Simulation, the part on delay models (transport delay, inertial delay, rise and fall delays) and their handling in event-driven simulation (general locator)
  2. IEEE Standard VHDL Language Reference Manual, IEEE Std 1076-2008, the section on signal assignment statements, the delay mechanism (transport, inertial, and reject with a pulse rejection limit) and the updating of a projected output waveform (general locator)
  3. IEEE Standard for Verilog Hardware Description Language, IEEE Std 1364-2005, the clauses on continuous assignments, gate delays and nonblocking procedural assignments (general locator)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/NCPZRX/text.yaml