Background of the Invention
1. Field of the Invention
This invention relates to an addressing system which is suitable for use in a computer system in which a plurality of processing units are capable of sharing a plurality of memories via independent address buses.
2. Description of the Prior Art
With considerable progress in large scale integrated circuit technology in recent years, high performance processing units are now available at relatively low costs. Thus, it is possible to carry into practice a system that employs a plurality of processing units in one piece of equipment to provide for enhanced performance in its entirety. In such a system, the effective utilization of memories and the universality of the system are desired; to meet the requirements, there has heretofore been proposed a computer system such, for example, as shown in FIG. 1.
In FIG. 1, a computer system, which is provided with a plurality of microprocessing units CPU1 to CPU3, is arranged so that memories MEM1 to MEM4 can be connected to a desired one of address buses BUS1 to BUS3 of the microprocessing units CPU1 to CPU3 through multiplexers MUX1 to MUX4, respectively. By switching the multiplexers MUX1 to MUX4, each microprocessing unit is permitted to use a desired one of the memories MEM1 to MEM4. Assuming that each of the memories MEM1 to MEM4 has, for example, 16K words capacity, the overall memory address space is such as shown in FIG. 2 which has a memory capacity of 64K words. In this case, setting the multiplexers, for example, MUX1 and MUX2 to connect the microprocessing unit CPU1 and the multiplexers MUX3 and MUX4 on the microprocessing units CPU2 and CPU3 respectively, the microprocessing unit CPU1 is able to use an address area 0000(H) to 7FFF(H), where H is the hexadecimal digit, of addresses assigned to the memories MEM1 to MEM4, whereas the microprocessing units CPU2 and CPU3 are able to use an address area 8000(H) to BFFF(H) and an address area C000(H) to FFFF(H), respectively. Since the setting of the multiplexers MUX1 to MUX4 can be freely altered in accordance with the memory capacity necessary for the microprocessing units CPU1 to CPU3, the universality of the system can be enhanced.
Incidentally, as will be appreciated from the memory map of FIG. 2, in the case of using the memories MEM1 to MEM4 separately by the microprocessing units CPU1 to CPU3, the leading addresses of the memories that are accessed by the microprocessing units except one (CPU1 in the illustrated example) do not naturally start with 0000(H), and the leading addresses also vary with modification of the memory allocation. Therefore, an address that is desired to be fixed for each microprocessing unit, such as, for example, a start address immediately after power source connection or a leading address of a stack for a subroutine, does not remain constant. Furthermore, it is impossible to adopt a direct addressing method which is effective for use in producing short word length instructions to reduce the execution time and the number of program steps used, for example, in an addressing method which is effective for an address in a limited range such as the data stored in the address area from the address 0000(H) to the address 00FF(H). Accordingly, each time the memory allocation to the microprocessing units CPU1 to CPU3 is modified, hardware and software must also be modified. This makes the modification of the memory allocation essentially difficult, and since the above-mentioned addressing method cannot be employed, the number of program steps inevitably increases.
Summary of the Invention
It is an object of this invention to provide an addressing system, for use with computer systems, which ensures that the leading addresses of memories to be accessed by microprocessing units are always 0000(H).
Another object of this invention is to provide an addressing system, for use with computer systems, which permits easy modification of memory allocation and system modification.
Yet another object of this invention is to provide an addressing system, for use with computer systems, which reduces the number of program steps of each microprocessing unit to enhance its throughput.
In short, the present invention is directed to a computer system having a plurality of memories which are given a series of addresses. The memories are connectable to an address bus which is connected to any of a plurality of processing units. The memory capacity usable by each processing unit can be varied by changing the connections of the memories and the processing units and an address modification register and an adder are connected to each processing unit. The adder adds the content of an address from the processing unit and the content of the address modification register and provides the added output on the address bus. The content of the address modification register is rewritten in accordance with a modification of memory allocation; specifically, the content of the address modification register is set to an address number of the leading address of the memory assigned to the processing unit.
Other objects, features and advantages of this invention will become more apparent from the following description taken in conjunction with the accompanying drawings.
Brief Description of the Drawings
FIG. 1 is a block diagram showing a prior art computer system;
FIG. 2 is a diagram showing a memory address space; and
FIG. 3 is a block diagram illustrating the principal part of an example of a computer system embodying the present invention.
Description of the Preferred Embodiment
With reference to FIG. 3, an embodiment of this invention will hereinafter be described. In FIG. 3, parts corresponding to those in FIG. 1 are identified by the same reference characters. REG1 to REG3 indicate address modification registers, and AD1 to AD3 designate adders. In the present embodiment, the microprocessing units CPU1 to CPU3 are respectively connected to the address modification registers REG1 to REG3 and adders AD1 to AD3. The adders AD1 to AD3 respectively add the address outputs from the microprocessing units CPU1 to CPU3 and the contents of the address modification registers REG1 to REG3 and provide the added outputs to the address buses BUS1 to BUS3.
In the case of allocating the memory area from the address 0000(H) to 7FFF(H) to the microprocessing unit CPU1 and the address area from the address 8000(H) to BFFF(H) and C000(H) to FFFF(H) to the microprocessing units CPU2 and CPU3, respectively, as is the case with the prior art described previously with respect to FIG. 2, the contents of the address modification registers REG1 to REG3 are set to 0000(H), 8000H and C000(H), respectively. With this setting, the leading address of the memory to be accessed by each microprocessing unit can always be regarded as 0000(H) from the microprocessing unit. When the abovesaid memory allocation is altered by switching the multiplexers MUX1 to MUX4, the contents of the address modification registers REG1 to REG3 are each changed to the address number of the leading address of the memory newly assigned to the corresponding microprocessing unit; as a consequence, the leading address of the memory can be regarded as 0000(H) from the microprocessing unit. This enables fixing of an address such as, for example, the start address immediately following power source connection or the leading address of a stack for a subroutine. This also permits easy modification of the memory allocation or the system used, without involving hardware and software modifications. Furthermore, since the leading address of the memory to be accessed by each microprocessing unit always starts with 0000(H), for example, direct addressing can be adopted, thereby reducing the number of program steps and hence enabling a high-speed processing operation.
In the description above, the number of microprocessing units used is described to be three, but this is for convenience of explanation, and two or more microprocessing units can be employed as desired. Furthermore, the number of memories is also not limited specifically to four.
As has been described in the foregoing, according to the present invention, in a computer system having a plurality of processing units each having independent address buses and a plurality of memories connectable to any of the address buses and given a series of addresses, an address modification register and an adder are connected to each processing unit. The adder adds together the address output from the processing unit and the content of the address modification register and provides the added output on the address bus. By proper setting of the content of the address modification register, the leading address of the memory to be accessed by the processing unit is held at 0000(H) at all times, so that the memory allocation can be modified without involving hardware and software modifications, thereby permitting easy system modification. Furthermore, since direct addressing can be adopted, the number of program steps is reduced and the processing speed is increased.
It will be apparent that many modifications and variations may be effected without departing from the scope of the novel concepts of this invention.