摘要 |
PROBLEM TO BE SOLVED: To reduce steps of a program. SOLUTION: Bit length of an operand with longer bit length among a first operand or a second operand is loaded on a repeat counter 52, the bit length of an operand with shorter bit length is loaded on a bit counter 53 and the operands are decreased as well as a repeat processing by a sequencer 50. Repetition frequency of the repeat processing is set as the counted number of the repeat counter plus one. After a value of the bit counter 53 becomes zero, when the operand with shorter bit length is a complement of two, its MSB is supplied to a full adder and when the operand is a straight binary number, a value zero is supplied to the full adder. In addition, in the last clock of the repeat processing by the sequencer 50, the operand with longer bit length is the complement of two, its MSB is supplied to the full adder and when the operand is the straight binary number, the value zero is supplied to the full adder. |