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 per gate in two forms. Transport delay copies the asked-for value to the output after , so every pulse goes through, however short. Inertial delay also copies it after , but it removes every pulse that is shorter than : 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 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 at time 0 and changes at the times to the values , with and . Call the interval the -th piece of , with and for the last piece. Its width is . A pulse of width is a piece of width between two pieces of the other value. Let be the gate delay, and let the output start at .
Transport delay. for , and for . As an event rule: when changes to at time , schedule the output event " at ", and keep all earlier pending events.
Inertial delay. As an event rule: when changes to at time , first apply any output event that is due at , then cancel every pending output event, and schedule " at " if 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 -th piece of long if or . Let be the value of the last long piece with , where the piece 0 counts with for all . Then the inertial rule gives . In words: the output is delayed by with every piece shorter than 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 , for :
- for ;
- the only pending event is " at " if , and there is none otherwise.
Before , , nothing is pending, , and since only piece 0 qualifies. At nothing is due, and the rule cancels nothing and schedules at exactly when . So both parts hold for .
Suppose both hold for , and look at the interval . No long piece changes in this interval, since . A piece has . So can change in the interval only at , to , and only if piece is long. There are two cases.
- Piece is long, . The pending event, if any, falls in the interval. It sets at , which is where becomes . If there was no event, and neither nor changes. At an event due at that time is applied first, so the present output is .
- Piece is short, . The pending event lies after , so nothing changes in the interval, and does not change either. At the rule cancels the event before it is due.
In both cases on , nothing is pending after the cancel step, and the rule then schedules at exactly when . So both parts hold for . If there is no next change, the same case analysis on ends the proof.
Pulses (exact). Take a pulse of width between two long pieces of the other value , so is , then on , then .
- Transport delay gives the output pulse on , of the same width , for every .
- Inertial delay gives the same output pulse if , and no pulse if . This follows from the characterization: piece is long exactly when , and the value before it is . A pulse of width exactly passes, because at the rule applies the due event before it reacts to the change back to .
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 gets , 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 | and |
| inertial | 1 at 13, 0 at 18 |
Under the inertial rule, the change at 2 schedules 1 at 5, and the change at 4 cancels it, since , and schedules nothing, since the output is still 0. A script ran the event rule and the formula on 20000 random waveforms with integer change times and delays from 1 to 5, and they agreed on all of them. With and a pulse from 10 to 13, of width exactly , the rule gives the output pulse .
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 each do not act like one inertial buffer with . A pulse of width 3 at the input passes the first buffer, since , and the second for the same reason, so the output has a pulse for an input pulse . One buffer with 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 and give .
Non-example: unequal rise and fall delays. Let a buffer have rise delay and fall delay , with transport delay. A 1 pulse of width 2 at the input asks for 1 at and for 0 at , which comes first. The output events are out of time order, and the pulse has width . 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 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.
Related definitions
- 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
- 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)
- 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)
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag NCPZRX Edit this page History Report an error Markdown