Data processing system having a function of data transfer between microprocessor and memory in burst mode

Abstract: A data processing system comprises a microprocessor having a burst mode transfer function, a memory receiving an address supplied from said microprocessor to output data designated by the received address, an address decoder receiving and decoding said address supplied from said microprocessor, and a memory control circuit receiving an output of said address decoder and control signals from said microprocessor, for controlling said memory. The system is configured to generate a burst mode transfer period designating signal indicating a period of a burst mode transfer, so that a synchronous burst mode transfer is performed in accordance with the period of the burst mode transfer designated by said burst mode transfer period designating signal, so as to cause said microcomputer to fetch data transferred from said memory by the synchronous burst mode transfer.

Description: Background of the Invention Field of the invention The present invention relates to a data processing system for transferring data in a burst mode transfer between a microprocessor and a memory which are coupled through a system bus. Description of related art Microprocessors show a yearly elevation of their performance and function, and an operating frequency is also elevating to 25 MHz, then to 33 MHz, and further to 50 MHz. On the other hand, an external memory ordinarily used for supplying instructions and data to the microprocessor has only a data transfer rate which is still lower than the operating speed of the microcomputer, although a memory having a high transfer rate has recently appeared but since it is expensive. Therefore, the data transfer rate between the microprocessor and the memory gives a large influence on an overall performance of a system. Most recent microprocessors internally contain a cache memory so that frequently used data is stored in the cache memory for compensating a difference in the data transfer rate between the microprocessor and the external memory. Even in this case, however, the data transfer rate in the data transfer from the external memory to the microprocessor lowers the performance of the system. In most of microprocessors internally containing the cache memory, the data transfer to the cache memory is performed in a burst mode. Here, the "burst mode" transfer means a data transfer manner in which data is continuously transferred from an external memory to a block having a series of continuous addresses. One typical example of a synchronous burst transfer is disclosed in Japanese Patent Application Laid-open Publication JP-A-3-134754 titled "DATA PROCESSING SYSTEM", which will be now described with reference to Figure 1. The data processing system includes a microprocessor 101, an address decoder 102, a memory control circuit 103a and a memory 104, which are coupled as shown. The microprocessor 101 and the memory 104 are coupled to an external data bus 109 so that data can be transferred through the external data bus 109 between the microprocessor 101 and the memory 104. Operation of this data processing system in a burst mode transfer will be explained with reference to Figure 2 showing a timing chart of the data transfer system. First, the microprocessor 101 outputs an effective address 105, and activates a bus cycle start signal (ADS) 106 and a read/write signal (R/W) 107. If an address region to be accessed comes within a cache region, the microprocessor 101 activates a synchronous block transfer request signal (BLOCK) 201. The address decoder 102 decodes the received address 105, and informs the memory control circuit 103a of whether an address designated region is a high speed memory region or a middle or low speed memory region. In general, a microprocessor based system uses, as a memory, an EPROM (electrically programmable read only memory), DRAM (dynamic random access memory), SRAM (static random access memory), etc.which are selected on the basis of an address. Since this selection of memory is made within a region of continuous addresses, the address decoder 102 can be formed by for example an address discrimination circuit shown in Figure 3, which receives the most significant two bits A[31: 30] of a 32-bit address 105 and includes two inverters 140 and 142 and two AND circuits 141 ans 143 connected as shown so as to discriminate the memory region (high speed, middle speed or low speed) on the basis of the most significant two bits A[31:30] of the address. When the address designated region is the high speed memory region, the memory control circuit 103a receiving the ADS signal 106, the R/W signal 107 and the BLOCK signal 108, outputs a chip select signal CS and a write/read signal WR to the memory 104, and activates a burst transfer enabling signal (BLOCKF) 201 so as to enable a burst transfer and to changes the status in synchronism with operation of the microprocessor so as to control the memory. This status transition diagram is shown in Figure 4. In accordance with the instruction of the BLOCKF signal 201, the microprocessor performs the burst transfer. Therefore, a synchronous burst mode transfer can be performed between the memory and the microprocessor. When the address designated region is the middle or low speed memory region, the memory control circuit 103 does not enable the burst mode transfer by the burst mode transfer enabling signal BLOCKF 201 as shown in Figure 5, but a non-burst mode transfer (asynchronous data transfer in which data is transferred item by item, is performed. In this non-burst mode transfer, the memory control circuit 103 adjusts a data set signal (DS) 202 supplied to the microprocessor 101, dependently upon a performance of a memory allocated to a designated address region, so that a time until a data access is adjusted. This DS signal 202 is generated from the ADS signal 106 by for example a circuit shown in Figure 6, which receives the ADS signal 106 and includes two cascaded delay circuits 144 and 145 and a selector 145 receiving an output of each of the delay circuits and controlled on the basis of whether the designated address region is the middle speed memory region or the low speed memory region. In the non-burst mode transfer, the above mentioned conventional system can comply with a memory having any performance. In addition, the conventional system can simplify the control of the status transition for the synchronous burst mode transfer, ans therefore, can speed up the change of the cache address and the writing to the cache memory. Now, as a second conventional example configured to perform the burst mode transfer in an asynchronous mode, the microprocessor "i486" available from Intel Corporation in the U.S.A will be explained with reference to Figure 7. In Figure 7, elements similar to those shown in Figure 1 are given the same Reference Numerals. As shown in Figure 7, the microprocessor 101 outputs an effective address 105, and activates a bus cycle start signal (ADS) 106 and a read/write signal (R/W) 107. The address decoder 102 decodes the address 105 to discriminate an address designated region and to notify the result of the discrimination to a memory control circuit 103b. The memory control circuit 103b receives the ADS signal 106 and the R/W signal 107. In addition, depending upon the performance of the memory 104 allocated to the address designated region, the memory control circuit 103b cyclicly changes a burst ready signal (BRDY) 203 indicating that data is set in the burst mode transfer, and also control the memory 104. In accordance with the value of the BRDY signal 203, the microprocessor 101 changes its status as shown in the status transition diagram of Figure 8, so that data is fetched into the microprocessor 101 from the memory 104. Referring to Figure 9, there is shown an example of a BRDY signal generating circuit 210 included in the memory control circuit 103b. This BRDY signal generating circuit 210 includes a down counter 211 for a counting a delay value, an up counter 212 for counting the number of items to be transferred, a delay value setting circuit 213, delay circuits 144 and 145, inverters 147 and 148 and a selector 149, which are connected as shown. First, an input value to be supplied to the down counter 211 is determined on the basis of the result of the address decoding. When the bus cycle starts, the up counter 212 is reset to "0" by the ADS signal 106. After one cycle from the ADS signal 106, a delay value is loaded to the down counter 211 from the delay value setting circuit 213, and after a further one cycle, the down counter starts its count-down operation so that the value of the down counter 211 is decremented for each clock. When the value of the down counter 211 becomes "0", the down counter 211 outputs a high level signal from its output "OUT", and then, returns to the delay value so as to restarts its count-down operation. The output of the down counter 211 is inverted by the inverter 148 so as to generate the BRDY signal 203. On the other hand, the up counter 212 counts up in response to the output of the down counter 211 so as to count the number of items transferred, as "0" → "1" → "2" → "3" → "4". When the value of the up counter 212 becomes "4", the up counter 212 generates a high level output signal, which is supplied to a stop input of the down counter 211, so that the down counter 211 stops its its count-down operation. As mentioned above, since the status changes in accordance with the value of the BRDY signal 203, the data transfer between the microprocessor and the memory becomes the asynchronous burst transfer. As examples of the operation timing of the second conventional system, Figure 10 shows a timing chart of a no-wait burst mode transfer, and Figure 11 shows a timing chart of a one-wait burst mode transfer. As seen from comparison between Figures 10 and 11, it is possible to control the wait in the burst mode transfer by the BRDY signal 203. In a middle speed DRAM memory, accordingly, the burst mode transfer becomes possible by using a page mode, and therefore, the data transfer rate can be increased in comparison with the non-burst mode transfer. In the above mentioned first conventional example, in order to elevate the system performance by increasing the data transfer rate, it is necessary to increase a high speed memory which allows the burst mode transfer, which will result in an increased system cost. For example, assuming that the operating frequency of the microprocessor 101 is 33 MHz (one cycle=30ns), the address output delay time is 10ns, and the data input setting time is 10ns, since the memory 104 is required to have the access time of not greater than 10ns, an expensive SRAM becomes required. In order to suppress the system cost, if an inexpensive but low transfer rate memory is used and if the data transfer is performed in the non-burst mode transfer or if the clock frequency of the burst mode transfer is lowered, the performance inevitably greatly drops. The first conventional example was effective when the processing speed of the microprocessor was not so high in comparison with the memory. However, the processing speed of the microprocessor has remarkably elevated, the first conventional example can no longer meet with the recent technical trend, and therefore, the second conventional example has been adopted. However, the second conventional example has different problems. In the second conventional example, after the BRDY signal 203 is fetched, a next internal status is fixed. Therefore, in the case of attempting to speed up the operation from the data fetching to the writing of the cache, the no-wait asynchronous burst mode transfer can write to the cache at the same timing as the conventional synchronous transfer shown in Figure 4, as seen from Figure 10. However, it the wait is inserted, as shown in Figure 11, a cycle occupying the internal data bus is inserted to await for the data setting or fixing. Assuming that one block of the cache includes "m" words and the number of waits is "n", the number of cycles required for waiting the internal data setting or fixing becomes "m×n". In order to minimize the number of cycles required for waiting the internal data setting or fixing (the internal bus occupation), if four stages of read buffer is provided to continuously write the cache memory, the timing becomes as shown in Figure 12. As seen from comparison between Figure 12 and Figure 10 in which the writing to the cache is speeded up, the time until the last data has been written is elongated by four cycles. In the asynchronous burst mode transfer, there is required an external counter for changing the period of the data setting signal. Summary of the Invention Accordingly, it is an object of the present invention to provide a data processing system which has overcome the above mentioned defect of the conventional ones. Another object of the present invention is to provide a data processing system having an increased data transfer rate. The above and other objects of the present invention are achieved in accordance with the present invention by a data processing system comprising: a microprocessor having a burst mode transfer function; a memory receiving an address supplied from the microprocessor to output data designated by the received address; an address decoder receiving and decoding the address supplied from the microprocessor; a memory control circuit receiving an output of the address decoder and control signals from the microprocessor, for controlling the memory; and burst mode transfer period designating means for generating a burst mode transfer period designating signal and providing said burst mode transfer period designating signal to the microprocessor said burst mode transfer period designating signal indicating a period of a burst mode transfer; and a bus interface in said microprocessor for receiving said burst mode transfer period designating signal and thereafter fetching data transferred from said memory by a synchronous burst mode transfer in accordance with the period of the burst mode transfer designated by said burst mode transfer period designating signal. In one embodiment, the burst mode transfer is performed in accordance with one period of "2 n " different periods designated by "n" burst mode transfer period designating signals simultaneously fetched through the "n" burst mode transfer period designating input terminals, respectively. In another embodiment, the burst mode transfer is performed by changing the burst mode transfer period designating signal during a plurality of continuous clocks so as to designate the burst mode transfer period. Furthermore, an internal bus interface unit of the microprocessor can fix its status transition in accordance with the burst mode transfer period designating means, so that an internal bus is open to another internal unit in an internal bus empty time slot during the burst mode transfer period. The above and other objects, features and advantages of the present invention will be apparent from the following description of preferred embodiments of the invention with reference to the accompanying drawings. Brief Description of the Drawings Figure 1 is a block diagram of a first conventional data processing system capable of transferring data between a microprocessor and a memory; Figure 2 is a timing chart of a synchronous burst mode transfer in the system shown in Figure 1; Figure 3 is a circuit diagram showing one example of the address decoder included in the system shown in Figure 1; Figure 4 is a status transition diagram of the operation of the system shown in Figure 1; Figure 5 is a timing chart of a non-burst mode transfer in the system shown in Figure 1; Figure 6 is a circuit diagram showing one example of the DS signal generating circuit included in the system shown in Figure 1; Figure 7 is a block diagram of a second conventional data processing system capable of transferring data between a microprocessor and a memory; Figure 8 is a status transition diagram of the operation of the system shown in Figure 7; Figure 9 is a circuit diagram showing one example of the BRDY signal generating circuit included in the system shown in Figure 7; Figure 10 is a timing chart of an asynchronous burst mode transfer in the system shown in Figure 7; Figure 11 is a timing chart of another asynchronous burst mode transfer in the system shown in Figure 7; Figure 12 is a timing chart of the data transfer in the system shown in Figure 7 in the case that the cache writing is continuously performed Figure 13 is a block diagram of a first embodiment of the data processing system in accordance with the present invention capable of transferring data between a microprocessor and a memory; Figure 14 is a timing chart of a burst mode transfer in the system shown in Figure 13; Figure 15 is a timing chart of another burst mode transfer in the system shown in Figure 13; Figure 16 is a circuit diagram showing one example of the bus interface unit included in the microprocessor shown in Figure 13; Figure 17 is a status transition diagram of the operation of the system shown in Figure 13; Figure 18 is a circuit diagram showing another example of the bus interface unit which is included in the microprocessor shown in Figure 13 and which includes four stages of read buffer; Figure 19 is a timing chart of the burst mode transfer in the system shown in Figure 13 having the four stages of read buffer; Figure 20 is a block diagram of a second embodiment of the data processing system in accordance with the present invention capable of transferring data between a microprocessor and a memory; Figure 21 is a circuit diagram showing one example of the BLKWS signal generating circuit included in the system shown in Figure 13; and Figure 22 is a timing chart of a burst mode transfer in the system shown in Figure 20. Description of the Preferred embodiments Referring to Figure 13, there is shown a block diagram of a first embodiment of the data processing system in accordance with the present invention capable of transferring data between a microprocessor and a memory. In Figure 13, elements similar to those shown in Figure 1 are given the same Reference Numerals. The shown system is so configured that a burst mode transfer period designating signal 110 is composed of two signal lines. Figure 14 shows a timing chart of a one-clock period burst mode transfer in the first embodiment, and Figure 15 shows a timing chart of a two-clock period burst mode transfer in the first embodiment. In the first embodiment, the microprocessor 101 internally including a cache memory CACHE, outputs an effective address 105, and at the same time, activates a bus cycle start signal (ADS) 106 and a read/write signal (R/W) 107. An address decoder 102 decodes the received address and discriminates an address designated region. In addition, depending upon the memory 104 in the address designated region, the burst mode transfer period is designated by the burst mode transfer period designating signal (BLKW[1:0]) 110, which is composed of the most significant two bits A[31: 30] of the address 105. The address decoder 102 decodes the most significant two bits A[31: 30] of the address 105, similarly to the conventional examples explained hereinbefore. In this embodiment, the BLKW[1:0] signal 110 is formed of two bits, the most significant two bits A[31: 30] of the address 105 can be used as the BLKW[1:0] signal 110, without modification and without intermediary of the address decoder 102. The memory control circuit 103 receives the ADS signal 106 and the R/W signal 107, and controls the memory 104. The microprocessor 101 internally includes a bus interface unit 111, which can be formed of for example a circuit shown in Figure 16. The bus interface unit 111 includes flipflops 112 and 113, a read buffer 114, a sequencer 115, an inverter 120, AND circuits 121 and 123 and an OR circuit 122. which are connected as shown in Figure 16. This circuit 111 uses a strobe signal obtained by delaying the ADS signal 106 by a half period of the clock CLK by the inverter 120 and the flipflop 112, and the BLKW[1:0] signal 110 is fetched into the flipflop 113 at a rising edge of a clock after one clock from the outputting of the address 105. The output of the flipflop 113 is outputted as a BLKWL[1:0] signal 117 to the sequencer 114 which controls the status transition of the microprocessor. In accordance with the status transition, data is fetched from the external bus 109 through the read buffer 114 to an internal data bus 116. With this arrangement, one status transition is straightly determined from a plurality of status transitions in accordance with the value of the fetched BLKW[1:0] signal 110. Therefore, the status transition of the sequencer is in synchronism with the clock, and becomes as shown in Figure 17. In addition, by counting the number of cycles from the outputting of the address, the status transition becomes as shown in the following Table 1. Therefore, the memory control circuit 103 can know the status. In the following Table 1, S1, S2, S3 and S4 show a cycle for fetching data "0", "1", "2" and "3", respectively, and the other cycles shows a wait cycle. COUNT BLKW=0 BLKW=1 BLKW=2 BLKW=3 1 Si Si Si Si 2 S 1 S 1-1 S 1-2 S 1-3 3 S 2 S 1 S 1-1 S 1-2 4 S 3 S 2-1 S 1 S 1-1 5 S 4 S 2 S 2-2 S 1 6 S 3-1 S 2-1 S 2-3 7 S 3 S 2 S 2-2 8 S 4-1 S 3-2 S 2-1 9 S 4 S 3-1 S 2 10 S 3 S 3-3 11 S 4-2 S 3-2 12 S 4-1 S 3-1 13 S 4 S 3 14 S 4-3 15 S 4-2 16 S 4-1 17 S 4 In this embodiment, since the writing of the data can be predicted, the internal data bus 116 can be used for another purpose in cycles other than the cache memory write cycles. For example, an instruction cache and a data cache are connected to the same internal bus, and when data is written into the data cache from an external, the instruction cache can be read in empty bus cycles, for example, as in "INSTRUCTION A", "INSTRUCTION B" and "INSTRUCTION C" in the bus cycle "INTERNAL DATA BUS" in Figure 15. This makes it possible to reduce the internal wiring within the microprocessor. If the microprocessor 101 includes four stages of read buffer, the bus interface unit 111 is constituted as shown in Figure 18, in which the OR circuit 122 is removed, and the read buffer 114 is replaced with four stages of read buffer 114a, each of which has a data input connected to the external data bus 109, and a data output connected to the internal data bus 116 through a selector 125 controlled by the sequencer 115 so that only one stage of read buffer is connected to the internal data bus 116 at a time. The four stages of read buffer 114a receive the control signals S1, S2, S3 and S4 of the sequencer 115, respectively, through corresponding AND circuits 124, The operation timing of this modification is shown in Figure 19. Date read from the external (for example, the memory 104) is stored and accumulated in the four stages of read buffer 114a, and only when four items of data become complete in the four stages of read buffer 114a, the four items of data can be continuously written into a cache memory. Therefore, it is possible to simplify the control of the cache access, and to speed up the writing to the cache. Figure 20 shows a block diagram of the second embodiment of the data processing system in accordance with the present invention. The second embodiment is configured so that a burst mode transfer period designating signal (BLKWS) 118 is constituted of a single line, and the burst mode transfer period is designated during a few of continuous clocks. Excepting for this burst mode transfer period designating manner, the second embodiment is the same as the first embodiment. Referring to Figure 21, there is shown a circuit for generating the BLKWS signal 118. This circuit receives the most significant two bits A[31:30] of the address 105 and the ADS signal 106, and includes a flipflop 130, an inverter 131 and a selector 132 connected as shown. The BLKWS signal 118 is generated by selecting, on the basis of the ADS signal 106, either the most significant two bits A[31] of the address 105 or a signal obtained by delaying the next most significant two bits A[30] of the address 105 by one clock. Figure 22 shows the timing chart of the three-clock period burst mode transfer of the second embodiment. The BLKWS signal 118 is fetched after 0.5 cycle and after 1.5 cycles from the outputting of the address, and the status transition is performed at the designated period so as to fetch the data. As seen form the above, the data processing system in accordance with the present invention can dynamically change the burst mode transfer period dependently upon the performance of the memory. Therefore, the data processing system in accordance with the present invention can comply with any memory without lowering the operating frequency, which has been required in the first conventional example. Therefore, the data processing system in accordance with the present invention can reduce the system cost. In addition, the data processing system in accordance with the present invention can change the burst mode transfer period without requiring an complicated external counter circuit, which was needed in the second conventional example. In this point, the data processing system in accordance with the present invention can reduce the system cost. Furthermore, in the data processing system in accordance with the present invention, it is possible to predict the fixing of the data in the synchronous burst mode transfer. Therefore, in a time excluding the cache memory writing time, the internal data bus can be utilized for the other purpose, and accordingly, the internal wirings can be reduced. In this point, the system performance can be elevated. In the modification of the first embodiment, the writing into the cache memory can be advanced in view of the timing of the last data fetching. In comparison with the asynchronous burst mode transfer shown in Figure 12 of the second conventional example, the writing into the cache memory can be speeded up by four clocks, and the control of the cache can be simplified. The invention has thus been shown and described with reference to the specific embodiments. However, it should be noted that the present invention is in no way limited to the details of the illustrated structures but changes and modifications may be made.

Claims: A data processing system comprising: a microprocessor (101) having a burst mode transfer function; a memory (104) receiving an address supplied from said microprocessor to output data designated by the received address; an address decoder (102) receiving and decoding said address supplied from said microprocessor (101); a memory control circuit (103) receiving an output of said address decoder (102) and control signals from said microprocessor (101), for controlling said memory; characterised in that it further comprises: burst mode transfer period designating means for generating a burst mode transfer period designating signal (110; 118) and providing said burst mode transfer period designating signal (110; 118) to the microprocessor (101) said burst mode transfer period designating signal indicating a period of a burst mode transfer; and a bus interface in said microprocessor for receiving said burst mode transfer period designating signal (110; 118) and thereafter fetching data transferred from said memory (104) by a synchronous burst mode transfer in accordance with the period of the burst mode transfer designated by said burst mode transfer period designating signal. A data processing system claimed in Claim 1 wherein said synchronous burst mode transfer is performed in accordance with one period of "2 n " different periods designated by "n" burst mode transfer period designating signals simultaneously fetched through said "n" burst mode transfer period designating input terminals, respectively. A data processing system claimed in Claim 1 wherein said synchronous burst mode transfer is performed by changing said burst mode transfer period designating signal during a plurality of continuous clocks so as to designate the burst mode transfer period. A data processing system claimed in Claim 1 wherein an internal bus interface unit (111) of said microprocessor (101) fixes its status transition in accordance with said burst mode transfer period designating means, so that an internal bus is open to another internal unit in an internal bus empty time slot during the burst mode transfer period.

Inventors: TAKITA KAZUHIKO, TAKITA, KAZUHIKO, TAKITA, KAZUHIKO, C/O NEC IC MICROCOMP.SYSTEMS,LTD
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1995
Main classification: G06F13
IPC codes: G06F12, G06F13