DATA PROCESSOR SYSTEM HAVING LOOK-AHEAD CONTROL

Abstract: A data processor system is set up with, at least, a main memory (11) and a central control unit (12). The main mem­ ory (11) stores therein instructions to be executed by the central control unit (12). The main memory (11) contains therein an even part buffer (22) and an odd part buffer (21) which momentarily store prefetch instructions of even ad­ dresses and odd addresses, respectively. The thus buffered prefetch instructions are sequentially fed from these two buffers alternately to the central control unit (12).

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processor system having look-ahead control. That is, the system is operated under an advanced control method by using prefetch instructions. 2. Description of the Related Art The data processing capability, such as the processing speed, of a cental control unit (CC) used in a data processor system is determined by various factors. In a so-called Neumann-type data processor, in particular, the processing time of the data processor is largely accounted for by the access time for accessing a main memory (MM) used in the data processor system. In order to shorten the access time for high-speed processing, a variety of techniques have been proposed. One of these is a hierachal memory. A typical hierarchal memory is a cache memory, which remarkably increases the operation speed of the data processor. The cache memory method is, however, not so preferable in view of software design freedom due to the variety of conditional restrictions necessary be considered. More specifically, it is a very important whether or not each desired or intended piece of data actually exists in the cache memory. This is usually defined as a "hit rate". Further, the cache memory must be fabricated as a high-speed memory, which necessarily increases the cost of the related data processor system. In view of the above, it has long been hoped to realize a data processor system of high cost performance, i.e., a low price data processor system however able to be operated with a very short instruction access time and high processing speed. It is generally known to adopt the so-called bank division method in a data processor system for the purpose of speeding up the access to a main memory (MM) thereof. Further, it is generally known to adopt the so-called look-ahead method in a data processor system for the purpose of speeding up the process achieved by the central control unit (CC). The look-ahead method uses the prefetch instructions by utilizing the fact that a series of instructions are usually stored sequentially one by one in the main memory (MM). A combination of the bank division method and the look-ahead method would be most preferable in increasing the operation speed of the overall data processing system. In the prior art, there are two known method for performing look-ahead control, each of which methods will be explained in detail hereinafter. These two methods, however, each have their own disadvantages. The first method has the disadvantage that the higher the operation speed of the central control unit (CC), the lower the capability of look-ahead control. The second method has the disadvantage that the number of the interface lines, via a memory bus, between the main memory (MM) and the central control unit (CC) becomes very large. The Article "Overlapped Dual-Access Instruction Store" from the IBM Technical Disclosure Bulletin, Vol. 14, No. 11, April 1972, pages 3423-3424 describes a main memory system for storing instructions of a data processor system comprising: the main memory containing therein an even memory bank and an odd memory bank which are specified by the even addresses and odd addresses respectively, these two memory banks operating independently from each other; the main memory further containing therein an even prefetch instruction buffer and an odd prefetch instruction buffer cooperating with the even and odd memory banks respectively, the main memory operative to read instructions sequentially from the even and odd memory banks, and store the thus read instructions in the corresponding prefetch instruction buffers; and the main memory further operative to control the even and odd prefetch instruction buffers such that the stored prefetch instructions are produced alternatively from the even and odd prefetch instruction buffers. SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a data processor system having improved look-ahead control relative to the known look-ahead control and, thus, to cancel the aforesaid disadvantages of the prior art. The above object is attained with the data processor system as set out in claim 1. BRIEF DESCRIPTION OF THE DRAWINGS The above object and features of the present invention will be more apparent from the following description of the preferred embodiments with reference to the accompanying drawings, wherein: Fig. 1 illustrates a data processor system operated under look-ahead control according to a prior art method; Fig. 2 illustrates a data processor system operated under look-ahead control according to a prototype method of the present invention; Fig. 3 is a time chart for explaining a memory access according to prior art look-ahead control; Fig. 4 is a time chart for explaining the memory access dealt with in the present invention; Fig. 5 illustrates a data processor system operated under look-ahead control according to the present invention; Figs. 6A, 6B, 6C, and 6D are schematic block diagrams of the main memory according to the present invention; Figs. 7A and 7B illustrate detailed examples of the main memory shown in Figs. 5 and 6A through 6D according to the present invention; Fig. 8 is a time chart for explaining the operation of the main memory shown in Figs. 7A and 7B; Fig. 9 is a time chart for explaining the operation of a timing control circuit shown in Figs. 6B, 6D, and 7A; Fig. 10 illustrates a detailed example of a prefetch instruction address counter of Fig. 7B; and Fig. 11 illustrates a detailed example of a prefetch instruction address counter shown in Fig. 6B. DESCRIPTION OF THE PREFERRED EMBODIMENTS Before describing the embodiments of the present invention, the related art and the disadvantages therein will be described with reference to the related figures. Figure 1 illustrates a data processor system operated under look-ahead control according to a prior art method. In Fig. 1, a main memory (MM) 11, a central control unit (CC) 12, and a channel control unit (CHC) 13 are commonly connected to a memory bus 14. the unit (CHC) 13 is further connected to a common bus 17 which is provided with various input/output (I/O) units, such as a magnetic tape storage 18 and a floppy disk device 19. The central control unit (CC) 12 contains therein, at least, an instruction prefetch buffer (IPB) 15 and a register for storing an operand (OPREG). The buffer 15 has a capacity of (n+1) words (0 to n). According to the first prior art look-ahead method, the instruction prefetch buffer 15 is mounted inside the central control unit (CC) 12. Under this method, high-speed processing of the unit (CC) 12 can be maintained so long as the prefetch buffer 15 stores the preceding instructions. However, along with the increase in the processing speed of the cental control unit (CC) 12, access from the prefetch buffer 15 to the main memory (MM) 11 necessarily occurs very frequently. Under these circumstances, the memory bus 14 is placed in a state where the bus is busy dealing with only data communication between the buffer (IPB) 15 and the memory (MM) 11. As a result, the prefetch instructions can no longer be given to the prefetch buffer 15. Figure 2 illustrates a data processor system operated under look-ahead control according to a prototype method of the present invention. In Fig. 2, members the same as those of Fig. 1 are represented by the same reference numerals or characters. This is also true of the later figures. The newly employed members are an odd memory bank (O·MB) 21 and an even memory bank (E·MB) 22 (both located inside the main memory (MM) 11), an even memory bus 14-E, and an odd memory bus 14-O. The aforesaid busy state of the memory bus (refer to 14 of Fig. 1) can be relieved by employing double memory buses, i.e., the even and odd memory buses 14-E and 14-O. The double memory bank, i.e., the odd and even memory banks (MB's) 21 and 22, are set up in the memory (MM) corresponding to the odd and even memory buses 14-O and 14-E, respectively. The even memory bank is classified with even number addresses, while the odd memory bank is defined by odd number addresses. Thus, the traffic of each memory bus (14-E, 14-O) can be halved relative to that of the memory bus 14 of Fig. 1. However, the prototype method has the previously mentioned disadvantage of twice the interface lines used in the system of Fig. 1. It should noted here that each interface line is usually made of a bundle of about one hundred wires. In addition, each interface line is usually provided at each of the two ends with a connector having about one hundred pins. This means that the data processor system of Fig. 2 necessarily becomes large in size and high in cost and, therefore, suffers from very poor cost performance. Figure 3 is time chart for explaining the memory access according to prior art look-ahead control. Figure 3 shows the case, as an example, where two load instructions are issued successively from the central control unit (CC). It should be understood, however, that an identical memory access is also applied in the case where, for example, a load instruction and a store instruction are issued successively. Along the memory access, each graduation "e" defines so-called machine cycle of the central control unit (CC). According to the first load instruction, an instruction fetch operation (INST FETCH) is achieved with the time 2e. Soon after this, an operand fetch operation (OP FETCH) is achieved with the time 2e. During this memory access, the central control unit (CC) achieves the operations indicated by characters "X" and "NOP". The character "X" represents a calculation of the address used for achieving the next operand fetch, and the characters "NOP" represent no operation, i.e., no arithmetic operation performed by the unit (CC). The above-mentioned memory access regarding the first load instruction is true for the memory access regarding the second load instruction too. It is generally known that, in a Neumann-type data processor, data reading operations from the main memory according to a load instruction and data writing operations to the main memory according to a store instruction usually account for about half of the overall operations to be dealt with by the central control unit (CC). In view of the above, it is apparent that, if the above-mentioned load and store instructions can be executed at a higher speed than ever before, the processing capability of the data processor can be significantly increased. Usually, the access time for the main memory (MM) is defined with 2e (as shown in Fig. 3) or 3e. Conversely, according to the present invention, the access time, during the instruction fetch (INST FETCH), for the main memory (MM) is made as short as 1e. Therefore, the data processor system according to the present invention can be significantly increased in throughput and processing speed. Figure 4 is a time chart for explaining a memory access dealt with in the present invention. The difference here is that each instruction fetch operation (INST FETCH) is completed within the time 1e, while each operand fetch operation (OP FETCH) is completed within the time 2e, as in Fig. 3. As a result, each load instruction can be executed within the time 3e, faster than the prior art execution time of the same by 1e (= 4e - 3e). Further, the speed-up of the memory access is achieved without introducing special means such as a high cost cache memory. Figure 5 illustrates a data processor system operated under look-ahead control according to the present invention. The feature here is that the main memory (MM) 11 is set up with the odd memory bank 21 and even memory bank 22 and these two banks cooperate with respective instruction prefetch buffers, that is, the odd prefetch instruction buffer (O·PFIB) 31 and the even prefetch instruction buffer (E·PFIB) 32. As mentioned previously, the corresponding odd memory bank 21 and even memory bank 22 are divided in terms of the addresses, i.e., even number addresses and odd number addresses. The odd prefetch instruction buffer (O·PFIB) 31 is bypassed by an odd operand path 33. Similarly, the even prefetch instruction buffer (E·PFIB) 32 is bypassed by an even operand path 34. Usually, the instructions are stored in series and sequentially one by one until the series of the instructions reaches a jump instruction. This means that, regarding an instruction such as a load instruction or store instruction, it is possible to determine instructions which will follow next. Therefore, the prefetch buffers 31 and 32 are useful for storing instructions which will be issued next. Contrary to this, it is impossible to determine the operand which will be used next, since the operands do not occur sequentially but at random. Therefore, prefetch buffers, such as the buffers 31 and 32, are not useful for the operand. In other words, the operands are dealt with under the real time mode and transferred directly between the memory banks 21 and 22 and the central control unit (CC) 12 via the operand pathes 33 and 34, respectively. As previously mentioned, the instructions, such as load and store, are set up sequentially one by one. Thus, the series of instructions are arranged in a successive order. This means that a series of instructions are read from the memory banks 21 and 22 alternately and then alternately stored in respective prefetch instruction buffers 31 and 32. Accordingly, when either one of the prefetch instruction buffers 31 and 32 supplies the stored instruction to the central control unit (CC) 12, the other buffer operates to access the corresponding memory bank to obtain the instructions to be executed thereafter and stores them therein. These supply and accessing operations are achieved simultaneously. Therefore, the main memory (MM) has an operation speed seemingly twice the operation speed attained in the prior art main memory. This high speed operation of the main memory ensures a reduction in operation time for instruction fetch from 2e to 1e, as shown in Fig. 4. The main memory per se usually operates with a operation speed in the range of 100 through 200 ns. The prefetch instruction buffers 31 and 32, each made of a register, can usually operate with an operation speed in the range of 10 through 20 ns. In this case, if the main memory per se can operate with such a high operation speed, the prefetch instruction buffers would not be needed. However, such a high-speed main memory is usually too expensive and not suitable for commercial use. The thus buffered instructions in the buffers 31 and 32 are fed alternately to the central control unit (CC) 12 under control of memory control logic circuits (CNT) 35 and 36. Figures 6A, 6B, 6C, and 6D are schematic block diagrams of the main memory according to the present invention. It should be understood that all the blocks illustrated in Figs. 6A to 6D are simply represented by the blocks 21, 22, 31, 35, and 36 shown in Fig. 5. The central control unit (CC) 12 of Fig. 5 sequentially reads the instructions stored in the main memory and executes the same sequentially. The main memory (MM) contains therein the odd memory bank (O·MB) 21 and even memory bank (E·MB) 22, which are specified by respective odd and even addresses. These banks 21 and 22 are shown in previous Fig. 5 and Figs. 6B and 6D. The memory banks 21 and 22 are provided with the odd prefetch instruction buffer (O·PFIB) 31 and the even prefetch instruction buffer (E·PFIB) 32, respectively. The buffers 31 and 32 are preferably constructed with buffer pairs, i.e., 31I and 31II in Fig. 6B and 32I and 32II in Fig. 6D. The number of the odd prefetch instruction buffers (31) is not limited to two, as illustrated in Fig. 6B, but can be three or more. This is also true of the even prefetch instruction buffers (32) of Fig. 6D. The odd prefetch instruction buffer 31 stores therein each instruction which has been read sequentially from the memory bank 21 preceding every issuance of an instruction fetch request (IREQ) from the central control unit (CC). This is also true of the even prefetch instruction buffers (32). When the control unit (CC) issues the instruction fetch request (IREQ), the memory control logic circuits 35 and 36 control the prefetch instruction buffers 31 and 32 so as to produce the related instructions alternately therefrom. The main memory contains therein supervisory circuits. One is an odd buffer supervising circuit (O·SUP) 107. The circuit 107 is operative to supervise whether or not the preceding instructions have been stored in the odd prefetch instruction buffer 31 and produce the resultant supervisory information. The other is an even buffer supervising circuit (E·SUP) 108, which performs an operation similar to that of the above-mentioned circuit 107. The resultant supervisory information from the circuit 107 and the resultant supervisory information from the circuit 108 are fed, on one hand, back inside the main memory and, on the other hand, to the central control unit (CC), such as shown by "O·BFUL" and "E·BFUL" at each bottom right in Figs. 6B and 6D, respectively. The information O·BFUL indicates that the odd prefetch instruction buffer 31 contains therein now at least one prefetch instruction. Similarly, the information E·BFUL indicates that the even prefetch instruction buffer 32 contains therein now at least one prefetch instruction. The central control unit (CC) watches the thus fed information (O·BFUL, E·BFUL) to determine itself whether or not the advanced execution should be started in the unit (CC). The main memory is supplied with an instruction prefetch inhibiting signal "INH" given from the central control unit (CC) every time the unit (CC) issues an operand read/write request "PREQ". The main memory is supplied with an instruction prefetch starting signal "IPST" given from the central control unit (CC) preceding issuance of the instruction fetch request "IREQ" every time a discontinuity of the address for reading the instructions takes place, so that an advanced read operation of the instructions is initialized in the main memory. The main memory is further supplied with a channel access request "CHREQ" given from the channel control unit (CHC) 13 and with an address information "ADRES" given from the central control unit (CC) or the channel control unit (CHC). The memory control logic circuit (35, 36) in Fig. 5 is fabricated, in Figs. 6A through 6D, with all members except for the memory banks 21, 22 and the prefetch instruction buffers 31, 32 and is operated in response to the variety of signals and requests shown at the left side in Fig. 6A. The memory control logic circuit functions, in other words, as an advanced read control circuit. The memory logic circuit (35, 36) is comprised of a priority interrupt circuit (PRINT) 101, a non-prefetch control circuit (NPRE) 103, an advanced read control circuit (ADR) 105, and the aforesaid buffer supervising circuit (O·SUP) 107, all illustrated in Fig. 6A, a timing control circuit (TIM) 111, an odd selection control circuit (SEL) 113, a prefetch instruction address counter (ADCOUNT) 115, an address selection circuit (ADSEL) 117, an input selector (ISEL) 119, an output selector (OSEL) 121, and a gate (GT) 123, all illustrated in Fig. 6B. The above-mentioned members all pertain to the odd part. Identical members in the even part are shown in Figs. 6C and 6D. In Fig. 6D, reference numeral 126 represents a data selector (DTSEL) for producing a selected read data "RD" to the memory bus 14. The character "MOK", shown just above "RD", denotes a main memory access OK signal. In Figs. 6A and 6D, each character "LSB" denotes a least significant bit of the address information "ADRES". The priority interrupt circuit 101 (also 102) deals with the channel access request "CHREQ" and the operand read/write request "PREQ" with a higher priority than the instruction fetch request "IREQ". The non-prefetch control circuit 103 (also 104) is activated every time the instruction prefetch starting signal "IPST" is given. To be more specific, the signal "IPST" is generated in cases where, for example, a discontinuity of addresses occurs, due to a jump instruction, an instruction to be not prefetched is given, or no prefetch instruction is stored in the prefetch instruction buffers (31, 32). The advanced read control circuit 105 (also 106) receives the instruction prefetch inhibiting signal "INH" and adds the same to each operand read/write request "PREQ" so as to guarantee the completion of the operand fetch (refer to "OP FETCH" in Fig. 4) within the time 2e at any time. The buffer supervising circuit 107 (also 108) has already been explained and functions to supervise the state of the prefetch instruction buffer (31, 32). The timing control circuit 111 (Also 112) works to produce the timing control clock pulses for the respective circuits. The selection control circuit 113 (also 114) determines to which prefetch instruction buffer 31I or 31II the prefetch instruction is to be stored, by way of the input selector 119. The selection control circuit 113 (also 114) determines, on the other hand, from which prefetch instruction buffer 31I or 31II the stored prefetch instruction is to be read, by way of the output selector 121. The prefetch instruction address counter 115 specifies the series of the addresses sequentially for reading the related instructions. The address selection circuit 117 produces the address, given from the counter 115, for specifying the prefetch instructions and the address for specifying the instructions which need not be prefetched or given as the address information "ADRES", selectively. The thus produced address accesses the memory bank 21. The memory control logic circuit mentioned above is operative, regarding the previously mentioned instruction prefetch inhibiting signal "INH", to receive the signal "INH" and inhibit a supply of the prefetch instruction to the prefetch instruction buffer 31 (same for 32). The memory control logic circuit is operative, regarding the previously mentioned resultant supervisory information from the supervising circuit 107 (same for 108), to store the prefetch instruction, read from the memory bank 21 (same for 22) in accordance with the resultant supervisory information, in the prefetch instruction buffer 31 (32) and then feed the thus stored prefetch instruction to the central control unit (CC) in response to the instruction fetch request "IREQ" given from the unit (CC). As previously mentioned, the prefetch instruction buffer 31 (same for 32) is preferably constructed with two or more buffers, such as the buffers 31I and 31II (same for 32I, 32II). In this case, the memory logic control circuit is operative to, on one hand, select one of these buffers (31I, 32II) to which the read prefetch instruction is to be stored and, on the other hand, select one of these buffers from which the stored prefetch instruction is to be fed to the central control unit (CC). The prefetch instruction address counter 115 (same for 116) of the memory control logic circuit is operative to increment the counted address so as to sequentially read the prefetch instructions from the memory bank 21 (same for 22). Figures 7A and 7B illustrate detailed examples of the main memory shown in Fig. 5 and 6A through 6D, according to the present invention. It should be understood that, since the odd part of the main memory has substantially the same construction as that of the even part thereof, only the even part is illustrated in Figs. 7A and 7B. Therefore, the constructions of Figs. 7A and 7B correspond to those of previous Figs. 6C and 6D. Identical members and signals are referenced by the same numerals and characters. Figure 8 is time chart for explaining the operation of the main memory shown in Figs. 7A and 7B. Figure 9 is a time chart for explaining the operation of the timing control circuit (TIM) shown in Figs. 6B, 6D and 7A. The operation of the main memory (MM) is as follows. When the main memory is to be initialized or a certain jump instruction is to be executed, the instruction fetch request "IREQ" is followed after the instruction prefetch starting signal "IPST" with a delay time e / 2, as shown at the top left in Fig. 8. The character e denotes, as previously explained, a machine cycle (refer to Fig. 4). The delay time e / 2 can be obtained with the use of clocks I ○ and , which are different in phase by π. At such an initial stage, the contents stored in the prefetch instruction buffers 32I and 32 II are invalid, because these are the rest of the instructions to be executed before. At this time, therefore, the desired instruction must directly be read from the memory bank (E·MB) 22. For this, initialisation is needed. For example, a head address of the instruction to be executed is loaded in the prefetch instruction address counter (ADCOUNT) 116. The thus loaded head address is then incremented by 2. The head address has been given in the form of the address information "ADRES". It should be noted that the information "ADRES" indicates not only the address of the prefetch instruction, but also the address of other instructions which need not be prefetched. The buffer supervising circuit 108, made of an accumulation counter (ACC) 201 and a read-out counter (read) 202, is also reset for the initialisation by the instruction prefetch staring signal "IPST". When reset, the circuit 108 commands to specify the buffer 32I first. To cope with this, the selection control circuit 114, made of an accumulation buffer indicating counter 203 and a read-out buffer indicating counter 204, is operative to, when the stored prefetch instruction is to be read, specify first the buffer 32I. The counters 201 and 202 are driven by the clock I ○, while the counters 203 and 204 are driven by the clock . Thus, when the main memory is to be initialised, the counters 201 through 204 are reset by the signal "IPST" and the address counter (ADCOUNT) 116 is preset with the head address of the prefetch instruction. Soon after this, the instruction fetch request "IREQ" is generated from the central control unit (CC) and given to an AND gate 213. The AND gate 213 forms a part of the priority interrupt circuit (PRINT). The output from the AND gate 213, now opened by "IREQ", sets the corresponding SR flip-flop 217, which also forms a part of the circuit (PRINT) 112, and thereby produces therefrom a signal "IACT" which indicates that the request "IREQ" is now active. Then, the timing control circuit (TIM) 112 is triggered by the signal a corresponding to the set output of the flip-flop 217, the waveform of which signal a is shown in Fig. 9. The signals b, c, and d appearing in the circuit 112 are depicted in respective waveform in Fig. 9. The timing control circuit 112 further produces a row address strobe timing signal "RAS·T", a read indicating signal "RDI" (through a delay line DL), and a column address strobe timing signal "CAS·T", the waveforms of these signals also illustrated in Fig. 9. The signals "RAS·T", "RDI" and "CAS·T" are given to the memory bank 22, and the bank 22 produces read data RD (instruction) specified by the address supplied from the address selection circuit 118. The read data RD travels through the AND gate 124, the OR gate, and the data selector 126. When the main memory access OK signal "MOK" is returned to the central control unit (CC), the unit (CC) determines that the concerned request "IREQ" is now completed. The read data (RD) is depicted in row RD of Fig. 8. Conversely, when the operand read/write request "PREQ" is generated, the prefetch operation must be stopped. This is because the operand read/write operation must be achieved under a real time mode by way of the operand path 33 or 34 shown in Fig. 5. In order to establish the real time mode, the prefetch operation must not be performed so as to start the operand read/write operation immediately. This also ensures the time sequence such as e → 2e → e → 2e, in which each operand read/write operation must always be completed in the time 2e. In short, when the operand request "PREQ" is generated, the prefetch operation must be stopped so as to guarantee the use of the memory bank for the operand request "PREQ". For this, the instruction prefetch inhibiting signal "INH" is introduced in the system. Each pain of "INH" and "PREQ" is clarified in Fig. 8. Even though such a signal "INH" is introduced, the prefetch instruction buffers (31, 32) are still maintained in a full prefetch instruction state, as schematically shown in Fig. 8. The sequence of Fig. 8 assumes a condition where the load instructions and store instructions are continually and alternately issued from the central control unit (CC), which is the most severe case for the present invention. As seen from the sequence of Fig. 8, the signal "IBACT" is controlled to be generated every time immediately before the signal "INH" is to be generated. The signal "IBACT" denotes that the prefetch instruction buffer must operate so as to achieve the instruction prefetch operation. The signal "IBACT" is produced from a flip-flop 218 which is set by the output from the AND gate 214. During the activation of this flip-flop 218, the instruction prefetch operation is being achieved. The AND gate 214 receives the signal "INH", at its input, through an inverter, and, thereby, when the signal "INH" is given, either the signal "IBACT" has already been generated or no signal "IBACT" is generated. Due to the relationship in sequence between the signals "INH" and "IBACT", maintenance of the operand fetch cycle is always guaranteed, in response to the request "PREQ", within 2e as shown in Fig. 4. The signal "PACT" denotes that the operand read/write operation is being activated in response to the operand request "PREQ" with a delay time e from the generation of each request "PREQ", the signal "PACT" is produced from the flip-flop 216 when set by the output from the AND gate 212. The signal "CHACT" in Fig. 7A is produced from the flip-flop 215, which is driven by the output from the AND gate 211. The signal "CHACT" denotes that the access by the channel control unit (CHC) 13 is effective due to the generation of the channel access request "CHREQ". Thus, when the signal "INH" is given to the main memory, the prefetch instruction buffer (31 or 32) has already been operated and the operation of the buffer (31 or 32) will soon be finished. Therefore, the signal "PACT" can follow thereafter. The above-mentioned relationship in sequence must stand not only in the even part, but also the odd part of the main memory. Accordingly, at least the signal "INH" is commonly supplied to the odd and even parts of the main memory. When the next signal "INH" is given, in Fig. 8, the signal "IBACT" in the even part is still not generated, while the signal "IBACT" in the odd part has already been generated and will soon cease. This ensures the insertion of the signal "PACT". In other words, the signal "PACT" is guaranteed to occur every time the request "PREQ" is generated, since the request "PREQ" is always accompanied by the signal "INH". In this case, the request "IREQ" is controlled such that the request is always executed within the time le, however, there is no relationship in sequence between the request "IREQ" and the signal "INH". As mentioned above, the signal "IBACT" must cease every time the signal "INH" is generated, which is realized by the AND gate 214 (Fig. 7A). At this time, if the operand read request "PREQ" is given, the related read data RD (second occurrence in Fig. 8) is obtained. The sequence of Fig. 8 shows that the odd part "IREQ" is generated first and then the signal "IACT" is started. The signal "IACT" is generated at one time when each request "IREQ" is issued and the related instruction fetch accesses are thereafter achieved in synchronization with the signals "IBACT". In Fig. 7A, the accumulation counter (ACC) 201 counts the number incrementally every time either one of the prefetch instruction buffers (32I, 32II) stores therein the prefetch instruction. The read-out counter (READ) 202 counts the number incrementally every time either one of the prefetch instruction buffers (32I, 32II) feeds the stored instruction to the central control unit (CC) in response to the request "IREQ" issued therefrom. The counter 201 is incremented every time the signal "IBACT" is created by the flip-flop 218, which signal means that the prefetch operation is started. The counter 202 is incremented every time the prefetch instruction is fed to the central control unit (CC), which is equivalent to the fact that the unit (CC) has issued the instruction fetch request "IREQ". Therefore, the counter 202 is incremented with the reception of "IREQ". Each of the counter 201 and 202 is comprised of a 2-bit counter producing 2-bit outputs. The 4-bit outputs, in all, from the counters 201 and 202 are applied to a digital comparator which is fabricated with, as illustrated in Fig. 7A, four exclusive OR gates (EOR's) and two OR gates 221 and 222. That is, the digital comparator detects the difference in count numbers between the counters 201 and 202. The OR gate 222 produces a signal A which becomes logic "O" under the condition where the count number of the counter 201 is larger than that of the counter 202. This means that the difference between the number of the stored prefetch instructions and the number of the read-out instructions is Accordingly, the prefetch instruction buffers 32I and 32II are filled with the prefetch instructions. In this case, the signal "IBACT" should be ceased so as to stop the instruction prefetch operation. For this, the signal A, now logic "0", is applied to the AND gate 214. If the signal A is not logic "0", i.e., logic "1", the buffers 32I and 32II are not in a full state, and, therefore, the instruction prefetch operation should be proceeded. For this, the signal A of logic "1" opens the AND gate 214 to generate the signal "IBACT". When the counters 201 and 202 are commonly reset by the instruction prefetch starting signal "IPST", the difference in the number between the counters 201 and 202 is and therefore, the buffers 32I and 32II are activated, since these buffers store no data. When the number changes from to either one of the buffers 32I and 32II is filled with data (prefetch instructions). Then, the prefetch operation is further continued. When the request "IREQ" is given, the counter 202 is incremented thereby, in which the prefetch instruction is read from either one of the buffers 32I and 32II. In this case, the digital comparator detects that the difference in number between the counters 201 and 202 is not but or Then the OR gate 222 automatically produces the signal "A" of logic "1" to activate the prefetch operation ("IBACT"). In Fig. 8, the signal "IACT" is generated in the odd part main memory. The signal "IACT" is generated first when the request "IREQ" is given. In this case, no instructions are accumulated in the prefetch instruction buffers. Therefore, the signal "IACT" is supplied, via the OR gate 232, to the corresponding memory bank and immediately access the memory bank directly with the address "ADRES". On the other hand, in the even part, the signal "IBACT" has been generated, as shown in Fig. 8, and thus the related prefetch instruction has been stored in the prefetch instruction buffer 32I. The thus stored instruction is first used for the related request "IREQ". The following instructions are sequentially stored in the buffers 31I, 32II, 31II, and so on in response to the respective signals "IBACT" and then read therefrom sequentially. The signal "PACT" and the signal "IBACT" must not be generated simultaneously on the same side, odd or even. However, the signal "PACT" of the even (or odd) part and the signal "IBACT" of the odd (or even) part are allowed to occur simultaneously as shown in Fig. 8. The OR gate 221 of the aforesaid digital comparator produces a signal B which becomes logic "0" under the condition where the count numbers of the counters 201 and 202 become equal to each other. In other words, the signal B assumes logic "1" so long as any difference in number exists therebetween. This means that both prefetch instruction buffers 32I and 32II are filled with the instructions and, alternatively, at least one of these buffers is filled with the instruction. So long as the prefetch instruction or prefetch instructions are stored in the prefetch instruction buffer or buffers, the central control unit (CC) is guaranteed to operate with the operating speed of 1e. This information is sent, as the previous signal "E·BFUL", to the central control unit (CC), which signal indicates that at least one prefetch instruction exists in the instruction buffer (32). The central control unit (CC), when the signal "E·BFUL" is given, is guaranteed to perform its operation with the time 1e (Fig. 4), since the next instruction is immediately obtainable. Thus, the signal "A" from the OR gate 222 indicates, when logic "0", that the prefetch operation should be continued, while the signal "B" from the OR gate 221 indicates, when logic "1", that the operation with the time 1e of the central control unit (CC) should be continued. The signal "B" is applied also to the AND gate 213. The AND gate 213 receives the instruction fetch request "IREQ" and activates the following flip-flop 217 to produce the signal "IACT", which indicates that the central control unit (CC) has issued the instruction access request. As mentioned before, when the output signal "B" is logic "1", it means that the prefetch instruction buffers 32I, 32II store now at least one prefetch instruction. Therefore, the control unit (CC) can operate with the speed of 1e. On the other hand, when the signal "B" is logic "0", this closes the AND gate 213, and the timing control circuit 112 is not activated. This means that it is not necessary to obtain data directly from the memory bank 22. If, in a certain case, there is no prefetch instruction in the buffer (32), due to a certain combination of the instructions, the accessed data must directly be read from the memory bank 22 in response to the request "IREQ". When the instruction prefetch starting signal "IPST" is supplied, the counter 221 and 222 are reset and thus these produce output logic "0". Therefore, the signal "B" from the OR gate 221 is first logic "1". The signal "B" of logic "1" is used as the aforesaid information "E·BFUL", which indicates that there is room in the buffer (32) to further store therein the prefetch instructions and, accordingly, the instruct prefetch operation should be maintained by the control unit (CC) The counter 203 and 204, comprising the selection control circuit 114, are made of 1-bit counters. Therefore, each of the counters 203 and 204 produces output logics "0" and "1", which change successively, such as "0" → "1" → "0" → "1" ...... The counter 203 determines to which buffer 32I or 32II the prefetch instruction should be stored first. The counter 204 determines from which buffer 32I or 32II the stored prefetch instruction should be read first. The counter 203 is incremented by one every time the signal "IBACT" is produced from the flip-flop 218, which signal indicates that the instruction prefetch operation must be performed by the buffer (32). On the other hand, the counter 204 is incremented by one every time the request "IREQ" is given from the central control unit (CC). For this, the request signal "IREQ" is applied to the counter 204 by way of two series-connected delay lines DL, made of D-flip-flops. Each of the delay lines creates a delay time of 1e in synchronization with the clock I ○. Thus, a 2e time delay is created in all. The OR gate 232 shown at the top middle of Fig. 7A receives the signals "CHACT", "PACT", and "IACT", which are generated in response to the requests "CHREQ", "PREQ", and "IREQ", respectively. It should be noted that the signals "CHACT", "PACT", and "IACT" indicate operations which cannot be achieved under the prefetch mode. In other words, the operations to which the above three signals are concerned must be achieved under the real time mode. This is because these operations exhibit no continuity as with load and store instructions. Accordingly, data concerning these signals must be read directly from the memory bank 22. The OR gate 231 shown at the top middle of Fig. 7A receives the outputs from the AND gates 211, 212, and 213 and closes, when at least one of these outputs is received, the AND gate 214 so as to avoid a conflict between the prefetch operation, due to the signal "IBACT", at the memory bank and the direct read operation, due to the above-mentioned three signals, at the same memory bank. The flip-flop 215 through 218 are commonly reset by the output from the timing control circuit 112. Once an operation due to one of the signals "CHACT" through "IBACT" is stored, other operations due to remaining signals must wait until the thus started operation is finished. For this, the flip-flops 215 through 218 are all reset by the timing control circuit 112. The data selector 126 is made of AND gates 241 and 242 and an OR gate 243. The AND gates 241 and 242 open and close, respectively, and vice versa, in response to the LSB of the address, which LSB separates the odd part and the even part from each other. The odd part read data RD and the even part read data RD are OR'ed at the OR gate 243. The access, by the requests "CHREQ" and "PREQ", to the memory bank 22 is made with the use of the address "ADRES" by means of the address selection circuit 118. On the other hand, the access, by the instruction prefetch request (IREQ → IBACT), to the memory bank 22 is made with the use of the address given from the prefetch instruction address counter 116, by means of the address selection circuit 118. Thus, the circuit 118 operates such that the address for the non-prefetch instruction and the address for the prefetch instruction are produced therefrom selectively. In Fig. 7B, the circuit 118 is made of four AND gates and one OR gate. The gate 124 (Fig. 7B) is made of an AND gate and is opened by the signal "b" (Fig. 9) and the output signal from the OR gate 232 (Fig. 7A). The output selector 122 is made of AND gates 251 and 255, which are opened alternately when the signal "IREQ" with a time delay 1e is given from the former delay line DL shown at bottom side in Fig. 7A. During the prefetch operation, control by the timing control circuit 112 is not available. Therefore, the output selector 122 is directly triggered by the signal "C" from the delay line DL. Usually, the central control unit (CC) determines its operation speed based on the main memory access OK signal "MOK" (Fig. 6D and 7B). To be specific, the speed of the internal control of the control unit (CC) is determined every time the signal "MOK" is received thereby, According to the present invention, the signals "O·BFUL" and "E·BFUL" are also applied to the central control unit (CC). If the "BFUL" signal is applied to the unit (CC), the unit (CC) determines itself, every time the instruction fetch request "IREQ" is issued, that the internal control operation should be achieved with the speed of 1e or 2e. If the "BFUL" signal exists, the unit (CC) can be operated with the speed of 1e. If no such "BFUL" signal exists, the unit (CC) determines by itself that the internal control operation, relating to the "IREQ" now issued, should be achieved with the speed of 2e. Conversely, when the request "CHREQ" and "PREQ" are given, the unit (CC) determines by itself the internal control operation speed in response to the reception of the "MOK" signal. Figure 10 illustrates a detailed example of the prefetch instruction address counter (ADCOUNT) of Fig. 7B. The counter is comprised, when 8-bit address is used of a 7-bit counter 301 and a 1-bit register 302, which fixedly produce a logic "0", as the lowest order bit of the address. Figure 11 illustrates a detailed example of the prefetch instruction address counter (ADCOUNT) shown in Fig. 6B. The prefetch instruction address counter 115 is comprised, when an 8-bit address is used, of a 7-bit counter 311, a 1-bit register 312, which fixedly produces a logic "1", as the lowest order bit of the address, and a timing control logic part 313. The logic part is fabricated with, as illustrated, two AND gates and two D-flip-flops. Referring to Figs. 10 and 11, if the instruction prefetch staring signal "IPST" is given with the head address of an odd number, in the odd part of the main memory, it is necessary to start executing the related prefetch operation when the next address is supplied. Therefore, the memory bank 21 (Fig. 6B) is accessed after the counter 115 is counted up by the reception of the signal "IBACT". This is also true of the even part of the main memory. Contrary to the above, if the instruction prefetch staring signal "IPST" is given with the head address of not an odd number, as before, but an even number, the following operation is held. In this case, the head address has logic "0" as its lowest order bit. The address to be set, by the signal "IPST", for the odd part of the main memory is already used as the address for the prefetch operation, since the related counter 115 (refer to Fig. 11) has logic "1" at its lowest order bit. Accordingly, the count-up operation by the signal "IBACT" must be inhibited, which signal "IBACT" will come next to the signal "IPST". For this, in the logic part 313, the signal "IPST" is logged in time by 3 / 2e with the use of the clock at the D-flip-flops and the AND logic operation is performed with the signal "LSB". Thereby, the first count-up operation is inhibited when the even number address is initially set for the odd part of the main memory. Conversely, under the same circumstances, such inhibition of the count-up is not needed in the even part of the main memory, but the count-up operation must be continued. As explained above in detail, the present invention provides a data processor system having look-ahead control without increasing the cost. Therefore, the high access speed of the instructions can be attained with good cost performance.

