A method for acquiring data, FPGA system and readable storage medium

By using HBM and AXI interfaces in the FPGA system, combined with hash functions and HBM access features, the conflict problem of hash tables is solved, fast storage and efficient reading and writing are achieved, and the problems of hash function selection and low resource utilization are solved. problem, achieving efficient market data processing.

CN111966486BActive Publication Date: 2024-10-08深圳华云信息系统科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010627566.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-01
Publication Date
2024-10-08
Estimated Expiration
2040-07-01

AI Technical Summary

Technical Problem

The selection and conflict resolution of hash functions in the existing technology are difficult to achieve the fastest hash table storage type without affecting the access speed, and the resource utilization rate is low.

Method used

By using HBM and AXI interfaces in the FPGA system, a hash function that can make key information randomly and evenly distributed is selected, and combined with the access characteristics of HBM, the first address storage area corresponding to the hash value is established, and the access is processed in a polling manner. Request to resolve hash table conflicts.

Benefits of technology

It achieves efficient processing of storage, reading and writing of market data at the fastest speed and with the least resources. On average, it takes 50ns to complete a write operation of stock market data, and 120ns to read the data, which improves resource utilization and reduces the size of the stock market data. storage area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111966486B_ABST
    Figure CN111966486B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention relates to a method for acquiring data, an FPGA system and a readable storage medium, wherein the FPGA acquires a hash value of key information; the FPGA reads data information of the hash value in a Brust read / write operation of an HBM through the AXI interface, wherein the data information includes the key information and data content; the FPGA matches the data information with the key information and acquires the data content. By combining the storage method of a hash table with the access characteristics of the HBM, market data can be processed and stored more quickly. According to tests, it takes an average of 50 ns to complete a write operation of stock market data, and 120 ns to complete a read operation of stock market data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of financial transactions, and in particular to a method for acquiring data, an FPGA system, and a readable storage medium. Background Art

[0002] In the process of software and hardware development, it is often necessary to store, search, delete and other operations on data information through keywords to achieve data information management. Hash tables can achieve insertion, deletion and search in an average time, so they are widely used in the implementation process. However, the large space required can also be a headache, so it is usually necessary to balance the two.

[0003] During the process of implementing the present invention, the inventors discovered that there are at least the following problems in the related art: selection of hash functions and conflict resolution. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method for acquiring data, an FPGA system, and a readable storage medium, so as to solve the problem of implementing a storage type of a hash table at the fastest speed and with the least resources without affecting the access speed.

[0005] In a first aspect, an embodiment of the present invention provides a method for acquiring data, which is applied to an FPGA system, wherein the system includes: an FPGA, an HBM, and an AXI interface, and the method includes:

[0006] The FPGA obtains a hash value of key information;

[0007] The FPGA reads data information of the hash value through the AXI interface in a Brust read / write operation of the HBM, wherein the data information includes the key information and data content;

[0008] The FPGA matches the data information with the key information and obtains the data content.

[0009] In some embodiments, the FPGA reads data information of the hash value through the AXI interface in a Brust read / write operation of the HBM, including:

[0010] After receiving the reset request signal, the table element search module of the FPGA enters an idle state and waits for the main controller of the FPGA to initiate a search request, so that after receiving the search request, each AXI port reads the data of the corresponding table element from the HBM according to the input block first address, and performs a keyword comparison after successful access.

[0011] In some embodiments, before the FPGA obtains the hash value of the key information, the method further includes:

[0012] The FPGA selects a hash function so that the key information is randomly and evenly distributed in the hash table, and the probability of the hash function mapping any keyword in the key information to any address in the address set after hashing is equal;

[0013] Among them, after the hash function converts the key information into binary, the upper 2 bits and the lower 12 bits are taken as the hash value.

[0014] In some embodiments, after the FPGA obtains the hash value of the key information, the method further includes:

[0015] The FPGA establishes a first address storage area corresponding to the hash value, each first address corresponds to an HBM storage block, each HBM storage block can be allocated with at least one table element, and each table element corresponds to an AXI port.

[0016] In some embodiments, the FPGA establishes a first address storage area corresponding to the hash value, including:

