Abstract:
A simulation method and a computer therefor, i.e., a simulator, for simulating operation of a circuit employing logic gates. The simulation method is to be called the event drive method, in which the output processing is executed only when an input to cause output changes and the output level and the start and finish time for the level are sent out. Hence the number of packets of data flowing for simulation can be minimized and also the number of times of data processing is reduced. This system is applied to each component in a logic circuit, whereby the parallel execution of processing as to the parallel components is possible so as to devise the simulation at a higher speed.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a logic simulation system, in other words, a logic simulation method which previously simulates the circuit operation by a computer when a circuit using logic gates is designed, and to a computer, i.e., a simulator which is used for practical use of the logic simulation method. 
     2. Description of the Prior Art 
     Since a circuit comprising many logic circuit components, such as logic gates, is often designed at a very complex level, it is troublesome to check the circuit operation by an actual circuit. Hence, prior to construction of the actual circuit, the operation is often presimulated and checked by the computer. A logic simulator is a tool to confirm whether or not an input and an output of signal is proper after carrying out the simulation. 
     The conventional logic simulator determines the output of each logic circuit component by inspecting the input for a predetermined period to compute the output, so that the result of computation, as it is or only in a case of changing the output content, has been given to the sequential components. 
     Such logic simulation, however, is larger in a processing load and requires longer latency, whereby the simulation at a high speed has been limited. 
     OBJECTS OF THE INVENTION 
     In the light of the above matter, the present invention has been designed. 
     A first object thereof is to provide a logic simulation method and a logic simulator, which reduce the times of computation to lighten the load on the computing circuit and devise the logic simulation at a high speed. 
     A second object of the invention is to provide a logic simulation method and a logic simulator, which can minimize the number of packets to reduce the load on the computing circuit and also devise the logic simulation at a high speed. 
     A third object of the invention is to provide a logic simulation method and a logic simulator, which can carry out the parallel processing as to the parallel logical circuit components and are operable at a high speed. 
     A fourth object of the invention is to provide a logic simulation method and a logic simulator, which, when a dominant input is introduced, outputs signals without the input of other data to reduce the latency to thereby devise the logic simulation at a high speed. 
     A fifth object of the invention is to provide a logic simulation method and a logic simulator, which are easy to add a delay time thereto. 
     The above and further objects and features of the invention will more fully be apparent from the following detailed description with reference to accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is an illustration of the principle of the present invention, 
     FIG. 2 is a block diagram of an embodiment of a logic simulator of the invention, 
     FIG. 3 shows a format of a transition information packet, 
     FIG. 4 shows the content of the logic circuit component information, 
     FIG. 5 shows a format of an event information packet, 
     FIG. 6 shows the content of the connection information, 
     FIG. 7 is a block diagram of an input processing unit, 
     FIG. 8 is a flow chart of the operation content of the input processing unit, 
     FIG. 9 is a block diagram of an output processing unit, and 
     FIG. 10 is a flow chart of the processing content of the computing unit. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     Firstly, the logic simulation method of the invention will be explained in summary. The method is to be called the event drive method, which executes the output processing only when an input to change an output is introduced, and sends out the output level and the duration thereof. 
     In other words, the input information for each logic circuit component is used as the signal level (including high impedance and uncertainty as well as the binary level) and the start and finish time for the level and each input is computed every time to examine possibility of change in the output level, so that only when the output level changes, the output level and the duration thereof (or the start time and the finish time) are given to the sequential component, thereby expecting a decrease in the times of computation. 
     Next, the present invention will be explained concretely by the drawings. 
     As shown in FIG. 1, for an AND gate of three inputs  ○1 ,  ○2  and  ○3 , the logic simulation method of the invention computes the outputs at the points a, b, c and d when the input signals  ○1 ,  ○2  and  ○3  rise or the same  ○3  falls, so that the computed output, only at the time of the points c and d when the output changes, is sent out to the sequential logic circuit components (AND, NAND, OR and NOR gates, buffers, inverters, 3 state buffers or flip-flops). Conventionally, the output is computed for the predetermined cycle period short enough to be compared with the time period from the signal changing time to the next signal changing time regardless of existence of change in the input signals  ○1 ,  ○2  and ○3 . 
     In the logic simulation method of the invention, the input signals ○1 ,  ○2  and  ○3  are not actually used, but used as the signal information (transition information) to be introduced in the AND gate shown in FIG. 1, and the signal level and the start time and the finish time therefor are given. For example, the high level portion at the input  ○1  has the signal level H, the level start time t 11  and the level finish time t 12  and the low level portion at the input ○3  has L, t 31  and t 32  respectively. The portion for computing the output of the AND gate, computes the output every time when the level changes in accordance with the transition information given in such state. As a result, when the output changes in comparison with the present output, the required output processing is carried out. 
     FIG. 1 shows a state where all the input signals are given, but in each logic circuit component, all the inputs are not always completely developed in the state where the output computation is possible. The output is computed in principle after all the inputs are developed. However, in the case that the dominant input, such as the high level input at an OR gate, which can determine the output without depending on the other input information, is given, the output is computed to be determined to an extent of the duration wherein the dominant input to decided, in which all the inputs are not waited to be developed. 
     Next, concrete explanation will be given on an embodiment of the logic simulator of the invention. 
     FIG. 2 shows the general construction of the logic simulator of the invention, in which a plurality of input processing units 1,1 . . . for computing the outputs on the basis of the inputs to the logic circuit component and a plurality of output processing units 2,2 . . . for distributing to the input processing units 1,1 . . . the computed outputs as they are or subjected to the necessary processing so as to carry out computation of the sequential logic circuit component, are connected with each other by network 3 so that data can desirably transmitted and received between the input and output processing units 1,1 . . . and 2,2 . . . . 
     A packet of transition information having the format as shown in FIG. 3 is introduced to the input processing unit 1 from the network 3 or the output processing units 2,2 . . . , and a packet of the event information having the format as shown in FIG. 5 is introduced to the output processing units 2,2 . . . from the input processing units 1,1 . . . respectively, the aforesaid transition information or the event information being fetched when necessary from the network 3. 
     Next, explanation will at first be given on the transition information. The packet comprises a selection code for specifying the input processing unit 1 to be the destination of the packet, the signal level, the start time and the finish time for the signal level, address of a memory 16 (to be discussed below) for storing the information as to the logic circuit components to give the signals displayed by the start time and finish time for the level, and input terminal numbers in the components. 
     FIG. 4 shows the content of the information as to one of the logic circuit components, the information comprising a computation code (the code of displaying the kind of components, such as the AND gate or the OR gate, or of computation), the number of the input terminals (Ni) of the components, the number of the output terminals of the same, the existence of the dominant input and the level thereof as to the respective input terminals 1 to Ni, and the connection information address as to the respective output terminals 1 to No. 
     Next, explanation will be given on the packet of the event information shown in FIG. 5. The packet comprises a selection code to specify the output processing unit 2 to be the destination of the packet, the level of the output signal, the start time and the finish time for the level, and address of a memory 23 (to be discussed below) storing therein the connection information regarding the address of the packet. 
     FIG. 6 shows the content of the connection information corresponding to one outupt, the information comprising the number of fan-outs (Nf), an address to specify the logic circuit component to be the address of the output as to the Nf of fanouts, and an input-terminal number of the corresponding component. 
     FIG. 7 is a block diagram of the input processing unit 1. The transition information packets of the contents as shown in FIGS. 3 and 4 are distributed through the network 3 to the input processing unit 1 corresponding to the selection code and stored in a memory 12 through an input unit 11 serving as to the interface with respect to the network 3 on the input side. The memory 12 queues and stores the data (level, and the start time and the finish time) of many logic circuit components allocated to the input processing unit 1 until all the inputs of the respective components are completely developed or the dominant input is given. The storage is formed to have the queue in a list form at every component and input terminal. The memory 16 stores the logic circuit component information, that is, the dominant input at the input terminal and the connection information address of the output terminal. The logic circuit component information stored in the memory 16 represents the logic circuit of the object for simulation together with the connection information from a memory 23 at the output processing unit 2, thereby being allocated to each memory prior to the execution of simulation. 
     A firing detection unit 13 reads out the contents of memory 12 as occasion requires and carries out firing detection to decide whether or not the computation processing is possible to complete all the inputs, or the dominant input is given. When the computation processing is possible, the firing detection unit 13 gives a notice of this to an arithmetic logical unit 14 and lets it carry out the computation processing. This computation processing decides the output level from a certain time to another. For instance, in an example in FIG. 1, assuming that the information of ○1  and  ○2  are already given and that of  ○3  is given to t 30  (at the time of the point c), the AND gate enables computation for the duration of T 0  to t 30 . The arithmetic logical unit 14 sends out to an event detection unit 15 the computation result, that is, the output level of the component and the start time and the finish time for the level, the information after used is erased from the memory 12. 
     The event detection unit 15 detects whether or not the event is created, in other words, whether or not the output computed with respect to the former output changes. The former output, in other words, the level of signal, which is output previously from the event detection unit 15 to the output processing unit 2 through an output unit 18, is stored in a state conserving unit 17. The event detection unit 15 compares the output from the arithmetic logical unit 14 with the content of the state conserving unit 17, so that when both are identical with each other, any output is not developed assuming that no event is created. On the contrary, when both the levels are different, the event information in the format in FIG. 5 is output to the output processing unit 2 through the output unit 18 of the interface between the event detection unit 15 and the network 3 on the output side. The event information is a combination of the signal level resulting from the computation by the arithmetic logical unit 14, the start time and the finish time for the level, the selection code based on the content of the memory 16, and address of the memory 23 storing therein the connection information. 
     FIG. 8 is a flow chart showing the content of the abovementioned operation of the input processing unit 1. 
     FIG. 9 is a block diagram showing construction of the output processing unit 2, in which the event information is given to the arithmetic logical unit 22 through an input 21 of the interface to the network 3 on the input side, where the event information is converted into the transition information to be delivered to the predetermined input processing unit 1 through an output unit 25 of the interface to the network 3 on the output side. 
     The memory 23 stores therein the connection information to specify the sequential logic circuit component to be given the transition information. The output conserving unit 24 stores therein the content of the event information previously introduced into the output processing units 2,2 . . . . 
     The arithmetic logical unit 22 makes the transition information on the basis of the input event information. The event information, as abovementioned, is output when the output of the logic circuit component changes, where the finish time of the new output level is temporary. In other words, assuming that the data  ○3  in the FIG. 1 example is given to the time of t 30 , between the points c and d, the output level at the point c changes from the low to the high level to thereby output the event information. The finish time for this level is defined until t 30&#39; , which is introduced into the output procesing unit 2. Thereafter, when the data of  ○3  after the point d or t 31  is given to the input processing unit 1 and the event information following the level changes from high to low at the time d is generated, the finish time of the period wherein the output of AND gate has a high level, is redefined as t 31 . The arithmetic logical unit 22 defines the finish time, in other words, makes the transition information, by means of the event information newly introduced and that stored in the output conserving unit 24 and previously introduced, and then sends out the made transition information to the input processing unit 1. 
     FIG. 10 is a flow chart showing the content of processing by the arithmetic logical unit 22. 
     In addition, the arithmetic logical unit 22 can be constructed not only to make the finish time as aforesaid but also to carry out the adding processing for a delay time. In other words, a delay (such as gate delay) of each logic circuit component or a delay in wiring can be added herewith and then given to the sequential component. 
     As seen from the above, the aforesaid logic simulation method or the logic simulator, is adapted to develop the output by the event drive method as to each logic circuit component, thereby enabling the parallel execution of processing for the parallel components. Moreover, since the output is developed only when the output of each component changes, the number of packets flowing in the order of the input processing unit, the output processing unit, the input processing unit and so forth, is reducible to the minimum requirement, and also the computation is carried out only when the signal changes, whereby the times of data processing are largely reduced and the logic simulation at a high speed can be expected. Furthermore, when there is the dominant input, the logic simulator outputs the signal without an input of other data so as to reduce the latency, thereby further devising the logic simulation at a higher speed. In addition, the delay time is easy to add. 
     As this invention may be embodied in several forms without departing from the spirit of essential characteristics thereof, the present embodiment is therefore illustrative and not restrictive, since the scope of the invention is defined by the appended claims rather than by the description preceding them, and all changes that fall within meets and bounds of the claims, or equivalence of such meets and bounds thereof are therefore intended to be embraced by the claims.