Memory accessing device

Abstract: A memory accessing device is connected to a first bus 28 for connecting a first buffer storage unit 23 in a central processing unit 22 and to a second buffer storage unit 24 for accessing at least one of the first buffer storage unit 23 and the second buffer storage unit 24 independently of the central processing unit 22. It comprises an address generating circuit 11 for generating an address according to which at least one of the first buffer storage unit 23 and the second buffer storage unit 24 is accessed, an output control unit 12 for outputting the address to the first bus 28 and for controlling such that the output from the output control unit 12 enters the idle state if the second buffer storage unit 24 issues a request for access to the first buffer storage unit 23 when the memory accessing device obtains a bus use right of the first bus.

Description: The present invention relates to a device for directly accessing a memory forming a part of a computer system independently of a central processing unit, and more specifically to a memory accessing device which is connected to a bus for connecting a central processing unit, buffer storing units such as cache memories, etc. and accesses a memory independently of the central processing unit, with a cache memory being kept consistent with the main memory storage. The Hewlett-Packard Journal Vol. 38, No. 9 Sep. 1987, pages 4-17, discloses a system having a single cache memory arranged in a memory hierarchy with the main memory storage and in which a strategy for keeping the two levels of memory hierarchy consistent is discussed. The configuration of a central processing unit (hereinafter referred to as a CPU) having a built-in primary cache memory comprising a memory capable of rapid access by the CPU, and further having a secondary cache memory connected to the main storage unit is widely known for improving the performance of a computer system. The primary cache memory is a highspeed, expensive, and relatively small capacity memory, while the secondary cache memory is a lower-speed and much cheaper memory, but is still faster and more expensive than the main memory storage. Figure 1 shows the configuration of a computer system comprising primary and secondary cache memories. The system shown in Figure 1 comprises a CPU 2 comprising a primary cache memory 3, a secondary cache memory 4, a main storage unit 5, and an input/output unit 6 (hereinafter abbreviated to I/O unit). The CPU 2 and the secondary cache memory 4 are connected through a processor bus 8 (hereinafter abbreviated to a P bus). The secondary cache memory 4, the main storage unit 5, and the I/O unit 6 are connected through a memory bus 9 (hereinafter abbreviated to an M bus). The I/O unit 6 can perform a DMA (direct memory access) data transmission to and from the main storage unit 5 through the M bus 9. The primary cache memory 3 and the secondary cache memory 4 in the above described system configuration must be kept logically consistent with the main storage unit 5 regardless of their write control method, that is, a write-through control method or a copy-back control method. In the write-through control method, for example, data are written from the primary cache memory 3 to the secondary cache memory 4 and then from the secondary cache memory 4 to the main storage unit 5 if a block address in which data is to be written is in the primary cache memory 3. In the copy-back control method, firstly block data are written in the primary cache memory 3 or the secondary cache memory 4, and then the contents of the main storage unit 5 is updated by transmitting the block data to the main storage unit 5 when the updated block data is to be replaced. Thus, the cache memory is kept consistent with the main storage memory when data are written to the cache memory regardless of whether the write-through control method or the copy-back control method is used. If the main storage unit is rewritten, the data in it should be kept consistent with those in a cache memory. Therefore, for example, if a part of the contents of the main storage unit 5 is rewritten by the I/O unit 6 connected through the M bus 9, the secondary cache memory 4 monitors the addresses, etc. on the M bus 9. If the data at the address where data have been rewritten in the main storage unit 5 are entered in the secondary cache memory 4, the entry in the cache memory are invalidated to maintain the consistency between the secondary cache memory 4 and the main storage unit 5. Then, the secondary cache memory 4 must inform the primary cache memory 3 of the fact that the contents of the main storage unit 5 has been rewritten. Therefore, the secondary cache 4 outputs a monitor request signal for invalidating a cache entry in the primary cache memory 3, and outputs the address of the main storage unit 5 according to which data have been rewritten. If the primary cache memory 3 receives the monitor request signal and the address information, and the primary cache memory 3 has an entry at the address data according to which the main storage unit 5 has been rewritten, the primary cache memory 3 invalidates the entry in the cache memory to maintain the consistency between the primary cache memory 3 and the main storage unit 5. There is another system provided with a memory accessing device for accessing a secondary cache memory and a main storage memory independently of the CPU 2. Figure 2 shows the configuration of the computer system comprising a memory accessing device 1. The memory accessing device 1 is, for example, a vector process unit (VPU), etc. in which the primary cache memory accesses the secondary cache memory instead of requiring the arithmetic operation of the CPU 2 to perform a vector operation at a high speed. The memory accessing device 1 requests the right to use the P bus 8 according to the bus use right request signal 31 when an operation instruction is issued according to the control by the CPU2. In response to the request, a bus use right response signal 32 from the CPU 2 is asserted, and the memory accessing device 1 acquires the bus use right. Then, the device directly accesses a memory to perform a vector operation in a pipeline process. With the computer system having such a memory accessing device, a cache memory entry is invalidated to maintain the consistency between the secondary cache memory 4 and the main storage unit 5 as in the case shown in Figure 1 if the main storage unit 5 is rewritten by the I/O device 6, etc. on the M bus 9 when the above described memory accessing device 1 obtains the bus use right on the P bus 8 and accesses the primary cache memory or the secondary cache memory. However, for example, when the memory accessing device 1 obtains the bus use right of the P bus 8 for connecting the secondary cache memory 4 and the primary cache memory 3 in the CPU 2, the secondary cache memory 4 is outputting an address on the P bus 8 to the primary cache memory 3. Accordingly, there arises a conflict for outputting an address between the secondary cache memory 4 and the memory accessing device on the P bus 8 whose usage is not managed. Therefore, it becomes impossible to inform the primary cache memory 3 of the fact that the contents of the main storage unit 5 has been rewritten. Thus, there has been a problem in that the consistency cannot be successfully maintained. To prevent such a bus conflict use right on the P bus 8, there is a method in which the secondary cache memory 4 controls the bus use right of the memory accessing device 1 described above. This method certainly prevents a conflict for use on the P bus, but another problem in that it takes much time to appropriately execute the bus arbitration (adjustment of bus use right) arises. For example, if the memory accessing device 1 is a vector processor for performing a pipeline process, a complicated sequence is required to interrupt the pipeline process. Since the CPU 2 will be accessing the primary cache 3 if the system has to wait for the memory access unit 1 to complete its accessing operation, there has been a problem in that an insignificant process is performed using the contents of the primary cache memory 3 without maintaining the consistency between the main storage unit 5 and the cache memories. GB-A-2 178 205 describes a hierarchical cache system for a shared bus multiprocessor having several processors each having private cache memory. The system is multilevel in the sense that as well as the private cache, a second, higher, level cache memory is provided together with main system memory. In different embodiments, one or two bits are added to each block of data to indicate the validity or invalidity of a block. Various methods are described that, when data marked invalid is required, ensure consistency between the data stored in the various caches and the main memory. According to the invention there is provided a system comprising a memory accessing device, a central processing unit having a first buffer storage means, a bus, a second buffer storage means and a main storage means, the first and second buffer storage means being arranged hierarchically as primary and secondary cache memories for said central processing unit, the memory accessing device comprising: address generating means for generating an address according to which at least one of said first buffer storage means and said second buffer storage means is accessed, output control means arranged to output said address to said bus when the memory accessing device has a bus use right to said bus, wherein the memory accessing device is connected to the bus, bus connecting the first buffer storage means located within the central processing unit and accessible from at least said bus and the second buffer storage means, the memory accessing device being arranged to access at least one of said first buffer storage means and said second buffer storage means independently of said central processing unit characterised in that said output control means comprises a tri-state buffer for outputting an address or holding the output to said bus in a high impedance state, and in that said memory accessing device further comprises control means including means for outputting an address strobe signal for indicating the validity of the address output by the tri-state buffer and a state machine for controlling the state of the tri-state buffer, such that when said second buffer storage means issues a signal as a request for an access to said first buffer storage means to invalidate a cache memory entry to maintain consistency between the main storage means, said first buffer storage means and said second buffer storage means, the invalidation request signal is received by the memory accessing device causing the output to said bus to enter an idle state, said idle state being a high impedance state at the output to said bus, and after the invalidation request signal is negated the state machine returns to a state in which the output control means can output an address to said bus. Thus a bus conflict is avoided at that crucial point in time when the primary cache memory is being invalidated for maintaining the consistency within the memory hierarchy. Embodiments of the present invention with this configuration may maintain the consistency between the cache memories and the main storage unit. Embodiments of the present invention may also realize a memory accessing device for forming part of a high performance system having no need of bus arbitration. For a better understanding of the invention and to show how the same may be carried into effect, reference will now be made, by way of example, to the accompanying drawings, wherein: Figure 1 shows the configuration of the computer system comprising the primary and secondary cache memories of the prior art; Figure 2 shows the configuration of the computer system comprising the primary and secondary cache memories of the prior art; Figure 3 shows the principle of an embodiment of the present invention; Figure 4 shows the configuration of a computer system of an embodiment of the present invention, comprising primary and secondary cache memories; Figure 5 shows the configuration of the memory accessing device of an embodiment of the present invention; Figure 6 shows the detailed configuration of the memory accessing device comprising an output latch unit, a tri-state buffer, and a buffer control unit; Figure 7 shows the detailed configuration of the output control logic circuit; Figure 8 shows the configuration of the state machine in the memory accessing device of an embodiment of the present invention; Figure 9 shows in detail the configuration of the state machine in the memory accessing device of an embodiment of the present invention; Figure 10 shows in detail the configuration of the state machine in the memory accessing device of an embodiment of the present invention; Figure 11 shows the output circuit of a strobe signal AS#; Figure 12 shows the configuration of the secondary cache memory block; Figure 13 is the timing chart of the basic cycle; Figure 14 is the timing chart of the block transfer cycle; Figure 15 is the timing chart of the basic cycle in which MREQ# is detected in the cycle for outputting AS#; Figure 16 is the timing chart of the block transfer cycle in which MREQ# is detected during the bus cycle in accessing a memory; Figure 17 shows the configuration of the vector processor unit; Figure 18 shows the configuration of the vector unit; Figure 19 shows the configuration of the bus control unit; Figure 20 shows the configuration of the score board; and Figure 21 shows the configuration of the pipeline control unit. Embodiments of the present invention are explained below in detail by referring to the attached drawings. Figure 3 shows the principle of the present invention. The memory accessing device 21 of the present invention is connected to a first bus 28 for connecting a first buffer storage unit 23 provided in a central processing unit 22 and accessed at least from the first bus 28 to a second buffer storage unit 24, and accesses the first buffer storage unit 23 or the second buffer storage unit 24 independently of the central processing unit 22. The central processing unit 22 is provided with arithmetic operation unit 22-1 for decoding an instruction to perform a target arithmetic operation. Arithmetic operation unit 22-1 executes an instruction in the first buffer storage unit 23, and performs a specified operation. The first buffer storage unit 23 monitors that the memory access apparatus 21 accesses the second buffer storage unit 24 to perform an address monitor and invalidates the data if the data is stored in the first buffer storage unit 23. An address generating circuit 11 generates an address to access the second buffer storage unit 24, and outputs it to the first bus 28. The generated address is used to indicate where data used by the memory accessing device 21 to perform an arithmetic operation and the result of the arithmetic operation are stored. For example, the memory accessing device 21 can be a vector processor unit (VPU). If the second buffer storage unit 24 issues a request for access to the first buffer storage unit 23 when the memory accessing device 21 has the bus use right of the first bus 28, a output control unit 12 holds the outputs to the first bus in the high impedance state. The control unit 13 controls the changing of the state of the memory accessing device 21, and generates a strobe signal AS# indicating whether or not the output from the address generating circuit 11 is valid. If the second buffer storage unit 24 issues a request for access to the first buffer storage unit 23 when the memory accessing device 21 obtains the bus use right of the first bus 28, an control unit 13 holds the output of the output control unit 12 in the idle state, for example in the high impedance state. The first buffer storage unit 23 and the second buffer storage unit 24 function as cache memories for the central processing unit 22, and a request signal from the second buffer storage unit 24 for access to the first buffer storage unit 23 is a signal MREQ# for invalidating a cache memory entry to maintain the consistency between the main storage unit 25 and the corresponding cache memory. The memory accessing device 21 of the present invention, is controlled such that the output to the first bus 28 from the output control unit 12 enters the idle state, for example the high impedance state, if the second buffer storage unit 24 issues a request for access to the first buffer storage unit 23 when the memory accessing device 21 has the bus use right of the first bus 28. For example, if the first buffer storage unit 23 is a primary cache memory, the second buffer storage unit 24 is a secondary cache memory, and the contents of a main storage unit 25 is rewritten using DMA, etc. by an I/O unit 26, the second buffer storage unit 24 detects it and issues a request to the first buffer storage unit 23 for the invalidation of a cache memory entry to maintain the consistency between the main storage unit 25 and the first and second buffer storage units 23 and 24. In this case, since the address output from the output control unit 12 in the memory accessing device 21 is held in the high impedance state although the bus use right is held by the memory accessing device 21, the consistency between the main storage unit 25 and the first and second buffer storage units 23 and 24 can be maintained within a short time without a bus conflict caused by an address outputted from the second buffer storage unit 24 to the first buffer storage unit 23 through the first bus 28 so as to invalidate a cache memory entry. Furthermore, since the second buffer storage unit 24 invalidates a cache memory entry for the first buffer storage unit 23, the bus arbitration executed by acquisition by the central processing unit 22 of the right to use the bus, releasing the bus use right held by the memory accessing device 21, etc. is not required, thus realizing a high performance system. Figure 4 shows the system configuration for explaining an embodiment of the present invention. The central processing unit 22 comprises the primary cache memory 23' for storing instructions, and performing various operations. These operations are performed by the arithmetic operation unit in the central processing unit 22. As shown in Figure 4, arithmetic operation unit 22-1 is connected to the P bus 28 and the primary cache memory 23', and executes a program stored in the primary cache memory 23' to perform various arithmetic operations. Additionally, it stores control information in the control registers of the arithmetic operation unit 27 described later, and reads status information. In the system shown in Figure 4, the primary cache memory 23' and the central processing unit 22 are connected to the secondary cache memory 24' and an arithmetic operation unit 27 through the P bus 28. The primary cache memory 23' stores at a high speed an instruction executed by the central processing unit 22. In response to this, the central processing unit 22 executes the instruction at a high speed. By contrast, as compared with the primary cache memory 23', the secondary cache memory 24' has a larger memory capacity, but operates at a lower speed. If the contents at a target address is not stored in the primary cache memory 23', it is read from the secondary cache memory 24', stored in the primary cache memory 23', and then executed. Data, etc. as well as instructions are stored in the primary and the secondary cache memories 23' and 24'. Furthermore, the secondary cache memory 24' is connected to the main storage unit 25 through an M bus 29. The I/O unit 26 is also connected to the M bus 29. Each of the above described P bus 28 and the M bus 29 comprises an address bus, data bus, and control bus not shown in Figure 4. The main storage unit 25 can be accessed, and data, commands, etc. are transmitted through these buses. Programs and commands indispensable for the execution performed by the central processing unit 22 are stored in the main storage unit 25. If an address of data or a command not stored in the primary or the secondary cache memory 23' or 24 is detected, the corresponding data stored in the main storage unit 25 are stored in the secondary cache memory 24', and then stored in the primary cache memory 23'. If data and a command at a target address are stored in the secondary cache memory 24', where the capacity of the primary cache memory 23' is larger than that of the secondary cache memory 24', they are read from the secondary cache memory 24' and stored in the primary cache memory 23'. These primary and the secondary cache memories 23' and 24' are controlled by the write-through control or copyback control. The central processing unit 22 executes a target program by accessing the primary and the secondary cache memories 23' and 24'. As a result, however, the program stored in the main storage unit 25 is executed to complete each process. At this time, programs are executed at a high speed with the consistency of data between the main storage unit 25 and the primary and the secondary cache memories 23' and 24' correctly maintained. If an arithmetic operation to be processed is so complicated that it cannot be processed by the central processing unit 22, the arithmetic operation unit 27 for successfully performing such complicated operations provided in the system shown in Figure 4 is used. The arithmetic operation unit 27 can be a vector processor unit (VPU), for example. It directly accesses a memory and performs a vector operation in a pipeline process. Therefore, the memory accessing device 21 for directly accessing a memory is provided in the arithmetic operation unit 27. When the central processing unit 22 instructs the arithmetic operation unit 27 to execute an operation, it writes an instruction to a register (not shown in Figure 4) in the arithmetic operation unit through the P bus 28, and the memory accessing device 21 is operated according to the result of the operation to read and write the data in the primary cache memory 23'. The arithmetic operation unit 27 directly accesses the primary cache memory 23' when it performs an operation according to the command received from the central processing unit 22. At this time, the central processing unit 22 is requested to release the bus to pass the bus use right to the arithmetic operation unit 27. That is, the central processing unit 22 receives a bus use right request 31, and releases the P bus 28 at a timing permitting the release of the P bus 28, and inputs the bus use right response signal 32 to the control circuit 13 in the arithmetic operation unit 27. On receiving the bus use right response signal 32, the control circuit 13 recognizes the acquisition of the bus use right, controls the output control circuit 12, and outputs to the address bus an address signal corresponding to the address generated by the address generating circuit 11. The arithmetic operation unit 27 outputs to the P bus 28 data to be written to the primary cache memory 23', and transmits to the arithmetic operation unit 27 the data received from the primary cache memory 23'. The arithmetic operation unit 27 performs a vector operation using an address and the data stored in the primary cache memory 23' and obtained by accessing the data bus, that is, the P bus 28. Assume that data must be rewritten from the I/O unit 26 to the main storage unit 25 during such operations. The secondary cache memory 24' monitors what part of the area in the main storage unit 25 is accessed, to maintain the consistency of data. If the data in the accessed area are stored in the secondary cache memory 24', the data are invalidated. If the data associated with the address are stored in the primary cache memory 23', an input address latch circuit 30 stores the address to be invalidated to specify it as an input address. Then, the monitor request MREQ# signal is outputted to the central processing unit 22, and to the control circuit 13 and the output control circuit 12 in the memory accessing unit 21 in the arithmetic operation unit 27. For example, when the arithmetic operation unit 27 is operating as described above, the control circuit 13 in the memory accessing device 21 recognizes it, issues an instruction specifying that the output from the output control circuit 12 should indicate high impedance, and outputs an address strobe signal AS# to the secondary cache memory 24'. The address strobe signal AS# is applied to an output enable terminal of the latch circuit 30, and the input address latch circuit 30 outputs the address value to the address bus of the P bus 28 when the address strobe signal AS# indicates the L level. Then, the primary cache memory 23' invalidates the area associated with the address outputted by the input address latch circuit 30. The address strobe signal AS# is outputted by a unit having the bus use right. In the case described above, the arithmetic operation unit 27 acquires the bus use right. In the case that the central processing unit 22 obtains the bus use right, for example, the address strobe signal AS# is outputted by the central processing unit. To control the output timing of each signal, the state machine 13' manages each of states T1 - T5 and T1W - T5W. Each state is described later (refer to Figures 13 - 17). The memory accessing device 21 receives from the secondary cache memory 24' a monitor request signal MREQ# for invalidating a cache memory entry to the primary cache memory 23'. If the monitor request signal MREQ# is asserted, the address output ADDRESS (O) of the memory accessing device 21 is held in the high impedance state. Hereinafter, (O) preceded by a symbol refers to an output, and (I) to an input. "Assert" means an active state and "negate" means an inactive state. However, the following conditions exist to be able to hold the address output ADDRESS (O) in the high impedance state. All units that output an address and directly access a memory output a strobe signal AS# indicating whether or not its output address is valid. An outputted address is recognized as valid while the strobe signal is asserted, and the external circuits use the address outputted at that time. When an address strobe signal AS# (O) is asserted, the address ADDRESS (O) is not held in the high impedance state. If the output address ADDRESS (O) is held in the high impedance state only because the monitor request signal MREQ# is asserted when the address strobe signal AS# is asserted, the external circuits recognize the address in the high impedance state as a valid address, thus possibly causing a malfunction of the system. This problem holds true with the configuration of the computer system in which only the CPU 22 is connected to the P bus 8, and the secondary cache memory 24' does not output a monitor request signal MREQ# while the address strobe signal AS# (O) is asserted. With the system configuration shown in Figure 4, the memory accessing device 21 is operating in synchronization with the CPU 22 according to the same clock, and is often required to operate at a very high speed. Therefore, an address strobe signal AS# (O) is outputted immediately after the start of bus access. However, the secondary cache memory 24' may not recognize that the address strobe signal AS# (O) is asserted. For example, If an address strobe signal AS# (O) must be asserted immediately after a monitor request signal MREQ# is asserted when the memory accessing device 21 obtains the bus use right of the P bus 28 and is accessing a memory, the secondary cache memory may not recognize the assertion. If an output address ADDRESS (O) is held in the high impedance state only because a monitor request signal MREQ# is asserted, the address ADDRESS (O) is held in the high impedance state while an address strobe signal AS# (O) is asserted, thus causing a malfunction of the system. That is, if a monitor request signal MREQ# is detected in the cycle in which an address strobe signal AS# (O) is to be outputted, it means that the present state is being changed to the following state T1 described later. In this case, the state is changed to T1 on receiving an access completion signal DC# (1) or on obtaining a bus use right. That is, it means the change of a bus. At this time, the memory accessing device 21 retains the cycle of the state in which the current bus use right is held without proceeding with the next bus access when a monitor request signal MREQ# is detected, that is, idle state Ti. In idle state Ti, the memory accessing device 21 is held in the state in which an address ADDRESS (O) is not outputted, that is, the high impedance state. Therefore, there is no problem of a bus conflict with an address outputted by the secondary cache memory 24'. The cycle of state Ti can be released by negating a monitor request signal MREQ#. If the monitor request signal MREQ# is negated, the cycle of state T1 is effective. These states Ti and T1 are described later. If a monitor request signal MREQ# is detected during the bus cycle in a memory accessing process, an address strobe signal AS# (O) is outputted to indicate that an access completion signal DC# (I), that is, a bus access response signal, has not been returned yet. In this case, the address strobe signal AS# (O) has been outputted, and the output address ADDRESS (O) can be held in the high impedance state. Therefore, on detecting a monitor request signal MREQ#, the memory accessing device 21 controls such that only an already outputted address is held in the high impedance state. The operations of the output control circuit 12 and the control circuit 13 in the memory accessing device 21, that is, a buffer control unit 12' and a state machine 13', are explained above, and further described below in detail. Figure 5 shows the configuration of the memory accessing device of an embodiment of the present invention. Figure 6 shows the detailed configuration of the memory accessing device comprising an output latch unit 14, a tri-state buffer 15, and a buffer control unit 12'. The output control circuit 12 comprises the output latch unit 14, the buffer control unit 12', the tri-state buffer 15. The control circuit 13 comprises the state machine 13' and the strobe signal AS# output circuit 13". Address CK1 outputted by the address generating circuit 11 is applied bit by bit to D-type flip-flops DFF1 - DFFn in the output latch unit 14. For example, it is stored in the 64-bit output latch unit 14 when a vector processor unit is used. A clock CLK is applied to the output latch unit 14, and D-type flip-flops DFF1 - DFFn receive data in synchronization with the clock. An address output enable signal is applied to the output latch unit 14. The latch unit 14 receives address signal CK1 outputted by the address generating circuit 11 according to the clock when the address output enable signal indicates the H level. When the output address enable signal indicates the L level, the state is held as is. The output from the output latch unit 14 is applied to the tri-state buffer 15. The tri-state buffer 15 has three output states, that is, the high impedance, the L level, and the H levels and is held in the high impedance state (HIGHT Z) when a tri-state control signal indicates the L level. When the tri-state control signal indicates the H level, a signal is outputted by D-type flip-flops DFF1 - DFFn in the output latch unit 14. The operation of the tri-state buffer 15 is explained below. The output from the output latch unit 14 is applied to NAND gate NAND1 and NOR gate NOR1. When a tri-state control signal indicates the H level, NAND gate NAND1 is turned on, and NOR gate NOR1 is also turned on because the L level is applied to OR gate through inverter IN1. The output from NAND gate NAND1 is applied to output FET F1 through inverters IN2 and IN3, and the output from NOR gate NOR1 is outputted to output FET F2 through inverters IN4 and IN5. Thus, transistors F1 and F2 are turned on and off according to the H and the L levels outputted by the output latch unit 14. That is, transistor F1 is turned on and transistor F2 is turned off when the H level is applied. By contrast, with a the L level, transistor F1 is turned off, while transistor F2 is turned on. Thus, address CK1 is outputted by the address generating circuit 11 from the tri-state buffer 15 to the P bus through the latch circuit. When the buffer control unit 12' outputs a tri-state control signal at the L level, the L level is applied to NAND gate NAND1. Therefore, NAND1 is turned off and outputs the H level, and the H level is applied to NOR gate NOR1 through inverter IN1. Then, NOR1 is turned off and outputs the L level. Since all the output is applied to FETs F1 and F2 through two-step inverters IN2 and IN3, and IN4 and IN5, both FETs F1 and F2 are turned off. As a result, the output is held in the high impedance state. State signals T1 - T5, T2W, and T5W from the state machine 13' described later, external input signals DC and MREQ, and a bus access request signal, a bus acquisition block transfer request signal, etc. are applied to output control logic circuit 12-1 in the buffer control 12'. The output control logic circuit 12-1 detects the state in which a bus is to be accessed according to state signals T1W - T5W from the state machine 13', external input signals DC and MREQ, and the bus access request signal, the bus acquisition block transfer request signal, etc., and then generates a signal for controlling the tri-state buffer 15. The buffer control unit 12' comprises output logic circuit 12-1, D-type flip-flop 12-2, set/reset flip-flop 12-3, inverter IN6, NAND gate NAND2, and inverters IN7 and IN8. Figure 7 shows the detailed configuration of the output control logic circuit. An MREQ, that is, an external input signal, is applied to AND gate AND2 through AND gates AND1, AND3, and AND4, and inverter IN10. An access completion signal or a DC, that is, an external input signal, is inputted to AND gates AND3 - AND5. Signal t1 from the state machine 13' is applied to AND gate AND1 through inverter IN9, and is applied to AND gate AND2. The bus right acquisition signal and the bus access request signal are also applied to AND gate AND2. Signals t2 and t2W are applied to AND gate AND3 through OR gate OR1, and a no block transfer request signal is applied thereto. Signals t5 and t5W are applied to AND gate AND4 through OR gate OR2. Signals t2, t5, t2W, and t5W are also applied to AND gate AND 5 through OR gate OR3. According to a signal received from the above described state machine 13', the H level is applied to D-type flip-flop 12-2 by output control logic circuit 12-1 when a MREQ is asserted and the state is not in state T1 (t1=H). At this time, the H level is inverted through inverter IN6 and applied to NAND gate NAND2, and the output from NAND2 is forcibly converted to the H level, and outputted as a tri-state control signal through inverters IN7 and IN8. Thus, the tri-state control signal turns to the H level. Since the output from AND gates AND3 - AND5 is ORed by OR gate OR4, and the result is applied to the reset terminal of RS flip-flop 12-3, then RS flip-flop 12-3 is reset when one of AND gates AND3, AND4, and AND5 indicates the H level and the output turns to the L level. The reset condition exists if the H level is outputted from AND gates AND3 - AND5 when a DC and an MREQ are asserted in state T2 or T2W and there are no block transfer requests, when DC and MREQ are asserted in state T5 or T5W, or when DC is asserted and no bus access requests are issued in state T2, T2W, T5W, or T5. Thus, it is reset and outputted at the L level. Therefore, as described above, the tri-state control signal turns to the H level. RS flip-flop 12-3 is set and turns to the H level when an access completion signal, that is, a DC, is not asserted in state Ti, that is, in the idle state, and when a bus right is acquired and a bus access request is issued. D-type flip-flop 12-2 is set to the L level in state T1 and when MREQ is not asserted. Thus, the L level is turned to the H level through inverter IN6, and the H level of RS flip-flop 12-3 is applied to NAND gate NAND2, and the L level is outputted as a tri-state control signal through inverters IN7 and IN8. In Figure 5, the address output circuit 11 of the memory accessing device 21 comprises, as described above, the output address generating circuit 11, the output latch unit 14, the tri-state buffer 15, the state machine 13', and the buffer control unit 12', and further comprises an input terminal for a monitor request signal MREQ# for providing it for the state machine 13' and the buffer control unit 12. The bus timing of the memory accessing device 21 is managed by the state machine 13'. Figure 8 shows the configuration of the circuit in the state machine 13'. In Figure 8, LTi, LT1 - LT5, and LT2W - LT5W are latches for storing states Ti, T1 - T5, and T2W - T5W respectively; ti, t1 - t5, and t2W - t5W are output signals from latches LTi, LT1 - LT5, LT2W - LT5W respectively; CL1, CL2, CL3, CL4, CL5, ..., CL10, and CL11' are condition determining logical circuits; and OR1 - OR10 are logical sum circuits. Thus, the state machine comprises latches LTi, LT1 - LT5, LT2W - LT5W each corresponding to the state of a bus timing, and their transition conditions are determined by condition determining logical circuit CL1, CL2, CL3, CL4, CL5, ..., CL10, or CL11'. Determination is made as to what state is to be reached depending on the condition. Therefore, a control signal such as an access completion signal DC# (I), etc. is applied to condition determining logical circuit CL1, CL2, CL3, CL4, CL5, ..., CL10, or CL11. Thus, the next state is determined. For example, state T2 can be changed to one of the following four states. (1) state T3 if a block transfer condition exists when the access completion signal DC# (I) is asserted. (2) state T1 if a block transfer condition does not exist and a bus access request is issued when the access completion signal DC# (I) is asserted. (3) state Ti if a block transfer condition does not exist and a bus access request is not issued when the access completion signal DC# (I) is asserted. (4) state T2W when the access completion signal DC# (I) is negated. "#" as in access completion signal DC# (I) indicates negative logic, while "(I)" indicates input. That is, condition determining logical circuit CL2 is configured such that the output going to logical sum circuit OR5 is asserted if the access completion signal DC# (I) is asserted when signal t2 is asserted, and the output going to logical sum circuit OR4 is asserted if the access completion signal DC# (I) is negated. Condition determining logical circuit CL4 is configured such that the output going to latch LT3 is asserted if a block transfer condition exists when the output signal of logical sum circuit OR5 is asserted, the output to logical sum circuit OR2 is asserted if a block transfer condition does not exist and a bus access request is issued, and the output to logical sum circuit OR1 is asserted if a block transfer condition does not exist and a bus access request is not issued. Other condition determining logical circuits are configured similarly. Accordingly, a latch for each state in the state machine is always operated according to clock signal CLK only. If the output from latch Tj (j=1, ..., 5, 2W, ..., 5W) is asserted, it indicates that the bus is in state Tj. In condition determining logical circuits CL1 and CL11, the state is changed, that is, the H level output direction is changed according to the condition that the OFF output is asserted when the monitor request signal MREQ# is negated. Likewise, in condition determining logical circuit CL4, the state is changed according to the condition that the ON output going to logical sum circuit OR1 is asserted when a monitor request signal MREQ# is asserted. Figure 5 is explained below again. The timing for latching an address generated by the output latch unit 14 is controlled according to control signal CK3 from the state machine 13'. Control signal CK3 is asserted according to the timing of a change from state Ti to state T1, from state T2 to state T1, or from state T5 to state T1, that is, according to output signal t1 from latch LT1 in the state machine 13'. The buffer control unit 12' controls such that output CK2 from the output latch unit 14 is passed through as is at the tri-state buffer 15 as address output ADDRESS (O) when control signal CK4 is asserted and the monitor request signal MREQ# is negated, and the output from the three state buffer 15 is held in the high impedance state when control signal CK5 is asserted or the monitor request signal MREQ# is asserted. The state machine is further explained in detail. Figures 9 and 10 show in detail the configuration of the state machine. Latches Ti, T1 - T5, and TW2 - TW5 are set by input data received according to the clock CLK. Latch LTi is set to the H level during the idle state, and the output is provided as signal ti to the above described output control logic circuit 12'. When the H level output from latch LTi is applied to AND gate AND10, signal ti indicates the H level, a bus access request is issued, the bus use right is obtained, and signal MREQ is negated, the output from AND gate AND10 turns to the H level, and latch TL1 is set to the H level through OR gate OR14. If any of the above described conditions does not exist, that is, if a bus access request is not issued, a bus use right is not obtained, or MREQ is not negated, the output from AND gate AND10 turns to L level, and the H level is applied to latch LTi through inverters IN11 and OR gate OR15. That is, latch LTi is always held in the H level unless a given condition exists. If the above described conditions exist, the H level is applied to latch LT1 through OR gate OR14, and the H level is accepted at the next timing according to the clock CLK. Then, at the next timing according to the clock CLK, latch LT2 turns to the H level. At this time, following the first idle state, the state is unconditionally changed from state T1 to state T2. The outputs t1 and t2 from latches LT1 and LT2 respectively are outputted to the output control logic circuit as described above. Then, the H level of the output from latch LT2 is applied to AND gate AND11. If, at this time, the H level of the output from an access completion signal, that is, a DC as an access completion signal, is negated, the output turns to the H level and latch LT2W turns to the H level through OR gate OR15. When the DC is negated, the H level is applied to the input terminal of latch LT2W through AND gate AND12 to hold the present state. Output t2W from latch LT2W is also inputted to the output control logic circuit as a state signal. Signals t2W and t2 are applied to OR gates OR16 - OR19. These OR gates OR16 - OR19 are logical circuits for reaching state T2W or state T2. When at least t2w signal or t2 signal indicates the H level, the H level is applied to AND gates AND13 - AND16. When DC is asserted in state T2 or T2W, MREQ is negated, a bus access request is issued, a no block transfer request signal is applied to AND gate AND13, and all these inputs indicate the H level, the output from AND gate AND13 turns to the H level and is applied again to latch LT1 through OR gate OR14. That is, the machine returns to state T1 at this time. When DC is asserted, MREQ is asserted, block transfer request is not issued, and the machine is in state T2 or T2W, the output from AND gate AND14 to which each of the signals is applied sets latch LTi through OR gate OR15. That is, at this time, when DC is asserted, a bus access request is not issued, and the machine is in state T2 or T2W, the output from AND gate AND15 turns to the H level and state Ti, that is, the idle state, is reached through OR gate OR15. Furthermore, if DC is asserted, a bus access request and a block transfer request are issued, and state T2 or T2W is retained, the output from AND gate AND16 turns to the H level and the H level is applied to latch LT3. In Figures 9 and 10, NT1, NT3, NTia, and NTib are connection terminals for connecting Figure 9 to Figure 10. If latch LT3 is set (the output indicates the H level), it indicates state T3 is reached. If DC is asserted in state T3, AND gate AND17 turns to the H level, and the H level is applied to latch LT4 through OR gate OR20. If a DC is negated, then the output from AND gate AND18 turns to the H level, and the H level is applied to latch LT3W through OR gate OR21, and latch LT3W accepts the H level at the next timing of a clock. When the output from latch LT3W retains the H level, the output from AND gate AND19 is the H level if the DC is negated, and 1 is applied to latch LT3W through OR gate OR21. This state is retained while the DC is negated. If the DC is asserted, the output from AND gate AND20 turns to the H level, and the H level is applied to latch LT4 through OR gate OR20. Latches LT3 and LT3W are applied to the output control logic as state T3 and state T3W respectively. That is, if a DC is asserted in state T3 or T3W, then the H level is applied to latch LT4, and the H level is accepted according to the clock CLK. The output circuit of latch LT4 is similar to the circuit in state T3. That is, When a DC is negated, state T4W is reached indicating a wait state, and latch LT4W turns to the H level. When it is asserted, the next latch LT5 turns to the H level. This is controlled by AND gates AND21 - AND24 and OR gates OR22 and OR23. When the output from latch LT5 turns to the H level, AND gate AND25 turns to the H level if a DC is negated. Then, latch LT5W turns to the H level through OR gate OR24, reaching state T5W. Since AND gate AND26 retains the H level as long as the DC is negated, the input to latch LT5W indicates the H level. That is, state T5W is held. If a DC is asserted in state T5, the output from an AND gate 27 turns to the H level. When state T5 or T5W is retained, AND gate AND28 turns the H level if a DC is asserted, an MREQ is negated, and a bus access request is issued. At this time, the H level is applied to latch LT1 through OR gate OR14. AND gate AND29 turns to the H level when a DC and an MREQ are asserted in state T5 or T5W. AND gate AND30 turns to the H level when a DC is asserted and a bus access request is not issued in state T5 or T5W. At this time, the H level is applied to latch LTi through OR gate OR5, and state Ti is reached. Based on the state conditions described above, a state is stored in each latch. In each state, target sequence control can be performed. Figure 11 shows the output circuit of the strobe signal AS#. A set/reset flip-flop RSF10 is set when the state machine changes the state to T1, and reset when state T1 is reached. That is, the set signal to be applied to the set/reset flip-flop RSF10 is the output from OR gate OR14 which is applied to T1, and the reset signal is the output from latch LT1. That is, if a bus use right is obtained, then the H level is applied to the tri-state buffer TBF and the output from the flip-flop RSF10 is outputted as the an AS# signal. Figure 12 shows the configuration of the secondary cache memory. The secondary cache memory comprises a memory 40 having a tag unit, a data unit, and a V bit unit, a P bus side circuit, and an M bus side circuit. The memory 40 is a dual port memory having two input/output ports and two address ports. The cache memory further comprises a control circuit. An address input unit 41 on the P bus side is connected to the P bus 28, and all bits are applied to the tag unit of the memory 40. Data in the data unit are accessed through the tag unit. The tag unit stores the location in which the address of a memory area managed by the central processing unit 22 is stored. The data unit is accessed according to an address applied by the address input unit 41 and converted to the address in the data unit in the memory 40. As described above, the memory 40 is a dual port memory. One port is connected to the data bus of the P bus 28 through the data control unit 42. A data control unit 42 connects the P bus and the data unit of the memory 40 for two-way communication, and actually connects them for two-way communication if target data exist in the memory 40 and they are valid (the value in the V bit unit is 1). The connection is controlled by a comparator (CMP) 43 and AND gate 44. A plurality of higher order address bits applied through the address input unit 41 are applied to one terminal of the comparator 43. To the other terminal of the comparator 43, the output from the tag unit in the memory 40 is applied. If the tag unit stores the area for storing the data to be accessed, it outputs the higher order addresses. Therefore, the comparator 43 outputs 1. If, at this time, data in the data unit are valid, the V bit unit outputs 1. Accordingly, AND gate 44 for receiving the output also outputs 1. The data control unit 42 performs the two-way connection. Circuits similar to those described above are connected to the other port of the memory 40. They are a comparator 45, a data control unit 46, an address input unit 47, and AND gate AND48, and operate similarly when accessed through the M bus 29. The output from AND gate AND48 is connected to an MREQ output unit 49. In addition to the above described operations, the comparator 45 always monitors the addresses on the M bus side. If an address is valid, that is, the output from the AND gate AND48, is "1", the control circuit sets the value of the V bit unit to 0 for the corresponding area, and the MREQ output unit 49 outputs an MREQ. Furthermore, when an AS signal is inputted, the address of the invalidated area is outputted to the address bus. The memory accessing device 21 used with the system configuration shown in Figure 4 accesses the secondary cache memory 24. The bus timing at this time can be: (1) one bus access for one address output, or (2) the predetermined number of times of bus access for one address output. (1) is referred to as a basic cycle, and (2) is referred to as a block transfer cycle. (2) is a burst mode in which one address output incurs serial access for one line of the secondary cache memory 3. The timing chart of the above described two types of bus timing is shown in Figures 13 and 14. The bus timing in these figures indicates a data read cycle in which one bus access contains two machine cycles. The block transfer shown in Figure 14 indicates a 4-times serial bus access. In Figure 14, Ti, T1 - T5, and T1W - T5W enter each state of the memory accessing device. State Ti indicates the idle state, and nothing accesses the memory. CLK is a clock signal for driving the system. ADDRESS (O) indicates an address output from the memory accessing device 21, "High-Z" indicates that the address output is floating in the high impedance state, and "Valid" indicates that the address output outputs a valid value. AS# (O) is a strobe signal indicating that the address on the P bus 28 is valid, and "L" level is a negative logic signal of a true value. In the signal notation, a signal name ending with "#" indicates a negative logic signal, and an "I" and "O" enclosed by a pair of parentheses indicate an input signal and an output signal respectively. DATA (I/O) indicates data input/output from the memory accessing device 21, and DS# (O) indicates a strobe signal informing that data on the P bus 28 are valid. DC# (I) indicates a DC outputted from the memory side and informs of the completion of data access. The circles shown in Figures 13 and 14 indicate the timing at which each signal is detected. With the system configuration shown in Figure 4, because this holds true with a control signal such as an address strobe signal AS# (O), a data strobe signal DS# (O), etc. the CPU 22 and the memory accessing device 21 access the same secondary cache memory 24'. That is if the bus use right is not obtained by other circuits, the CPU 22 outputs a similar signal through a bus. Accordingly, control signals are held in the high impedance state to prevent a bus conflict. Address ADDRESS (O) and data DATA (O) are also held in the high impedance state, unless addresses or data are being outputted, even if the bus use right is obtained. The above described bus timing is changed according to an access completion signal DC# (O) from the cache memory side. If the access completion signal DC# (O) is not asserted, a wait state such as T2W state shown in Figure 11 is reached, and the cycle is repeated. In Figure 12, unless an access completion signal DC# (O) is asserted in states T2, T3, T4, and T5, states T2W, T3W, T4W, and T5W are reached respectively, and the cycle is repeated until the access completion signal DC# (O) is asserted. Figures 15 and 16 are bus timing charts in which a memory accessing device obtains the bus use right. Figure 15 is a timing chart for a basic cycle in which a monitor request signal MREQ# is detected in a cycle for outputting an address strobe signal AS# (O). Figure 16 is a timing chart for a block transfer cycle in which a monitor request signal MREQ# is detected during a bus cycle in accessing a memory. In Figure 15, a monitor request signal MREQ# is detected when the operation is entering the next basic cycle on completion of the basic cycle in states T1 and T2. The memory accessing device 21 enters the idle state, that is, state Ti, with the bus use right reserved, and sets address output ADDRESS (O) to the high impedance state. The idle state, that is, state Ti, is held until the monitor request signal MREQ# is negated. In Figure 16, a monitor request signal MREQ# is detected in a block transfer cycle during the transition from state T2 to state T3. At this time, the access completion signal DC# (I) is asserted, and the memory accessing device 21 receives from DATA (I/O) the data accessed by the address output ADDRESS (O) in state T1 and enters state T3 with the address output ADDRESS (O) set in the high impedance state. Next, since the access completion signal DC# (I) is negated at the end of the cycle in state T3, the wait state T3W is reached. If the monitor request signal MREQ# is negated, the value of the address output ADDRESS (O) is recognized as valid, and the access completion signal DC# (I) is asserted at the end of the present state T3W. Thus, the operation enters the next state T4. Figure 17 shows the configuration of the vector processor unit (VPU). The vector processor unit (VPU) comprises a vector unit (VU) 61, a command buffer unit (CBU) 62, a control unit (CU) 63, an address unit (AU) 64, and a bus control unit (BU) 65. The control circuit 13 on the memory accessing device 21 shown in Figure 4 comprises the above mentioned vector unit 61, the command buffer unit 62, the control unit 63, and the bus control unit 64. The address unit 64 refers to the output address generating circuit 11, the output latch unit 14, the tri-state buffer 15, and the buffer control unit 12'. The vector unit 61 performs a vector operation and comprises an 8KB vector register (VR) 66, a 64-byte mask register (MR) 67-1, a 128-byte scaler (SR) 67-2, and vector pipelines 68 provided for load/store pipes for storing data in and reading data from adders, multipliers, dividers, graphics processors, mask processors, and registers, and is connected by internal bus 67-3. The vector unit 61 is the important part of the vector processor unit. The central processing unit 22, that is, the CPU, and the vector processor unit VPU, that is, the arithmetic operation unit 27 shown in Figure 4 are connected to each other through a slave interface. The central processing unit 22 accesses the vector processor unit with the following procedure when it requests that a vector operation, etc. be performed. First, the central processing unit 22 initializes registers described later such as internal registers in the vector processor unit, for example, vector length registers. On completion of the initialization, it activates the vector processor unit, and the vector processor unit performs target operations in parallel and in a pipeline process. At this time, the primary cache memory 23' in the central processing unit 22 is accessed. On completion of the above described operations, the central processing unit 22 accesses the registers in the vector processor unit, reads the completion state, and determines, for example, whether or not the operations were completed normally. Figure 18 shows in detail the configuration of the portion of the vector unit 61 associated with a vector operation. Each of banks B0, B1, B2, and B3 of the vector register (VR) 66 comprises 8 bytes (64 bits) x 256 words, and the output is applied to a read bank selector 70. The read bank selector 70 comprises m input terminals each comprising 64 bits and 8 output terminals each comprising 64 bits, for example, 10 input terminals and 8 output terminals. It is a matrix-structure circuit for optionally determining which input data is to be outputted to which output terminal. Additionally, an address in the primary cache memory associated with the input and output of the data is outputted by the address unit 64 in Figure 7. That is, the primary cache memory is accessed according to the address outputted by the memory accessing device 21. The input data selected by the read bank selector 70 are applied in units of 64 bits x 2 ports to a multiplier 72, an adder 71, and a divider 73 each forming part of the vector pipeline 68. The multiplier 71, the adder 72, and the divider 73 of the vector pipeline 68 are configured such that arithmetic operations are performed in a pipeline process. The results of operation pipeline processes is applied to a write bank selector 69. The write bank selector 69 comprises i input terminals each comprising 64 bits and j output terminals each comprising 64 bits. Some of the output terminals are applied to the vector registers 66. The write bank selector 69 is matrix-structured, and optionally selects and outputs the data inputted to the input terminals. For example, 4 input terminals and 5 output terminals are provided. With the above described configuration, the value outputted by the vector register is applied to each vector pipeline through the read bank selector. The operation result is returned to the vector register through the write bank selector. Thus, an arithmetic operation can be performed. Then, the load/store pipe is connected to the input unit of the write bank selector and the output unit of the read bank selector, and is further connected to the bus control unit 65. Thus, operation data are transmitted from external memories to the vector register and from the vector register to external memories. The output terminals of the write bank selector 69 are applied to the scaler register (SR) 67-2, and the output is connected to the input terminals of the read bank selector 70. Then, one output terminal of the read bank selector 70, for example, 32 bits, is outputted as an address index. The load and store data of the above described vector operation operand are transmitted through the bus control unit 65 connected to the load and store pipes. Figure 19 shows the configuration of the bus control unit 65. The bus control unit 65 is a circuit for controlling the interface to an external storage unit. An address pipeline step number determining unit 81 is a logic circuit for determining the number of addresses to be outputted first according to 32/64 bit operand length, a stride value, and banks B0 and B1. Signals for the lower order value of a stride value, a bank number serial address designation bit, the 64/32 bit designation, and the indirect instruction are applied to the address pipeline step number determining unit 81. Then, the number of addresses to be outputted is determined, and the value is outputted to a timing sequencer 82. The timing sequencer 82 is similar to the state machine 13', and controls the state of a bus. The number of states of a bus is determined according to the number of pipelines outputted by the address pipeline step number determining unit 81, and bus state signals are converted according to external input signals and timing signals applied through an external terminal control circuit 84. The decode output from a decode unit 86 of the control unit 63 is applied to a bus mode control unit 83, and the bus mode control unit 83 determines the mode of each bus cycle, for example, load, store, etc., according to an instruction. Then, the timing sequencer 82 and the bus mode control unit 83 control the external output terminals of AU#, BS#, DS#, R/W#, etc. The output terminal control unit 84 controls external inputs, outputs, the direction of input/output terminal, etc., and also controls output timings, etc. according to a bus state signal and external input signals. The bus use right control unit 85 controls the acquisition of the an external bus use right. The external terminal control unit 84 controls an external circuit, for example, a memory, through the above described external bus when it obtains the bus use right under control of the bus use right control unit 85. Thus, vector data are transmitted between a vector register and an external memory. If a MREQ is received from the secondary cache memory 24' when data are transmitted between a vector register and an external memory, that is, the primary cache memory 23', the timing sequencer 82 controls the state of the bus and outputs an address strobe signal AS#. The bus is temporarily released in response to the address strobe signal, and the secondary cache memory 24' notifies the primary cache memory 23' of the invalidation of the data. Figure 20 shows the configuration of a score board 87 provided in the control unit 63. The score board 87 comprises a decoder 91 for generating according to each instruction a set signal for setting the number of a register to be used and a reset signal for resetting the set signal after the register is used and released, a score board 92 comprising a plurality of SRFFs (set/reset flip-flops) for storing the states of set/reset signals, and a selector 93 for receiving a read register number, and outputs the storage state of the score board 92 corresponding to the register number specified by the read register number. The score board 87 checks the conflict between registers specified in executing pipelines in parallel. Before the execution of the instructions, registers are specified and applied to the score board 87 (set numbers), and the decoder 91 decodes the set numbers to determine whether or not they are the numbers of its own registers. The decoder 91 decodes each register number including the states "set" and "clear". If the decoder 91 receives a set number of its own register, it outputs a set signal for the register. When it receives a clear number of its own register, it outputs a reset signal for the register. The state of an SRFF is changed according to the set and the reset signals, and the state of the registers are stored. For example, if a register is to be used, then its set number is applied to the decoder 91, the set signal number of the register is outputted, and the SRFF of the score board 92 is set. This state indicates that an instruction being executed is using the register. Then, a clear number is outputted on completion of the execution, the decoder 91 decodes the number and outputs a reset signal, and the SRFF of the score board 92 is reset. In this state, that is, when the SRFF is reset, the corresponding register is not being used. Figure 21 shows the configuration of a pipeline control unit 88. The pipeline control unit 88 generates activation signals, that is, start instructions, to pipelines such as multiplier (MLT) pipelines, adder (ADD) pipelines, etc., termination signals, that is, END signals to pipelines according to vector length data (the number "i"), and score board clear signals issued when registers, etc. enter a conflict. Vector converting circuits 95-1 and 95-2 are logic circuits for converting signals indicating vector length according to the signals indicating vector length, to those in the format of the internal control timing. The output from the converting circuit 95-1 and 95-2 is applied to comparators 96-1 and 96-2. A counter 97 generates according to a vector length and a counter value a signal having an end timing of each pipeline (END signal) and a score board clear number. When the counter 97 receives a start signal, it starts counting a clock. The count value is applied to the other input terminals of comparators 96-1 and 96-2. Comparator 96-2 outputs a score board clear signal when the count value matches the value converted from the vector length by vector converting circuit 95-2. The counting operation is performed and an END signal is outputted by comparator 96-1 when the count value matches the value converted from the vector length by vector length converting circuit 95-1. The END signal is also applied to the stop input terminal of the counter 97, and according to this signal, the counter 97 stops the counting operation. As described above the output control unit controls such that the output from the address generating circuit enters the high impedance state if a request for access to the first buffer storage unit is issued by the second buffer storage unit when the memory accessing device obtains the bus use right of the first bus. Therefore, to maintain the consistency between the cache memory and the main storage unit, the address output from the memory accessing device is held in the high impedance state even if the bus use right is obtained by the memory accessing device when the secondary cache memory issues to the primary cache memory a request for the invalidation of a cache memory entry. Thus, even if the secondary cache memory outputs to the primary cache memory through the P bus an address according to which a cache memory entry is to be invalidated, there are no conflicts for a bus and a memory accessing device capable of maintaining the consistency at a high speed between the primary and the secondary cache memories and the main storage unit can be successfully realized. Furthermore, in the memory accessing device, the secondary cache memory invalidates a cache memory entry for the primary cache memory without releasing the bus use right. Therefore, it does not require bus arbitration such as bus use right acquisition performed by the central processing unit, bus use right release performed by the memory accessing device, etc. As a result, a high performance system can be configured. Besides, an insignificant process, for example, the central processing unit's using the contents of the primary cache memory without maintaining the consistency between the main storage unit and the cache memories, can be prevented.

