Patent ID: 6427205
Filing Date: 2002-07-30
Classification: G06F

Abstract:
A digital signal processor for executing pipeline processing divided into at least three steps that are an instruction fetch cycle, an instruction decode cycle and an instruction execution cycle, comprising:an instruction memory storing a program; an instruction register synchronous with a first clock signal to fetch an instruction of said program from said instruction memory in accordance with a program counter in said instruction fetch cycle; an instruction decoder synchronous with said first clock signal to decode the instruction fetched in said instruction register in said instruction decode cycle, said instruction decoder decoding the instruction under the assumption that a condition be consistent when the instruction is a condition execution instruction whose execution depends upon a result of execution of an instruction for generating the condition; and a conditional instruction execution circuit synchronous with said first clock signal to execute the instruction pursuant to a result of decoding and store a result of execution in said instruction execution cycle, wherein said conditional instruction execution circuit being configured to execute the condition execution instruction, and put the result of execution of the condition execution instruction on a data bus and take the result from the data bus to a destination register in the instruction execution cycle for said condition execution instruction when the condition is consistent as a result of execution of the instruction for generating the condition, said conditional instruction execution circuit being configured to execute said condition execution instruction and put the result of execution of the condition execution instruction on the data bus, but not to take the result from the data bus to the destination register in the instruction execution cycle for said condition execution instruction when the condition is inconsistent as a result of execution of the instruction for generating the condition, wherein said conditional instruction execution circuit includes: an instruction executing circuit for executing said condition execution instruction and storing a result of the execution; and a gating circuit for controlling the supply of a second clock signal to said instruction execution circuit, wherein said second clock signal is supplied from said gating circuit to said instruction execution circuit when said conditional instruction execution circuit stores the result of execution of said condition execution instruction in said instruction execution cycle, whereas said second clock signal is not supplied from said gating circuit to said instruction execution circuit when said conditional instruction execution circuit does not store the result of execution of said condition execution instruction in said instruction execution cycle, wherein said instruction execution circuit includes: an original register; and a switching circuit coupling said original register to said data bus to put the value of said destination register onto said data bus when a first enable signal is input from said instruction decoder, wherein the destination register takes the value on said data bus when said second clock signal is input from said gating circuit, wherein said instruction decoder supplies said first enable signal when the current instruction is said condition execution instruction, and said gating circuit is configured to supply said second clock signal to said destination register when the result of execution of the instruction for generating the condition is consistent with the condition and not to supply said second clock signal when the result of execution of the instruction for generating the condition is inconsistent with the condition, wherein said gating circuit includes a logic circuit supplied with a condition flag signal changing its flag depending upon the result of execution of the instruction for generating the condition, a second enable signal changing its state when said condition execution instruction is decoded, and said first clock signal, and said second clock signal is supplied from said logic circuit to said destination register only when said condition is consistent.