User table management method, device and storage medium based on dedicated parameter table

By using a user table management method based on a dedicated parameter table, data can be written to or read directly from random access memory, solving the problem of complexity in user table management in traditional methods, achieving simplified user table management and reducing learning costs.

CN117539865BActive Publication Date: 2025-01-10YUSUR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311533765.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-01-10
Estimated Expiration
2043-11-16

AI Technical Summary

Technical Problem

Traditional user table management methods rely on SQL commands and tools provided by database management systems, which presents management complexity and difficulty, requiring the writing of complex SQL statements.

Method used

The user table management method based on a dedicated parameter table is adopted. By receiving user table operation information, a bus address for random access memory is generated, and data is directly written or read from the target parameter table, thus avoiding the need to write complex SQL statements.

Benefits of technology

It reduces the difficulty and learning cost of user table management, simplifies the user table management process, and eliminates the need to use database management system tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117539865B_ABST
    Figure CN117539865B_ABST
Patent Text Reader

Abstract

The present invention provides a user table management method, device and storage medium based on a dedicated parameter table. The method comprises: receiving user table operation information in response to a received user table operation instruction; the user table operation information comprises a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate a target parameter table; the user table identifier is used to indicate an address index of a random access memory; in the case where the user table operation instruction is a write instruction, generating a bus write address corresponding to the random access memory based on the user table identifier; acquiring instruction data corresponding to the user table operation instruction; using the parameter identifier as an access index of the target parameter table, accessing the target parameter table and writing the instruction data into the target parameter table according to the data items of the target parameter table; writing the data in the target parameter table into the random access memory according to the bus write address; the method can solve the problem that the user table management is difficult when the SQL commands and tools provided by the database management system are used to manage the user table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to a user table management method, device and storage medium based on a dedicated parameter table. Background Art

[0002] In a database, a user table is an important data structure used to store and organize data. Generally speaking, user tables can be divided into multiple types, including array tables and hash tables. Data writing or reading operations are implemented by managing user tables.

[0003] Traditional user table management methods include: managing user tables through SQL commands and tools provided by the database management system.

[0004] However, directly using the SQL commands and tools provided by the database management system to manage user tables may increase the complexity of the system. There is a possibility that complex SQL statements need to be written to implement specific data operations, making user table management difficult. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a user table management method, device and storage medium based on a dedicated parameter table to eliminate or improve one or more defects in the prior art. The method can solve the problem that the user table is difficult to manage when using SQL commands and tools provided by a database management system to manage the user table.

[0006] One aspect of the present invention provides a user table management method based on a dedicated parameter table, the method comprising the following steps:

[0007] In response to the received user table operation instruction, receiving user table operation information; the user table operation information includes a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate a target parameter table; the user table identifier is used to indicate an address index of a random access memory;

[0008] In the case where the user table operation instruction is a write instruction, a bus write address corresponding to the random access memory is generated based on the user table identifier;

[0009] Obtain instruction data corresponding to the user table operation instruction;

[0010] Using the parameter identifier as an access index of the target parameter table, accessing the target parameter table and writing the instruction data into the target parameter table according to the data items of the target parameter table;

[0011] According to the bus write address, the data in the target parameter table is written into the random access memory.

[0012] Optionally, when the user table operation instruction is a read instruction, the method further includes:

[0013] Generate a bus read address corresponding to the random access memory based on the user table identifier;

[0014] Read data from the random access memory according to the bus read address;

[0015] Write the read data into the target parameter table;

[0016] Returns the target parameter table to the specified channel or interface.

[0017] Optionally, the parameter table includes a hash parameter table, an array parameter table, a cache parameter table, an index parameter table, an index resource table, a hardware parameter table and a hash-specific clearing table.

[0018] Optionally, the user table corresponding to the user table operation instruction is a user array table; the configuration parameters of the user array table include parameters corresponding to the hardware parameter table, parameters corresponding to the array parameter table and cache parameters corresponding to the cache parameter table;

[0019] The parameter table identification indication includes an identification corresponding to the hardware parameter table, an identification corresponding to the array parameter table, and an identification corresponding to the cache parameter table.

[0020] Optionally, before receiving user table operation information in response to the received user table operation instruction, the method further includes:

