The present invention relates to a multiprocessor.
Conventionally, there is a multiprocessor having a plurality of processors integrated into a single chip.
To integrate the plurality of processors up#1-up#4 into one chip, the multiprocessor needs to have logic circuits for each processor up#1-up#4 mounted on the chip. For this purpose, the use of a memory in common allows information sharing among each processor up#1-up#4, which also prevents an increased circuit scale. For example, as a multiprocessor configured of a shared memory, models such as UMA (Uniform Memory Architecture) and NUMA (Non-uniform Memory Architecture) are known.
In addition, as the conventional multiprocessor, there has been disclosed a memory control method in which a memory is used in time sharing by a plurality of processors that are operated by clocks each having a phase successively shifted by ¼ cycle (for example, refer to the following patent document 1)
Non-patent document 1: “Asymmetric multiprocessing technique” Toshio Uno, AI Publishing Inc., Aug. 13, 2001.
Patent document 1: The official gazette of the Japanese Unexamined Patent Publication No. Sho-56-099559.
However, even if the memory is used in common, an ideal performance cannot always be obtained in the multiprocessor because of an access restriction to the memory (refer to FIG. 26). In addition, if the number of processors is increased, a circuit scale becomes increased. Space saving is particularly required in information apparatus like mobile phones.
Further, the number of processors to be mounted is determined to satisfy maximum performance required in the design stage.
Accordingly, in consideration of the above problems, it is an object of the present invention to provide a multiprocessor achieving space saving.
It is another object of the present invention to provide a multiprocessor achieving power saving.
A multiprocessor of a single processor, including a pipeline processing unit which successively fetches an instruction sequence to be independently processed on each of the multiprocessor with a shifted phase in one cycle.
According to the present invention, a multiprocessor achieving space saving can be provided. Also, according to the present invention, a multiprocessor achieving power saving can be provided.
The best mode for implementing the present invention will be described hereinafter.
The multiprocessor 10 includes a fetch stage 100, a decode stage 200, a data read stage 300, a calculation stage 400, a data write stage 500, a first to fifth latch circuits 150, . . . , 550, and a register 600. The present multiprocessor 10 is configured of one processor.
The fetch stage 100 mainly reads out an instruction from the instruction RAM 700 based on a calculated instruction address, and also calculates the next instruction address. Further, the fetch stage 100 includes a program counter to calculate an address to jump to, when the instruction includes a “jump” instruction.
The decode stage 200 mainly outputs an address (MemAd) to read out a data from the data memory 800, as well as data register numbers (Rs0#, Rs1#) to read out data from the register 600, through calculation or the like.
The data read stage 300 mainly reads out a data (Data, Rs1) from the data memory 800 or the register 600, based on the address or the data register number from the decode stage 200.
The calculation stage 400 mainly calculates the instruction, based on a data (Rb) from the data read stage 300 or a data (Ra) from the register 600.
The data write stage 500 mainly stores a calculation result (S), calculated by the calculation stage 400, into the data memory 800 or the register 600.
A cascade connection is formed from the fetch stage 100 to the data write stage 500, and instructions are successively executed through pipeline processing (processing a plurality of instructions with shifted timing in a simultaneous, parallel manner). The detail of each stage 100, . . . , 500 will be described later.
Each of the first to fifth latch circuits 150, . . . , 550 is provided in the preceding step of each stage 100, . . . , 500, and latches the instructions, the addresses, etc. that are output from the instruction RAM 700 and each stage 100, . . . , 400. The first to the fifth latch circuits 150, . . . , 550 are provided for outputting instructions etc. to each stage 100, . . . , 500 in synchronization.
The register 600 is a memory for storing data corresponding to variables included in the instructions. Also, the instruction RAM 700 is a memory for storing the instructions. The data memory 800 is a memory for storing data to be processed.
The clock control unit 900 supplies clocks CK0-CK9 to the stages 100, . . . , 500 and the first to the fifth latch circuits 150, . . . , 550. The clocks CK0-CK4 are supplied to the first to the fifth latch circuits 150, . . . , 550, respectively, while the clocks CK5-CK9 are supplied to the stages 100, . . . , 500, respectively. The first to the fifth latch circuits 150, . . . , 550 are operated in synchronization with the clocks CK0-CK4, respectively, and the stages 100, . . . , 500 are operated in synchronization with the clocks CK5-CK9, respectively.
Additionally, to the clock control unit 900, clocks LK5-LK9 are input from the respective stages 100, . . . , 500. The clocks LK5-LK9 are clocks for use in the respective stages 100, . . . , 500, so as to be used in the clock control unit 900 to confirm the clocks by which the respective stages 100, . . . , 500 are operated.
Next, each detailed configuration of the multiprocessor system 1 will be described. First, description is given on the configuration of the clock control unit 900 (
The PLL circuit 901 generates a clock (×8_CLK) having ⅛ cycle (8-times speed) relative to a reference clock (Ref_CLK), so as to output to the first to the fifth clock inverters 920-960 and to the stages 100, . . . , 500 through amplifiers (CK5-CK9). To each stage 100, . . . , 500, the 8-times speed clock (×8_CLK) is supplied as each clock CK5-CK9.
Each of the first to the fifth clock inverters 920-960 receives the 8-times speed clock (×8_CLK) and a mode Md as inputs, and according to the internal state thereof, generates and outputs each clock CK0-CK4. The detail of the clock inverters 920-960 will be described later.
Additionally, each clock inverter 920-960 is configured of a flip-flop etc., and acts as state machine of which internal states are successively shifted. The purpose is to output a well-shaped rectangular clock.
Here, description will be given on the mode Md. In the present embodiment, each stage 100, . . . , 500 of the multiprocessor 10 is operated in 4-processor mode, 2-processor mode, or 1-processor mode. Each stage 100, . . . , 500 includes a pipeline constituted of four steps. By the operation of a certain step according to the mode Md, the multiprocessor 10 is operated in the 4-processor mode, the 2-processor mode, or the 1-processor mode. The mode Md indicates whether the multiprocessor 10 is to be operated in the 4-processor mode, the 2-processor mode, or the 1-processor mode.
Additionally, the mode Md is input to the first latch circuit 150 and the first clock inverter 920 of the clock control unit 900. The mode Md being input to the first latch circuit 150 is output to the fetch stage 100, and is successively output to the second latch circuit 250, the decode stage 200, etc. Also, the mode Md being input to the first clock inverter 920 is successively output to each clock inverter 930-960.
Next, description will be given on each configuration from the fetch stage 100 to the data write stage 500. As configuration examples, respective diagrams are illustrated in regard to the fetch stage 100 in
As illustrated in
The fetch stage 100 performs 4-step pipeline processing by means of the three steps of the latch circuit groups 120-122. Further, the latch circuit groups in the respective steps 120-122 are operated on the basis of clocks CKa-Ckc and enables ENa-ENc fed from the first pipeline control unit 110.
For example, when the entire clocks CKa-CKc and the entire enables ENa-ENc are “high”, the entire latch circuit groups in the first to the third steps 120-122 are operated. At this time, the fetch stage 100 is operated in the 4-processor mode, so as to latch and output instructions, addresses, etc. received from upstream.
Also, when the clock CKb and the enable ENb are “high” while the others are “low”, only the latch circuit group in the second step 121 is operated, and the fetch stage 100 is operated in the 2-processor mode. In this case, the latch circuit group in the second step 121 latches instructions etc. from upstream, while the other latch circuit groups 120, 122 output the instructions etc. from upstream to downstream intact.
Further, when the entire clocks CKa-CKc and the entire enables ENa-ENc are “low”, the fetch stage 100 is operated in the 1-processor mode, and the latch circuit groups in the first to the third steps 120-122 output the instructions etc. from upstream intact, without latching.
The first pipeline control unit 110 inputs the mode Md from the first latch circuit 150 and the clock CK5 from the clock control unit 900. According to the internal state, the first pipeline control unit 110 determines which clock CKa-CKc and which enable ENa-ENc are to be set to “high” or “low”, and then outputs the determined clocks CKa-CKc and the enables ENa-ENc. The first pipeline control unit 110 acts as state machine internally including a flip-flop etc, aiming to output each clock CKa-CKc and each enable ENa-ENc in well-shaped rectangular waveforms. A detailed description will be given later.
The fetch stage 100 also includes a portion (in the right side of
In the portion that functions as the program counter, each adder Add 130-133 adds respective 8 bits out of a 32-bit address, for example. When the fetch stage 100 is operated in the 4-processor mode, each latch circuit group in each step 120-122 successively latches respective 8 bits out of 32 bits. Also, each adder 130-133 successively adds respective 8 bits latched or the like. Also, when the fetch stage 100 is operated in the 2-processor mode, the latch circuit group in the second step 121 successively latches 16 bits out of the 32-bit address, and each adder 130-133 successively adds 16-bit addresses having been latched or the like.
The register 140 stores the instruction address. Based on the instruction address stored in the register 140, the fetch stage 100 reads out the instruction from the instruction RAM 700. In addition, the register 140 includes four internal registers to retain the outputs from the adder 133 and the latch circuit group 122-6 to 122-8, and outputs the instruction address from the internal register that is selected on the basis of the output from the latch circuit 122-9.
Also, the fetch stage 100 converts the instruction read out from the instruction RAM 700 into an instruction code Code, and outputs the converted instruction. Further, when a variable is included in the instruction, the fetch stage 100 generates and outputs a register number (Ridx#) (which is generally referred to as an index register number) so as to store the variable into the register 600.
Next, description will be given on the decode stage 200. As illustrated in
The decode stage 200 also performs 4-step pipeline processing by means of the latch circuit groups in the first to the third steps 220-222. In regard to the latch circuit groups in the first to the third steps 220-222, on the basis of the clocks CKa-CKc and the enables ENa-ENc that are output from the second pipeline control unit 210, only the latch circuit group in the second step 221 is operated (2-processor mode), or the latch circuit groups in the entire steps 220-222 are operated (4-processor mode), or the latch circuit groups in the entire steps 220-222 pass through the instruction codes etc.
The second pipeline control unit 210 inputs the mode Md and the clock CK6 from the clock control unit 900, according to the internal state, determines each clock CKa-CKc and each enable ENa-ENc to be set either “high” or “low”, and outputs the clock etc. The second pipeline control unit 210 also acts as state machine in the same way as the first pipeline control unit 110. A detailed description will be given later.
The decode stage 200 reads out from the register 600 a numeric value Ridx_i that is stored in the index register number Ridx#, calculates a memory address MemAd and an immediate value Imm by use of the above numeric value Ridx_i etc., and calculates (updates) the readout numeric value Ridx_i also, so as to output the above values.
For example, with regard to the 32-bit numeric value (Ridx_i) etc., the decode stage 200 obtains the immediate value 1 mm or the memory address MemAd by adding respective 8 bits in each adder 230-233, and obtains an update value Ridx_o by adding respective 8 bits in each adder 240-243.
Also, the decode stage 200 outputs the input instruction code Code and the mode Md, and generates and outputs the register numbers Rs0#, Rs1#.
Next, description will be given on the data read stage 300. As illustrated in
The data read stage 300 also performs 4-step pipeline processing by means of the latch circuit groups in the first to the third steps 320-322. The latch circuit groups in the respective steps 320-322 are operated on the basis of the clocks CKa-CKc and the enables ENa-ENc that are output from the third pipeline control unit 310. The data read stage 300 is operated in 4-processor mode, 2-processor mode, or 1-processor mode.
The third pipeline control unit 310 inputs the mode Md and the clock CK7 from the clock control unit 900, and according to the internal state, determines each clock CKa-CKc and each enable ENa-ENc to be set either “high” or “low”, so as to output the clock etc. The third pipeline control unit 310 also acts as state machine. A detailed description will be given later.
The data read stage 300 outputs the memory address MemAd received from the decode stage 200 to the data memory 800, as a readout address Addr, so as to read out the data Data. Further, the data read stage 300 outputs to the register 600 the register numbers Rs0#, Rs1# input from the decode stage 200, and reads out from the register 600 the data stored in the number concerned (in accuracy, the data Rs1 corresponding to the register number Rs1#).
Then, the multiplexers 330, 331 multiplex and output the data (Data) from the data memory 800 with the data (Rs1) from the register 600, etc. The output value (Rb) becomes one value of binomial calculation. The data read stage 300 perform above-mentioned calculation etc., while the latch circuit groups 320-322 latch the memory address MemAd etc. according to the clocks CKa-CKc and the enables ENa-ENc.
Further, the data read stage 300 outputs an output enable (OE) relative to the data memory 800. By the output of the data (Data) from the data memory 800 only in a section in which OE is effective, the data can be read out stably when the data memory 800 is an asynchronous SRAM.
Next, description will be given on the calculation stage 400. As illustrated in
The calculation stage 400 also performs 4-step pipeline processing by means of the 3-step latch circuit groups 420-422. Based on the clocks CKa-CKc and the enables ENa-ENc fed from the fourth pipeline control unit 410, the calculation stage 400 is operated in 4-processor mode, 2-processor mode, or 1-processor mode.
The fourth pipeline control unit 410 inputs the mode Md and the clock CK8, and according to the internal state, determines each clock CKa-CKc and each enable ENa-ENc to be set either “high” or “low”, so as to output accordingly. The fourth pipeline control unit 410 also acts as state machine. The detailed description thereof will be given later.
In the calculation stage 400, the arithmetic and logic units 430-433 perform calculation between one data (Rb) for binomial calculation from the data read stage 300 and another data (Ra: a data corresponding to the register number Rs0#). For example, when each data consists of 32 bits, each arithmetic and logic unit 430-433 in the calculation stage 400 calculates on each 8-bit basis. The calculation stage 400 outputs a calculation result (S) to the data write stage 500. The calculation stage 400 outputs the calculation result (S), while each latch circuit group 420-422 in each step latches the 8 bits obtained by the calculation etc., according to the clocks CKa-CKc and the enables ENa-ENc.
Further, the calculation stage 400 also outputs flags (Flags) indicating whether the calculation result (S) is stored into either the data memory 800 or the register 600.
Next, description will be given on the data write stage 500. As illustrated in
The data write stage 500 also performs 4-step pipeline processing by means of the latch circuit groups in the first to the third steps 520-522, and is operated in 4-processor mode, 2-processor mode, or 1-processor mode, by the operation of the latch circuit groups in the respective steps 520-522, based on the clocks CKa-CKc and the enables ENa-ENc from the fifth pipeline control unit 510.
The fifth pipeline control unit 510 inputs the mode Md and the clock CK9, and outputs the clocks CKa-CKc and the enables ENa-ENc according to the internal state. The fifth pipeline control unit 510 also acts as state machine. The detailed description thereof will be given later.
When the data write stage 500 stores the calculation result (S) into the data memory 800, the data write stage 500 outputs the calculation result (S) to the data memory 800 as the data (Data), and also outputs an address (Addr) and a write enable (WE). Also, when storing the calculation result (S) into the register 600, the data write stage 500 outputs the calculation result (S) to the register 600 as a data (Rd), and also outputs a register number (Rd#) and a write enable (RdWE).
Further, when the instruction code (Code) includes the “jump” instruction, the data write stage 500 outputs a “jump mode” indicating the “jump” instruction, and an address (jump address) that is the calculation result (S), to the fetch stage 100. The program counter (configuration portion on the right side of
Next, the operation of the present multiprocessor system 1 will be described. For the sake of easy understanding, first, description is given on overall operation (
The overall operation is described.
First, the operation in case of processor mode changes in order of 1→2→1 is described. In
As illustrated in
Namely, in the first cycle, the fetch stage 100 processes the (#n+1)-th instruction in the preceding step of the second latch circuit group 121. In the second cycle, the fetch stage 100 latches and reads out the (#n+1)-th instruction by the second latch circuit group 121, and also processes the (#m)-th instruction in the preceding step of the second latch circuit group 121.
Then, in the third cycle, the decode stage (D) 200 is shifted to the 2-processor mode and processes the (#n+1)-th instruction, and further, in the fourth cycle, processes the (#n+1)-th instruction and the (#m)-th instruction. Thereafter, in other stages 300-500, similar processing is performed. As illustrated in
Each stage 100, . . . , 500 is operated as 2-processor mode by operating the latch circuit groups 121, . . . , 151 in the second step based on the clock CKb and the enable ENb.
For example, in the fetch stage (F) 100, in the first cycle after being shifted to the 2-processor mode (Md=2), the enable ENb becomes “high”, and in the second cycle, the clock CKb also becomes “high”. At a rise edge of the clock CKb becoming “high”, the second latch circuit group 121 latches an instruction code and an address included in the (#n+1)-th instruction, and outputs the latched instruction code etc, while the clock CKb is kept “high”. When the clock CKb falls “low”, the second latch circuit group 121 does not work in particular, and instead, processing is made in the adders 130-133 etc. After the shift to the 2-processor mode, the fetch stage 100 repeats the similar processing.
Also, in the third cycle, the decode stage (D) 200 performs the similar processing to the processing performed by the fetch stage (F) 100 in the first cycle, and successively repeats the above processing. From the decode stage (D) 200 to the data write stage (W) 500, each instruction is processed successively in pipeline.
The first to the fifth pipeline control units 110, . . . , 510 in the respective stages 100, . . . 500 output the clocks CKa-CKc and the enables ENa-ENc in each stage 100, . . . , 500. The first to the fifth pipeline control units 110, . . . , 510 determine each of the clocks CKa-CKc and the enables ENa-ENc to be set either “high” or “low”, based on the mode Md and the present internal state, and then are shifted to the next state.
For example, when the first pipeline control unit (μ pipeline control unit_F) 100 has a present state ST of “0” and the mode Md of “2”, the first pipeline control unit 100 sets the entire clocks CKa-CKc and the entire enables ENa-ENc “low”, and also sets the next state to be “1”. Then, when the state ST is shifted to “1” in the next cycle (cycle of 8-times speed clock CK5), the first pipeline control unit 110 outputs a clock etc. with the enable ENb set “high”, based on the present state ST “1” and the mode Md “2”. Then, the first pipeline control unit 110 again sets the next state to “1”. Thereafter, the first pipeline control unit 110 repeats the same processing, and outputs the clocks CKa-CKc and the enables ENa-ENc. The second to the fifth pipeline control units 210, . . . , 510 also perform the similar processing. The configurations and the operation of the first to the fifth pipeline control units 110, . . . , 510 will be described later.
Next, description will be given on the configurations and the operation (
The clock inverter 920 includes a next state decision unit 921, a state memory unit 922, and a control signal output unit 923. The next state decision unit 921 is a combinational logic circuit, and the state memory unit 922 and the control signal output unit 923 are flip-flops.
The next state decision unit 921 inputs the mode Md, clock LK, and state ST, and outputs a next state S, a logic signal D, and a mode SMdr. The state memory unit 922 stores the next state S, and after one cycle of the supplied clock CK (8-times speed clock (×8_CLK)), outputs the stored next state S as a present state ST to the next state decision unit 921. The control signal output unit 923 inputs the mode SMdr and the logic signal D, and after one cycle of the clock CK, outputs a clock Q and a mode Mdr.
Here, the clock Q is the clock CK0, while the clock Q is each clock CK1-CK4 when the clock inverter 920 is replaced by one of the second to the fifth clock inverters 930-960.
Further, the mode Mdr is input to the clock inverter 930 in the next step, as mode Md. In regard to other clock inverters 940-960, the mode Mdr is input from the clock inverter 930-950 in each preceding step.
Further, the clock inverter 920 inputs the clock CK (8-times speed clock (×8_CLK)), and each unit 921-923 is operated in synchronization with the above clock CK.
As described earlier, the clock LK is a clock supplied from the first pipeline control unit 110, and indicates the present mode of the clock under which the first pipeline control unit 110 is being operated. The next state decision unit 921 uses the clock LK for the purpose of confirmation. To the other clock inverters 930-960 also, the clock LK is input from each pipeline control unit 210, . . . , 510.
The clock inverter 920 outputs the logic signal D and the mode SMdr from the next state decision unit 921, based on the input mode Md (or Mdr) and the present state ST (numeric in a circle).
For example, when the clock inverter 920 is reset (Reset), the clock inverter 920 outputs “0” as the output clock Q, also outputs “1” to the clock inverter 930 in the next step, as the mode SMdr, and then is shifted to the next state “0”. When the clock inverter 920 is shifted to the state “0”, the next state decision unit 921 outputs “1” as the logic signal D, and also outputs “0” as the mode SMdr. Then, when the clock inverter 920 is shifted to the state “1”, the next state decision unit 921 outputs the input mode Md as the mode SMdr, outputs the logic signal D according to the mode Mdr, and is then shifted to the next state “2”. Thereafter, the clock inverter 920 repeats the above process. Such state transition is predetermined, and is stored in the memory of the next state decision unit 921, for example.
Additionally, the clock inverter 930 in the next step performs the aforementioned processing based on the mode Mdr from the first clock inverter 920 and the present state ST. The same as the above is applied to the other clock inverters 940-960.
As such, the clock inverters 920-960 respectively supply the clocks CK0-CK4 to the first to the fifth latch circuits 150, . . . , 550 (refer to
Next, the configurations and operation of the pipeline control units 110, . . . , 510 will be described by reference to
The next state decision unit 111 input the mode Md and the present state ST stored in the state memory unit 112, and outputs the next state S and the signal D. The state memory unit 112 stores the next state S, and after one cycle of the clock CK (8-times speed clock (×8_CLK)), outputs the stored state ST to the next state decision unit 111. Further, the control signal output unit 113 inputs the signal D from the next state decision unit 11, and after one cycle of the clock CK, outputs the clocks CKa-CKc and the enables ENa-ENc according to the signal D.
For example, as illustrated in
Also, the next state decision unit 11 outputs the signal D corresponding to the determined next state S to the control signal output unit 113. Based on the state signal D, the control signal output unit 113 generates and outputs the clocks CKa-CKc and the enables ENa-ENc.
The above-mentioned example is merely one example. With the provision of the table illustrated in
As in the above-mentioned manner, each pipeline control unit 110, . . . , 510 outputs the clocks CKa-CKc and the enables ENa-ENc, and each stage 100, . . . , 500 operates the latch circuit groups 120, . . . in an arbitrary step among the first to the third steps. By this, the multiprocessor 10 is operated as the 4-processor mode, the 2-processor mode, or the 1-processor mode, so as to process instructions by four processors, two processors, or the like.
Finally, description will be given on the configurations and operation of the latch circuit groups 120, . . . in the first to the third steps in each stage 100, . . . , 500.
The latch circuit 120 includes an AND gate 125, a D flip-flop 126, and a multiplexer 127.
When both the clock CK (CKa in the case of the latch circuit groups in the first step 120, . . . , 520) and the enable
EN (ENa in the case of the latch circuit groups in the first step 120, . . . , 520) are “1”, the AND gate 125 outputs a logical sum “1” to the clock terminal CK of the D flip-flop 126. The D flip-flop 126 updates the internal state by the rise edge of the logical sum “1” that is input to the clock terminal CK, latches an instruction code etc. input to a terminal D, and during the above “1”, outputs the latched instruction code etc. through a terminal Q. When the enable EN is “1”, the multiplexer 127 selects and outputs the instruction code etc. output from the output terminal Q of the D flip-flop 126, while when the enable EN is “0”, the multiplexer 127 directly outputs the input instruction code etc.
As such, the latch circuit 120 uses the enable EN as a selection signal to select an input in the multiplexer 127. Thus, even if the enable EN is “0”, the latch circuit 120 can bypass and output the input instruction code etc.
Because the latch circuit 120 can be operated in the above-mentioned manner, for example, when the clock CKb and the enable ENb are “high” as illustrated in
As having been described above, in the present multiprocessor 10, each stage 100, . . . , 500 performs 4-stage pipeline processing by means of the latch circuit groups in the first to the third steps 120, . . . By operating each latch circuit group 120, . . . , the multiprocessor 10 can be operated in four processors, two processors or one processor. Thus, because the present multiprocessor 10 can be configured of one processor, space saving can be achieved as compared to the case of configuring a multiprocessor with four processors, for example. Also, because the present multiprocessor 10 may operate one processor, power saving can be achieved as compared to the case of a multiprocessor configured of four processors.
The example described above illustrates the case of the single processor to be operated as 4 processors, 2 processors or 1 processor. Further, in another way, by including only each second latch circuit group 121, . . . , 521, each stage 100, . . . , 500 can perform 2-step pipeline processing, and can be operated as 2 processors or 1 processor. Further, with the provision of the first to the seventh latch circuit groups, each stage 100, . . . , 500 can perform 8-step pipeline processing and can be operated as 8, 4, 2 processors or 1 processor. Further, with the provision of the first to the 31st latch circuit groups, each stage 100, . . . , 500 can perform 32-step pipeline processing, and can be operated as 32, 16, 8 processors, or the like.
The achievable number of steps depends on the number of instruction bits etc. processable by the multiprocessor. More specifically, in the above-mentioned examples, it has been described that the number of bits processable by the multiprocessor 10 is 32 bits. By achieving 4-step pipeline processing, it is possible to process on an 8-bit basis. Also, it is possible to process on a 4-bit basis by means of 8-step pipeline processing, or on a 2-bit basis by means of 16-step pipeline processing, or even on a 1-bit basis by means of 32-step pipeline processing.
In summary, when the number of bits processable in the present multiprocessor 10 is 2n (where n is a natural number of 1 or more), each stage 100, . . . , 500 can perform pipeline processing having 2k steps, by means of the latch circuit groups of the first to the (2k−1)-th steps (where 1≦k≦n), making it possible to operate in such a manner as to have the respective numbers of processors of 1 (=20) processor, 2 (=21) processors, . . . , 2k processors. The above-mentioned example is a case of n=4 (32 bits) and k=2 (4-step pipeline).
Here, as illustrated in
In the aforementioned example, the explanation has been given on the case of the multiprocessor 10 having each stage 100, . . . , 500 in one processor. However, it is also possible to implement a multiprocessor 10 having a plurality of such the processors.
Further, in the aforementioned example, the description is given on the case that the data memory 800, the instruction RAM 700 and the clock control unit 900 are provided outside the processor 10. However, it may also be possible to provide, for example, any or the whole of the data memory, the instruction RAM 700 and the clock control unit 900 within the multiprocessor 10.
Further, in the aforementioned example, the description is given on the multiprocessor 10 having 5 stages. However, it may also be possible to configure the multiprocessor 10 having 3 stages (for example, the decode stage 200 and the data read stage 300 form one stage, and the calculation stage 400 and the data write stage 500 form one stage) or 4 stages (for example, the calculation stage 400 and the data write stage 500 form one stage). With arbitrary combinations of each stage 100, . . . , 500, the multiprocessor 10 having 2 to 4 stages may be configured.
This application is a continuation of International Application No. PCT/JP2008/000715, filed on Mar. 25, 2008, now pending, herein incorporated by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2008/000715 | Mar 2008 | US |
Child | 12889690 | US |