To save content items to your account,
please confirm that you agree to abide by our usage policies.
If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account.
Find out more about saving content to .
To save content items to your Kindle, first ensure no-reply@cambridge.org
is added to your Approved Personal Document E-mail List under your Personal Document Settings
on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part
of your Kindle email address below.
Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations.
‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi.
‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
The first objective of any set of tests must be to show that the system does what it was designed to do. This means
does it perform the necessary functions correctly?
does it perform its function within the required time specification?
are there any circumstances, normal or unusual, under which it can get into a forbidden state from which it can only recover by drastic action (e.g. system reset)?
The above presumes that any fault or group of faults which could possibly occur would affect the operation of the system. If a fault or faults do not affect the operation then there must be some logic which is redundant. It will be assumed that none of the logic is redundant.
On the further assumption that the design is good, a second objective is to be capable of detecting any fault or group of faults within that system. However, there is some debate as to the level of detail into which it is necessary to go and this will be the subject of further discussion. The distinction between simulation testing and testing the manufactured hardware was made in Section 3.1.2.
Modelling faults
Faults in the design, as opposed to those which occur in production, cannot be ‘modelled’ in the usual sense of the word. A network description is entered into the simulator and this is a model of the network. If, as a result of simulation, outputs are obtained which are different from those expected from considering the specification, then the network as described to the simulator is fault.
Although the event driven simulator allows timing to be included in a simulation, it is extremely difficult to devise a set of tests that would show up all possible timing problems. Such a set of tests would have to analyse the network structure to find where two paths from the same signal converge later in the network. One of these would have to be assigned maximum delay and the other minimum. Such a situation was shown in Fig. 1.1 given that the two inputs were related and is known as reconvergent fan-out. The four-gate not equivalence example has five cases of reconvergent fan-out. A procedure is needed to find unwanted short pulses. It requires that all associated signals have the relevant states, which is why it can be difficult to drive. Having found a potential short pulse, it must be decided whether it matters. At the input of another gate, it does not. At the asynchronous input to a flip-flop, it most certainly does.
The second problem with timing is to be sure that the longest path, often known as the critical path, through a combinational network has been activated in order to ensure that the logic can operate within the design time specified. In particular, with synchronous logic, it is necessary to check that the logic works within the specified clock periods. The naive analysis of the four-gate not equivalence circuit designed earlier indicated the dangers of pattern sensitivity. That analysis was by no means complete (Section 6.4, last paragraph).
In attempting to come to grips with the problem of designing a simulator the author found very little in the way of overall descriptions of what a simulator is, what it does or how it works. The required information can be winkled out from many different sources, but not all are easily available. This book is an attempt to bring together in one place a comprehensive introduction to all aspects of simulation in the design of digital electronic systems.
The text begins with an introduction to the purpose of simulation, types of simulation and some of the problems that are encountered in the use and design of simulators. It continues with a brief review of computer aided design suites in order to set simulation within its overall context.
In order to use a simulator it is necessary to prepare test information. To get the best out of the simulator it is necessary to adopt good design techniques. Hence the next two chapters give an introduction to design for testability and to test program generation. These are followed by a brief description of the preparation of test programs using the VHPIC high level design language (VHDL). These three chapters are just an introduction for completeness in the book as a whole, and the reader is referred to much more comprehensive texts for a proper treatment.
Chapters 6 to 9 are the meat of this work. Chapter 6 describes the two main types of straightforward simulator and gives some examples of their use.
Most electronic system designers will never need to design a simulator. They will merely need to use one. An understanding of how the simulator works will enable it to be used more effectively, and avoids investing it with powers that it does not possess. However, most designers will have to write test sequences which the simulator will use to exercise the logic. They will also need to write programs for the equipment test rigs for exercising the real logic. These two activities overlap to some extent. However, checking that the system performs its specified functions is a design phase procedure and is used primarily in the simulator. Once the design is accepted as adequate it is necessary to check that any possible manufacturing fault can be detected during testing. The latter set of tests does not need to be ‘understandable’ in terms of the normal operation of the system since testing during manufacture is mainly on a go/no go basis. Developing and assessing the value of these tests is a major task and requires much further simulation. It is for this reason that the main chapters of this book begin with a look at the problems of writing test sequences.
The importance of careful testing of a design is illustrated by the costs involved. For the sake of example, let the cost of simulation be ‘one’ in whatever unit is appropriate.
An electrical circuit comprises an arrangement of elements for the conversion, transmission and storage of energy. Energy enters a circuit via one or more sources and leaves via one or more sinks. In the sources energy is converted from mechanical, thermal, chemical or electromagnetic form into electrical form; in the sinks the reverse process takes place. Sources and sinks are linked by elements capable of transmitting and storing electrical energy. The familiar battery-operated flashlamp serves as a reminder of the energy flow processes in a circuit. In this device, energy is converted from chemical to electrical form in the battery and transmitted along wires to the lamp where most of the energy is converted into heat. A small but useful portion is emitted in the form of electromagnetic radiation in the visible part of the spectrum.
In an electrical circuit energy is conveyed through the agency of electrical charge and through the medium of electric and magnetic fields. An essential feature of any circuit, therefore, is the provision of conducting paths for the conveyance of charge. As indicated in fig. 1.1, sources and sinks are operative only when charge flows through them. The rate at which charge flows is referred to as the current; the greater the current the greater the energy transmitted between sources and sinks.
Charge is set in motion by the action of the electric field established throughout the circuit by the sources.
Networks are frequently encountered in electronics, control and communication systems in which an input signal is impressed at one pair of terminals and an output signal is taken from another pair of terminals; such networks are called two-terminal pair networks or, more frequently twoport networks.
The resistance voltage divider, first introduced in section 2.2, is an example of an elementary two-port network, and many other examples have occurred in the intervening chapters. In particular, it was demonstrated in section 7.3.2 that a non-linear device such as the transistor could, for small-signal conditions, be modelled by linear, two-port network. The concepts relating to such networks are therefore of considerable generality, and in this chapter we examine the theory of two-ports in greater detail and introduce further applications.
The theory contained in this chapter is concerned with the functional relationships among the voltage and current variables at the two ports of the network as defined in fig. 8.1. If the variables are steady-state a.c. quantities, then these relationships are formulated in terms of impedances or admittances. These same relationships will, of course, apply if the variables are transformed variables; in this case impedances and admittances are generalized functions of complex frequency as defined in chapter 6. In the case of purely resistive networks the functional relationships among variables are identical in form for instantaneous and d.c. quantities as well as for a.c. quantities. It should also be noted that the same relationships apply for incremental (small-signal) a.c. quantities as defined in section 7.3.1.
By making the assumption that all of the elements in a circuit are linear, the analysis is greatly simplified. Although all real circuits are nonlinear to some degree, in most cases a linear treatment gives sufficiently accurate results, and even for circuits containing highly non-linear elements, methods can often be devised for dealing with them on a linear basis. It is for these reasons that the study of linear circuit theory is of paramount importance in electrical engineering science.
The theorems and techniques of linear circuit analysis presented in this chapter, while being of general usefulness and validity, are developed in the context of d.c. circuits. The advantages of this approach are twofold: firstly, the theory can be developed on the simplest possible basis and in terms which will be familiar to most students. Secondly, the study of d.c. circuit theory is of great practical importance in its own right since it arises in many branches of power and electronic systems analysis.
D.C. linear circuits comprise assemblies of linear lumped resistances together with ideal direct voltage and current sources. The theory appertaining to such idealized circuits is concerned with real situations since many types of source found in practice, a battery for example, can be represented to a good approximation by an ideal source in combination with a lumped resistance.
A typical voltage-current characteristic, or load characteristic, for a practical voltage source is shown in fig. 2.1.(b).
In chapters 3 and 4, circuits were considered in which the alternating energy sources possess the same frequency but, in general, different voltages and internal impedances, and arbitrary phase relationships. Each voltage source in such circuits may be thought of as being generated by the interaction between a stationary coil of wire and a properly shaped rotating magnetic field, as shown schematically in fig. 5.1 (a). Now, suppose that instead of a single coil (generally referred to as a winding) there are n windings symmetrically disposed on the stator of the machine. If the windings are identical, their impedances are equal and the amplitudes of their induced voltages are equal. The voltages will all be of the same frequency, determined by the angular speed of the rotating magnet, and the phase relations among them will be fixed. The phase difference between the voltages of two successive windings will be 2π/n radians or 360/n degrees. A machine constructed in this fashion is an n-phase generator.
The majority of power systems throughout the world utilize the three-phase generator, shown schematically in fig. 5.1 (b). In fig. 5.2 are shown (a) a phasor diagram for the three-phase generator, and (b) graphs of voltage v. time for the three phases. The three voltages differ in phase by 360/3 = 120°.
The generators in a power system are connected to a series of step-up and step-down transformers that provide voltage levels appropriate for the efficient transmission, distribution and consumption of the power generated.