[0021] Get the configuration parameters of the user array table;

[0022] Write the configuration parameter data into the corresponding parameter table to create a user array table;

[0023] Clear all entries in the user array table to complete the creation of the user array table.

[0024] Optionally, the user table corresponding to the user table operation instruction is a user hash table; the parameter table identification indication includes an identification corresponding to the hardware parameter table, an identification corresponding to the hash parameter table, an identification corresponding to the index parameter table, an identification corresponding to the index resource table, and an identification corresponding to the hash dedicated clearing table;

[0025] The configuration parameters of the user hash table include parameters corresponding to the hardware parameter table, parameters corresponding to the hash parameter table, parameters corresponding to the index parameter table, parameters corresponding to the index resource table, and parameters corresponding to the hash dedicated clearing table.

[0026] Optionally, before receiving user table operation information in response to the received user table operation instruction, the method further includes:

[0027] Get the configuration parameters of the user hash table;

[0028] Write the configuration parameters of the user hash table into the corresponding parameter table to create the user hash table;

[0029] Generate a zero array table; the zero value table overlaps the DDR space of the user hash table;

[0030] Clear each table entry of the clear array table to clear the user hash table and complete the creation of the user hash table.

[0031] Optionally, returning the data in the target parameter table to a designated channel or a designated interface includes: cutting the data in the target parameter table into data segments according to preset bytes; and sending each data segment to the designated channel or the designated interface in turn.

[0032] Another aspect of the present invention provides a user table management device based on a dedicated parameter table, including a processor and a memory, wherein computer instructions are stored in the memory, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the above-mentioned user table management method based on the dedicated parameter table.

[0033] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned user table management method based on a dedicated parameter table.

[0034] The user table management method, device and storage medium based on the dedicated parameter table provided by the present invention receive user table operation information by responding to the received user table operation instruction; the user table operation information includes a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate the target parameter table; the user table identifier is used to indicate the address index of the random access memory; when the user table operation instruction is a write instruction, a bus write address corresponding to the random access memory is generated based on the user table identifier; the instruction data corresponding to the user table operation instruction is obtained; the parameter identifier is used as the access index of the target parameter table, the target parameter table is accessed and the instruction data is written into the target according to the data items of the target parameter table. parameter table; writing the data in the target parameter table into the random access memory according to the bus write address; being able to solve the problem of difficulty in user table management when using SQL commands and tools provided by the database management system to manage the user table; determining the bus write address corresponding to the random access memory through the user table identifier, receiving instruction data through the target parameter table, and writing the instruction data according to the bus write address, thereby realizing the management of the user table without writing complex SQL statements, thus reducing the difficulty of user table management; at the same time, users do not need to learn to use the tools of the database management system, thus reducing the learning cost of users managing user tables, and further reducing the difficulty of user table management.

[0035] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.

[0036] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present invention, and do not constitute a limitation of the present invention. In the drawings:

[0038] Figure 1 It is a flowchart of a user table management method based on a dedicated parameter table in one embodiment of the present invention;

[0039] Figure 2 It is a schematic diagram of sending parameter table parameters to various modules for processing in one embodiment of the present invention;

[0040] Figure 3 is a block diagram of a user table management device based on a dedicated parameter table in another embodiment of the present invention;

[0041] Figure 4 It is a block diagram of a user table management device based on a dedicated parameter table in another embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0043] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0044] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0045] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0046] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0047] The following is an introduction to the user table management method based on the dedicated parameter table provided by the present invention.

[0048] Figure 1 is a flow chart of a user table management method based on a dedicated parameter table provided in an embodiment of the present invention. This embodiment is described by taking the method applied to an electronic device as an example, wherein the electronic device includes a computer, a mobile phone, a tablet computer or a server, etc. This embodiment does not limit the type of electronic device; Figure 1 As shown, the user table management method based on the dedicated parameter table at least includes steps S101 to S106:

[0049] Step S101, receiving user table operation information in response to a received user table operation instruction.

[0050] The user table operation instructions include user table read instructions and user table write instructions. The user table read instructions are used to instruct to read data from the user table; the user table write instructions are used to instruct to write data into the user table.

