Adder logic circuit and processor

Electrical computers: arithmetic processing and calculating – Electrical digital calculating computer – Particular function performed

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C712S221000

Reexamination Certificate

active

06505225

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention is related to an adder logic circuit for performing an addition operation of numerical values having different bit widths. More specifically speaking, the present invention is related to an improved processor capable of quickly generating addresses necessary to access a memory.
2. Prior Art
Recently, there increasingly arises a great demand for high speed operation of a processor. which is a core element of computer systems, along with an increasing amount of data to be processed such as multimedia application.
A computer system can generally be divided into three basic blocks: a central processing unit (CPU), memory, and an input/output interface (I/O). These blocks are interconnected by one or more buses. Typically. an input device, such as a keyboard, mouse, disk drive, etc., is used to input data and/or computer programs to the computer system through the computer's I/O device.
The computer programs instruct the computer system as to how the data should be processed. These instructions and data are usually stored in memory. The CPU retrieves the data stored in the memory and processes the data according to the instructions. The results can be stored back into memory or outputted via the I/O interface to a printer, video monitor, speaker, etc.
When a computer program changes a value stored in memory, it is performing a “store” operation. And when the computer is retrieving an instruction or data from memory it is performing a “load” operation. Each of these load and store operations require an address that specifies a location in memory. In a store operation, the address specifies a location in memory that is available for storing the data. In a load operation, the address specifies the location in memory where the desired instruction or data resides.
Typically, in a modern computer system, there are several different varieties of addressing reflecting different levels of abstraction. For example, there are the logical, linear and physical addresses. The logical address is specified in the assembly language or machine code program, and consists of a selector and an offset. The offset is formed by adding together
3
components: base, scaled index and displacement. The logical address space is, therefore, segmented.
The logical address (consisted of segment, offset) is transformed to a flat linear address by adding a segment base corresponding to the segment selector to obtain a linear address.
As mentioned above, a logical address consists of segment: offset pair, and the offset is often itself calculated via a formula as follows.
1) base-register+index-register*scale
2) base-register+immediate.
Correspondingly, this implies that the linear address is
1) segment-base+base-register+index-register*scale
2) segment-base+base-register+immediate.
These formulae and the encodings used to represent them in the instruction stream are called “addressing modes.”
Generally speaking, there are a variety of combinations of the two operands as used the addressing modes. For example, the bit width of the first operand may be equal to, or larger or smaller than the bit width of the second operand in each addition operation. Also, the second operand may be either signed or unsigned.
Memory can be divided into one or more variable length segments, which can be swapped to disk or shared between programs. Memory can also be organized into one or more “pages”. Segmentation and paging are complementary. Segmentation is useful to application programmers for organizing memory in logical modules, whereas pages are useful to the system programmer for managing the physical memory of a system.
Typically, a segmentation unit is used to translate the logical address space into a 32-bit linear address space. A paging unit is then used to translate this linear address space into a physical address space. It is this physical address that appears on a microprocessor chip's address pins.
In the case of accessing an entry within a page, the address of the page is calculated followed by obtaining the physical address by adding the page offset to the address of the page. Also in this case, the bit width of the first operand may be equal to, or larger or smaller than the bit width of the second operand in each addition operation while the second operand may be either signed or unsigned.
In accordance with the prior art, the addition operation of a first numerical value and a second numerical value having a bit width narrower than that of the first numerical value is performed by an adder having the bit width equal to that of the first numerical value after sign-extension or zero-extension of the second numerical value.
For example, as illustrated in
FIG. 1
, when A[m−1:0] and B[n−1:01 ] (m>n) are added, B[n−1:01] is transferred to lower n bits of a latch circuit
101
which has a bit width of m bits followed by transferring the most significant bit B[n−1] to all the remaining higher bits of the latch circuit
101
. On the other hand, A[m−1:0] is transferred to a latch circuit
103
which has a bit width of m bits. These two m-bits values are added by means of the m-bit adder
105
in a usual way.
However, as explained above, the addition operation is frequently performed when accessing to a memory. For example, while call or jump procedures relative to next instruction appears in most loops, the extension process is also repeated in the loops resulting in significant influence upon the performance of the system.
SUMMARY OF THE INVENTION
The present invention has been made in order to solve the shortcomings as described above. It is an important object of the present invention to provide an adder logic circuit capable of performing an addition operation of a first numerical value and a second numerical value having a bit width narrower than that of the first numerical value at a high speed.
It is another object of the present invention to provide an improved processor capable of quickly generating addresses necessary to access a memory.
In brief, the above and other objects and advantages of the present invention are provided by a new and improved adder logic circuit for performing an addition operation of a first numerical value and a second numerical value having a bit width narrower than that of said first numerical value comprising:
an adder element for performing an addition operation of said second numerical value and a third numerical value composed of a lower bit sequence of said first numerical value, the bit width of said third numerical value being equal to the bit width of said second numerical value; and
a higher bit handling logic circuit connected to said adder element for receiving a carry out from the most significant bit of said adder element together with a fourth numerical value composed of a higher bit sequence composed of the remainder of said first numerical value, the most significant bit of said the second numerical value in order to output one of said fourth numerical value, said fourth numerical value as incremented and said fourth numerical value as decremented in accordance with the carry out from the most significant bit of said adder element and the most significant bit of said second numerical value.
Also, in accordance with a preferred embodiment of the present invention. said higher bit handling logic circuit is composed of an incrementer for incrementing said fourth numerical value, a decrementer for decrementing said fourth numerical value and a selector logic circuit for outputting one of the output of said incrementer, the output of said decrementer and said the fourth numerical value in accordance with the most significant bit of said second numerical value.
Furthermore, in accordance with a preferred embodiment of the present invention, said selector logic circuit Is composed of a first selector element for selecting and outputting one of first and second pairs of bit sequence

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Adder logic circuit and processor does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Adder logic circuit and processor, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Adder logic circuit and processor will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3018771

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.