[0017] The arbiter of the FPGA processes the HBM access request signal in a polling manner, and the FPGA module includes: table element search, table element addition, table element deletion, and data input / output modules;

[0018] The FPGA establishes a connection with an HBM interface controller, and the HBM interface controller performs read / write operations on the HBM chip in a Brust manner.

[0019] In some embodiments, before the FPGA establishes a first address storage area corresponding to the hash value, it also includes:

[0020] Enters idle state after receiving reset signal;

[0021] After receiving the zone management module initialization request, modify the header data of each table element in the HBM to store the first address of each block;

[0022] After receiving the add request, the data is written after searching for free cells in the block;

[0023] After receiving the deletion request, the corresponding table element of the block is searched and then the table element is initialized.

[0024] In a second aspect, an embodiment of the present invention provides a system for acquiring data, the system comprising: an FPGA, an HBM, and an AXI interface:

[0025] The FPGA obtains a hash value of key information;

[0026] The FPGA reads data information of the hash value through the AXI interface in a Brust read / write operation of the HBM, wherein the data information includes the key information and data content;

[0027] The FPGA matches the data information with the key information and obtains the data content.

[0028] In some embodiments,

[0029] In a third aspect, an FPGA system includes:

[0030] one or more processors;

[0031] a storage device for storing one or more programs,

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0033] In a fourth aspect, an embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a head-mounted device, the head-mounted device executes the method as described above.

[0034] The embodiment of the present invention provides a method for acquiring data, an FPGA system and a readable storage medium, wherein the FPGA acquires a hash value of key information; the FPGA reads data information of the hash value in a Brust read / write operation of an HBM through the AXI interface, wherein the data information includes the key information and data content; the FPGA matches the data information with the key information and acquires the data content. By combining the storage method of a hash table with the access characteristics of the HBM, market data can be processed and stored more quickly. According to tests, it takes an average of 50 ns to complete a write operation of stock market data, and 120 ns to complete a read operation of stock market data. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0036] Figure 1 An FPGA system is provided by an embodiment of the present invention;

[0037] Figure 2 It is a hash table storage structure provided by an embodiment of the present invention;

[0038] Figure 3 is a flow chart of a method for acquiring data provided by an embodiment of the present invention;

[0039] Figure 4 is a hash value distribution map with a bit width of 13 provided in an embodiment of the present invention;

[0040] Figure 5 is a hash value distribution map with a bit width of 14 provided in an embodiment of the present invention;

[0041] Figure 6 is a hash value distribution map with a bit width of 13 provided in an embodiment of the present invention;

[0042] Figure 7 Schematic diagram of a state machine of a table element search module provided in an embodiment of the present invention;

[0043] Figure 8 It is a block diagram of the FPGA implementation structure of the hash table provided by the embodiment of the present invention;

[0044] Fig. 9 is a control interface bus provided by an embodiment of the present invention;

[0045] Fig.10 It is the operation state machine of each module of the main controller provided by the embodiment of the present invention;

[0046] Fig.11 It is a structural schematic diagram of an FPGA system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] Embodiment 1

[0049] refer to Figure 1 , Figure 1 The present invention provides an FPGA system. The Field Programmable Gate Array (FPGA) system includes: an FPGA 11, a High Bandwidth Memory (HBM) 12 and an Advanced eXtensible Interface (AXI) interface 13.

[0050] The FPGA system includes the Alveo U50 accelerator card, which uses the 16nm UltraScale+XCU50FPGA11.

[0051] The FPGA system also includes HBM12. The UltraScale+ HBM12 device contains two 4GB high-bandwidth stacks. Using SSI technology, the FPGA system communicates with the HBM12 stack through a memory controller. The FPGA system includes 32 HBM AXI interfaces 13 for communicating with HBM12.

[0052] Flexible addressing capabilities provided by built-in switches allow any of the 32 HBM AXI 13 interfaces to access any memory address on one or both HBM12 stacks.

[0053] This flexible connection between the FPGA system and the HBM 12 stack helps with floorplanning and timing closure. The present application utilizes this flexible connection feature between the FPGA system and the HBM 12 stack to implement a linear re-detection method for resolving hash table conflicts and thereby achieving fast data access.