[0051] In this embodiment, when the received user table operation instruction is a valid instruction, the user table operation information is received through a command prompt (cmd) channel.

[0052] The user table operation information includes a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate a target parameter table; and the user table identifier is used to indicate an address index of a random access memory (RAM).

[0053] In this embodiment, the parameter table includes a parameter table stored in a RAM and a parameter table stored in a dynamic random access memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR).

[0054] The parameter table identifiers of the parameter tables stored in the RAM include identifiers from 240 to 255. In other words, there are 16 parameter tables stored in the RAM. The parameter table identifier and RAM resources of each parameter table are fixed, and there is no need to issue a creation instruction. It is sufficient to create a data structure to record the parameter table identifier of the parameter table, and then the table items of the parameter table can be directly loaded and stored.

[0055] The parameter table stored in DDR is a special array table, which also has a fixed parameter table identifier. DDR resources are allocated by the host computer and a creation instruction needs to be issued. Currently, the parameter table stored in DDR only occupies the two identifiers 238 and 239.

[0056] In this embodiment, the parameter table includes a hash parameter table (HashTable_Parameter_Table), an array parameter table (ArrayTable_Parameter_Table), a cache parameter table (Cache_Config_Table), an index parameter table (Index_Manage_Table), an index resource table (Index_Resource_Table), a hardware parameter table (HardWare_Parameter_Table) and a hash-specific clearing table (Hash_Clear_Table). The correspondence between the parameter table and the parameter table identifier is shown in Table 1.

[0057] Table 1:

[0058]

[0059]

[0060] In this embodiment, the data items of the hash parameter table include an index mask item (IndexMask), a key length item (KeyLen), a value length item (ValueLen), an item size item (ItemSize), and a table validity item (Table_valid).

[0061] Among them, the index mask item is the hash table index mask, and the value plus 1 is the total number of table entries; the key length item is the length of the key of the hash parameter table entry; the numerical length item is the length of the value of the hash parameter table entry; the item size item is the logarithm of 2 of the total length of the hash parameter table entry and rounded up; the table validity item indicates whether the hash parameter table is valid.

[0062] The data items of the array parameter table include an index mask item (IndexMask), an item length item (ItemLen), an item size item (ItemSize), and a table validity item (Table_valid).

[0063] Among them, the index mask item is the array parameter table index mask, and the value plus 1 is the total number of table entries; the item length item is the length of the array parameter table entries; the item size item is the logarithm of 2 of the total length of the array parameter table entries and then rounded up; the table validity item indicates whether the hash table is valid.

[0064] The data items of the hardware parameter table include a base address item (DDR_BaseAddr), an item size item (Item_size), an item length item (Item_len) and a DDR selection item (DDRSelect).

[0065] Among them, the base address item is used to indicate the base address of the user table; the item size item is the logarithm of 2 of the total length of the user table items and then rounded up; the item length item is the total length of the user table items; and the DDR selection item is the memory channel selection of the user-defined table.

[0066] The data items of the index parameter table include an index first-in-first-out (FIFO) number item (Index_FIFO_Num), an index DDR address item (Index_DDR_Addr), an index RAM pointer item (Index_RAM_Pointer), and an index DDR pointer item (Index_DDR_Pointer).

[0067] Among them, the index FIFO number item represents the number of index numbers of the index pre-allocated FIFO. When the FIFO number is lower than 25%, 25% is read from the DDR to supplement it to 50%. When the FIFO number is higher than 75%, it is recycled to the DDR and reduced to 50%, ensuring that the index in the FIFO will neither be less nor exploded; the index DDR address item represents the index DDR address. Since the index allocation of all hash parameter tables is uniformly managed, the index number resources are uniformly stored in the DDR memory, and each user table has a corresponding offset address; the index RAM pointer item represents the index resource RAM position pointer, initialized to 0, and managed internally by the hardware; the index DDR pointer item represents the index resource DDR position pointer, initialized to 0, and managed internally by the hardware.

[0068] The data items of the index resource table include an index number data item (Index_Number).

[0069] The data items of the hash dedicated zeroing table include a data item, which is all zero.

[0070] The data items of the cache parameter table include a tag offset address item (Tag_Offset_Addr), a tag number item (Tag_Num), a data offset address item (Data_Offset_Addr), a data length item (Data_Len), a table type item (Table_type), and a table validity item (Table_valid).