Claims: A system comprising a memory accessing device (21), a central processing unit (22) having a first buffer storage means (23), a bus (28), a second buffer storage means (24) and a main storage means (25), the first and second buffer storage means being arranged hierarchically as primary and secondary cache memories for said central processing unit (22), the memory accessing device (21) comprising: address generating means (11) for generating an address according to which at least one of said first buffer storage means (23) and said second buffer storage means (24) is accessed, and output control means (12) arranged to output said address to said bus (28) when the memory accessing device (21) has a bus use right to said bus (28), wherein the memory accessing device is connected to the bus (28) and is arranged to access at least one of said first buffer storage means (23) and said second buffer storage means (24) independently of said central processing unit (22), and said bus (28) connecting the first buffer storage means (23) located within the central processing unit (22) and accessible from at least said bus (28) and the second buffer storage means (24), characterised in that said output control means (12) comprises a tri-state buffer (15) for outputting an address or holding the output to said bus (28) in a high impedance state, and in that said memory accessing device further comprises control means (13) including means (13") for outputting an address strobe signal (AS#) for indicating the validity of the address output by the tri-state buffer (15) and a state machine (13') for controlling the state of the tri-state buffer (15), such that when said second buffer storage means (24) issues a signal (MREQ#) as a request for an access to said first buffer storage means (23) to invalidate a cache memory entry to maintain consistency between the main storage means (25), said first buffer storage means (23) and said second buffer storage means (24), the invalidation request signal (MREQ#) is received by the memory accessing device causing the output to said bus (28) to enter an idle state, said idle state being a high impedance state at the output to said bus, and after the invalidation request signal (MREQ#) is negated the state machine returns to a state (T1,T2,T3,T4,T5) in which the output control means (12) can output an address to said bus. A system according to Claim 1, wherein said output control means (12) comprises: a latch (14) for temporarily storing addresses outputted from said address generating means (11), said tri-state buffer (15) for outputting the output from said latch to said bus or holding the output from said latch in the high impedance state, and a buffer control means (12)' for outputting through said tri-state buffer during normal access an address temporarily stored in said latch, and holding said address temporarily Stored in said latch in the hiqh impedance state during said idle state. A system according to any one of the preceding claims wherein said control means (13) is adapted to issue to said central processing unit (22) a bus use right request signal to obtain use of the bus (28), and to start using the bus according to a bus use right response signal issued by said central processing unit for permitting a bus use right. A system according to any one of the preceding claims wherein said address generating means (11) is provided in an arithmetic operation unit (27) for performing an arithmetic operation independently of said central processing unit (22) and is adapted to generate an address for at least one of an address of read data required for performing an arithmetic operation and an address at which the operation result is stored. A system according to Claim 4, wherein said arithmetic operation unit (27) is a vector processor unit. A system according to Claim 5, wherein said vector processor unit is operable to perform an arithmetic operation in a pipeline process.

Inventors: IINO HIDEYUKI, TAKAHASHI HIROMASA, IINO, HIDEYUKI, TAKAHASHI, HIROMASA, IINO, Hideyuki, c/o Fujitsu Limited, TAKAHASHI, HIROMASA, C/O FUJITSU LIMITED
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1992
Main classification: G06F12
IPC codes: G06F12, G06F13