A data query method and system
A data query and data technology, applied in the field of data processing, can solve the problems of increased chip area, lack of data query method that comprehensively considers time cost consumption and hardware cost consumption, and hardware consumes more and more register resources, etc., to achieve reduction Hardware cost, the effect of saving chip resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0034] image 3 It is the realization flow diagram of the data query method provided in the first embodiment of the present invention, Figure 6 is a schematic structural diagram of the data query system in the first embodiment of the present invention, and the system is used to implement the data query method provided in the first embodiment of the present invention. Such as image 3 As shown, the implementation process includes:
[0035] Step 11. Receive the data to be queried.
[0036] Wherein, the number of digits of the data to be queried can be a preset fixed value, and each digit in the data to be queried corresponds to a number respectively, such as the data to be queried is a binary number 10010, then the number of digits of the data to be queried is 5, and The data to be queried includes 5 digits (bit) 0, bit1, bit2, bit3 and bit4 (from right to left), and the number corresponding to bit0 is 0, the number corresponding to bit1 is 1, and the number corresponding to...
no. 2 example
[0059] Figure 7 It is the realization flowchart of the data query method provided in the second embodiment of the present invention, such as Figure 7 As shown, the data query method provided in the embodiment of the present invention includes:
[0060] Step 21. Receive the first data to be queried, and set a first counter corresponding to the first data to be queried as the number of bits of the first data to be queried.
[0061] Wherein, the number of digits of the first data to be queried is the same as that of the preset data.
[0062] Step 22. Simultaneously compare the number corresponding to any digit in the first data to be queried, whether it is the same as the digits corresponding to the digit in each preset data, repeat the comparison operation, and perform a comparison corresponding to each digit The operation decrements the first counter by one.
[0063] Step 23. Receive the second data to be queried, and set a second counter corresponding to the second data t...
no. 3 example
[0072] Figure 9 is a schematic diagram of the data query method provided in the third embodiment of the present invention, Figure 10 It is a schematic diagram of the data query result provided in the third embodiment of the present invention. Such as Figure 9 As shown, the preset data includes: 00011, 10000, 01001, 11000, 10001, 00111 and 10110, etc., Figure 10 shown in Figure 9 The result of the query method shown, combined with Figure 9 and Figure 10 As shown, the query of the first data to be queried 10010 is started at time T'1, the second data to be queried 00000 is started to be queried at time T'2, and the third data to be queried 11000 is started to be queried at time T'4, wherein the first data to be queried is The query time is T'1-T'5, the query time of the second data to be queried is T'2-T'6, and the query time of the third data to be queried is T'4-T'8, that is, each The time length of the data to be queried is equal to the number of digits of the pr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


