Arithmetic processing apparatus using either simple or complex instruction decoder
An arithmetic processing apparatus includes two instruction decoders. A first decoder processes instructions in a single cycle, while a second decoder processes instructions in a plurality of cycles. The apparatus further includes a determination circuit that causes the first decoder to process an instruction to be processed when the instruction to be processed is a specific instruction and there is no previous instruction being processed, and causes the second decoder to process the instruction to be processed when the instruction to be processed is not the specific instruction or there is a previous instruction being processed.
1. An arithmetic processing apparatus comprising:
a first decoder that processes instructions in a single cycle;
a second decoder that processes instructions in a plurality of cycles; and
a determination circuit that causes the first decoder to process an instruction to be processed in a case where the instruction to be processed is a specific instruction and there is no previous instruction being processed in the second decoder, and causes the second decoder to process the instruction to be processed in a case where the instruction to be processed is not the specific instruction and in a case where the instruction to be processed is the specific instruction and there is a previous instruction being processed in the second decoder.
2. The arithmetic processing apparatus according to claim 1 , wherein the determination circuit determines the specific instruction based on an inputted instruction opcode.