Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for checking whether binary number is multiple of three, and checking chip thereof

A technology of binary numbers and inspection methods, applied in digital function generators, calculations using number system representation, etc., can solve problems such as increased chip area, large chip area, and wide subtractor

Inactive Publication Date: 2009-06-24
WUXI ZGMICRO ELECTRONICS CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the main defect of this method is: the process of converting from binary to decimal is more complicated, the conversion efficiency is low, and, when the target number is large, such as a 20-bit number, it needs to use a very long subtractor, The bit width of the subtractor is too wide, which will lead to an increase in the chip area.
The main defect of this method is: this method requires that the bit width of the subtractor will be very wide, so it will also cause a large chip area to be occupied; moreover, in the actual judgment, more iterations are required, which may lead to Timing requirements cannot be met
[0006] In view of this, a technical problem that needs to be solved urgently by those skilled in the art is: to provide a multiple of three inspection device, thereby overcoming the chip area caused by the complicated numerical conversion and the long bit width of the required subtractor in the prior art. Relatively large, low work efficiency and other defects, so that it can use less resources and faster calculation efficiency to judge whether a binary number, especially a larger number, is a multiple of 3

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for checking whether binary number is multiple of three, and checking chip thereof
  • Method and device for checking whether binary number is multiple of three, and checking chip thereof
  • Method and device for checking whether binary number is multiple of three, and checking chip thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] At first, the algorithm derivation process of the present invention is described:

[0035]The characteristic of a binary number is that the number of weight represented by each digit is only 1 or 2 different from the multiple of 3, and this difference is regular. A multiple of 3 differs by 1, and if its weight is even, it differs from a multiple of three by 2.

[0036] for example:

[0037] (1111_1111) 2 = 2 7 +2 6 +2 5 +2 4 +2 3 +2 2 +2 1 +2 0

[0038] 2 7 =128=129-1, 129 is divisible by 3

[0039] 2 6 =64=66-, 66 is divisible by 3

[0040] 2 5 =32=33-, 33 is divisible by 3

[0041] ...

[0042] 2 0 =1=3-2, 3 is divisible by 3

[0043] It can be seen that a binary number can be split into the sum of several multiples of 3, and then the filled 1 and 2 are subtracted from the lower bits.

[0044] The core idea of ​​the present invention is: split a binary number into two parts, the high-order group and the low-order group, wherein the digits of the lo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for testing whether a binary digit is a mulriple of three. The method comprises the following steps: whether the binary digit is larger than the specified digit of N (N is larger than one) is determined, if yes, the binary digit is split into two parts of a low byte and a high byte; a lookup table which consists of all the numbers from 0 to 2<N> which can be divided by three is preset; if the difference value between the sum of all the numbers at the odd number position and the sum of all the numbers at the even number position is larger than zero, the number represented by the low byte minus the difference to obtain an execution result; if the execution result is smaller than zero, the number represented by the low byte is taken as a minuend, the absolute value of the difference is moved leftwards for one digit, and the execution result of the binary digit is obtained; the execution result of the binary digit is looked up in the lookup table, if so, the binary digit is determined as the mulriple of three. The method of the invention avoids the shortcomings of complicated numbering system conversion, longer subtracter bitwidth and multiple times of interations, when determining whether the binary digit is the mulriple of three in the prior art. Therefore, the determination can be realized with the least resource and the highest efficiency.

Description

technical field [0001] The invention relates to the field of integrated circuit design, in particular to a method and device for checking whether a binary number is a multiple of three, and a check chip. Background technique [0002] In integrated circuit design, in many applications such as ECC (Error Checking and Correcting, error checking and correction) algorithm, it is necessary to judge whether a number is a multiple of three, but the existing digital circuits are basically switching circuits. It is relatively easy to judge whether a number is a multiple of two, but it is more difficult to judge whether a number is a multiple of three. [0003] At present, there are mainly two methods for judging whether a number is a multiple of three: [0004] Method 1: Convert the binary input data into a decimal number, and then add the data on each "weight" bit, if the result of the sum is a multiple of three, then the number is a multiple of three. For example, (1111_1111) 2 =...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F7/38G06F1/03
Inventor 邹杨
Owner WUXI ZGMICRO ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products