1. Field of the Invention
The present invention relates to an asynchronous divider circuit, and more particularly, to an addressing type of asynchronous divider.
2. Description of Related Art
A central processing unit (CPU) comprises the following components: a control unit, arithmetic and logic units (ALU), and registers; the control unit coordinates and directs the transfers and operations of data between the various units of CPU, which helps the CPU to carry out instructions; the ALUs comprises arithmetic and logic units, which can respectively execute arithmetic operations (such as addition, subtraction, multiplication, division) and logic operations (such as AND, OR, NOT), and the calculated results are outputted to the registers. The ALUs comprise dividers, and when the CPU received instructions, it sifts out division instructions and division parameters for the divider to perform operations; then, the results from the divider are outputted. Because the address of the divider is set by the CPU, the resource of the CPU is wasted and its efficiency is affected.
The main purpose of the present invention is to provide an addressing type of asynchronous divider, which takes advantages of addressing to control inputs and outputs of data. As a result, the space of the memory can be used effectively, and the cost for extra memories can be saved.
The other purpose of the present invention is to provide an addressing type of asynchronous divider, which takes advantages of addressing to control inputs and outputs of the data in order to enhance the integration of the circuit.
The present invention provides an addressing type of asynchronous divider that designates one hard drive address to execute operations, receiving a divisor and a dividend of the addressing inputs from an external circuit and outputting a quotient and a remainder to the external circuit. The addressing type of asynchronous divider of the present invention comprises as follows: a bus; a data acquisition controller, which connects to the bus in order to get the data and the address inputted through the bus; a plurality of pin that control the input/output status of the addressing type of asynchronous divider; an addressing type of input registers, which stores and outputs the divisor and the dividend inputted from the external circuit; a subtractor, which receives the divisor and the dividend inputted from the addressing type of input registers, in order to process the operations; a shift circuit, which shifts the changed unit of the dividend after the division process and then the shifted dividend is calculated again; and an addressing type of output registers, which receives the inputted quotient and remainder from such registers and then outputs to the external circuit using addressing system. The aforesaid shift circuit comprises: a register that saves the calculating results of the subtractor before outputting; and a counter that according to the unit operation of divider, every time the divider executes an operation, the counter will decrease by one. When the counter reaches a threshold limit value, the register will output the quotient and the remainder from the operation of the divider.
The aforesaid plurality of pin includes ALE pin, NWR pin, and NRD pin, which collocates with the data transferred from the bus to control the inputs and outputs of data.
In the present invention, the data inputting/outputting through the bus 11 is in the form of a package which has an address and data, wherein the address of the aforesaid package is comparing to ALE pin 101, NRD pin 102, or NWR pin 103; for example, if the address of the package matches with the address of a pin, the data of the aforesaid package can be inputted or outputted.
The hard drive address of the addressing type of asynchronous divider 10 can be set by the user, and such self-set address is stored in the register (not shown). When the external circuit 90 output an address signal, if the hard drive address of this address signal matches the hard drive address of the addressing type of asynchronous divider 10, the addressing type of asynchronous divider 10 becomes active and begins to receive the data from the bus 11. The addressing type of asynchronous divider 10 has a 16-bit division capability, and the bandwidth of the bus 11 is 8-bit; thus, two 8-bit of data are needed to proceed to the operation. Through the bus 11, the addressing type of asynchronous divider 10 receives the divisor and the dividend from the external circuit 90, and output the calculated quotient and remainder to the external circuit 90.
As shown in
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Number | Date | Country | Kind |
---|---|---|---|
093117166 | Jun 2004 | TW | national |