DATA TRANSFER CONTROLLING APPARATUS FOR DIRECT MEMORY ACCESS

Abstract: A data transfer controlling apparatus for direct memory access comprising one or more first microaddress registers (40-43), each of which stores microaddress information for program processing the data transfer for a corresponding channel; a second microaddress register (45) which stores microaddress information for program processing other than the program processing the data transfer; a micro read only memory (7) operatively connected to the first (40-43) and second (45) microaddress registers, for storing microinstructions and outputting a predetermined microinstruction in accordance with microaddress information read out from a selected one of the first microaddress registers (40-43) or the second microaddress register (45); and an incremental element (6) operatively connected to the first (40-43) and second (45) microaddress registers, for incrementing the value of the microaddress information read out from the selected one of the first microaddress registers (40-43) and the second (45) microaddress register and for writing the incremented microaddress information to the selected one of the first microaddress registers (40-43) and the second (45) microaddress register. The microaddress information stored in the first microaddress registers for the corresponding channel is read out when program processing data transfer for the corresponding channel is carried out, the microaddress information stored in the second microaddress register (45) being read out when program processing other than the said program processing of data transfer is carried out.

Description: The present invention relates to a data transfer controlling apparatus for direct memory access (DMA), more particularly, to a DMA data transfer controlling apparatus which controls data transfer by a DMA controller controlling the data transfer without going through a CPU. In general, a DMA transfer controlling apparatus is comprised of a central processing unit (CPU), input-output unit (I/O unit), memories, and a DMA controller connected via address buses, data buses, and buses for control signals (for example, read/write signal buses) to form a microcomputer system. When DMA transfer is performed, the above-mentioned DMA controller takes over the above-mentioned buses from the CPU. In accordance with commands written in advance by the CPU into the DMA controller, the DMA controller controls the data transfer between the memories or between the memory and the I/O unit. In this connection, it is conceived to apply microprogram control to the DMA controller. An example of a micro programmed DMA controller is described in EP-A-0 111 161. If the microprogram control is applied, the DMA controller may be comprised of a request handler, data handler, and microunit. Here, the microunit is a unit which, based on a data transfer request signal from the above-mentioned I/O unit, for example, sends out control signals for predetermined data transfer (that is, data transfer for a predetermined channel) to the data handler, etc. To carry out such an operation, the microunit is provided inside with a plurality of microaddress registers corresponding to the number of channels and a micro read only memory (µROM) which successively outputs predetermined microinstructions in accordance with microaddress information successively read out from one of the microaddress registers. The successively read out microinstructions (by which microinstructions are comprised a microprogram) are supplied to the above-mentioned data handler, etc. as control signals for data transfer for a corresponding channel. In this case, after the data transfer program processing (comprised of a plurality of transfer cycles) for one channel (here, the first channel) is completed, the microunit receives a transfer request signal for processing of the data transfer program for another channel (here, the second channel). That is, the transfer request signal for processing of the data transfer program is received by the microunit at the final cycle of the transfer program processing for the above-mentioned first channel (that is, after the correct execution of the data transfer processing for the first channel), whereby the channel by which data is to be transferred is switched. However, in this case, there is a deviation of one cycle between the timing by which microaddress information is read out from a predetermined microaddress register and the timing for execution of a predetermined data transfer cycle by the microinstruction output from the µROM in accordance with the read out microaddress information (that is, the timing of internal processing for transfer in the DMA controller is ahead of the timing of the external transfer cycle by one cycle). Therefore, when the transfer request signal is received at the above-mentioned timing, there is a dead cycle of one cycle length from the transfer cycle of the first channel (final transfer cycle before change of channels) until entering the transfer cycle of the second channel (first transfer cycle after change of channels), that is, for performing channel transition. As a result, if the microprogram control is simply applied to the DMA controller, there is the problem that this delays the operation of the apparatus. To eliminate the above problem, it is conceived to send the above-mentioned transfer request signal to the microunit before the end of the processing of the transfer program of the first channel (that is, during the transfer cycle one cycle before the final transfer cycle) so as to prepare for the next transfer in advance in the microunit. However, when the transfer request signal is received at this timing, if a bus error arises during the transfer with respect to the first channel and a bus error signal is sent in from the outside (the bus error signal being sent in at the final transfer cycle of the above-mentioned first channel), the channel for the next data transfer (that is, the above-mentioned second channel) will already be switched to by the receipt of the above-mentioned transfer request signal before that (in transfer cycle one cycle before final transfer cycle). As a result, there will be the mistaken judgment that the above-mentioned bus error has arisen in the data transfer of the above-mentioned second channel. Therefore, when a transfer program processing request is received at the above-mentioned timing, as mentioned above, despite the bus error having arisen in the data transfer of the first channel, there is the problem that the switching to the above-mentioned second channel before detection of this will lead to the erasure (destruction) of the microaddress information which is stored in the microaddress register of the second channel (that is, the microaddress information will be rewritten to the microaddress information for the bus error processing). Therefore, in the above DMA controller, it is impossible to output transfer program processing request signals in the transfer cycle before the final transfer cycle, as mentioned above. Next, in the start processing of the above-mentioned transfer program, microaddress information may be read out as an initial value from a mapping program logic array (mapping PLA) provided in the microunit. next, data of the µROM (microinstruction) is read out based on the readout microaddress information. Based on the read out microinstruction, a predetermined data transfer program processing is started via the above-mentioned data handler. In this way, in the above DMA controller, when start processing for the transfer program is requested, microaddress information is read out as an initial value from the above-mentioned mapping PLA and then input into the µROM, so it took about two cycles from the input of the above-mentioned start processing request signal into the mapping PLA to the start of the above-mentioned data transfer processing. Thus, there is the problem that this reduced the speed of the above-mentioned start processing by a corresponding amount. According to this invention a data transfer controlling apparatus for direct memory access comprises one or more first microaddress registers, each of which stores microaddress information for program processing the data transfer for a corresponding channel; a second microaddress register which stores microaddress information for program processing other than the said program processing the data transfer; a micro read only memory operatively connected to the first and second microaddress registers, for storing microinstructions and outputting a predetermined microinstruction in accordance with microaddress information read out from the first microaddress registers or the second microaddress register; and, an incremental element operatively connected to the first and second microaddress registers, for incrementing the value of the microaddress information read out from the selected one of the first microaddress registers or the second microaddress register, and for writing the incremented microaddress information to the selected one of the first microaddress registers or the second microaddress register; the microaddress information stored in the first microaddress register for the corresponding channel being read out when the program processing of the data transfer for that corresponding channel is carried out, the microaddress information stored in the second microaddress register being read out when program processing other than the said program processing the data transfer is carried out. The present invention solves the above-mentioned problems accompanying bus error processing and start processing and eliminates the destruction of the contents of the microaddress register corresponding to a channel change, eliminates that great an increase in the physical amount, and eliminates the above-mentioned dead cycle upon channel transition even if a data transfer channel is switched and then a bus error signal or the like regarding the data transfer of the preswitched channel is sent in. According to the above construction, provision of the above-mentioned second microaddress register enables, when, for example, bus error processing or other exceptional program processing is performed, the microaddress information stored in the second microaddress register to be read out and, using the readout microaddress information, the microinstruction stored in the µROM to be read out. Therefore, when the above-mentioned bus error signal or the like is sent in, the content of the above-mentioned first microaddress register corresponding to the above-mentioned channel changed to is not destroyed, there is not that great an increase in the physical amount, and there is no dead cycle in the channel transition. Preferably the data transfer controlling apparatus further comprises the above mapping PLA, the microaddress information read out from the mapping PLA being written into the first microaddress registers during the program processing based on microaddress information read out from the second microaddress register. With this construction, during the operation of the above-mentioned second microaddress register, the microaddress information read out as the initial value from the mapping PLA is written in advance into the first microaddress registers, whereby when a data transfer request is received, the µROM is immediately operated based on the prewritten microaddress information and thus high speed data transfer start processing without a dead cycle can be performed. Particular embodiments of direct memory access data transfer controlling apparatus in accordance with this invention will now be described and contrasted with the prior art with reference to the accompanying drawings; in which:- Figure 1 is a view explaining the general concept of DMA data transfer in the prior art; Figure 2 is a view explaining the DMA controller; Figure 3 is a block diagram showing an example of a DMA data transfer controlling apparatus; Figure 4 is a view showing an example of the operation timing of the apparatus of Figure 3; Figure 5 is a view showing another example of the operation timing of the apparatus of Figure 3; Figure 6 is a block diagram showing another example of a DMA data transfer controlling apparatus; Fig. 7 is a block diagram showing a DMA data transfer controlling apparatus according to a first embodiment of the present invention; Fig. 8 is a circuit diagram illustrating the internal construction of the microaddress registers shown in Fig. 7; Fig. 9 is a view showing the operation timing of the apparatus of Fig. 7 (in the case of no bus error); Fig. 10 is a view showing the operation timing of the apparatus of Fig. 7 (in the case of bus error); Fig. 11 is a circuit diagram illustrating part of the construction of the microaddress register control unit shown in Fig. 7; Fig. 12 is a circuit diagram illustrating the construction of the other part of the microaddress register control unit shown in Fig. 7; Fig. 13 is a block diagram showing an example of a DMA data transfer controlling apparatus including a start processing execution portion; Fig. 14 is a timing chart showing the operation of the apparatus of Fig. 13; Fig. 15 is a block diagram showing a DMA data transfer controlling apparatus according to another embodiment of the present invention, including the above-mentioned start processing execution portion; Fig. 16 is a schematic structural view of the selected condition PLA shown in Fig. 15; and Fig. 17 is a schematic structural view of the mapping PLA shown in Fig. 15. To further clarify the technical background of the present invention, first an explanation will be given on a DMA data transfer controlling apparatus in the prior art. Figure 1 is a view explaining the general concept of DMA data transfer, a CPU, I/O unit (for example, IO1), memories (for example, M1 and M2), DMA controller (DMAC), etc. are mutually connected by address buses, data buses, and buses for control signals (for example, read/write signal buses) to form a microcomputer system. When DMA transfer is performed, the above-mentioned DMA controller takes over the above-mentioned buses from the CPU. In accordance with commands written in advance by the CPU in the DMA controller, the DMA controller controls the data transfer between the memories (for example, between M1 and M2) or between the memory and the I/O unit (for example, from the IO1 to M1 or from M1 to the IO1). To carry out such an operation, the DMA controller sends out a hold request signal HOLD to the CPU, by which the operation of the CPU is temporarily suspended and the CPU hands over access to the buses. A hold acknowledge signal HOLD ACK is returned from the CPU to the DMA controller. Note that before the above-mentioned hold request signal is sent, predetermined commands are registered from the CPU in the DMA controller in advance, then the hold request signal is sent out based on the start instructions from the CPU. That is, for example, in the case of data transfer between memories, the addresses of the source and destination, the amount of transfer data (byte information), etc. are registered, and data transfer is performed between the memories through the DMA controller until the amount of transfer data becomes zero. Further, in the case of data transfer between the I/O unit and the memory, for example, a transfer request signal REQ is sent out from the predetermined I/O unit to the DMA controller, a transfer request acknowledge signal REQ ACK is returned from the DMA controller, the address of the destination is designated, and data transfer is performed from the I/O unit to the predetermined memory. In this connection, it is conceived to apply the microprogram control to the DMA controller. Figure 2 is a schematic view showing the internal construction of the prior art DMA controller (DMAC) to which the microprogram control is applied, which controller may be comprised of a request handler R, data handler D, and µ(micro)unit M. When, for example, a transfer request signal REQ from the I/O unit (or an autorequest signal automatically generated based on a start instruction from the CPU upon data transfer between memories) is received, the request handler R sends out a predetermined data transfer program processing request signal TREQ to the data handler D and microunit M. The microunit M includes a microsequencer which outputs a control signal for controlling the data handler D and the request handler R, an arithmetic and logic unit (ALU) for calculating transfer addresses, a counter for counting the number of transfer bytes, various kinds of control registers, an error processing circuit, etc. The microunit M, based on the transfer request signal TREQ, sends control signal to the data handler D and request handler R for the predetermined data transfer. By this, predetermined data transfer (for example, successive reading of predetermined bytes of data from the predetermined addresses of the memory M1 and successive writing of the data to the predetermined addresses of the memory M2) is performed through the data handler D, data buses, address buses, etc. Note that in Fig. 2, BERR is a bus error signal, described later, which is sent from the outside through the data handler D to the microunit M. As will be described later, the DMA data transfer controlling apparatus of the present invention features an improvement of a part of the above-mentioned microunit functioning as the control unit for controlling the data transfer through the DMA controller. Figure 3 illustrates the construction of the corresponding portion of the prior art microunit as shown in Fig. 2. That is, in Fig. 3, R indicates the request handler. The other portions (that is, the microaddress register control unit 1, microaddress registers 40 to 43 corresponding to the channel 0 to channel 3, selector 5, incremental element 6, micro read only memory (µROM) 7, and register 8) constitute the above-mentioned portion of the microunit M. That is, what the above-mentioned Fig. 3 shows is a 4-channel DMA data transfer controlling apparatus. Transfer request signals REQ0 to REQ3 are input from four sets of I/O units to the request handler R. In accordance with the input of the transfer request signals, a predetermined channel indication signal CH is input from the request handler R to the microaddress registers and a transfer program processing request signal TREQ is input to the microaddress register control unit 1. Reading and writing signals R/W are supplied from the microaddress register control unit 1 to the microaddress register of the designated channel (for example, 41). Microaddress information for data transfer for each channel is stored in the microaddress registers 40 to 43 for each channel. The initial value of the microaddress information is written into each microaddress register by a means such as shown in Fig. 13, for example, described later. Next, when the microaddress information stored in a predetermined microaddress register is read out, the read out microaddress information is input through the selector 5 to the µROM (ROM in which the later mentioned microprogram is stored) 7. Also, using the incremental element 6, the content of the microaddress information is incremented and again written into the microaddress register (for example, 41) of the corresponding channel. By this, the microinstruction stored in the corresponding address is read out from the µROM 7, then the read out microinstruction is taken into the register 8 and a control signal for the data transfer for the corresponding channel is output from the register 8 to, for example, the above-mentioned data handler D. Note that the microaddress register control unit 1 receives as input the above-mentioned bus error signal BERR as well. Figure 4 is a timing chart for explaining the operation of the apparatus of Fig. 3. When the clock ø1 is high level, the µROM 7 is precharged. When the clock ø1 becomes low level, the µROM 7 is discharged. Figure 4 shows the case of three cycles (T1 to T3) of external transfer cycles with respect to a predetermined channel. MD indicates an output (microinstructions) read out from the µROM 7 with each cycle. MA indicates the microaddress information read out from the microaddress register (for example, 41) with each cycle. That is, in Fig. 4, for example, T1D is a microinstruction for executing an external transfer cycle T1 for a predetermined channel, and T1A is microaddress information supplied from the microaddress register (for example, 41) to the µROM 7 for causing the microinstruction T1D to be output from the ROM 7. Note that the clock ø2 shows the timing by which the output read out from the µROM 7 is taken into the register 8. Here, in the DMA data transfer controlling apparatus shown in Fig. 3, as shown in Fig. 4, after the microprogram processing for one channel, for example channel 1, is completed, processing proceeds for receiving the transfer program processing request signal TREQ for another channel (in Fig. 4, transfer request signal for channel 0). That is, in Fig. 4, the above-mentioned transfer request signal TREQ is output at the final cycle in the transfer cycles of the channel 1 (in this case, the T3 cycle) (that is, after the data transfer of the channel 1 has been correctly executed). By this, the channel indication signal CH is changed from the channel 1 to channel 0. However, if a transfer request signal TREQ is output at this timing, a dead cycle corresponding to one cycle (shown a DEAD in Fig. 4) will enter between the external transfer cycle before the changeover (here, the transfer cycle of channel 1) and the external transfer cycle after the changeover (here, the transfer cycle of channel 0). That is, a predetermined microaddress information (for example, T1A) read out from a predetermined microaddress register (for example, 41) is supplied to the µROM 7, then during the discharge period of the µROM 7, a microinstruction (for example, T1D) corresponding to the microaddress information (for example, T1A) is output from the µROM 7, so, as shown in Fig. 4, there is a deviation of one cycle between the timing by which the microaddress information (for example, T1A) is read out from the corresponding microaddress register and the timing of the external transfer cycle T1 executed corresponding to the same. Therefore, a dead cycle corresponding to one cycle is generated to enter from the transfer cycle of the channel 1 to the transfer cycle of the next channel (in this case, channel 0), i.e., to perform the channel transition, due to the receipt of the transfer request signal TREQ and this delays the operation of the apparatus correspondingly. To eliminate the above problem, it is conceived to send the above-mentioned transfer request signal TREQ to the microunit M before the end of the microprogram processing of the channel 1, i.e., at the T2 cycle, as shown in Fig. 5, so as to prepare for the next transfer in advance in the microunit. However, when the transfer request signal TREQ is output at this timing, even if a bus error arises during the data transfer of the channel 1 and thus a bus error signal BERR is sent in from the outside (the bus error signal BERR being sent in at the final transfer cycle T3 of the above-mentioned channel 1), the channel for the next data transfer (that is, the channel 0) will already be switched to by the output of the transfer request signal TREQ before that (at the above-mentioned T2 cycle). As a result, there will be the mistaken judgment that the above-mentioned bus error has arisen in the data transfer of the above-mentioned channel 0 after the changeover. That is, in the case of a transfer program processing request made at the timing shown in Fig. 5, there is the problem that, despite the bus error having arisen in the data transfer of the channel 1, the switching to the above-mentioned channel 0 before detection of this will lead to the destruction of the microaddress information of the microaddress register of the channel 0 (that is, the information of the microaddress register of the channel 0 will be rewritten to the microaddress information for the bus error processing) due to the mistaken judgment. Therefore, it is impossible, with the apparatus shown in Fig. 3, to output a transfer program processing request signal TREQ at the timing shown in Fig. 5. As another means for eliminating the above-mentioned problem in the case of output of a transfer request signal TREQ at the timing shown in Fig. 4, as shown in Fig. 6, it has been conceived to provide registers 40 to 43 and 80 to 83, corresponding to the channels, as microaddress registers and microdata registers (corresponding to the register 8 in Fig. 3) and to immediately, upon the transmission of a transfer request signal TREQ to the microunit, change the microaddress register and microdata register to the registers for the next channel (Japanese Unexamined Patent Publication (Kokai) No. 59-100956). In this case, changeover of the microdata registers is possible by just changing the channels, so there is no dead cycle such as shown in Fig. 4, but when the microinstructions output from the µROM are long in bit length (for example, 70 to 80 bits), the provision of a number of microdata registers corresponding to the plurality of channels as mentioned above would lead to an increase in the physical amount and therefore would be disadvantageous in view of cost and integration density. The present invention was made to eliminate the above-mentioned problems accompanying bus error processing. Figure 7 shows a DMA data transfer controlling apparatus according to a first embodiment of the present invention. Here, the major difference with the apparatus shown in Fig. 3 lies in the addition, as a microaddress register, of an operational microaddress register 45 for performing program processing exclusively for operations (program processing other than the above-mentioned data transfer program processing). When a bus error signal BERR or other exception signal is input into the microaddress register control unit 1, the read and write operations on the operational microaddress register 45 are controlled by the signals OPR and OPW output from the microaddress register control unit 1. That is, the signals OPR and OPW are not produced while the data transfer program processing is being executed, but are output when bus error processing or other operational program processing is being executed, and control the above-mentioned operational microaddress register 45. On the other hand, while the data transfer program processing is being executed, the read signals µARR0 to µARR3 and write signals µARW0 to µARW3 for the microaddress registers 40 to 43 corresponding to the predetermined channel are output from the microaddress register control unit 1 in accordance with the channel indication signal CH and transfer program processing request signal TREQ input from the request handler R to the microaddress register control unit 1. Note that MAPA and MAPW shown in Fig. 7 are microaddress information written in the microaddress registers 40 to 43 as initial value and the write instruction for the microaddress information MAPA, respectively. Figure 8 is a circuit diagram illustrating the internal construction of the microaddress registers shown in Fig. 7. The microaddress registers 40 to 43 provided for each channel are comprised of AND gates 401 to 431, transistors 402 to 432, latch circuits 403 to 433, and transistors 404 to 434. The above-mentioned operational microaddress register 45 is comprised of the AND gate 451, transistor 452, latch circuit 453, and transistor 454. The microaddress registers provided for each channel are provided with an AND gate 461 and transistors 405 to 435 for writing the initial microaddress information MAPA into the latch circuits 403 to 433 in accordance with the above-mentioned write instruction MAPW. Note that in Fig. 8, only one bit's worth of microaddress registers for the channels is shown, but in actuality, the construction is such to enable writing and reading of a predetermined number of bits of microaddress information for each channel. Therefore, when the write signal µARW0 for the data transfer microaddress register 40 corresponding to the channel 0, for example, becomes high level at the time when the above-mentioned clock signal ø1 is high level, the transistor 402 is turned on through the AND gate 401 and predetermined microaddress information is written into the latch circuit 403 from the incremental element 6 side. On the other hand, when the read signal µARR0 for the microaddress register 40 becomes high level, the transistor 404 is turned on and microaddress information stored in the latch circuit 403 is read out. In the same way, when the write signal OPW for the operational microaddress register 45 becomes high level at the time when the above-mentioned clock signal ø1 is high level, the transistor 452 is turned on through the AND gate 451 and predetermined microaddress information is written into the latch circuit 453 from the incremental element 6 side. On the other hand, when the read signal OPR for the microaddress register 45 becomes high level, the transistor 454 is turned on and the microaddress information stored in the latch circuit 453 is read out. Further, when the above-mentioned write instruction MAPW becomes high level at the time when the clock signal ø2 is high level, the above-mentioned transistors 405 to 435 are turned on through the AND gate 461 and microaddress information MAPA is written as initial value into the latch circuits 403 to 433. In this way, the microaddress registers 40 to 43 for data transfer program processing are provided with a route for writing the microaddress information MAPA as initial value and a route for writing the microaddress information incremented by the incremental element. Figure 9 is a timing chart explaining the operation of the apparatus shown in Fig. 7 in the case where no bus error has occurred. When the clock signal ø1 is high level, the µROM 7 is precharged (see µROM (P)). When the clock signal ø1 is low level, the µROM 7 is discharged (see µROM (D)). The transfer program processing request signal TREQ is sent at the T2 cycle in the same way as the timing shown in Fig. 5, whereby channel transition (changeover from channel 1 to channel 0) is performed. TEN is a transfer enable signal which becomes high level when a transfer program processing request signal TREQ is received. Internal transfer processing is performed while the signal TEN is high level. The read signal for the microaddress register (for example, µARR1) is output starting when the clock signal ø1 is high level. When the clock signal ø1 is low level, the read operation is performed. The microaddress information read out in this way is incremented as mentioned above, the write signal for the microaddress register (for example, µARW1) becomes high level at the timing when the clock signal ø2 becomes high level, then the write operation is performed through the above-mentioned AND gate (for example, 411) when the clock signal ø1 becomes high level. In this case, the transfer program processing request signal TREQ is sent out at the T2 cycle in the transfer cycles of the channel 1, as mentioned above, so the transfer program processing of the channel 0 is started immediately after the completion of the transfer program processing of the channel 1 without a dead cycle. In this way, even during channel transition, the microaddress informations T1A to T3A output from the microaddress registers provided for each channel and the microinstructions T1D to T3D output from the µROM in accordance with the same are successively output without a dead cycle, whereby, for example, the transfer cycles of the channel 0 are started immediately after the end of the transfer cycles of the channel 1, for example, without a dead cycle. Figure 10 is a timing chart explaining the operation of the apparatus shown in Fig. 7 in the case where a bus error has occurred. The difference with the timing chart of Fig. 9 lies in the fact that the bus error signal BERR, showing the occurrence of a bus error during the transfer processing of the channel 1, becomes high level at the final transfer cycle of the channel 1 (T3 cycle), whereby the transfer enable signal TEN changes from high level to low level and, thus, there is a change from execution of data transfer program processing to execution of operational program processing (bus error processing, start processing, and other program processing other than data transfer program processing). As a result, after the end of the transfer program processing of the channel 1, the read signal OPR and further the write signal OPW for the operational microaddress register 45 become high level and the program processing is performed to handle the above bus error. In this case, as shown in Fig. 10, after the microaddress informations T1A to T3A for executing the transfer processing for the channel 1 are output as output MA from the microaddress register, there is a dead cycle corresponding to one cycle (shown by DEAD in the figure). Then, at the time when the read signal OPR becomes high level, the operational (for example, bus error processing) microaddress informations OP1A, OP2A, ... are output successively from the microaddress register 45 until the end of the operational program processing. As the microinstructions MD output from the µROM 7 in accordance with this, the microinstructions T1D to T3D for execution of the transfer processing of the channel 1 are output, then a no-operation state is entered by one cycle (shown by NOP in the figure). Next, the microinstructions OP1D, OP2D, ... for executing the operational program processing (here, bus error processing) are output successively from the µROM 7 until the end of the operational program processing. In this way, even if a bus error signal BERR is sent in at the final transfer cycle of the channel 1, there will be no destruction of the contents of the microaddress register of the channel 0 due to the changeover from data transfer program processing to operational program processing (in this case, bus error processing). Figure 11 is a circuit diagram showing, in the microaddress register control unit 1 shown in Fig. 7, the detailed construction of the portion for outputting the read signals µARR0 to µARR3 and write signals µARW0 to µARW3 for the data transfer microaddress registers 40 to 43 provided for each channel, the transfer enable signal TEN, and the read signal OPR for the operational microaddress register 45. Further, Fig. 12 is a circuit diagram showing, in the microaddress register control unit 1 shown in Fig. 7, the detailed construction of the portion for outputting the write signal OPW for the operational microaddress register 45. In Fig. 11 and Fig. 12, A1 to A12 are AND gates, B1 to B5 are OR gates, and I1 to I9 are inverters, among which the inverter I4 operates when the clock signal ø1 is high level and enters a floating state while it is low level. However, in the present embodiment, the inverter operates as a dynamic latch by the shortening of the period of the clock signal ø1 and maintains the former level until the next clock signal ø1 is input. Further, the inverters I1, I5, and I8 operate when the clock signal ø2 is high level and enter a floating state while it is low level. However, in the present embodiment, in the same way as above, these operate as dynamic latches and maintain the former levels until the next clock signal ø2 is input. FF1 to FF4 are RS flipflops, among which FF1 to FF3 are reset priority type RS flipflops (that is, when the set input S and reset input R are both 0, hold the former data, when the set input S is 1 and the reset input R is 0, enter the set state (that is, Q = 1), and when the set input S is 0 and the reset input R is 1 and when the set input S and the reset input R are both 1, enter the reset state (that is, Q = 0)). Among the signals input to the circuit shown in Fig. 11, T1D is a transfer processing end request signal and EXP is an exception signal, the above-mentioned bus error signal being included therein. Further, IBR is an internal data bus use request signal, WAIT is a wait request signal, and CH0 to CH3 are indication signals for the channels 0 to 3, the potentials of the signals CH0 to CH3 being low level under the active state. Further, among the signals input to the circuit shown in Fig. 12, OREQ is an operational processing request signal and µEND is an operation processing end request signal. By this, when the above exception signal EXP is low level, if the clock signal ø1 and transfer request signal TREQ become high level, the flipflop FF1 is set and the transfer enable signal TEN becomes high level. By designation of a predetermined channel (for example, when CH0 becomes low level), the read signal µARR0 for the microaddress register 40 corresponding to the channel 0 becomes high level. Further, when the next clock signal ø2 is high level, the flipflop FF2 is set and the write signal µARW0 for the microaddress register 40 becomes high level. On the other hand, when the above-mentioned exception signal EXP becomes high level (for example, when a bus error, etc. occurs), the above-mentioned flipflops FF1 and FF2 are reset and the read signals µARR0 to µARR3 and write signals µARW0 to µARW3 of the microaddress registers corresponding to each channel become low level, while the read signal OPR for the operational microaddress register 45 becomes high level. Further, in the circuit shown in Fig. 12, when the above-mentioned exception signal EXP becomes high level, the write signal OPW for the operational microaddress register 45 becomes high level through the successive setting of the flipflops FF3 and FF4. In this way, according to the present invention, even when a bus error signal or the like is sent in after a data transfer channel is switched, there is no destruction of the contents of the microaddress register corresponding to a channel changed to, there is not that great an increase in the physical amount, and channel transition is possible without a dead cycle. Further, in the present invention, it is possible to make use of the operational microaddress register provided to eliminate the problems accompanying bus error processing so as to achieve high speed start processing of data transfer for the channels without a dead cycle. Figure 13 illustrates the construction of the portion of the prior art microunit M as shown in Fig. 2 including the portion for executing start processing. In Fig. 13, R indicates the request handler. The other portions (that is, the microaddress register control unit 1, mapping programmable logic array (mapping PLA) 2, selected condition programmable logic array (selected condition PLA) 3, microaddress registers 40 to 43 for the channel 0 to channel 3, selector 5, incremental element 6, micro read only memory (µROM) 7, and register 8) constitute the above-mentioned portion of the microunit M. That is, what the above-mentioned Fig. 13 shows, like Fig. 3, is a 4-channel DMA data transfer controlling apparatus. Transfer request signals REQ0 to REQ3 are input from four sets of I/O units to the request handler R, for example. In accordance with the input of the transfer request signals, a predetermined channel indication signal CH is input from the request handler R to the microaddress registers and a transfer program processing request signal TREQ is input to the microaddress register control unit 1. Reading and writing signals R/W are supplied from the microaddress register control unit 1 to the microaddress register of the designated channel (for example, 40). By this, when the microaddress information stored in a predetermined microaddress register is read out, the read out microaddress information is input through the selector 5 to the µROM 7. Using the incremental element 6, the content of the read out microaddress information is incremented and again written into the microaddress register (for example, 40) of the corresponding channel. By this, the microinstruction stored in the corresponding address of the µROM 7 is read out, then the microinstruction is taken into the register 8 and a control signal for the data transfer for the corresponding channel is output from the register 8 to, for example, the above-mentioned data handler D. The selector 5 receives as input not only the microaddress information read out from the above-mentioned microaddress registers 40 to 43, but also, for example, microaddress information read out from the mapping PLA 2, etc. In accordance with the select signal supplied from the selected condition PLA 3, just predetermined microaddress information is selectively input through the selector 5 to the µROM 7. Here, the mapping PLA functions as a so-called "jump table" for the µROM which designates, in accordance with conditions input to the mapping PLA, the microaddress information as the initial value (e.g., the starting address, jumping address, etc.) from which the µROM must operate. Figure 14 is a timing chart showing the start sequence in the case of start processing of a micro-program by the apparatus shown in Fig. 13. First, a data transfer processing request signal TREQ is output from the request handler R. Based on the request signal TREQ, predetermined microaddress information is read out from the mapping PLA 2. Based on the readout microaddress information, data (microinstruction) of the µROM is read out. Based on the readout output data of the µROM, predetermined data transfer processing is started through the above-mentioned data handler D. Note that the µROM 7 is precharged when the clock signal ø1 is high level and is discharged when the clock signal ø1 is low level. Further, the mapping PLA 2 and selected condition PLA 3 are precharged when the clock signal ø2 is high level and discharged when the clock signal ø2 is low level. In this way, in the apparatus shown in Fig. 13, the microaddress information read out from the mapping PLA 2 is input directly through the selector 5 to the µROM 7, so as shown by the timing chart of Fig. 14, it takes about two cycles (two clocks worth of time) from when the above-mentioned transfer request signal TREQ is input into the mapping PLA 2 until the above-mentioned transfer processing starts. This is true not only when the above-mentioned data transfer processing request signal TREQ is input, but it takes about two cycles even in the case from when an operation processing (for example, start processing executed before the actual data transfer processing is performed and other program processing other than data transfer program processing) request signal OREQ is input from the request handler R to the mapping PLA 2 to the start of the predetermined operation processing (for example, start processing). This leads to a decline in the start processing speed. The present invention also eliminates the problems accompanying start processing. Figure 15 shows a DMA data transfer controlling apparatus according to another embodiment of the present invention for eliminating the above problems. Portions common to the embodiment shown in Fig. 7 are given the same reference numerals and symbols. The major difference with the apparatus shown in Fig. 13 lies in the provision, as a microaddress register, of an operational microaddress register 45 for performing program processing exclusively for operations (for example, start processing, bus error processing, and other program processing other than data transfer program processing) and, during the operation of the operational microaddress register 45 (for example, during start processing), the microaddress information MAPA as initial value read out from the mapping PLA 2 is written into the data transfer microaddress registers 40 to 43 provided for each channel. Note that in Fig. 15, MAPW is a write instruction supplied from the µROM 7 through the register 8 to the predetermined microaddress registers 40 to 43. The microaddress information MAPA read out as initial value from the mapping PLA 2 is thus written into the data transfer microaddress registers 40 to 43 during the operation of the operational microaddress register 45. Further, a read instruction CODE of the microaddress information MAPA is supplied from the µROM 7 through the register 8 to the mapping PLA 2. Note that in the apparatus shown in Fig. 15, when the normal data transfer program processing is being executed, in accordance with the channel indication signal CH and transfer request signal TREQ input from the request handler R to the microaddress register control unit 1, read signals µARR0 to µARR3 and write signals µARW0 to µARW3 are supplied from the microaddress register control unit 1 to the microaddress register corresponding to the predetermined channel. Further, when a bus error signal BERR or other exception signal is input into the microaddress register control unit 1, the read and write operations for the operational microaddress register 45 are controlled by the signals OPR and OPW output from the microaddress register control unit 1, as explained with regard to the embodiment of Fig. 7. The internal construction of the microaddress registers shown in Fig. 15 is illustrated in Fig. 8. That is, the data transfer microaddress registers 40 to 43 provided for each channel are comprised of AND gates 401 to 431, transistors 402 to 432 to which are supplied write signals µARW0 to µARW3 from the AND gates 401 to 431, latch circuits 403 to 433, transistors 404 to 434 to which are supplied read signals µARR0 to µARR3 for reading microaddress information stored in the latch circuits, and transistors 405 to 435 to which are supplied, through the common AND gate 461, a write signal MAPW from the µROM. On the other hand, the above-mentioned operational microaddress register 45 is comprised of the AND gate 451, a transistor 452 to which is supplied a write signal OPW from the AND gate 451, a latch circuit 453, and a transistor 454 to which is supplied a read signal OPR for reading microaddress information stored in the latch circuit. Therefore, when the write signal µARW0 for the data transfer microaddress register 40 corresponding to the channel 0, for example, becomes high level at the time when the above-mentioned clock signal ø1 is high level, the transistor 402 is turned on through the AND gate 401 and predetermined microaddress information from the incremental element 6 side is stored in the latch circuit 403. On the other hand, when the read signal µARR0 for the microaddress register 40 becomes high level, the transistor 404 is turned on and microaddress information stored in the latch circuit 403 is read out. In the same way, when the write signal OPW for the operational microaddress register 45 becomes high level at the time when the above-mentioned clock signal ø1 is high level (as mentioned above, the signal OPW becomes high level when a bus error signal BERR or other exception signal is input into the microaddress register control unit 1 or during start processing), the transistor 452 is turned on through the AND gate 451 and predetermined microaddress information from the incremental element 6 side is stored in the latch circuit 453. On the other hand, when the read signal OPR for the microaddress register 45 becomes high level, the transistor 454 is turned on and the microaddress information stored in the latch circuit 453 is read out. Further, in the present invention, during the operation of the operational microaddress register 45 (for example, during start processing), microaddress information MAPA read out as an initial value from the mapping PLA 2 is written into the data transfer microaddress registers 40 to 43. That is, when the above-mentioned write instruction MAPW supplied from the µROM 7 through the register 8 to the data transfer microaddress registers 40 to 43 becomes high level at the time when the clock signal ø2 is high level, the transistors 405 to 435 provided at the data transfer microaddress registers 40 to 43 are turned on through the AND gate 461 and the microaddress information MAPA read out from the mapping PLA 2 is written through the transistors 405 to 435 into the latch circuits 403 to 433. In this way, the microaddress registers 40 to 43 for transfer processing are provided with both a writing route from the incremental element 6 and a writing route for setting initial value from the mapping PLA 2. That is, during the operation of the operational microaddress register 45 (for example, during start processing), the data transfer microaddress registers 40 to 43 are in an unused state and can be written in with data, so during the start processing, the microaddress information MAPA is read out in advance as initial value from the mapping PLA by the read instruction CODE from the µROM. Then, using the write instruction MAPW, the microaddress information MAPA is written into the data transfer microaddress registers 40 to 43. By this, there is no need for reading out microaddress information from the mapping PLA when receiving a data transfer processing request and thus the start processing for the data transfer can be executed at that much a higher speed without a dead cycle. Note that the construction of the above-mentioned microaddress register control unit 1 is illustrated in Fig. 11 and Fig. 12. Figure 16 is a schematic structural view of the selected condition PLA 3 shown in Fig. 15. The selected conditions are determined by various signals input from the above-mentioned µROM, the internal registers of the DMA controller, error test circuit, the request handler R, the data handler D, etc. and are taken into the latch circuit by the clock signal ø1. Note that, for example, the above-mentioned operation processing request signal OREQ is input from the request handler R and the bus error signal BERR is input from the data handler D. Figure 17 is a schematic structural view of the mapping PLA 2 shown in Fig. 15. The microaddress information from which the µROM must operate is determined by various signal conditions input from the above-mentioned µROM, internal registers of the DMA controller, error test circuit, ALU, request handler R, data handler D, and the like and is taken into the latch circuit by the clock signal ø1. Note that, for example, the above-mentioned read instruction CODE is input from the µROM, the operation processing request signal OREQ is input from the request handler R, and the bus error signal BERR is input from the data handler D. Therefore, according to the present invention, by using the operational microaddress register provided to eliminate the problems accompanying bus error processing, it is possible to write in advance microaddress information as initial value from the mapping PLA to data transfer microaddress registers during the operation of the operational microaddress register, and thus enable high speed start processing of data transfer, when receiving a data transfer processing request, without a dead cycle.