[0071] Among them, the tag offset address item represents the offset address of the tag of the user table; the tag number item represents the number of tags in the user table; the data offset address item represents the offset address of the data in the user table; the data length item represents the length of the entry data in the user table; the table type item is used to represent the type of the user table, including hash type, array type, exclusive type, shared type, etc.; the table validity item indicates whether the user table is valid.

[0072] In this embodiment, the user table corresponding to the user table operation instruction is a pre-created table stored in the DDR, including a user array table and a user hash table.

[0073] The configuration parameters of the user array table include parameters corresponding to the hardware parameter table, parameters corresponding to the array parameter table, and cache parameters corresponding to the cache parameter table.

[0074] The configuration parameters of the user hash table include parameters corresponding to the hardware parameter table, parameters corresponding to the hash parameter table, parameters corresponding to the index parameter table, parameters corresponding to the index resource table, and parameters corresponding to the hash dedicated clearing table.

[0075] In the case that the user table corresponding to the user table operation instruction is a user array table, the parameter table identification indication includes an identification corresponding to a hardware parameter table, an identification corresponding to an array parameter table, and an identification corresponding to a cache parameter table.

[0076] In this embodiment, before receiving the user table operation instruction, it is necessary to create a user array table. Specifically, before receiving the user table operation information in response to the received user table operation instruction, it also includes: obtaining the configuration parameters of the user array table; writing the configuration parameter data into the corresponding parameter table to create the user array table; clearing each table item of the user array table to complete the creation of the user array table.

[0077] When the user table corresponding to the user table operation instruction is a user hash table, the parameter table identification indication includes an identification corresponding to the hardware parameter table, an identification corresponding to the hash parameter table, an identification corresponding to the index parameter table, an identification corresponding to the index resource table, and an identification corresponding to the hash-specific clearing table.

[0078] Accordingly, before receiving the user table operation instruction, it is necessary to create a user hash table first. Specifically, in response to the received user table operation instruction, before receiving the user table operation information, it also includes: obtaining the configuration parameters of the user hash table; writing the configuration parameters of the user hash table into the corresponding parameter table to create the user hash table; generating a clear array table; the clear value table overlaps the DDR space of the user hash table; clearing each table item of the clear array table to realize the clearing of the user hash table and complete the creation of the user hash table.

[0079] In this embodiment, each entry of the clear array table is cleared through a hash clearing dedicated table; at the same time, in order to save parameter table identification resources, the parameter table identification corresponding to the hash clearing dedicated table is fixed and can be repeatedly created to perform clearing operations on different user hash tables.

[0080] In this embodiment, reference Figure 2 Through the configuration parameters of the user table, when operating the specified table items of the user array table, the address where the table item data is stored in the DDR or cache can be accurately known, and different parameters can be assigned to different modules for processing, so as to read and write data.

[0081] Step S102: when the user table operation instruction is a write instruction, a bus write address corresponding to the random access memory is generated based on the user table identifier.

[0082] Specifically, generating a bus write address corresponding to the random access memory based on the user table identifier includes: determining a base address corresponding to the random access memory; determining a unit size of each storage unit in the random access memory; and calculating the bus write address according to a preset formula based on the base address, the unit size and the user table identifier.

[0083] The preset formula is expressed as follows:

[0084] Write_Address=RAM_BaseAddress+(Address_Index×UnitSize)

[0085] Wherein, Write_Address represents the bus write address; RAM_BaseAddress represents the random access memory base address; Address_Index represents the user table identifier; UnitSize represents the unit size of each storage unit in the random access memory.

[0086] Step S103, obtaining instruction data corresponding to the user table operation instruction.

[0087] In this embodiment, when the user table operation instruction is a write instruction, the instruction data corresponding to the user table operation instruction refers to the data that needs to be written into the user table.

[0088] Step S104: Use the parameter identifier as an access index to the target parameter table, access the target parameter table, and write the instruction data into the target parameter table according to the data items in the target parameter table.

[0089] Step S105, writing the data in the target parameter table into the random access memory according to the bus write address.

