Data processing method and apparatus for FPGA components, and electronic device
By adopting a multi-level indexing method in FPGA and using the master index and slave index to quickly locate target components, the problem of slow and inefficient search speed and low efficiency in the unique number index of FPGA components is solved, and the search speed and efficiency are improved.
Patent Information
- Application Number
- PCT/CN2023/104642
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2023-06-30
- Publication Date
- 2024-09-12
AI Technical Summary
After FPGA is implemented, the unique number index search speed of components is slow and inefficient. Especially in larger-scale FPGAs, memory usage and processing speed problems are prominent.
Use a multi-level indexing method, including the main level and the slave level, to quickly locate the target component through the master index and the slave index. The master index is used for the master level, and the slave index is used for the slave level. Two-dimensional coordinates and relative coordinates are used for storage and search. , improve search efficiency.
It achieves the purpose of quickly searching for target components, improves the search speed and efficiency of FPGA components, and solves the problem of slow speed and low efficiency in unique number index search.
Smart Images

Figure CN2023104642_12092024_PF_FP_ABST
Abstract
Description
Data processing method, device, and electronic device for FPGA components
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 9, 2023, with application number 202310224458.4 and invention name “Data processing method, device, and electronic device for FPGA components”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of design assistance, and more specifically, to a data processing method, device, and electronic device for FPGA components. Background Art
[0004] After an FPGA application is implemented, the components used need to be identified in the UI so that users can view component properties after operation. Components are the programmable devices within the FPGA, such as the Configurable Logic Cluster (CLC) and its internal LUTs (Look Up Tables), MUXs (Multiplexers), and Flip Flops (FFs). This requires utilizing the component storage to quickly search and find properties, providing convenient debugging for users.
[0005] The traditional approach is to number components. When searching for a component, the UI element is assigned a corresponding number, and the search is performed using a unique index. However, this approach has the disadvantage that when the FPGA is implemented on a large scale, the amount of data implemented is enormous. To ensure fast query speed, this data must be stored in memory, resulting in high memory consumption. Furthermore, each FPGA-implemented component must retain an instance to ensure it is located when selected in the UI. This large number of instances results in slow processing.
[0006] In the related art, FPGA components are indexed according to unique numbers, resulting in slow search speed and low efficiency. Currently, no effective solution has been proposed.
[0007] Summary of the Invention
[0008] The main purpose of this application is to provide a data processing method, device, and electronic device for FPGA components to solve the problem in the related art that FPGA components are indexed according to unique numbers, resulting in slow search speed and low efficiency.
[0009] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a data processing method for FPGA components is provided, the method comprising: receiving a message for searching for a target component among multiple components of the FPGA, and obtaining index information of the target component, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and set based on the components of the main level; searching for the target component in the corresponding main level and slave level according to the index information, wherein the index information includes a main index, or a main index and a slave index, the main index is used to search for the corresponding main component in the main level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; obtaining attribute information of the target component.
[0010] Optionally, searching for the target component in the corresponding main level and slave level according to the index information includes: when the index information only includes the main index, searching for the target component in the main level according to the main index; when the index information includes the main index and the slave index, searching for the main component to which the target component belongs in the main level according to the main index; based on the main component to which the target component belongs, searching for the target component among multiple components in the slave level of the main component according to the slave index.
[0011] Optionally, the main level is the top tile level, and the main index is a two-dimensional coordinate, wherein the main components of the top tile level are arranged in two-dimensional rows and columns; according to the main index, searching for the target component in the main level includes: according to the two-dimensional coordinate, searching for the target component in the main components of the top tile level; according to the main index, searching for the main component to which the target component belongs in the main level includes: according to the two-dimensional coordinate, searching for the main component to which the target component belongs in the main components of the top tile level.
[0012] Optionally, the slave level includes: a component site level and a unit element level, and the slave index includes the relative coordinates of the components of each slave level relative to the upper level; according to the slave index, searching for the target component among the multiple components of the slave level of the main component includes: searching for the component to which the target component belongs in the component site level according to the relative coordinates of the main component to which the target component belongs, wherein the component site level is the next level of the main level; searching for the target component, or the component to which the target component belongs, in the unit element level according to the relative coordinates of the component to which the target component belongs in the component site level, until the target component is found, wherein the component site level is the next level of the main level.
[0013] Optionally, the two-dimensional coordinates of the main components in the main level are stored in the form of an array; the relative coordinates of the components in the sub-level are stored in a tree structure, and the relative coordinates are stored in the storage directory of the upper-level main component or component.
[0014] Optionally, before receiving a message for searching for a target component among multiple components of the FPGA and obtaining the primary index and the secondary index of the target component, the method further includes: displaying visual identifications of multiple components of the FPGA, wherein each component uniquely corresponds to a visual identification; and generating the message in response to an operation on the visual identification of the target component.
[0015] Optionally, the attribute information includes: name, location, type, and parameters; after acquiring the attribute information of the target component, the method further includes: displaying the attribute information in a preset display manner.
[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a data processing device for FPGA components is provided, including: a receiving module, used to receive a message for searching for a target component among multiple components of the FPGA, and obtain index information of the target component, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and set based on the components of the main level; a searching module, used to search for the target component in the corresponding main level and slave level according to the index information, wherein the index information includes a main index, or a main index and a slave index, the main index is used to search for the corresponding main component in the main level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; an acquiring module, used to acquire attribute information of the target component.
[0017] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium is used to store a program, wherein the program executes the data processing method for FPGA components described in any one of the above-mentioned methods.
[0018] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method of the FPGA components described in any one of the above-mentioned items.
[0019] This application receives a message for searching for a target component among multiple components of an FPGA, and obtains index information of the target component, wherein the multiple components are divided into multiple levels, including a master level and a slave level, and the components of the slave level are divided and set based on the components of the master level; searches for the target component in the corresponding master level and slave level according to the index information, wherein the index information includes a master index, or a master index and a slave index, the master index is used to search for the corresponding master component in the master level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; and obtains the attribute information of the target component. This achieves the purpose of quickly searching for the target component according to the master index or the master index and the slave index, thereby achieving the technical effect of improving the speed and efficiency of searching for the target component, and thereby solving the problem in the related art that the FPGA components are indexed according to unique numbers, resulting in slow search speed and low efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:
[0021] FIG1 is a flow chart of a data processing method for a component of an FPGA according to an embodiment of the present application;
[0022] FIG2 is a schematic diagram of a main component of a main layer provided according to an embodiment of the present application;
[0023] FIG3 is a schematic diagram of components at the site level according to an embodiment of the present application;
[0024] FIG4 is a schematic diagram of components at the element level according to an embodiment of the present application;
[0025] FIG5 is a schematic diagram of a data processing device for FPGA components according to an embodiment of the present application;
[0026] FIG6 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] The present application is described below in conjunction with preferred implementation steps. FIG1 is a flow chart of a data processing method for an FPGA component provided according to an embodiment of the present application. As shown in FIG1 , the method includes the following steps:
[0031] Step S101: receiving a message for searching for a target component among multiple components of the FPGA, and obtaining index information of the target component, wherein the multiple components are divided into multiple levels, including a master level and a slave level, and the components of the slave level are divided and arranged based on the components of the master level;
[0032] Step S102: searching for a target component in the corresponding master level and slave level according to the index information, wherein the index information includes a master index, or a master index and a slave index, the master index is used to search for a corresponding master component in the master level, and the slave index is used to search for a corresponding slave component in the corresponding slave level;
[0033] Step S103: Acquire attribute information of the target component.
[0034] The above steps obtain index information of the target component by receiving a message for searching for the target component in multiple components of the FPGA, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and set based on the components of the main level; search for the target component in the corresponding main level and slave level according to the index information, wherein the index information includes a main index, or a main index and a slave index, the main index is used to search for the corresponding main component in the main level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; obtain attribute information of the target component.
[0035] The purpose of quickly searching for target components based on the main index or the main index and the sub-index is achieved, thereby achieving the technical effect of improving the speed and efficiency of searching for target components, and thus solving the problem in the related technology that FPGA components are indexed according to unique numbers, resulting in slow search speed and low efficiency.
[0036] The execution subject of the above steps can be the management application or design application of the FPGA, and the management application or design application can be set on a processor, calculator or controller to perform data processing to execute the data processing operations in the above steps, such as steps S101 to S103.
[0037] The design application can be a general code writing tool that writes design data in a fixed language format and generates files in different formats to provide design data for different design scenarios. The management application can collect, manage, and analyze data on FPGA components.
[0038] In step S101, a message for searching for a target component among multiple components of the FPGA is received, and index information of the target component is obtained. The multiple components are divided into multiple levels, including a master level and a slave level, and the components of the slave level are divided and arranged based on the components of the master level.
[0039] The FPGA includes multiple levels of components, including master and slave levels. The slave level refers to the master components within the master level. In other words, each master component in the master level has its own corresponding slave level. The slave levels of different master components can be independent and non-interfering with each other, which improves component search efficiency and avoids logical overlap between components of different master components, which would otherwise widen the search scope.
[0040] Optionally, before receiving a message to search for a target component among multiple components of the FPGA and obtaining the primary index and secondary index of the target component, the method further includes: displaying visual identifications of multiple components of the FPGA, wherein each component uniquely corresponds to a visual identification; and generating a message in response to an operation on the visual identification of the target component.
[0041] The above-mentioned execution entity has a UI interface that interacts with the user. Multiple components or a logic tree of all components of the entire FPGA can be displayed in the UI interface. By clicking on the logic tree, the icons of all components can be viewed. By clicking on the icon of a selected target component, the above-mentioned message can be automatically generated, that is, a message for searching for the target component among multiple components of the FPGA.
[0042] The message carries the target component's master and slave indexes. It should be noted that the target component can be either a master or a slave. If the target component is a master, the message carries the master index, as the master index can be used to locate the target component. If the target component is a slave, the message carries the master index of the master to which the slave belongs, as well as the slave's corresponding slave index.
[0043] After receiving the message, the execution entity searches for the target component based on the primary index, or primary and secondary indexes, carried in the message. If the target component is the primary component, the primary index alone can be used to quickly find the target component.
[0044] If the target component is a slave, the master to which the slave belongs is first quickly found using the master index. Then, based on the smaller number of slaves contained in the master, the corresponding slave is found using the slave index. This ensures efficient and fast search for the target component.
[0045] Optionally, the main level is the top tile level, and the main index is a two-dimensional coordinate, wherein the main components of the top tile level are arranged in two-dimensional rows and columns; according to the main index, searching for the target component in the main level includes: according to the two-dimensional coordinate, searching for the target component in the main components of the top tile level; according to the main index, searching for the main component to which the target component belongs in the main level includes: according to the two-dimensional coordinate, searching for the main component to which the target component belongs in the main components of the top tile level.
[0046] In this embodiment, the master layer is the top tile layer, where data is relatively sparse. To ensure efficient implementation, at this layer, the main components implemented are placed in the same top tile layer as much as possible. The main components of the top tile layer are arranged in a regular rectangular X, Y coordinate system, as shown in Figure 2. Therefore, the X, Y coordinates of the user operation can be used to quickly locate the top tile layer.
[0047] The above step S102 searches for the target component in the corresponding master level and slave level according to the index information, wherein the index information includes a master index, or a master index and a slave index, the master index is used to search for the corresponding master component in the master level, and the slave index is used to search for the corresponding slave component in the corresponding slave level.
[0048] Optionally, searching for a target component in a corresponding main level and a sub-level according to the index information includes:
[0049] When the index information includes only the main index, the target component is searched in the main hierarchy according to the main index;
[0050] When the index information includes a main index and a sub-index, the main component to which the target component belongs is searched in the main hierarchy according to the main index; based on the main component to which the target component belongs, the target component is searched among multiple components in the sub-hierarchy of the main component according to the sub-index.
[0051] In the case where the index information only includes the primary index, the corresponding target component will be searched based on the primary index carried in the message. During the search, the target component can be quickly found based on the primary index alone.
[0052] If the index information includes both a master index and a slave index, the corresponding target component is searched for based on the master and slave indexes carried in the message. During the search, the master component to which the slave component belongs is quickly identified using the master index. Then, based on the smaller number of slaves contained within that master component, the corresponding slave component is searched using the slave index. This ensures efficient and fast search for the target component.
[0053] Optionally, the slave level includes: a component site level, a unit element level, and the slave index includes relative coordinates of each slave level relative to the components of the upper level; searching for a target component among multiple components of the slave level of the master device according to the slave index includes:
[0054] According to the relative coordinates of the main component to which the target component belongs, search for the component to which the target component belongs in the component site level, where the component site level is the next level below the main level; according to the relative coordinates of the component to which the target component belongs in the component site level, search for the target component, or the component to which the target component belongs, in the unit element level until the target component is found, where the component site level is the next level below the main level.
[0055] This embodiment provides two slave levels of the master device CLC on the basis of the top tile level being the master level, which are respectively the component site level and the unit element level from top to bottom.
[0056] Figure 3 is a schematic diagram of the components at the site level provided according to the implementation method of the present application. As shown in Figure 3, the component site level of the master device CLC includes a switch hub Switch_Hub, an input multiplexer Input_Mux, an output multiplexer Output_Mux, an input logic multiplexer Input2logic_Mux, a function module Function Block and other slave devices.
[0057] FIG4 is a schematic diagram of components at the unit element level provided according to an embodiment of the present application. As shown in FIG4 , the unit element level of the Function Block includes multiple LUTs, multiple CLAs, multiple FFs and other slave devices.
[0058] Components at different levels use different coordinates and are stored in different ways. Within a CLC, you can use relative coordinates to locate a site, such as a function block located at relative coordinates (2, 2) within the CLC. Within that function block, you can continue to use relative coordinates to locate an element, such as a LUT located at relative coordinates (0, 0).
[0059] Optionally, the two-dimensional coordinates of the main components in the main level are stored in the form of an array; the relative coordinates of the components in the subordinate level are stored in a tree structure, and the relative coordinates are stored in the storage directory of the upper-level main component or component.
[0060] The coordinates of all master components are stored in an array for quick lookup and retrieval. Components below the top tile level use relative coordinates, and each slave component stores its own relative coordinates and those of the previous level, storing them in a tree structure for quick and orderly traversal during querying.
[0061] In step S103, the attribute information of the target component is obtained. Optionally, the attribute information includes: name, location, type, and parameters. After obtaining the attribute information of the target component, the method further includes: displaying the attribute information in a preset display mode.
[0062] After the attribute information of the target component is acquired, it may be displayed on the UI interface of the execution entity, so as to show the attribute information of the selected target component to the user.
[0063] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0064] It should be noted that the present application also provides an optional implementation, which is described in detail below.
[0065] This implementation provides efficient positioning and retrieval of FPGA-implemented components in the UI tool. According to the characteristics of FPGA implementation, components are first hierarchical. The top layer is the top tile layer, which has a strict rectangular coordinate format (X, Y coordinates). Then there are layers, and each component also has relative coordinates of the layer.
[0066] Looking more closely at the data's characteristics: The top-level tile layer of an FPGA is relatively sparsely populated. To ensure efficient implementation, at this level, the main components of the implementation are placed in the same top-level tile layer as much as possible. The main components of the top-level tile layer are arranged in a regular rectangular X, Y coordinate system. Therefore, the X, Y coordinates of a user operation can be used to quickly locate the top-level tile layer.
[0067] FIG2 is a schematic diagram of a master component of a main layer according to an embodiment of the present application. As shown in FIG2 , the master components (such as the Pad and CLC in FIG2 ) of the top tile layer are arranged in a rectangular manner according to the x, y coordinate system. The input (x, y) coordinates can be used to locate a specific and unique master component. After locating the master component, the specific master component selected within the master component is confirmed based on the relative coordinates and the stored fixed position information.
[0068] In this way, when drawing, there is no need to retain the actual instance. It only needs to be positioned according to the X, Y coordinates and the actual multi-level index storage when the user operates.
[0069] An example of the positioning process: First, locate a main component based on the input (x, y) coordinates, such as the CLC at (1, 1).
[0070] In the CLC, relative coordinates can be used to locate a component site level. Figure 3 is a schematic diagram of components at the component site level provided according to an embodiment of the present application. As shown in Figure 3, the Function Block is located at the relative coordinate position (2, 2) inside the CLC.
[0071] In this Function Block, relative coordinates can continue to be used to locate a unit element level. Figure 4 is a schematic diagram of a unit element level component provided according to an embodiment of the present application. As shown in Figure 4, the LUT located at the relative coordinate (0, 0) inside it. This multi-level indexing method is used to locate specific components.
[0072] Components at different levels use different coordinates and are stored in different ways. In the top tile level, (x,y) coordinates are used to store the coordinates of all the main components in the top tile level in an array.
[0073] For components below the top tile level, relative coordinates are used, and each component saves its own relative coordinates and the coordinates of the previous level, which are stored in a tree structure.
[0074] First, use (x, y) coordinates to locate the main component. Use relative coordinates within the main component to index the components at the next level. Continue to use relative coordinates to index within the components at the next level until you locate the component for the specific application.
[0075] Taking advantage of the characteristics of FPGA, a multi-level index storage method is adopted to improve the retrieval speed, eliminating the need to save too many instances when drawing the UI, and improving display efficiency.
[0076] Examples of specific application scenarios:
[0077] The top tile level has the main components of the Pad and CLC, which are positioned using (x,y) coordinates.
[0078] After locating a specific main device (such as a CLC), use relative coordinates to index the components inside the CLC (including Function Blocks, Switch_Hubs, etc.). After indexing to a Function Block, use relative coordinates to index the components inside the CLC, including CLAs (Carry-Lookahead Adders), LUTs, FFs, etc.).
[0079] After locating, it is used to view the attribute information of the component, such as name, location, device type, etc.
[0080] The reason for the improved search speed is that the arrangement of components at the top tile level is regular and sparse, and the number of sub-level components included inside is huge. First, use the (x, y) coordinates to quickly index to the specified main component, and then locate the specific component internally through hierarchical indexing.
[0081] Compared with the common search for all element index numbers, this embodiment can quickly locate specific internal components.
[0082] Figure 5 is a schematic diagram of a data processing device for an FPGA component according to an embodiment of the present application. As shown in Figure 5 , this embodiment of the present application also provides a data processing device for an FPGA component. It should be noted that the data processing device for an FPGA component according to this embodiment of the present application can be used to execute the data processing method for an FPGA component according to this embodiment of the present application. The data processing device for an FPGA component provided in this embodiment of the present application is described below. The device includes a receiving module 51, a search module 52, and an acquisition module 53, as described below.
[0083] A receiving module 51 is used to receive a message for searching for a target component among multiple components of the FPGA, and obtain index information of the target component, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and set based on the components of the main level; a searching module 52 is connected to the above-mentioned receiving module 51, and is used to search for the target component in the corresponding main level and slave level according to the index information, wherein the index information includes a main index, or a main index and a slave index, the main index is used to search for the corresponding main component in the main level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; an acquiring module 53 is connected to the above-mentioned searching module 52, and is used to obtain attribute information of the target component.
[0084] The data processing device of the components of the above-mentioned FPGA obtains index information of the target component by receiving a message for searching for the target component in multiple components of the FPGA, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and arranged based on the components of the main level; searches for the target component in the corresponding main level and slave level according to the index information, wherein the index information includes a main index, or a main index and a slave index, the main index is used to search for the corresponding main component in the main level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; obtains attribute information of the target component.
[0085] The purpose of quickly searching for target components based on the main index or the main index and the sub-index is achieved, thereby achieving the technical effect of improving the speed and efficiency of searching for target components, and thus solving the problem in the related technology that FPGA components are indexed according to unique numbers, resulting in slow search speed and low efficiency.
[0086] The data processing device of the FPGA components includes a processor and a memory. The above-mentioned receiving module 51, search module 52, acquisition module 53, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0087] The processor includes a core, which retrieves the corresponding program unit from memory. One or more cores can be configured. By adjusting the core parameters, this solves the problem of FPGA components being indexed by unique numbers, resulting in slow and inefficient search speeds.
[0088] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0089] An embodiment of the present application provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements a data processing method for components of the FPGA.
[0090] An embodiment of the present application provides a processor, which is used to run a program, wherein the program executes the data processing method of the components of the FPGA when running.
[0091] FIG6 is a schematic diagram of an electronic device provided according to an embodiment of the present application. As shown in FIG6 , an embodiment of the present application provides an electronic device 60, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps of the data processing method for the components of the FPGA are implemented as follows:
[0092] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0093] The present application also provides a computer program product, which, when executed on a data processing device of an FPGA component, is suitable for executing a program initialized with any of the above method steps.
[0094] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0095] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present application. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions.
[0096] These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or a data processing device of other programmable FPGA components to produce a machine, so that the instructions executed by the processor of the computer or other data processing device of the programmable FPGA component produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0097] These computer program instructions may also be stored in a computer-readable memory that can guide a data processing device of a computer or other programmable FPGA component to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0098] These computer program instructions can also be loaded onto a data processing device of a computer or other programmable FPGA component, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0099] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0100] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0101] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0102] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a..." does not preclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0104] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A data processing method for FPGA components, characterized in that: The method comprises: Receive a message for searching a target component among multiple components of the FPGA, and obtain index information of the target component, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and arranged based on the components of the main level; Searching for the target component in the corresponding master level and slave level according to the index information, wherein the index information includes a master index, or a master index and a slave index, the master index is used to search for the corresponding master component in the master level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; Obtaining attribute information of the target component.
2. The method according to claim 1, characterized in that: Searching for the target component in the corresponding main level and sub-level according to the index information includes: In a case where the index information includes only a primary index, searching for the target component in the primary level according to the primary index; In a case where the index information includes a primary index and a secondary index, searching the primary device to which the target component belongs in the primary hierarchy according to the primary index; Based on the main device to which the target component belongs, the target component is searched for in a plurality of components at the slave level of the main device according to the slave index.
3. The method according to claim 2, characterized in that The main level is the top level, and the main index is a two-dimensional coordinate, wherein the main components of the top level are arranged in two-dimensional rows and columns; Searching for the target component in the main level according to the main index includes: According to the two-dimensional coordinates, searching for the target component in the main components of the top level; Searching, according to the main index, in the main level for a main device to which the target component belongs comprises: According to the two-dimensional coordinates, the main component to which the target component belongs is searched in the main components of the top level.
4. The method according to claim 3, characterized in that The sub-levels include: component level, unit level, and the sub-index includes the relative coordinates of each sub-level relative to the components of the upper level; Searching for the target component among a plurality of components at a slave level of the master device according to the slave index comprises: According to the relative coordinates of the main device to which the target component belongs, the target component is searched in the component level. The component to which the target component belongs, wherein the component level is a level below the main level; According to the relative coordinates of the component to which the target component belongs in the component level, the target component or the component to which the target component belongs is searched in the unit level until the target component is found, wherein the component level is a level below the main level.
5. The method according to claim 4, characterized in that The two-dimensional coordinates of the master components in the master level are stored in the form of an array; The relative coordinates of the components in the slave level are stored in a tree structure, and the relative coordinates are stored in the storage directory of the upper-level master component or component.
6. The method according to claim 1, characterized in that Before receiving a message for searching for a target component among multiple components of the FPGA and obtaining a primary index and a secondary index of the target component, the method further includes: Displaying visual identifications of multiple components of the FPGA, wherein each component uniquely corresponds to a visual identification; The message is generated in response to an operation on the visual identification of the target component.
7. The method according to claim 1, characterized in that The attribute information includes: name, location, type, and parameters; After acquiring the attribute information of the target component, the method further includes: The attribute information is displayed in a preset display manner.
8. A data processing device for FPGA components, characterized in that: include: A receiving module, used to receive a message for searching a target component among multiple components of the FPGA, and obtain index information of the target component, wherein the multiple components are divided into multiple levels, including a main level and a slave level, and the components of the slave level are divided and arranged based on the components of the main level; A search module, used to search for the target component in the corresponding master level and slave level according to the index information, wherein the index information includes a master index, or a master index and a slave index, the master index is used to search for the corresponding master component in the master level, and the slave index is used to search for the corresponding slave component in the corresponding slave level; The acquisition module is used to acquire the attribute information of the target component.
9. A computer-readable storage medium, characterized in that: The storage medium is used to store a program, wherein the program executes the data processing method for components of the FPGA according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method of the components of the FPGA described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for realizing graphic dynamic distribution index of electric network
CN101587487A
Array device positioning method and device, storage medium and electronic equipment
CN111951693A
Index establishment method, data query method and computing equipment
CN113297138A
Network information planning method and device
CN115277441A
Data processing method and device for components of FPGA (Field Programmable Gate Array), and electronic equipment
CN116186048A
Cited By
Data preprocessing method and device of service district, electronic equipment and storage medium
CN120509684A