[0054] like Figure 2 As shown, the RAM inside the FPGA is used to establish a first address storage area corresponding to the hash value one by one. The RAM bit width is 16 bits and the depth is 16384, consuming a total of 7 36K and 1 18K RAM resources. Each first address corresponds to an HBM12 storage block. The size of each storage block is set as required. This article sets the size of each storage block to 35Kb, and evenly allocates 5 table elements (expandable, up to 32, corresponding to 32 AXI interfaces 13). Each table element contains a keyword (Key) and data (Data). An AXI interface 13 is allocated to each table element. Each AXI interface 13 completes the table element reading and writing within one HBM12 Brust read / write operation.

[0055] In practice, FPGA11 obtains a hash value of key information; FPGA11 reads data information of the hash value through the AXI interface 13 in a Brust read / write operation of HBM12, and the data information includes the key information and data content; FPGA11 matches the data information with the key information and obtains the data content.

[0056] FPGA11 is also used to: enter an idle state after receiving a reset request signal, and wait for the main controller of the FPGA to initiate a search request, so that after receiving the search request, each AXI port reads the data of the corresponding table element from the HBM12 according to the input block first address, and performs a keyword comparison after the access is successful.

[0057] FPGA11 is also used to: select a hash function so that the key information is randomly and evenly distributed in the hash table, and the probability of the hash function mapping any keyword in the key information to any address in the address set after hashing is equal; wherein, after the hash function converts the key information into binary, the upper 2 bits and the lower 12 bits are taken as the hash value.

[0058] The FPGA 11 is also used to: establish a first address storage area corresponding to the hash value, each first address corresponds to an HBM storage block 12 , each HBM storage block 12 can be allocated with at least one table element, and each table element corresponds to an AXI port 13 .

[0059] The arbiter of FPGA11 processes the HBM12 access request signal in a polling manner. The FPGA11 module includes: table element search, table element addition, table element deletion, and data input / output modules;

[0060] FPGA11 establishes a connection with the HBM interface controller, and the HBM interface controller uses the Brust method to perform read / write operations on the HBM12 chip.

[0061] FPGA11 is also used to: enter an idle state after receiving a reset signal; after receiving an initialization request from the zone management module, modify the header data of each table element in the HBM and store the first address of each block; after receiving an add request, search for a free table element of the block and write data; after receiving a delete request, search for the corresponding table element of the block and then initialize the table element.

[0062] By utilizing the access feature of HBM12 that different paths can access the same address or address block at the same time, the conflict problem of hash table is solved, which reduces storage resources and increases speed. At the same time, it can be flexibly configured according to needs and has high scalability. Therefore, this market data storage solution not only improves data reading and writing speed, finds required information faster, but also saves resources and reduces area.

[0063] Embodiment 2

[0064] refer to Figure 3 , Figure 3 The present invention provides a flow chart of a method for acquiring data according to an embodiment of the present invention. The method is applied to the FPGA system of the first embodiment. The FPGA system includes: a field programmable gate array (FPGA) 11, an HBM 12 and an AXI interface 13. Figure 3 As shown, the method includes:

[0065] Step 301, the FPGA obtains a hash value of key information;

[0066] Among them, the hash table maps a set of keywords to a finite continuous address range according to the set hash function Hash(Key) and the method of handling conflicts, and uses the "image" of the keyword in the address set as the storage location recorded in the table.

[0067] A good hash function can make the keywords as randomly and evenly distributed in the hash table as possible, reduce the probability of conflicts, and improve the efficiency of hash table searches. For an ideal hash function, the probability of mapping any keyword in the keyword set to any address in the address set after hashing is equal. The following is a brief introduction to several hash functions:

[0068] 1) Direct addressing method: take the keyword or a linear function value of the keyword as the hash address;

[0069] 2) Digital analysis method: by analyzing the data, find the part with less conflicts in the data and construct the hash address. For example, the student ID number of the students in the same class usually has little difference in the first part, so the second part is used to construct the hash address;

