Nova Patents
EP0902358A2

Division circuit and method

Abstract

A microcomputer MCU adopting the general purpose register method is enabled to have a small program capacity or a high program memory using efficiency and low system cost, while enjoying the advantage of simplification of the instruction decoding as in the RISC machine having a fixed length instruction format of the prior art, by adopting an instruction format of a fixed length of 2n bits which is smaller than the length of the maximum data word fed to instruction execution means. The control of the coded division is executed by noting the code bits.

EP0902358A2, drawing sheet 1
Sheet 1 of 300

Term

Term ended

Projected expiry passed 22 June 2012, 14.3 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

9 claims: 5 independent, 4 dependent

  1. 1
    A division circuit for executing a coded division on the basis of repetitive of division processing, in which a new partial remainder is achieved by subtracting or adding a divisor from/to a dividend or a partial remainder in accordance with the code of the dividend or the partial remainder and the code of the divisor to achieve a new partial remainder and in which a quotient bit is achieved on the basis of the code of the achieved partial remainder and the code of the divisor, comprising:pre-processing means for achieving the code of the quotient from the code of the dividend and the code of the divisor prior to said division processing and for subtracting a value 1 having the weight of the LSB of the dividend from said dividend, if said dividend is negative, to correct said dividend thereby to provide a corrected dividend for a target of said division processing;and post-processing means for correcting the quotient, which has been achieved by the repetition of said division processing, on the basis of the code of the quotient.
  2. 3
    A division circuit comprising:means for achieving the code of a quotient from the codes of a dividend and a divisor, which are individually expressed by complements of 2;a dividend register for latching the value which is achieved by subtracting the most significant bit or the code bit of the dividend from said dividend;first operation means for achieving a partial remainder by subtracting or adding the divisor from/to the value of said dividend register in accordance with the code of the dividend and the code of the divisor and for achieving a new partial remainder by subtracting or adding the divisor from/to the partial remainder in accordance with the code of said partial remainder and the code of the divisor;second operation means for achieving the quotient bit sequentially on the basis of the code of the partial remainder, which is achieved by the first operation means, and the code of the divisor;and quotient correction means for adding the code bit of the quotient, which is achieved by said second operation means, to said quotient.
  3. 5
    A division circuit comprising:a dividend register;a divisor register;first control bit storage means;second control bit storage means;means for storing the code of a complement of 2, which is stored in said dividend register, in said first control bit storage means;means for storing the code of a complement of 2, which is stored in said divisor register, in said second control bit storage means;means for setting the number, which deems the content of said first control bit storage means as the code bit of said dividend register, to a first dividend, and for setting the result, which is obtained by subtracting the value 1 having the weight of the LSB of the first dividend from said first dividend, to a second dividend, if said first dividend is negative, and said first dividend to the second dividend if said first dividend is 0 or positive;means for setting the code of said second dividend to the code of said first control bit storage means to store said second dividend in said dividend register;means for setting the number, which deems the content of said first control bit storage means as the code bit of said dividend register, to the dividend or partial remainder, and for setting the number, which deems the content of said second control bit storage means, to the divisor, to subtract the divisor from the dividend or the partial remainder, if the codes of said first and second control bit storage means are identical, and to add the divisor to the dividend or the partial remainder if the codes of said first and second control bit storage means are different;means for achieving the code of the result of said addition/subtraction;and means for determining the quotient bit by deciding that the absolute value of the dividend or partial remainder before said addition/subtraction is equal to or greater than the absolute value of the divisor, if the code of said first control bit storage means before said addition/subtraction is identical to the code of said addition/subtraction, and that the absolute value of the dividend or partial remainder before said addition/subtraction is smaller than the absolute value of the divisor, if the code of said first control bit storage means before said addition/subtraction is different from the code of said addition/subtraction.
  4. 6
    A division circuit comprising:a dividend register;a divisor register;first control bit storage means;second control bit storage means;means for storing the code of a complement of 2, which is stored in said dividend register, in said first control bit storage means;means for storing the code of a complement of 2, which is stored in said divisor register, in said second control bit storage means;means for setting the number, which deems the content of said first control bit storage means as the code bit of said dividend register, to a first dividend, and for setting the value, which is prepared by subtracting the code bit of said first dividend from the LSB of said first dividend, to a second dividend;means for storing said second dividend in said dividend register by setting the code of said second dividend to the code of said first control bit storage means;third control bit storage means for storing a positive code, if the codes of said first and second control bit storage means are identical, and a negative code if the codes of said first and second control bit storage means are different;means for issuing a subtraction command, if the codes of said first and second control bit storage means are identical, and an addition command if the codes of said first and said control bit storage means are different;means for setting the number, which is prepared by shifting the number deeming the content of said first control bit storage means as the code bit of said dividend register to the more significant side by 1 bit, to a dividend or partial remainder and for setting the number, which deems the content of said second control bit storage means as the code bit of said divisor register, to a divisor to add or subtract the divisor to/from the dividend or partial remainder on the basis of said subtraction command or said addition command;means for storing the code of the result of said addition/subtraction in said first control bit storage means;means for storing the result of said addition/subtraction in said dividend register;means for setting the negation of an exclusive OR between the code bits of said first and second control bit storage means to the quotient bit;quotient storage means for shifting in the quotient bit;and quotient correction means for transforming the quotient expressed in a complement of 1 into a complement of 2 after the quotient bit of a predetermined bit number has been determined, if the code of said third control bit storage means is negative.
  5. 8
    A division method for executing a coded division on the basis of repetition of division processings, in which a new partial remainder is achieved by subtracting or adding a divisor from/to a dividend or a partial remainder in accordance with the code of the dividend or the partial remainder and the code of the divisor to achieve a new partial remainder and in which a quotient bit is achieved on the basis of the code of the achieved partial remainder and the code of the divisor, comprising:a pre-processing step of achieving the code of the quotient from the code of the dividend and the code of the divisor prior to said division processing and of subtracting a value 1 having the weight of the LSB of the dividend from said dividend, if said dividend is negative, to correct said dividend thereby to provide a corrected dividend for a target of said division processing;and a post-processing step of correcting the quotient, which has been achieved by the repetition of said division processing, on the basis of the code of the quotient.