[0090] In addition, when the user table operation instruction is a read instruction, it also includes: generating a bus read address corresponding to the random access memory based on the user table identifier; reading data from the random access memory according to the bus read address; writing the read data into the target parameter table; and returning the data in the target parameter table to the specified channel or specified interface.

[0091] Among them, returning the data in the target parameter table to the designated channel or designated interface includes: cutting the data in the target parameter table into data segments according to preset bytes; and sending each data segment to the designated channel or designated interface in turn.

[0092] The preset bytes are pre-set bytes, including but not limited to 8 bytes or 4 bytes, etc. This embodiment does not limit the value of the preset bytes.

[0093] In actual implementation, there is a possibility of deleting the user table. At this time, when the user table is a user array table, you only need to configure the parameter table and set the parameters of the valid data items corresponding to the user array table to zero; correspondingly, when the user table is a user hash table, you only need to configure the parameter table and set the parameters of the valid data items corresponding to the user hash table to zero.

[0094] In summary, the user table management method based on the dedicated parameter table provided in this embodiment receives user table operation information in response to the received user table operation instruction; the user table operation information includes a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate the target parameter table; the user table identifier is used to indicate the address index of the random access memory; in the case where the user table operation instruction is a write instruction, a bus write address corresponding to the random access memory is generated based on the user table identifier; the instruction data corresponding to the user table operation instruction is obtained; the parameter identifier is used as the access index of the target parameter table, the target parameter table is accessed and the instruction data is written into the target parameter table according to the data items of the target parameter table. The method can solve the problem of difficulty in user table management when using SQL commands and tools provided by the database management system to manage user tables; determine the bus write address corresponding to the random access memory through the user table identifier, receive instruction data through the target parameter table, write the instruction data according to the bus write address, and realize the management of the user table without writing complex SQL statements, thereby reducing the difficulty of user table management; at the same time, users do not need to learn to use the tools of the database management system, which reduces the learning cost of users managing user tables and further reduces the difficulty of user table management.

[0095] Figure 3This is a block diagram of a user table management device based on a dedicated parameter table provided by another embodiment of the present invention. The device comprises at least the following modules: an information receiving module 310 , an address generating module 320 , a data acquiring module 330 , a parameter table accessing module 340 and a data writing module 350 .

[0096] The information receiving module 310 is used to receive user table operation information in response to the received user table operation instruction; the user table operation information includes a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate a target parameter table; the user table identifier is used to indicate an address index of a random access memory;

[0097] An address generation module 320, for generating a bus write address corresponding to the random access memory based on the user table identifier when the user table operation instruction is a write instruction;

[0098] A data acquisition module 330 is used to acquire instruction data corresponding to the user table operation instruction;

[0099] A parameter table access module 340 is used to use the parameter identifier as an access index of the target parameter table, access the target parameter table and write the instruction data into the target parameter table according to the data items of the target parameter table;

[0100] The data writing module 350 is used to write the data in the target parameter table into the random access memory according to the bus write address.

[0101] For relevant details, refer to the above embodiments.

[0102] It should be noted that: the user table management device based on the dedicated parameter table provided in the above embodiment only uses the division of the above functional modules as an example when performing user table management based on the dedicated parameter table. In actual applications, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the user table management device based on the dedicated parameter table is divided into different functional modules to complete all or part of the functions described above. In addition, the user table management device based on the dedicated parameter table provided in the above embodiment and the user table management method embodiment based on the dedicated parameter table belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0103] Corresponding to the above method, Figure 4As shown, the present invention also provides a user table management device based on a dedicated parameter table, the user table management device based on a dedicated parameter table includes a computer device, the computer device includes a processor 410 and a memory 420, the memory 420 stores computer instructions, the processor 410 is used to execute the computer instructions stored in the memory 420, when the computer instructions are executed by the processor, the electronic device implements the steps of the user table management method based on the dedicated parameter table in the above method embodiment.

[0104] The processor 410 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 410 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 410 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 410 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 410 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0105] The memory 420 may include one or more computer-readable storage media, which may be non-transitory. The memory 420 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 420 is used to store at least one instruction, which is used to be executed by the processor 420 to implement the user table management method based on the dedicated parameter table provided in the method embodiment of the present invention.