[0070] 3) Square middle method: When it is not possible to determine which bits of the keyword are relatively evenly distributed, you can first calculate the square value of the keyword, and then take the middle bits of the square value as the hash address as needed. This is because: the middle bits after calculating the square are related to each bit in the keyword, so different keywords will generate different hash addresses with a higher probability;

[0071] 4) Divide and remainder method: Take the remainder p obtained by dividing the keyword by a number m that is not greater than the length of the hash table n as the hash address. This method can also be used after using other methods. The choice of m in this function is very important. Generally, a prime number or n is used directly.

[0072] This paper uses 2) data analysis as a hash function to achieve the mapping of keywords to hash table addresses. According to the characteristics of the 6-digit stock code, the fifth digit is 0 in most cases, so after converting the keyword to binary, the upper 2 bits and the lower 12 bits are taken as the hash value, as shown in Table 1. Table 1 is a keyword and address mapping relationship table.

[0073]

[0074]

[0075] Table 1

[0076] Statistics of all the stocks in the Shenzhen Stock Exchange and the Shanghai Stock Exchange show that the probability of a conflict is about 0.22% when using the above hash function, and the current maximum number of conflicts is 1. As shown in Table 2, statistics of the occupancy of various resources and the conflicts generated by different hash functions are shown, where the HBM resources are calculated as the minimum, i.e., not reserved.

[0077] Hash value width BRAM Resources HBM Resources Probability of conflict Maximum number of conflicts 13 20x 8192 156Mb 17.31% 2 14 20x 16384 208Mb 0.22% 1 15 20x 32768 192Mb 0% 0

[0078] Table 2

[0079] like Figure 4 , Figure 5 , Figure 6 Hash value distribution diagram for different hash functions, where the Y axis is the hash value. Figure 4 , Figure 5 , Figure 6 It can be seen that different hash functions have different distributions of hash values. If a large bit width is selected as the hash function, the probability of conflict gradually becomes 0, and the access speed is fast, but the more resources consumed, the lower the resource utilization rate. On the contrary, if a small bit width is selected as the hash function, the probability of conflict increases, the access speed is slow, but the resource utilization rate is high. Therefore, the traditional method cannot solve the speed-area decision problem. The design idea of ​​this application is to improve resource utilization without affecting the access speed, that is, to realize a storage type of a hash table at the fastest speed and with the least resources.

[0080] Step 302, the FPGA reads the data information of the hash value through the AXI interface in a Brust read / write operation of the HBM, the data information including the key information and data content;

[0081] Specifically, Figure 7 As shown, the FPGA reads the data information of the hash value through the AXI interface in a Brust read / write operation of the HBM, including:

[0082] After receiving the reset request signal, the table element search module of the FPGA enters an idle state and waits for the main controller of the FPGA to initiate a search request, so that after receiving the search request, each AXI port reads the data of the corresponding table element from the HBM according to the input block first address, and performs a keyword comparison after successful access.

[0083] Step 303: The FPGA matches the data information with the key information and obtains the data content.

[0084] For example, some classes (hash values) are made into a list (first address list), and each class is arranged in a team (a table established in HBM). The team is arranged according to the first person to arrive, and the first address points to the first person in the team. To check the grades of a student in this school, enter the student's student number (KEY), and through calculation (hash function) know the class (hash value) of the student, read the grades of 32 people in this class at a time through 32 AXI ports, and then get the name of the person to be found by comparing the student numbers (KEY).

[0085] In another embodiment, before the FPGA obtains the hash value of the key information, the method further includes:

[0086] Step 304, the FPGA selects a hash function so that the key information is randomly and evenly distributed in the hash table, and the probability of the hash function mapping any keyword in the key information to any address in the address set after hashing is equal;

[0087] Among them, after the hash function converts the key information into binary, the upper 2 bits and the lower 12 bits are taken as the hash value.

[0088] In another preferred embodiment, after the FPGA obtains the hash value of the key information, the method further includes:

[0089] Step 305: the FPGA establishes a first address storage area corresponding to the hash value, each first address corresponds to an HBM storage block, each HBM storage block can be allocated at least one table element, and each table element corresponds to an AXI port.

