Improvements in or relating to the simulation of circuits having analogue parts and digital parts

Abstract: The operation of analogue circuit blocks is simulated on a digital computer by a computer program in which each analogue circuit block (Fig. 1-A1-A5; Fig. 3-M1-M4) is represented by a procedure call including details of input signal name(s) (IN1, IN2) amd value(s), output signal name(s) (SIG1-SIG3, OUT) and value(s), the operating parameters for the block and the sampling instant for the evaluation of the or each output signal value. The interconnections between blocks are represented by the use of the same signal names. Each sampling instant indicates when the value of an output signal will have changed by a predetermined amount since the previous sampling instant. A common sampling time is used for the circuit and is selected as the earliest of the sampling instants of the circuit blocks. The simulation can include digital circuit blocks (Fig. 2-L1-L4) represented by an event-driven or a levelised compiled code model, with analogue/digital conversion (Fig. 1-A/D interface I) to handle the interconnections between analogue (A1-A5) and digital circuit blocks (D). A feedback connection (Fig. 4) around part of the analogue circuit (N2, N3 is handles by progressive adjustment of the feedback input signal value while other input signal values (IN2, SIG2, SIG3) are held constant.

Description: The present invention relates to the simulation of the operation of a circuit having both analogue circuit parts and digital circuit parts connected together. When designing an electronic circuit it is common practice to simulate the operation of the circuit using a suitable computer program in order to ensure that the circuit when constructed will perform the required functions. At the highest level of the construction hierarchy of an electronic system are sub-systems, below which are functional building blocks, and finally at the lowest level there are individual components such as transistors, resistors and capacitors. It is not practical to provide a simulator based on sub-systems because of the wide variety of sub-systems which could be used. Simulators which simulate systems through analysis of the currents and voltages in the lowest level components are termed "circuit level" simulators. Although such simulators are usually quite accurate and can simulate both analogue and digital circuit blocks, they operate very slowly so that a long period of time is required to obtain a full simulation of the behaviour of the overall system. Another kind of simulator operates by utilising the behavioural descriptions of the functional building blocks, such as for example logic gates, operational amplifiers, filters, etc. When such a simulator is used to simulate the operation of digital circuits it is known as a "logic simulator" and uses digital logic values as the signals to provide the interaction between the blocks. Logic simulators cannot simulate the operation of analogue circuits because of the continuously variable nature of the signals to be fed from one circuit block to another. On the other hand, logic simulators can simulate the operation of digital circuits quite quickly and can readily be programmed to provide a reasonable simulation of a digital system in a relatively short period of time. An article entitled "Behavioral modeling of digital devices in an analog simulation environment" (VLSI Systems Design: January 1988: pages 16, 17, 20, 21, 24, 25: Author - B. O'Rourke) discusses the modelling of the analog behaviour of circuits or systems that include clocked digital devices and is directed principally at the use of general descriptions of device and system functions that are independent of the implementation technology. An article entitled "Behavioural modelling of mixed analog-digital circuits" (Proceedings of the 7th International Conference on custom and semi-custom ICs held in London: 1987: pages 49.1 to 49.10: Author - M. Rumsey) discusses the simulation of mixed analog-digital integrated circuits by the use of a behavioural approach in contrast to direct transistor-level analysis as a method of achieving system-level simulation of a silicon chip during design development. There are two common types of logic simulators; event-driven and levelised compiled code simulators. In an event-driven logic simulator, the response of a circuit is only evaluated when its inputs are changed, and the simulator must employ an event queue in order to maintain the changes at different parts of the circuit in step. The servicing of the event queue requires a lot of processing to be done by the computer, and consequently slows down the operation of the simulator. In a levelised compiled code logic simulator, the inputs to a circuit are set up and maintained at those values while each logic element is evaluated in the order of signal flow through the circuit. The sequential nature of the analysis makes evaluation much simpler and therefore faster than in the case of an event-driven simulator. Enhancements of event-driven logic simulators have been proposed to enable them to cope with analogue circuit blocks and these have relied upon the use of real numbers indicating the actual values of voltage signals at sampling instants in the operation of both analogue and digital circuits. Such enhancements of logic simulators tend to slow down their operation so that a longer period of time is required to simulate the operation of digital circuits than is possible when only digital logic values are transmitted between the blocks. It is an object of the present invention to enable the simulation of the operation of circuits composed of analogue circuit blocks in which the disadvantages outlined above are substantially overcome. The invention provides a method of simulating the operation of a circuit comprising a plurality of analog circuit blocks having operational parameters by means of digital computer, said method comprising: representing the circuit having a plurality of analog circuit blocks by a computer program; in the computer program, representing each of said plurality of analog circuit blocks by a procedure call; in the representation of each analog circuit block by a procedure call, including details of input signal names and values, and output signal names and values, the operational parameters of the analog block, and the sampling instant for evaluation of each output signal value; representing each connection between the analog circuit blocks by the use of the same signal name for an output signal and an input signal; providing real numbers to indicate the actual values of the input and output signals; establishing each sampling instant for the evaluation of an output signal value as the time at which that value has changed by a predetermined amount since the previous sampling instant, or an earlier time at which the value of another output signal of the same analog signal block has changed by the predetermined amount; selecting a sampling time common to all of the procedure calls as the earliest of the sampling instants provided by the procedure calls of all of the analog circuit blocks included in the circuit whose operation is being simulated; and evaluating the output signal values from the procedure calls representing each of said plurality of analog circuit blocks at the selected sampling time common to all of the procedure calls. Preferably, the method includes modelling the operation of a circuit comprising digital circuit blocks by a logic simulator of an event-driven type in a manner known per se so as to provide a model of a circuit including an analog sub-system and a digital sub-system; representing the interconnections between the analog sub-system and the digital sub-system by an analog/digital interface; and arranging the time scale of the digital sub-system to match the time scale of the analog sub-system. Alternatively, the method includes modelling the operation of a circuit comprising digital circuit blocks by a logic simulator of a levelised compiled code type in a manner known per se so as to provide a model of a circuit including an analog sub-system and a digital sub-system; representing the interconnections between the analog sub-system and the digital sub-system by an analog/digital interface; and arranging the time scale of the digital sub-system to match the time scale of the analog sub-system. Preferably, the method includes at least one one-bit digital-to-analog conversion in response to a digital logic value from the digital sub-system; and/or at least one one-bit analog-to-digital conversion in response to an analog signal value from the analog sub-system. Preferably, the circuit comprises a plurality of analog circuit blocks including a feedback path in which an input signal to part of the circuit is derived from an output signal of that part, and the method includes progressively adjusting the fedback input signal conditioned upon previous adjustments of the fedback input signal while external input signals to the circuit are held constant; and repeating the adjustments to the fedback input signal until a stable fedback input signal and a stable output signal are obtained. Preferably, the method includes deriving an estimated value for the fedback input signal from the input signals applied to the circuit part before each of the progressive adjustments to the fedback input signal and terminating the process of progressive adjustments to the fedback input signal when the difference between the value of the fedback input signal and the estimated value is less than a predetermined amount. Preferably, the predetermined amount is a predetermined fraction of a previous voltage step allocated to the circuit block. Preferably, the method includes storing the values of the internal states of the part of the circuit to which the fedback input signal is applied in duplicate as a master copy and a working copy; copying the working copy from the master copy at each adjustment of the fedback input signal;employing the working copy in calculating the output signal value of the circuit part; and updating the master copy at the common sampling times. Preferably, the method includes deriving the estimated value for the fedback input signal from the input signals applied to the circuit part by a first manner of derivation wherein small changes in the input signals are caused to occur; measuring the resulting changes in the fedback input signal; calculating a sensitivity factor relating the resulting changes to the causal changes; and deriving the estimated value for the fedback input signal from the input signals by employing the sensitivity factor on the assumption that the relationship is purely linear. Preferably, the method includes monitoring the adjustments of the fedback input signal; determining whether the condition for terminating the progressive adjustments to the fedback input signal may be satisfied within a few further additional adjustments; and changing to a second manner of deriving the estimated value for the fedback input signal based upon the difference between the value of the fedback input signal and the previous estimated value when the condition for terminating the progressive adjustments to the fedback input signal is not satisfied within the few further additional adjustments. Preferably, the second manner of deriving the estimated value for the fedback input signal involves moving the estimated value toward the obtained value of the fedback input signal in increasing jumps until an overshoot occurs; and reducing the jumps in response to the occurrence of an overshoot to a fraction of the previous size and performed in the opposite direction. Preferably, the predetermined amount is 1 % of the maximum possible variation in the output signal. The analogue sub-system model may be a levelised compiled code model. Because the signals occurring in analogue are continuous functions of time and the digital computer requires numbers to process, it is necessary to sample the analogue signals at discrete time points and process the values obtained. In a procedure call modelling an analogue electrical circuit block the sampling instants are to be set when by the change in an output signal of the block since the previous sampling instant is a predetermined voltage or current step. An example of a voltage step would be 1% of the maximum possible variation in the output signal voltage. Such a procedure for setting the sampling instant when applied to all the analogue circuit blocks in the sub-system could give rise to several different sampling instants. Because the model of the analogue sub-system is of the levelised compiled code type it is necessary to use the same sampling instants in all the analogue circuit blocks in the sub-system and this is achieved by each time selecting the earliest sampling instant among all the analogue circuit blocks in the sub-system and using that instant in all the analogue circuit blocks. In that way the accuracy of the analogue simulation is at least as good as that set by the user when he defined the voltage steps. In addition, the value of the output voltage of the block(s) at the sampling instant must be represented by a number which can be transmitted to the next block(s) in the circuit. Of course, the time scale in the analogue circuit sub-system model will not, in general, correspond to real time but it must match the time scale used in the logic simulator for the digital circuit blocks. The analogue circuit sub-system may include a feedback path so that an input to part of the circuit is derived from an output of that part. The levelised compiled code simulation of the analogue sub-system may be arranged to model the operation of the feedback path. The response of the circuit may be determined by a process of progressive adjustments of the fed back input resulting from taking into account the previous adjustment of that input, whilst any external inputs to the circuit are held constant. The adjustment is repeated a number of times until a stable fed back input and a stable output are obtained. While the adjustments are being calculated the signal values in parts outside the feedback loop, both analogue and digital, do not change. Two or more unconnected feedback circuits can be processed at the same time. Examples of the simulation of the operation of circuits will now be described with reference to the accompanying drawings, of which:- Figure 1 is a block diagram of a circuit having analogue and digital parts; Figure 2 is a block diagram of an example of a digital circuit; Figure 3 is a block diagram of an example of an analogue circuit; and Figure 4 is a block diagram of an example of an analogue circuit including feedback. Let it be supposed that it is required to simulate the operation of a circuit including both an analogue part and a digital part. The design of the circuit is entered into a computer in the form of cells respectively representing the functional blocks, both analogue and digital, of the circuit. Each cell contains the name or source of the, or each, input signal to the particular block, the name or destination of the, or each, output signal from the particular block, and some representation of the signal processing properties of the particular block from which the value of the output signal(s) generated by the block in response to the input signal(s) can be derived. When the model is operated, the externally originating signals which form the inputs, analogue and/or digital, to the circuit are set to the required initial values, and are then changed in the same way as they would in the operation of the circuit itself. The input signals to the digital part of the circuit have digital logic values, such as "high" and "low" or "0" and "1". An input signal to the analogue part of the circuit are samples taken from a continuous signal which is a continuous function of time at given sampling instants. The changes in the two types of input signal, analogue and digital, must be kept in synchronism and may take place at a slower rate than real time to allow time for the model of the circuit to respond to the changes. On the other hand, if the processing speed of the computer is high enough or the digit rate of the digital input signals and the frequency content of the analogue input signals are low enough, the model may operate on samples in real time. The procedure calls representing blocks receiving the input signals from outside the circuit are processed by the computer to determine what output signals they will produce, and the resulting signals are applied as inputs to other procedure calls. The signals received by these other procedure calls are processed, resulting in other signals being generated and applied to further procedure calls, and so on. The processing of the procedure calls follows the various signal paths through the circuit with the final result that one or more output signals are generated. The computer is arranged to display the output signals to the user as the response of the model of the circuit to the input signals. The computer may also display the values of the intermediate signals to aid the understanding of the operation of the circuit model. Facilities may be provided for changing the parameters of some procedure calls representing circuit blocks so that the user can see the effect of changing component values or performance characteristics on the operation of the circuit. The simulation program of the computer is divided into two distinct parts, a first part providing a model of the digital blocks in the circuit and a second part providing a model of the analogue blocks in the circuit. The first part of the program, that providing the model of the digital blocks in the circuit, is a conventional logic simulator program. The second part of the program, that providing the model of the analogue blocks in the circuit, not only handles the transmission of the signals between the analogue blocks but it also provides the conversion of the analogue signal values to digital logic values for signals which are applied to a digital block from an analogue block, and the conversion of digital logic values to analogue signal values for signals which are received by an analogue block from a digital block. Typically, the analogue to digital conversion will involve the production of a "1" if the analogue voltage is above a threshold value and the production of a "0" if it is below that value. The digital to analogue conversion may result in a first voltage (say, 5 volts) being produced in response to a "1" and a second voltage (say, 0 volts) being produced in response to a "0". Although the input and output signals of the analogue circuit blocks are usually measured in terms of voltage, there are forms of analogue circuit system component where some other electrical or mechanical variable forms the input and/or output signal, such other forms of component can also be modelled by the procedure calls. Referring now to Figure 1 which shows a hypothetical circuit having digital circuits D and analogue circuit blocks A1, A2, A3, A4 and A5. The blocks A2 and A3 are connected to apply input signals to the digital circuits D, and the blocks A3 and A4 are connected to receive input signals from the digital circuits D. The analogue/digital interface is represented by the broken line I; this interface represents the conversion of analogue signals to digital logic signals for signals which are being applied to the digital circuits D from the analogue blocks A1 - A5, and the conversion of digital logic signals to analogue signals for signals received by the analogue blocks A1 - A5 from the digital circuits D. Digital logic input signals from an external source are applied to the digital circuits D along an input E. Digital logic output signals from the digital circuits D are applied to an external circuit along an output F. Analogue signals in the form of sampled values are applied as inputs to the analogue block A1 along an input G. Analogue output signals from the analogue block A4 appear on an output H, again in the form of sampled values. When simulating the operation of the circuit shown in Figure 1, the first part of the program, the logic simulator, provides a model of the digital circuits D and the second part of the program provides a model of the analogue circuit blocks A1, ..., A5 as well as the analogue/digital interface I. Of course, the program is not limited to simulating the operation of the circuit shown in Figure 1, but can simulate the operation of any circuit. An advantage of separating the analogue circuit blocks from the digital ones in the simulation by providing separate simulation programs for the analogue part and the digital part of the circuit is that is necessary to transmit analogue signal values only in the analogue part, because the digital part need transmit only digital logic values. Figure 2 shows an example of a digital circuit having two inverters L1 and L2 to which input signals IN1 and IN2 are respectively applied. The outputs of the inverters L1 and L2 which are SIG1 and SIG2 respectively are applied to the inputs of an AND-gate L3. A further inverter L4 receives the output SIG3 and the AND-gate L3 to produce the output signal. The input to the computer by the user specifies the circuit shown in Figure 2 in terms of hardware description language as follows:- Name Block type input/output signals L1: Inverter IN1, SIG1; L2: Inverter IN2, SIG2; L3: AND-gate SIG1, SIG2, SIG3; L4: Inverter SIG3, OUT. In the program constructed by a levelised compiled code logic simulator the four procedure calls representing the four logical elements L1, L2, L3 and L4 are set out as follows:- The logic simulator includes a library of logic elements including an inverter and an AND-gate and the information in the library includes the fact that an inverter has one input signal and one output signal, and the fact that an AND-gate has two input signals and one output signal. It should be noted that the order of the procedure calls in the program is critical because the statements are executed sequentially and it is necessary for the values of SIG1 and SIG2 to be worked out before the output SIG3 of the AND-gate is derived from the values of SIG1 and SIG2. As mentioned above, the signals IN1, IN2, SIG1, SIG2, SIG3 and OUT can assume only logic values such as 0 and 1 or high and low. Figure 3 shows an example of an analogue circuit having buffers M1 and M2 to which input signals IN1 and IN2 are respectively applied. The outputs of the buffers M1, M2, which are named SIG1 and SIG2, are applied to the noninverting and inverting inputs respectively of an operational amplifier M3. The output signal of the operational amplifier M3 is named SIG3 and is applied through a buffer M4 to produce the output signal OUT. In simulating the operation of this analoque circuit the user would employ the second part of the program which would draw from a library of primitive circuits storing the different forms of analogue circuit block, the procedure call forms for the four circuit elements M1, M2, M3 and M4. The circuit shown in Figure 3 may be specified as follows:- Name Block type input/output signals M1 Buffer IN1, SIG1; M2 Buffer IN2, SIG2; M3 OPAMP SIG1, SIG2, SIG3; M4 Buffer SIG3, OUT. Because the circuit elements in this instance are for handling analogue signals and not digital ones, the library records the parameters that determine the performance of the circuit elements. In addition it is necessary for the program to provide a mechanism for handling circuit evaluation times. In the case of an event-driven model of a digital circuit the signals in the model are evaluated whenever one of the inputs of the circuit changes, this being possible because the change from one state to another of the input and output signals is assumed to be instantaneous. For an analogue circuit model the program must determine the times of evaluation of the input and output signals because the values of these signals can be varying all the time and it is possible for an output value of a circuit to be varying even though the inputs to that circuit are constant. The program determines the evaluation times by reference to a voltage step. This voltage step is an increment or decrement in the voltage concerned and may be an absolute value, such as, for example, 1 millivolt. The program provides an opportunity for the user to define a voltage step appropriate to each analogue circuit element. The program calculates the future time, relative to the present time at which the specified voltage step will be reached in the output value of the circuit on the basis of the parameters specified for that circuit in the library. The future times for all of the circuit elements in the circuit are then compared and the earliest of these is selected by the program for use by all the circuit elements in the circuit. The interval between the present and future times is termed the "retrigger time" and can vary throughout the period of operation of the circuit. At the start of the program the value of the retrigger time is initially set at an arbitrarily high level, but after the program has worked through all of the circuit elements the retrigger time will have the value required by the element having the tightest timing requirement. The resulting program structure for the circuit shown in Figure 3 is as follows:- Comparison of that program structure with the structure produced for the digital circuit reveals the following differences. Each cell includes the reference number - M1, M2, etc., of the circuit element which is used as a pointer to memory locations where previous state values may be recorded for use in the modelling algorithms. The circuit parameters are not required for digital devices because the logical operation performed by any such device is determined by its name. In the case of analogue circuit elements there could, for example, be operational amplifiers having different gains and different slew rates. A third difference is in the provision of the maximum voltage step and the retriggering time which are used as described above. In addition to evaluating the outputs of the models at the instants determined by the retriggering time, the model is also evaluated when an input to the analogue circuit as a whole is changed, for example, in response to a change in a digital logic signal applied to the analogue sub-system. This means that each model of a circuit element must have the ability to evaluate its output at any time and not simply at the specified voltage steps. As mentioned above, it is necessary to keep the changes in the analogue part of the circuit in step with those in the digital part, which involves maintaining the correct relationship between the retriggering times and the clock times of the digital circuits. At the interfaces between the analogue circuits and the digital circuits, the program inserts one-bit analogue-to-digital converters or digital-to-analogue converters for carrying out the conversion between digital logic values and analogue signal values. Analogue circuits, and hence the models representing them, sometimes contain feedback where the output of a block in a circuit is fed back to its own input or that of an earlier block in the circuit. In this situation it is impossible to work through the circuit from input to output to determine the signal levels at each block, but if the feedback loop is broken, it can be done, although there will remain a feedback signal which must be taken into account. Figure 4 shows an example of a circuit with feedback. An input signal IN2 is applied as an input to a buffer N1, the output, SIG2, of which is applied to the non-inverting input of an operational amplifier N2. The output signal, SIG3, of the amplifier N2 is applied as the input to a buffer N3 the output of which forms the output signal OUT of the circuit. The signal OUT is also fed back to be applied to the inverting input of the amplifier N2. The model program compiled by the simulators follows the principles outlined above with reference to Figure 3 except that it contains a loop for calculating the feedback signal. The program to model that circuit is as follows;- The second program provides a method of feedback management which may be summarised as follows. First some terminology will be clarified. The model is invoked at various instants, and following each instant a number of iterations round the feedback loop(s) are made to establish the correct value of the feedback signal(s). It is in this context that the terms "iteration" and "invocation" are used in the following description. The program includes a procedure which is applied to a signal that is fed back. At each invocation this procedure estimates the value that the feedback signal should have at that instant. Several iterations are made of a program loop for evaluating the feedback signal. The iterations are terminated when the difference between the value of the feedback signal and an estimated value derived from previous values of the feedback signal becomes sufficiently small, for example, a predetermined fraction of the voltage step allocated to the circuit block. Some circuit blocks require a memory of past state information, and these actually have two copies of that information. One is known as the master copy, and the other as the working copy. Upon each iteration the master copy of the past state information is copied into the working copy of the past state information, and it is the working copy that is used to calculate the model output. This procedure is followed so that each iteration within an invocation is calculated on the basis of correct past information - if this were not done then each iteration would update the past state information, which is required to be the past state at the previous retrigger time and therefore must be fixed until the next retrigger time. Once the last iteration is made the working copy of the information is what should be the master copy for the next retrigger time and so, after each invocation of the model, the pointers indicating the working and master copies are swapped over. The two features mentioned above, the production of an estimate of the feedback signal and the use of working and master copies of the past state information, make possible the evaluation of feedback signals. There are two key elements in the first feature. First it is necessary to establish when the value of the feedback signal is sufficiently stable, and secondly when it is necessary to make a new calculation of the estimated value. These processes are performed as follows. On the first iteration within an invocation the initial value used for the feedback signal is actually the value of that signal generated on the previous invocation. As that value was generated at an earlier time instant it is not correct for the present time instant. The output signals of the circuit blocks are evaluated and then the procedure for estimating the value of the feedback signal is called and the difference between the estimated value and the obtained value is measured. This difference is recorded as a criterion as to whether or not the feedback signal estimate is good enough; if the difference between estimated value and the obtained value on a subsequent iteration is smaller than a given fraction of the first difference (e.g. by a factor of 20), then the estimate is deemed good enough. The first difference is dependent on the voltage step size of the immediately preceding block, and what is required is to make sure that the error in estimating the feedback value is small relative to that voltage step size. Upon completion of the first iteration the procedure for estimating the value of the feedback signal will modify that value in preparation for the second iteration. The latest estimated value is a small fraction of the way from the last estimated value towards the last obtained value. In a stable system, moving the estimated value towards the obtained value will always cause the next obtained value to move in the direction towards the estimated value. A small change only is made on the second iteration, in order that the sensitivity to changes in the estimated value of the obtained value can be measured on the next iteration. After the second iteration the procedure for estimating the value of the feedback signal can evaluate that sensitivity, and can forecast the next estimated value based on that sensitivity in such a way that in a purely linear system the two values will coincide. If, on the third iteration, it turns out that a linear estimate is not sufficiently accurate, a further algorithm is applied. This measures the present difference between the estimated value and the obtained value, and moves the estimated value by a small fraction of that difference (e.g. 1/8). If this fails the amount of movement is doubled on successive iterations. In the event of overshoot a small fraction of the last increment of the estimate is applied in the opposite direction. Essentially the algorithm applied is one of moving the estimate towards the obtained values in increasing jumps, until an overshoot occurs, in which case the search is taken back in the other direction with the jump size scaled down by a small fraction (for example, 1/8). The result (or consequence) is that searching for the correct estimated value is done to increasingly finer resolution. This is therefore inherently stable, and is flexible enough to permit several feedback signals to be modified at the same time. In the case of analogue circuit blocks having a relatively complicated transfer function, the parameters of the cell may include the transfer function in the form of a Laplace transform or a Z-transform, and the program may be arranged to calculate the output signal value from the current input signal value and stored previous signal values taking into account the time scale.

Claims: A method of simulating the operation of a circuit comprising at least a plurality of analog circuit blocks having operational parameters by means of a digital computer, said method comprising: representing the circuit having a plurality of analog circuit blocks by a computer program; in the computer program, representing each of said plurality of analog circuit blocks by a procedure call, in the representation of each analog circuit block by a procedure call, including details of input signal names and values, and output signal names and values, the operational parameters of the analog block, and the sampling instant for evaluation of each output signal value, representing each connection between the analog circuit blocks by the use of the same signal name for an output signal and an input signal, providing real numbers to indicate the actual values of the input and output signals, and establishing each sampling instant for the evaluation of an output signal value as the time at which that value has changed by a predetermined amount since the previous sampling instant, or an earlier time at which the value of another output signal of the same analog signal block has changed by the predetermined amount; characterized by selecting a sampling time common to all of the procedure calls as the earliest of the sampling instants provided by the procedure calls of all of the analog circuit blocks included in the circuit whose operation is being simulated; and evaluating the output signal values from the procedure calls -- representing each of said plurality of analog circuit blocks at the selected sampling time common to all of the procedure calls. -- A method as set forth in Claim 1, further characterized by modeling the operation of a circuit comprising digital circuit blocks by a logic simulator of event-driven type in a manner known per se so as to provide a model of a circuit includinq an analog sub-system and a digital sub-system; representing the interconnections between the analog sub-system and the digital sub-system by an analog/digital interface; and arranging the time scale of the digital sub-system to march the time scale of the analog sub-system. -- A method as set forth in Claim 1, further characterized by modeling the operation of a circuit comprising digital circuit blocks by a logic simulator of levelised compiled code type in a manner known per se so as to provide a model of a circuit including an analog sub-system and a digital sub-system; representing the interconnections between the analog sub-system and the digital sub-system by an analog/digital interface; and arranging the time scale of the digital sub-system to match the time scale of the analog sub-system. -- A method as set forth in either of Claims 2 or 3, further characterized by at least one one-bit digital-to-analog conversion in response to a digital logic value from the digital sub-system; and/or at least one one-bit analog-to-digital conversion in response to an analog signal value from the analog sub-system. -- A method as set forth in any preceding claim, wherein the circuit comprising at least a plurality of analog circuit blocks includes a feedback path in which an input signal to part of the circuit is derived from an output signal of that part; and further characterized by: progressively adjusting the fedback input signal conditioned upon previous adjustments of the fedback input signal while external input signals to the circuit are held constant; and repeating the adjustments to the fedback input signal until a stable fedback input signal and a stable output signal are obtained. -- A method as set forth in Claim 5, further characterized by deriving an estimated value for the fedback input signal from the input signals applied to the circuit part before each of the progressive adjustments to the fedback input signal, and terminating the process of progressive adjustments to the fedback input signal when the difference between the value of the fedback input signal and the estimated value is less than a predetermined amount. -- A method as set forth in Claim 6, further characterized in that the predetermined amount is a predetermined fraction of a previous voltage step allocated to the circuit block. -- A method as set forth in either of Claims 6 or 7, further characterized by storing the values of the internal states of the part of the circuit to which the fedback input signal is applied in duplicate as a master copy and a working copy; copying the working copy from the master copy at each adjustment of the fedback input signal; employing the working copy in calculating the output signal value of the circuit part; and updating the master copy at the common sampling times. -- A method as set forth in either of Claims 6 or 7, further characterized by deriving the estimated value for the fedback input signal from the input signals applied to the circuit part by a first manner of derivation wherein small changes in the input signals are caused to occur; measuring the resulting changes in the fedback input signal; calculating a sensitivity factor relating the resulting changes to the causal changes; and deriving the estimated value for the fedback input signal from the input signals by employing the sensitvity factor on the assumption that the relationship is purely linear. -- A method as set forth in Claim 9, further characterized by monitoring the adjustments of the fedback input signal; determining whether the condition for terminating the progressive adjustments to the fedback input signal may be satisfied within a few further additional adjustments; and changing to a second manner of deriving the estimated value for the fedback input signal based upon the difference between the value of the fedback input signal and the previous estimated value when the condition for terminating the progressive adjustments to the fedback input signal is not satisfied within the few further additional adjustments. -- A method as set forth in Claim 10, further characterized in that the second manner of deriving the estimated value for the fedback input signal involves moving the estimated value toward the obtained value of the fedback input signal in increasing jumps until an overshoot occurs; and reducing the jumps in response to the occurrence of an overshoot to a fraction of the previous size and performed in the opposite direction. -- A method as set forth in any preceding claim, further characterized in that the predetermined amount is 1% of the maximum possible variation in the output signal. --

Inventors: RUMSEY MICHAEL M, SACKETT JOHN W, RUMSEY, MICHAEL M., SACKETT, JOHN W.
Applicants: TEXAS INSTRUMENTS INC, TEXAS INSTRUMENTS LTD, TEXAS INSTRUMENTS INCORPORATED, TEXAS INSTRUMENTS LIMITED
Application year: 1990
Main classification: G06F17
IPC codes: G06F11, G06F17, G06J1