STDF file parsing method, device, equipment, and medium
By dividing the STDF file into multiple data blocks and performing parallel analysis of multiple processes, combined with the storage strategy of the target STDF graph, the problems of low parsing efficiency and high memory usage in the existing technology are solved, and efficient file parsing and resource management are achieved.
Patent Information
- Application Number
- CN202411560700.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-04-04
AI Technical Summary
The existing STDF file parsing method takes a long time to parse larger files and occupies memory for a long time, affecting the parsing efficiency.
Divide the STDF file to be parsed into multiple data blocks, and perform multi-process parallel parsing on each data block. Combined with the target STDF graph, store the parsing results in the specified location of the database, and quickly release memory.
Through block parallel parsing and storage strategies of target STDF graphs, the parsing efficiency of STDF files is significantly improved, memory usage is reduced, and resource acquisition for other file parsing operations is ensured.
Smart Images

Figure CN119759850A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of semiconductor testing technology, and in particular to a method, device, equipment, and medium for parsing an STDF file. Background Art
[0002] During the production process of chips or wafers, they need to be tested. The number of tests can reach millions, and the size of the test data files generated during the test can reach hundreds of megabytes. STDF is a standard test data file, which is a storage specification for chip test data in the semiconductor industry. This storage specification uses a unified format to save all test data files, so usually you only need to parse one STDF file to do a 360-degree analysis of the chip test results.
[0003] Most of the existing parsing methods for STDF files are to read multiple STDF files sequentially in a single process and then save the data in the required format. However, this method takes a long time to parse large STDF files and will occupy memory for a long time, affecting the parsing efficiency of STDF files. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device, and storage medium for parsing an STDF file, which can effectively improve the parsing efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for parsing an STDF file, which is applied to an STDF file parsing device, and the method includes:
[0006] Divide the STDF file to be parsed into multiple data blocks, and perform data parsing on each of the data blocks to obtain each first parsing result, wherein each of the first parsing results corresponds to a data type identifier;
[0007] Obtain a target STDF graph, wherein the target STDF graph includes a plurality of key values, wherein different key values are used to indicate different reference data types in the same STDF file, and different key values are associated with different storage spaces;
[0008] Searching for each first target key value corresponding to each data type identifier from all the key values, storing each first parsing result into the storage space associated with each corresponding first target key value, and releasing memory;
[0009] Acquire parsing requirement information, wherein the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to the data type identifier;
[0010] A second target key value corresponding to the target identifier is searched from all the key values, and a first target parsing file is generated based on the first parsing result stored in the storage space associated with the second target key value.
[0011] In some embodiments, dividing the STDF file to be parsed into multiple data blocks includes:
[0012] Determine a first file size of the STDF file to be parsed;
[0013] The STDF file to be parsed is divided into data based on a preset data block size and the file size to obtain a plurality of data blocks, wherein the data block sizes of the data blocks are the same.
[0014] In some embodiments, searching for each first target key value corresponding to each data type identifier from all the key values, and storing each first parsing result in the storage space associated with each corresponding first target key value, includes:
[0015] Determine the data size of all current first parsing results;
[0016] When the data size is greater than a preset threshold, each first target key value corresponding to each data type identifier is searched from all the key values, and each first parsing result is stored in the storage space associated with each corresponding first target key value.
[0017] In some embodiments, obtaining the parsing requirement information includes:
[0018] Generate a visualization interface, and display a plurality of first fields in the visualization interface, wherein each of the first fields is used to indicate a different STDF data type;
[0019] Acquire a first target field selected by a user from the plurality of first fields;
[0020] The parsing requirement information is generated based on the first target field.
[0021] In some embodiments, each of the target parsing files includes a plurality of parsing data. After generating a first target parsing file based on the first parsing result stored in the storage space associated with the second target key value, the method further includes:
[0022] Determining the current system performance of the STDF file parsing device;
[0023] Determine a target display data volume based on the current system performance, wherein the target display data volume is the data volume of the parsed data displayed on a single page in the visualization interface;
[0024] Dividing all the parsed data based on the target display data volume to obtain multiple data sets, and loading each of the data sets into a corresponding target page;
[0025] In response to a page turning request from a user, each of the target pages is displayed on the visual interface.
[0026] In some embodiments, the number of the STDF files to be parsed is multiple, the number of the target parsing files is multiple, and after generating a first target parsing file based on the first parsing result stored in the storage space associated with the second target key value, the method further includes:
[0027] A plurality of second fields and a plurality of third fields are displayed on the visual interface, wherein each of the second fields is used to indicate a different export file type, each of the third fields is used to indicate a different file identifier, and each of the file identifiers corresponds to each of the target parsed files one by one;
[0028] Acquire a second target field selected by a user from a plurality of the second fields, and acquire a third target field selected by a user from a plurality of the third fields;
[0029] A reference parsing file corresponding to the third target field is determined from all the first target parsing files, and the reference parsing file is format-converted based on the target export file type corresponding to the second target field to obtain a second target parsing file.
[0030] In a second aspect, an embodiment of the present application provides a control device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the STDF file parsing method described in the first aspect.
[0031] In a third aspect, an embodiment of the present application further provides an electronic device, comprising the control device of the second aspect.
[0032] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the STDF file parsing method as described in the first aspect.
[0033] An embodiment of the present application provides a method, apparatus, device, and storage medium for parsing an STDF file, wherein the method includes: dividing the STDF file to be parsed into multiple data blocks, and simultaneously performing data parsing on each of the data blocks to obtain each first parsing result, wherein each of the first parsing results corresponds to a data type identifier; obtaining a target STDF graph, wherein different key values are used to indicate different reference data types in the same STDF file, and different key values are associated with different storage addresses, and different storage addresses correspond to different storage spaces in a database; searching for each first target key value corresponding to each of the data type identifiers from all of the key values, storing each of the first parsing results in the storage space associated with each of the first target key values, and releasing memory; obtaining parsing requirement information, wherein the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to the data type identifier; searching for a second target key value corresponding to the target identifier from all of the key values, and generating a first target parsing file based on the first parsing result stored in the storage space associated with the second target key value. According to the solution provided in the embodiment of the present application, when parsing multiple STDF files, each STDF file is divided into blocks and parsed in parallel using multiple processes, and the parsing results are stored in the specified location of the database in combination with the target STDF graph, so that the memory is quickly released, allowing the parsing operations of other STDF files that have not been parsed to enjoy more memory resources, thereby improving the parsing efficiency of the STDF files. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flowchart of the steps of a method for parsing an STDF file provided by an embodiment of the present application;
[0035] Figure 2 is a schematic diagram of the data structure of a target STDF graph provided by another embodiment of the present application;
[0036] Figure 3 It is a module schematic diagram of an STDF file parsing device provided by another embodiment of the present application;
[0037] Figure 4 It is a structural diagram of an STDF file parsing device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0039] It is understood that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flow chart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0040] During the production process of chips or wafers, they need to be tested. The number of tests can reach millions, and the size of the test data files generated during the test can reach hundreds of megabytes. STDF is a standard test data file, which is a storage specification for chip test data in the semiconductor industry. This storage specification uses a unified format to save all test data files, so usually you only need to parse one STDF file to do a 360-degree analysis of the chip test results.
[0041] Most of the existing parsing methods for STDF files are to read multiple STDF files sequentially in a single process and then save the data in the required format. However, this method takes a long time to parse large STDF files and will occupy memory for a long time, affecting the parsing efficiency of STDF files.
[0042] To solve the above-mentioned problems, an embodiment of the present application provides a method, apparatus, device, and storage medium for parsing an STDF file, wherein the method includes: dividing the STDF file to be parsed into multiple data blocks, and performing data parsing on each of the data blocks to obtain each first parsing result, wherein each of the first parsing results corresponds to a data type identifier; obtaining a target STDF graph, wherein different key values are used to indicate different reference data types in the same STDF file, different key values are associated with different storage addresses, and different storage addresses correspond to different storage spaces in a database; searching for each first target key value corresponding to each of the data type identifiers from all of the key values, storing each of the first parsing results in the storage space associated with each of the first target key values, and releasing memory; obtaining parsing requirement information, wherein the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to the data type identifier; searching for a second target key value corresponding to the target identifier from all of the key values, and generating a first target parsing file based on the first parsing result stored in the storage space associated with the second target key value. According to the solution provided in the embodiment of the present application, when parsing multiple STDF files, each STDF file is divided into blocks and parsed in parallel using multiple processes, and the parsing results are stored in the specified location of the database in combination with the target STDF graph, so that the memory is quickly released, allowing the parsing operations of other STDF files that have not been parsed to enjoy more memory resources, thereby improving the parsing efficiency of the STDF files.
[0043] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0044] refer to Figure 1 , Figure 1 1 is a flowchart of a method for parsing an STDF file provided by an embodiment of the present application. The present application embodiment provides a method for parsing an STDF file, which is applied to an STDF file parsing device, and the method includes but is not limited to the following steps:
[0045] Step S10, dividing the STDF file to be parsed into multiple data blocks, and performing data parsing on each data block to obtain each first parsing result, wherein each first parsing result corresponds to a data type identifier.
[0046] It should be noted that the division method of the STDF files to be parsed in this embodiment is based on the file size. Specifically, in some embodiments, Figure 1 Step S10 of dividing the STDF file to be parsed into multiple data blocks includes but is not limited to the following steps:
[0047] Step S11, determining the first file size of the STDF file to be parsed;
[0048] Step S12, dividing the STDF file to be parsed based on a preset data block size and file size to obtain a plurality of data blocks, wherein the data block sizes of the data blocks are the same.
[0049] It should be noted that the data block size and the specific number of equal parts of the present embodiment can be adjusted by technical personnel in this field according to actual conditions. For example, the minimum size of each data block is limited to 10 to 40 MB, and the specific number of equal parts is 5 to 8 according to the specific value of the first file size of the STDF file to be parsed.
[0050] Specifically, the data type identifier corresponding to each first parsing result in this embodiment is the standard format header of each first parsing result, and the standard format header includes a REC_TYP identifier and a REC_SUB identifier, wherein the REC_SUB identifier is used to characterize the major category of the data type of the corresponding first parsing result, and the REC_TYP identifier is used to characterize the subcategory of the data type of the corresponding first parsing result in the major category corresponding to the REC_SUB identifier. Since the database of this embodiment is divided into mutually independent storage spaces for parsing results of different data types, the data type identifier in the format of the standard format header can enable parallel warehousing to the corresponding storage space based on the independence of each different parsing result in the subsequent warehousing of the first parsing result, effectively preventing the occurrence of database read-write conflicts, while improving the warehousing efficiency and realizing rapid release of memory. Since step S10 corresponds to the parsing operation of a single STDF file to be parsed, after the memory is quickly released, more memory resources can be provided for other STDF files that have not been parsed to perform parsing operations, thereby providing effective support for improving the parsing efficiency of STDF.
[0051] Step S20, obtaining a target STDF graph, the target STDF graph includes multiple key values, wherein different key values are used to indicate different reference data types in the same STDF file, and different key values are associated with different storage spaces.
[0052] Specifically, the target STDF graph of this embodiment arranges each key value in the order of data types in the STDF specification manual. Each key value in the target STDF graph has a mapping relationship with the address corresponding to the storage space of the database. The target STDF graph is used to find the storage space corresponding to the key value of each first parsing result in the target STDF graph, providing an effective data basis for storing or retrieving the first parsing result of the parsed STDF file in the database.
[0053] Specifically, the database of the present embodiment is based on all key values corresponding to the target STDF figure, and enough storage space capacity is reserved to prevent the number of data elements included in different data types such as Far (file header record) and Atr (test equipment information record) from being inconsistent. Each storage space of the database of the present embodiment is divided according to the order of arrangement of each key value in the target STDF figure, and each storage space is associated with each key value, so that when the warehousing operation of the first parsing result is subsequently performed, data is inserted sequentially according to the data type, and this design can ensure that all data can be properly stored and managed. The present embodiment does not limit the specific storage space capacity, and 40 value spaces can be reserved, and those skilled in the art can determine it according to actual conditions.
[0054] Specifically, the graph structure of the target STDF graph of this embodiment can be as follows: Figure 3 As shown, Record represents a complete STDF file record, which includes Far (file header record), Atr (test equipment information record), Mrr (test data record) and other major categories in sequence. The Far (file header record) category includes CPU_TYPE:U1 (CPU type written to the STDF file) and STDF_VER:U1 (version of the STDF specification for generating data); Atr (test equipment information record) includes MOD_TIM:U4 (date and time of STDF file modification), CMD_LINE:Cn (program command line); Mrr (test data record) includes FINISH_T:U4 (date and time of the last test component), DISP_COD:C1 (batch processing code), USR_DESC:Cn (batch description provided by the user) and EXC_DESC:Cn (batch description). Among them, CPU_TYPE:U1, STDF_VER:U1, MOD_TIM:U4, CMD_LINE:Cn, FINISH_T:U4, DISP_COD:C1, USR_DESC:Cn, and EXC_DESC:Cn are all key values associated with the storage space.
[0055] Step S30, searching for each first target key value corresponding to each data type identifier from all key values, storing each first parsing result into a storage space associated with each corresponding first target key value, and releasing memory.
[0056] It can be understood that, with reference to the description of the above embodiment, the key-value mapping relationship in the target STDF graph is utilized to search in parallel for each first target key value corresponding to the data type identifier corresponding to each first parsing result, and the corresponding first parsing results are stored in turn in their respective corresponding database storage spaces, thereby releasing the memory resources occupied by all first parsing results stored in the database, allowing the parsing operations of other STDF files that have not been parsed to enjoy more memory resources, thereby improving the parsing efficiency of the STDF files.
[0057] Specifically, in some embodiments, Figure 1 Step S30 includes but is not limited to the following steps:
[0058] Step S31, determining the data size of all current first parsing results;
[0059] Step S32, when the data size is greater than a preset threshold, each first target key value corresponding to each data type identifier is searched from all key values, and each first parsing result is stored in a storage space associated with each corresponding first target key value.
[0060] It can be understood that this embodiment does not limit the specific timestamp of storing the first parsing result obtained by the current parsing into the database. It can be that the storage operation is triggered immediately after each first parsing result is obtained, or it can be that during the parsing process, by determining the data size of all the current first parsing results, when the data size is greater than a preset threshold, all the key values are searched for each first target key value corresponding to each data type identifier, and each first parsing result is stored in the storage space associated with the corresponding first target key value, that is, by setting a data size threshold (that is, the preset threshold), it is used to compare with the data size of the first parsing result currently occupying the memory. When the data size is greater than the preset threshold, the first parsing result is written to the database to release the corresponding memory occupancy, so as to reduce the impact on the parsing efficiency of other STDF files and achieve fast parsing of the file.
[0061] Step S40, obtaining parsing requirement information, the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to a data type identifier.
[0062] Specifically, the parsing requirement information of this embodiment is used to indicate the data type identifier contained in the target parsing file selected by the user as needed. Obtaining the parsing requirement information can extract parsing data of the corresponding data type from the database, thereby providing an effective data basis for generating a first target parsing file that meets user needs.
[0063] It is understandable that, referring to Figure 3The target STDF graph, an STDF file has information corresponding to many data types. Traditional target parsing files generate data of all data types according to fixed templates. After the user obtains the parsing file, it is necessary to spend extra time to filter the required target data from a large number of data. Based on this, the present application obtains the parsing requirement information before generating the first target parsing file, and realizes the extraction of the data type data corresponding to the parsing requirement information from the database on demand to generate the first target parsing file that meets the user's needs, thereby improving the user experience. In addition, the method of generating the first target parsing file based on the parsing requirement information selected by the user reduces a certain amount of memory usage compared to the method of generating the first target parsing file according to a fixed template by generating the data of all data types corresponding to the target STDF graph stored in the database. It effectively improves the efficiency of STDF file parsing.
[0064] Specifically, in some embodiments, Figure 1 Step S40 includes but is not limited to the following steps:
[0065] Step S41, generating a visualization interface, and displaying a plurality of first fields in the visualization interface, wherein each first field is used to indicate a different STDF data type;
[0066] Step S42, obtaining a first target field selected by a user from a plurality of first fields;
[0067] Step S43: Generate parsing requirement information based on the first target field.
[0068] It can be understood that the parsing requirement information of this embodiment is obtained according to the following steps: generating a visual interface, and displaying multiple first fields in the visual interface (the number of first fields is the same as the number of key values in the target STDF diagram), wherein each first field is used to indicate a different STDF data type; obtaining a first target field selected by a user from multiple first fields; generating parsing requirement information based on the first target field. After logging into the STDF file parsing device, the user (such as a chip tester) selects the first target field as needed in the first field in the visual interface generated by the STDF file parsing device, for example, selecting the first field 1 (corresponding to FINISH_T:U4) and the first field 2 (DISP_COD:C1), which can provide an effective data basis for generating a first target parsing file including the date and time of the last test component and the batch processing code.
[0069] Step S50: searching for a second target key value corresponding to the target identifier from all the key values, and generating a first target parsing file based on a first parsing result stored in a database associated with the second target key value.
[0070] Specifically, referring to the description of the above embodiment, a second target key value corresponding to the target identifier is searched from all key values, and a first target parsing file is generated based on the first parsing result stored in the database associated with the second target key value. This can realize on-demand extraction of data type data corresponding to the target identifier of the parsing requirement information from the database to generate a first target parsing file that meets user needs, thereby improving user experience.
[0071] It is understandable that the present embodiment is a multi-threaded parallel parsing processing method for multiple data blocks of a single STDF file. When there are multiple STDF files to be parsed at the same time, each STDF file is also parsed in parallel by multiple threads. In this case, the parsing operation of each STDF file is such as step S10 to step S50 of the present embodiment, which will not be described in detail here. In the case of parsing multiple STDF files, the present embodiment performs block multi-process parallel parsing on each STDF file, and stores the parsing result to the database specified position in combination with the target STDF graph, and quickly releases the memory so that the parsing operation of other unparsed STDF files can enjoy more memory resources, thereby improving the parsing efficiency of the STDF file; at the same time, in the process of generating the first target parsing file according to the first parsing result stored in the database, the target data type data is extracted from the database based on the parsing requirement information indicating the user's customized requirements to generate the first target parsing file that meets the user's needs, while improving the user experience, compared with the method of generating the first target parsing file according to the fixed template of the data of all data types corresponding to the target STDF graph stored in the database, a certain memory usage is reduced, and the STDF file parsing efficiency is effectively improved.
[0072] In addition, in some embodiments, each target parsing file includes multiple parsing data. After executing step S50, the parsing method of the STDF file of this embodiment further includes but is not limited to the following steps:
[0073] Step S61, determining the current system performance of the STDF file parsing device;
[0074] Step S62, determining a target display data volume based on current system performance, wherein the target display data volume is the volume of parsed data displayed on a single page in the visualization interface;
[0075] Step S63, dividing all parsed data based on the target display data volume to obtain multiple data sets, and loading each data set into a corresponding target page;
[0076] Step S64, in response to the user's page turning request, displaying each target page on the visual interface.
[0077] It can be understood that after obtaining the first target parsed file, this embodiment also provides a function of displaying data of the first target parsed file, determines an acceptable target display data volume based on the current system performance of the STDF file parsing device, divides all parsed data based on the target display data volume to obtain multiple data sets, and loads each data set into a corresponding target page. The current system performance can support the display operation of each target page corresponding to the data volume of each data set. In response to the user's page turning request, a preset number of parsed data can be displayed in pages in the visual interface, and page number switching and jumping are supported, thereby improving loading efficiency and reducing memory consumption.
[0078] Specifically, the embodiment of the present application does not limit the amount of parsed data displayed on each target page, and those skilled in the art may adjust it according to the actual situation of the current system performance, for example, displaying 100 pieces of parsed data per page.
[0079] In addition, in some embodiments, there are multiple STDF files to be parsed and multiple target parsing files. After executing step S50, the STDF file parsing method of this embodiment further includes but is not limited to the following steps:
[0080] Step S65, a plurality of second fields and a plurality of third fields are displayed on the visual interface, wherein each second field is used to indicate a different export file type, each third field is used to indicate a different file identifier, and each file identifier corresponds to each target parsed file one by one;
[0081] Step S66, obtaining a second target field selected by the user from a plurality of second fields, and obtaining a third target field selected by the user from a plurality of third fields;
[0082] Step S67, determining a reference parsing file corresponding to the third target field from all first target parsing files, converting the format of the reference parsing file based on the target export file type corresponding to the second target field, and obtaining a second target parsing file.
[0083] Specifically, this embodiment does not limit the specific number of the second target field and the third target field, and each may be one or more.
[0084] It can be understood that after obtaining the first target parsing file, this embodiment also provides a function of exporting the first target parsing file according to user needs, and the specific steps are as follows: multiple second fields and multiple third fields are displayed on the visual interface, wherein each second field is used to indicate a different export file type, and each third field is used to indicate a different file identifier, and each file identifier corresponds to each target parsing file one by one; obtain the second target field selected by the user from the multiple second fields, and obtain the third target field selected by the user from the multiple third fields; determine the reference parsing file corresponding to the third target field from all the first target parsing files, and convert the format of the reference parsing file based on the target export file type corresponding to the second target field to obtain the second target parsing file. In this way, when the number of second target fields and third target fields is multiple, a multi-threaded method is used to support multiple first parsing files to simultaneously export multiple different export file types (for example, STDF, CSV, TXT, EXCEL and other format types), and obtain multiple second target parsing files, thereby improving the user experience and avoiding frequent parsing operations.
[0085] In addition, refer to Figure 3 The present application also provides a STDF file parsing device 300, the TDF file parsing device 300 comprising:
[0086] The parsing module 310 is used to divide the STDF file to be parsed into multiple data blocks, and perform data parsing on each data block to obtain each first parsing result, wherein each first parsing result corresponds to a data type identifier;
[0087] A first data acquisition module 320, used to acquire a target STDF graph, wherein different key values are used to indicate different reference data types in the same STDF file, different key values are associated with different storage addresses, and different storage addresses correspond to different storage spaces in the database;
[0088] The data storage module 330 is used to search for each first target key value corresponding to each data type identifier from all key values, store each first parsing result in a storage space associated with each corresponding first target key value, and release memory;
[0089] The second data acquisition module 340 is used to acquire parsing requirement information, where the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to a data type identifier;
[0090] The target parsing file generating module 350 is used to search for a second target key value corresponding to the target identifier from all key values, and generate a first target parsing file based on a first parsing result stored in a database associated with the second target key value.
[0091] It should be noted that the specific implementation of the STDF file parsing device is basically the same as the specific implementation example of the above-mentioned STDF file parsing method, and will not be repeated here.
[0092] like Figure 4 As shown, Figure 4 400 is a structural diagram of an STDF file parsing device provided by an embodiment of the present application. The present invention also provides an STDF file parsing device 400, comprising:
[0093] The processor 410 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0094] The memory 420 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 420 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 420, and the processor 410 calls and executes the XXX method of the embodiment of this application;
[0095] Input / output interface 430, used to implement information input and output;
[0096] Communication interface 440, used to realize communication interaction between the apparatus and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WI FI, Bluetooth, etc.);
[0097] bus 450 , which transmits information between the various components of the device (e.g., processor 410 , memory 420 , input / output interface 430 , and communication interface 440 );
[0098] The processor 410 , the memory 420 , the input / output interface 430 , and the communication interface 440 are connected to each other in communication within the device via the bus 450 .
[0099] In addition, an embodiment of the present application further provides an electronic device, including the STDF file parsing device 400 of the above embodiment.
[0100] In addition, an embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned STDF file parsing method is implemented.
[0101] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0102] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0103] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A method for parsing an STDF file, characterized in that: Applied to the STDF file parsing device, the method comprises: Divide the STDF file to be parsed into multiple data blocks, and perform data parsing on each of the data blocks to obtain each first parsing result, wherein each of the first parsing results corresponds to a data type identifier; Obtain a target STDF graph, wherein the target STDF graph includes a plurality of key values, wherein different key values are used to indicate different reference data types in the same STDF file, and different key values are associated with different storage spaces; Searching for each first target key value corresponding to each data type identifier from all the key values, storing each first parsing result into the storage space associated with each corresponding first target key value, and releasing memory; Acquire parsing requirement information, wherein the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to the data type identifier; A second target key value corresponding to the target identifier is searched from all the key values, and a first target parsing file is generated based on the first parsing result stored in the database associated with the second target key value.
2. The method for parsing an STDF file according to claim 1, wherein: The step of dividing the STDF file to be parsed into multiple data blocks includes: Determine a first file size of the STDF file to be parsed; The STDF file to be parsed is divided into data based on a preset data block size and the file size to obtain a plurality of data blocks, wherein the data block sizes of the data blocks are the same.
3. The method for parsing an STDF file according to claim 1, wherein: Searching for each first target key value corresponding to each data type identifier from all the key values, and storing each first parsing result in the storage space associated with each corresponding first target key value, including: Determine the data size of all current first parsing results; When the data size is greater than a preset threshold, each first target key value corresponding to each data type identifier is searched from all the key values, and each first parsing result is stored in the storage space associated with each corresponding first target key value.
4. The method for parsing an STDF file according to claim 1, wherein: The obtaining of parsing requirement information includes: Generate a visualization interface, and display a plurality of first fields in the visualization interface, wherein each of the first fields is used to indicate a different STDF data type; Acquire a first target field selected by a user from the plurality of first fields; The parsing requirement information is generated based on the first target field.
5. The method for parsing an STDF file according to claim 4, wherein: Each of the target parsing files includes a plurality of parsing data. After generating a first target parsing file based on the first parsing result stored in the database associated with the second target key value, the method further includes: Determining the current system performance of the STDF file parsing device; Determine a target display data volume based on the current system performance, wherein the target display data volume is the data volume of the parsed data displayed on a single page in the visualization interface; Dividing all the parsed data based on the target display data volume to obtain multiple data sets, and loading each of the data sets into a corresponding target page; In response to a page turning request from a user, each of the target pages is displayed on the visual interface.
6. The method for parsing an STDF file according to claim 4, wherein: The number of the STDF files to be parsed is multiple, the number of the target parsing files is multiple, and after generating a first target parsing file based on the first parsing result stored in the database associated with the second target key value, the method further includes: A plurality of second fields and a plurality of third fields are displayed on the visual interface, wherein each of the second fields is used to indicate a different export file type, each of the third fields is used to indicate a different file identifier, and each of the file identifiers corresponds to each of the target parsed files one by one; Acquire a second target field selected by a user from a plurality of the second fields, and acquire a third target field selected by a user from a plurality of the third fields; A reference parsing file corresponding to the third target field is determined from all the first target parsing files, and the reference parsing file is format-converted based on the target export file type corresponding to the second target field to obtain a second target parsing file.
7. A STDF file parsing device, characterized in that: include: A parsing module, used for dividing the STDF file to be parsed into a plurality of data blocks, and performing data parsing on each of the data blocks to obtain each first parsing result, wherein each of the first parsing results corresponds to a data type identifier; A first data acquisition module is used to acquire a target STDF graph, wherein different key values are used to indicate different reference data types in the same STDF file, different key values are associated with different storage addresses, and different storage addresses correspond to different storage spaces in a database; A data storage module, used for searching for each first target key value corresponding to each data type identifier from all the key values, storing each first parsing result into the storage space associated with each corresponding first target key value, and releasing memory; A second data acquisition module is used to acquire parsing requirement information, wherein the parsing requirement information includes at least one target identifier, wherein the target identifier belongs to the data type identifier; The target parsing file generating module is used to search for a second target key value corresponding to the target identifier from all the key values, and generate a first target parsing file based on the first parsing result stored in the database associated with the second target key value.
8. A STDF file parsing device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the STDF file parsing method as described in any one of claims 1 to 6.
9. An electronic device, characterized in that: Includes the STDF file parsing device as described in claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the STDF file parsing method as described in any one of claims 1 to 6.
Citation Information
Cited By
INP file multi-thread reading method and device and storage medium
CN120449232A
Universal data analysis method and system, terminal equipment and storage medium
CN121173890A
STDF file analysis method and device and storage medium
CN121233342A
Method and device for parsing stdf file, and storage medium
CN121233342B