[0090] The FPGA establishes a first address storage area corresponding to the hash value, including:

[0091] The arbiter of the FPGA processes the HBM access request signal in a polling manner, and the FPGA module includes: table element search, table element addition, table element deletion, and data input / output modules;

[0092] The FPGA establishes a connection with an HBM interface controller, and the HBM interface controller performs read / write operations on the HBM chip in a Brust manner.

[0093] like Figure 8 As shown, the FPGA system uses an interface controller to implement bus management and uses a main controller to generate control signals for modules such as table element search, table element addition, and table element deletion.

[0094] Among them, Fig. 9As shown, the interface controller serves as a bridge channel for interaction between this module and other functional modules inside the FPGA, adopts a master-slave structure, and this module works in slave device mode with a custom interface.

[0095] Interface signal introduction:

[0096] a)sys_clk and sys_rst: input clock / reset signal;

[0097] b)data_i and data_o: data input and output;

[0098] c)key: keyword (stock code);

[0099] d) we: read / write signal, 1 for write, 0 for read;

[0100] e) ready: Hash module idle signal, can receive data and instructions.

[0101] The interface controller implements the following functions:

[0102] a) Send the keyword (Key) to the Hash operation module for operation;

[0103] b) Read the base address of the linked list according to the Hash value;

[0104] c) sending the data to be written into the HBM into the data input buffer;

[0105] d) Process the data read command and read the data from the buffer.

[0106] Among them, Fig.10 As shown, the main controller is the core module of the FPGA implementation of this storage system, and generates request signals such as table element search, table element addition, and table element deletion according to the command type.

[0107] 1) After the reset signal fails, the main controller sends an initialization request to the management module. After the initialization is completed, it enters the idle state and waits for commands;

[0108] 2) After receiving the search command, the main controller sends a request to the table element search module. If a match is successful, it sends a request to the input / output module according to the command content to complete data reading and writing;

[0109] 3) After receiving the add command, the main controller sends a request to the table element adding module to obtain the idle table element. If successful, it sends a request to the data input / output module according to the command content to complete data reading and writing.

[0110] 4) After receiving the deletion command, the main controller sends a request to the table element deletion module.

[0111] In addition, in a preferred embodiment, before the FPGA establishes a first address storage area corresponding to the hash value, it also includes an initialization step 306:

[0112] Enters idle state after receiving reset signal;

[0113] After receiving the zone management module initialization request, modify the header data of each table element in the HBM to store the first address of each block;

[0114] After receiving the add request, the data is written after searching for free cells in the block;

[0115] After receiving the deletion request, the corresponding table element of the block is searched and then the table element is initialized.

[0116] An embodiment of the present invention provides a method for acquiring data, wherein an FPGA acquires a hash value of key information; the FPGA reads data information of the hash value in a Brust read / write operation of an HBM through the AXI interface, wherein the data information includes the key information and data content; the FPGA matches the data information with the key information and acquires the data content. By combining the storage method of a hash table with the access characteristics of the HBM, market data can be processed and stored more quickly. According to tests, it takes an average of 50 ns to complete a write operation of stock market data, and 120 ns to complete a read operation of stock market data.

[0117] Embodiment 3

[0118] Correspondingly, such as Fig.11 As shown, the embodiment of the present invention also provides a structural schematic diagram of an FPGA system. Fig.11 As shown, the FPGA system 13 includes:

[0119] One or more processors 131 and memory 132, Fig.11 A processor 131 is taken as an example.

[0120] The processor 131 and the memory 132 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.

[0121] The memory 132 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the head-mounted device positioning method in the embodiment of the present application. The processor 131 executes various functional applications and data processing of the controller by running the non-volatile software programs, instructions and modules stored in the memory 132, that is, the head-mounted device positioning method of the above method embodiment is implemented.

[0122] The memory 132 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the head-mounted device positioning device, etc. In addition, the memory 132 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 132 may optionally include a memory remotely arranged relative to the processor 131, and these remote memories may be connected to the head-mounted device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0123] The one or more modules are stored in the memory 132, and when executed by the one or more processors 131, perform the head mounted device positioning method in any of the above method embodiments, for example, perform the above described Figure 3 Method steps 301 to 306 in; implement Figure 8 The functions of each module in.