[0106] In some embodiments, the electronic device may further optionally include: a peripheral device interface and at least one peripheral device. The processor 410, the memory 420 and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Schematically, the peripheral devices include but are not limited to: a radio frequency circuit, a touch display screen, an audio circuit, and a power supply.

[0107] Of course, the electronic device may also include fewer or more components, which is not limited in this embodiment.

[0108] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the user table management method based on the dedicated parameter table are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0109] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0110] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0111] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A user table management method based on a dedicated parameter table, characterized in that: The method comprises the following steps: In response to the received user table operation instruction, receiving user table operation information; the user table operation information includes a parameter table identifier and a user table identifier; the parameter table identifier is used to indicate a target parameter table; the user table identifier is used to indicate an address index of a random access memory; In the case where the user table operation instruction is a write instruction, generating a bus write address corresponding to the random access memory based on the user table identifier; Obtaining instruction data corresponding to the user table operation instruction; Using the parameter table identifier as an access index of the target parameter table, accessing the target parameter table and writing the instruction data into the target parameter table according to the data items of the target parameter table; The data in the target parameter table is written into the random access memory according to the bus write address.

2. The user table management method based on the dedicated parameter table according to claim 1, characterized in that: In the case where the user table operation instruction is a read instruction, the method further includes: Generate a bus read address corresponding to the random access memory based on the user table identifier; Reading data from the random access memory according to the bus read address; Writing the read data into the target parameter table; Return the target parameter table to the specified channel or specified interface.

3. The user table management method based on the dedicated parameter table according to claim 1, characterized in that: The parameter table includes a hash parameter table, an array parameter table, a cache parameter table, an index parameter table, an index resource table, a hardware parameter table and a hash-specific clearing table.

4. The user table management method based on the dedicated parameter table according to claim 3 is characterized in that: The user table corresponding to the user table operation instruction is a user array table; the configuration parameters of the user array table include parameters corresponding to the hardware parameter table, parameters corresponding to the array parameter table and cache parameters corresponding to the cache parameter table; The parameter table identification indication includes an identification corresponding to the hardware parameter table, an identification corresponding to the array parameter table, and an identification corresponding to the cache parameter table.

5. The user table management method based on the dedicated parameter table according to claim 4 is characterized in that: Before receiving the user table operation information in response to the received user table operation instruction, the method further includes: Obtain configuration parameters of the user array table; Writing the configuration parameter data into the corresponding parameter table to create the user array table; Each table entry of the user array table is cleared to zero to complete the creation of the user array table.

6. The user table management method based on the dedicated parameter table according to claim 3 is characterized in that: The user table corresponding to the user table operation instruction is a user hash table; the parameter table identification indication includes an identification corresponding to the hardware parameter table, an identification corresponding to the hash parameter table, an identification corresponding to the index parameter table, an identification corresponding to the index resource table, and an identification corresponding to the hash dedicated clearing table; The configuration parameters of the user hash table include parameters corresponding to the hardware parameter table, parameters corresponding to the hash parameter table, parameters corresponding to the index parameter table, parameters corresponding to the index resource table and parameters corresponding to the hash dedicated clearing table.

7. The user table management method based on the dedicated parameter table according to claim 6 is characterized in that: Before receiving the user table operation information in response to the received user table operation instruction, the method further includes: Obtaining configuration parameters of the user hash table; Writing the configuration parameters of the user hash table into the corresponding parameter table to create the user hash table; Generate a zero-clearing array table; the zero-clearing array table overlaps with the DDR space of the user hash table; Each table entry of the clear array table is cleared to achieve clearing of the user hash table, thereby completing the creation of the user hash table.

8. The user table management method based on the dedicated parameter table according to claim 2, characterized in that: The returning the target parameter table to the designated channel or designated interface includes: cutting the data in the target parameter table into data segments according to preset bytes; and sending each data segment to the designated channel or designated interface in sequence.

9. A user table management device based on a dedicated parameter table, comprising a processor and a memory, characterized in that: The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the user table management method based on the dedicated parameter table as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the user table management method based on the dedicated parameter table as claimed in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Method and system for automatic data reduction and storage device

    CN103514249A

  • Cache data processing system and method, computer equipment and storage medium

    CN114860785A