Claims: A data transfer controlling apparatus for direct memory access comprising: one or more first microaddress registers (40, 41, 42, 43), each of which stores microaddress information for program processing the data transfer for a corresponding channel; a second microaddress register (45) which stores microaddress information for program processing other than the said program processing the data transfer; a micro read only memory (7) operatively connected to the first (40-43) and second (45) microaddress registers, for storing microinstructions and outputting a predetermined microinstruction in accordance with microaddress information read out from the first microaddress registers (40-43) or the second microaddress register (45); and, an incremental element (6) operatively connected to the first (40-43) and second (45) microaddress registers, for incrementing the value of the microaddress information read out from the selected one of the first microaddress registers (40-43) or the second microaddress register (45), and for writing the incremented microaddress information to the selected one of the first microaddress registers (40-43) or the second microaddress register (45); the microaddress information stored in the first microaddress register (40-43) for the corresponding channel being read out when the program processing of the data transfer for that corresponding channel is carried out, the microaddress information stored in the second microaddress register (45) being read out when program processing other than the said program processing the data transfer is carried out. A data transfer controlling apparatus according to claim 1, further comprising a microaddress register control unit (1), the control unit (1) supplying a read signal and write signal for the microaddress information to the first microaddress registers (40-43) for the corresponding channel when the program processing the data transfer for the corresponding channel is carried out, the control unit (1) supplying a read signal and write signal for the microaddress information to the second microaddress register (45) when program processing other than the said program processing the data transfer is carried out. A data transfer controlling apparatus according to claim 2, wherein the control unit (1) comprises means for receiving a bus error signal (BERR) and supplies the read signal and the write signal for the microaddress information to the second microaddress register (45) when program processing for bus error processing is carried out. A data transfer controlling apparatus according to claim 2 or 3, wherein the control unit (1) comprises means for receiving a channel indication signal (CH) and a transfer request signal (TREQ) for the program processing the data transfer and receives the transfer request signal for a channel newly indicated by the channel indication signal before the program processing of data transfer for another channel previously indicated by the channel indication signal is completed. A data transfer controlling apparatus according to any one of the preceding claims, further comprising a mapping programmable logic array (MAPA), the microaddress information read out from the mapping programmable logic array (MAPA) being written to the first microaddress registers (40-43) whilst program processing based on the microaddress information read out from the second microaddress register (45) is carried out. A data transfer controlling apparatus according to claim 5, wherein the microaddress information read out from the mapping programmable logic array (MAPA) is written to the first microaddress registers (40-43) in accordance with a write instruction supplied from the micro read only memory (7). A data transfer controlling apparatus according to claim 5 or 6, wherein the microaddress information read out from the mapping programmable logic array (MAPA) is initial microaddress information to be stored in the first microaddress registers (40-43). A data transfer controlling apparatus according to claim 5, 6 or 7, wherein the microaddress information read out from the mapping programmable logic array (MAPA9 is written to the first microaddress registers (40-43) during start processing which is carried out before the program processing the data transfer is carried out.

Inventors: FUJIHIRA, ATSUSHI, SAITOH, TADASHI, TANIAI, TAKAYOSHI
Applicants: FUJITSU DEVICES INC, FUJITSU LIMITED
Application year: 1988
Main classification: G06F13
IPC codes: G06F9, G06F13