[0124] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0125] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Fig.11 A processor 131 in the embodiment may enable the one or more processors to execute the head mounted device positioning method in any of the above method embodiments, for example, executing the above described Figure 3 Method steps 301 to 306 in; implement Figure 8 The functions of each module in.

[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0127] Through the description of the above embodiments, a person of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course by hardware. A person of ordinary skill in the art can understand that all or part of the processes in the above embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for acquiring data, applied to an FPGA system, the system comprising: Field Programmable Gate Array FPGA, High Bandwidth Memory HBM and Bus Protocol AXI Interface, characterized in that the method comprises: The FPGA selects a hash function so that the key information is randomly and evenly distributed in the hash table, and the probability of the hash function mapping any keyword in the key information to any address in the address set after hashing is equal; wherein, after the hash function converts the key information into binary, the upper 2 bits and the lower 12 bits are taken as the hash value; The FPGA obtains a hash value of key information; Entering an idle state after receiving a reset signal; after receiving a zone management module initialization request, modifying the header data of each table element in the HBM, and storing the first address of each block; After receiving an add request, it searches for free cells in the block and writes the data; after receiving a delete request, it searches for the corresponding cells in the block and initializes the cells; The FPGA establishes a first address storage area corresponding to the hash value, including: the arbiter of the FPGA processes the HBM access request signal in a polling manner, and the FPGA module includes: a table element search, a table element addition, a table element deletion, and a data input / output module; the FPGA establishes a connection with the HBM interface controller, and the HBM interface controller performs a read / write operation on the HBM chip in a Brust manner; each first address corresponds to an HBM storage block, each HBM storage block can be allocated at least one table element, and each table element corresponds to an AXI port; The FPGA reads the data information of the hash value through the AXI interface in a Brust read / write operation of the HBM, including: the table element search module of the FPGA enters an idle state after receiving a reset request signal, and waits for the main controller of the FPGA to initiate a search request, so that after receiving the search request, each AXI port reads the data of the corresponding table element from the HBM according to the input block first address, and performs keyword comparison after the access is successful; the data information includes the key information and data content; The FPGA matches the data information with the key information and obtains the data content.

2. A system for acquiring data, characterized in that: The system includes: FPGA, HBM and AXI interface: The FPGA selects a hash function so that the key information is randomly and evenly distributed in the hash table, and the probability of the hash function mapping any keyword in the key information to any address in the address set after hashing is equal; wherein, after the hash function converts the key information into binary, the upper 2 bits and the lower 12 bits are taken as the hash value; The FPGA obtains a hash value of key information; The FPGA enters an idle state after receiving a reset signal; after receiving an initialization request from the zone management module, the header data of each table element in the HBM is modified to store the first address of each block; after receiving an add request, the free table element of the block is searched and the data is written; after receiving a delete request, the corresponding table element of the block is searched and the table element is initialized; The FPGA establishes a first address storage area corresponding to the hash value, and the arbiter used in the FPGA processes the HBM access request signal in a polling manner. The FPGA module includes: a table element search, a table element addition, a table element deletion, and a data input / output module; the FPGA establishes a connection with the HBM interface controller, and the HBM interface controller uses the Brust method to perform read / write operations on the HBM chip; each first address corresponds to an HBM storage block, each HBM storage block can be allocated at least one table element, and each table element corresponds to an AXI port; The FPGA reads the data information of the hash value in a Brust read / write operation of the HBM through the AXI interface, and is specifically used to enter an idle state after receiving a reset request signal, and wait for the main controller of the FPGA to initiate a search request, so that after receiving the search request, each AXI port reads the data of the corresponding table element from the HBM according to the input block first address, and performs keyword comparison after the access is successful; the data information includes the key information and data content; The FPGA matches the data information with the key information and obtains the data content.

3. An FPGA system, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.

4. A non-volatile computer-readable storage medium storing computer-executable instructions, which, when executed by a head-mounted device, causes the head-mounted device to execute the method according to claim 1.