Claims: A data processor system comprising: a main memory (11); and a central control unit (12), operatively connected to said main memory (11), the central control unit (12) reading instructions stored in the main memory (11) using even and odd addresses, executing the read instructions and producing an instruction prefetch starting signal (IPST) used for initializing the advanced read operation in said main memory (11) every time a discontinuity occurs in a flow of the addresses, such as an address jump or no prefetch instruction is stored in the prefetch instruction buffers (31,32), and said instruction prefetch starting signal (IPST) being issued preceding the issuance of an instruction fetch request (IREQ); and said main memory comprising: an even memory bank (22) and an odd memory bank (21) which are addressed by the even addresses and odd addresses, respectively, the two memory banks (21, 22) operating independently of each other and operatively connected to said central control unit (12) by respective operand paths (33,34); an even prefetch instruction buffer (32) and an odd prefetch instruction buffer (31) operatively connected to the even and odd memory banks (22, 21), respectively, the even and odd prefetch instruction buffers (31, 32) being operatively connected to said central control unit (12), an even supervising circuit (108) connected to said central control unit (12) and said even prefetch instruction buffer (32) and an odd supervising circuit (107) connected to said central control unit (12) and said odd prefetch instruction buffer (31) and both for producing resultant supervisory information indicating whether the prefetch instructions are already available in the corresponding prefetch instruction buffers (31, 32), respectively, allowing instruction fetch from said instruction buffers (31,32) to the central control unit (12) based only on the instruction fetch request (IREQ), said main memory (11) reading instructions sequentially from the even and odd memory banks (21,22), using the odd and even addresses from said central control unit (12), based on said instruction prefetch starting signal (IPST) and preceding issuance of the instruction fetch request (IREQ) from the central control unit (12), and storing the read instructions in the corresponding prefetch instruction buffers (31, 32), and the main memory (11) further being operative to control the even and odd prefetch instruction buffers (31, 32) in response to the instruction fetch request (IREQ) issued from the central control unit (12), such that the stored prefetch instructions are produced alternately from the even and odd prefetch instruction buffers (31, 32) and then given to the central control unit (12). A system as set forth in claim 1, wherein the main memory (11) is operative to receive a variety of instructions, including an operand read/write request ("PREQ"), and when the main memory (11) receives the operand read/write request, the central control unit (12) is operative to issue an instruction prefetch inhibiting signal ("INH") preceding every issuance of the operand read/write request from the central control unit (12). A system as set forth in claim 2, wherein the main memory (11) is controlled by a memory control logic circuit (35,36) contained therein, and the memory control logic circuit (35,36) is operative to receive the instruction prefetch inhibiting signal ("INH") and inhibit the advanced read operation of the instruction, to be achieved for the prefetch instruction buffers. A system as set forth in claim 1, wherein the main memory (11) is controlled by a memory control logic circuit (35,36) contained therein, and the memory control logic circuit is operative to achieve the advanced read operation of the instructions from the prefetch instruction buffers in accordance with the resultant supervisory information from the supervising circuits (107,108), to store the thus read instructions in the prefetch instruction buffers (31,32) and then, to feed the thus stored prefetch instructions from the corresponding prefetch instruction buffers to the central control unit (12) in response to the instruction fetch request ("IREQ") issued therefrom. A system as set forth in claim 4, wherein each of the even and odd prefetch instruction buffers (31,32) is set up with a plurality of buffers, i.e., multibuffers and the memory control logic circuit (35,36) is comprised of a selection control part (113,114), the selection control part being operative to, on one hand, determine one of the multibuffers to which the prefetch instruction is to be stored and on the other hand, to determine one of the multibuffers from which the stored prefetch instruction is to be supplied to the central control unit (12). A system as set forth in claim 4, wherein the memory control logic circuit (35,36) is further comprised of an even prefetch instruction address counter (116) and an odd prefetch instruction address counter (115), each of the prefetch instruction address counters being incremented so as to sequentially specify the addresses used for performing the advanced read operation. A system according to claim 1, wherein the main memory furthermore contains therein an even prefetch instruction address counter (116) and an odd prefetch instruction address counter (115), each counter being operative to specify the address with which the prefetch instruction is accessed at the corresponding memory banks; and the main memory further containing therein an advanced read operation control circuit (105,106), the advanced read operation control circuit being operative to first, increment the prefetch instruction address counters (115,116) second, to store the instructions, read with the thus incremented address from the corresponding memory bank, in the corresponding prefetch instruction buffer (31,32) and third, to send the related prefetch instruction, in response to the instruction fetch request ("IREQ") from the corresponding prefetch instruction buffer (31,32) to the central control unit (12). A system as set forth in claim 1, wherein the central control unit (12) is operative to produce an instruction prefetch starting signal ("IPST"), preceding the issuance of the instruction fetch request ("IREQ"), every time a discontinuity occurs along a flow of addresses, such as an address jump, and the main memory (11) is operative to, first, receive the instruction prefetch starting signal, second, to set the head address given from the central control unit (12) of the related instructions to be read in advanced in the corresponding prefetch instruction address counter (115,116) and third, to reset the supervising circuits (107,108) so that the advanced read operation control in the main memory (11) is initialized. A system as set forth in claim 7, wherein each of the even and odd prefetch instruction buffers (31,32) is set up with a plurality of buffers, i.e., multibuffers, and the advanced read operation control circuit is comprised of a selection control part (113,114); the selection control part (113,114) being operative to, on one hand, determine one of the multibuffers to which the prefetch instruction is to be stored and on the other hand, to determine one of the multibuffers from which the stored prefetch instruction is to be supplied to the central control unit (12). A system as set forth in claim 9 wherein the central control unit (12) is operative to produce an instruction prefetch starting signal ("IPST"), preceding issuance of the instruction fetch request ("IREQ"), every time a discontinuity occurs along a flow of addresses, such as an address jump, and the main memory (11) is operative to, first receive the instruction prefetch starting signal, second, to set the head address, given from the central control unit (12), of the related instructions to be read in advance in the corresponding prefetch instruction address counter (115,116), and third, to reset both the supervising circuits (107,108) and the selection control part (113,114), so that the advanced read operation control in the main memory (11) is initialised.

Inventors: TESHIMA, TOORU, URUSHIHARA, TETSUO
Applicants: FUJITSU LIMITED
Application year: 1985
Main classification: G06F9
IPC codes: G06F12, G06F9