Processor test system integration method, device, computer equipment and storage medium
Through automated processor testing system integration methods, generating language code and source code, and using script tools to build instance objects and interconnect tables, solving the problem of lack of automation tools in the existing technology to integrate CoreSight subsystem components, improving integration efficiency and reliability.
Patent Information
- Application Number
- CN202510120910.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-01-26
AI Technical Summary
The lack of automation tools in the prior art to integrate components of the CoreSight subsystem, resulting in users needing to manually write code to build connection relationships, which are inefficient and error-prone.
Provides a processor test system integration method, which determines component functional requirements, generates language code and source code, uses script tools to extract component information, builds instance objects and interconnection tables, and automatically generates information to be filled in and top-level source code to achieve automated connections between components.
It improves the efficiency of processor test system integration, reduces the workload of manual code writing, reduces the technical requirements of operators, and enhances the degree of automation and reliability of the integration process.
Smart Images

Figure CN119576301B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a processor test system integration method, apparatus, computer equipment and storage medium. Background Art
[0002] ARM has developed the CoreSight architecture specifically for debugging and tracing ARM processors, and has launched chip development front-end IP designed based on the CoreSight architecture: SoC-400, SoC-600, etc. Due to the different SoC structures and functions of users, their functional and performance requirements for the CoreSight subsystem are also different, so a variety of subsystems need to be integrated. In order to adapt to the diversity of this subsystem, ARM divides various debugging and tracing tasks into many independent small components, which need to be integrated according to user-defined configurations and interconnections to form a fully functional subsystem. At present, ARM does not provide tools specifically for integrating CoreSight subsystems in terms of establishing connection relationships. That is, users have to manually write code to integrate the components involved, the configuration of each component, the connection method, the subsystem port, and the signal connection examples. Due to the large number of connection relationships, writing code one by one has the disadvantages of low efficiency and high error rate. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment and storage medium that can automatically realize port connection without building code for connection relationships one by one to improve the integration efficiency of the processor test system in response to the above technical problems.
[0004] In one aspect, a processor test system integration method is provided, the method comprising:
[0005] determining functional requirements of the components to be integrated and inputting said requirements into a processor test system;
[0006] In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated;
[0007] Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated;
[0008] Generate an interconnection table according to the information of the components to be integrated and the instance objects;
[0009] Generate information to be filled in according to the interconnection table for users to fill in;
[0010] In response to the interconnection table being imported into the script tool, the script tool generates a top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0011] The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0012] In one embodiment, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirements and the original information of the component to be integrated, including: in response to receiving the requirements, the processor testing system converts the requirements into command line parameters and inputs the command line parameters into a build system tool; the build system tool generates a first language code of the component to be integrated and a source code of the component to be integrated according to the command line parameters and in combination with the original information of the component to be integrated.
[0013] In one of the embodiments, the original information of the component to be integrated includes at least one of the following: component name, interface information, parameter information, the interface information includes one or more of the following: interface name, interface direction, port information; the port information includes one or more of the following: port name, port direction;
[0014] Among them, the extracting of the component information to be integrated in the first language code by a script tool and constructing an instance object according to the component information to be integrated include: extracting the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated, and saving the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated to a component information registration table; traversing the component information registration table, and obtaining the interface information, port information, and parameter information matching the component name according to the component name; establishing instance objects for each component according to the component name, interface information, port information, and parameter information, and generating an instantiation name of the instance object; and constructing an interconnection object database according to the component information registration table and the instantiation name.
[0015] In one embodiment, an interconnection table is generated according to the information of the component to be integrated and the instance object, including: configuring an output method for the instance object; obtaining connection point bits, original information of the component to be integrated and the instance object information according to the output method; generating an interconnection table according to the connection point bits, original information of the component to be integrated and the instance object information; wherein the interconnection table includes first connection point information and second connection point information, the first connection point information includes the instantiation name, interface name, interface direction, port name, port direction and bits that have been obtained; and the second connection point information includes the instantiation name, interface name, port name and bits to be filled in.
[0016] In one of the embodiments, generating information to be filled in based on the interconnection table for user filling in includes: the script tool generates prompt information based on the first connection point information in the interconnection table to remind the user to fill in the instantiation name and / or port name in the second connection point information in the row where the first connection point information is located; in response to receiving the instantiation name and / or port name filled in by the user, the script tool obtains the interface name and / or bit matching the instantiation name and / or port name from the interconnection object database based on the instantiation name and / or port name, and automatically fills the obtained interface name and / or bit into the corresponding position of the second connection point information.
[0017] In one of the embodiments, in response to the interconnection table being imported into the script tool, the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table, including: establishing an interconnection relationship between the first connection point and the second connection point according to the first connection point information and the second connection point information; performing a legality check on the first connection point information and the second connection point information; in response to satisfying the legality, updating the interconnection relationship to the interconnection object database; and generating the top-level source code of the subsystem to be integrated according to the interconnection object database.
[0018] In one embodiment, the validity check of the first connection point information and the second connection point information includes: the script tool reads the interconnection relationship between the first connection point and the second connection point, and uses the second connection point having an interconnection relationship with the first connection point as the target connection point; reads the target connection point information, and writes the target connection point information into the target connection point attribute of the first connection point information; searches for corresponding instance object information in the interconnection object database according to the target connection point attribute, compares the target connection point attribute with the instance object information, and in response to the target connection point attribute being consistent with the instance object information, updates the interconnection relationship between the first connection point and the second connection point to the interconnection object database; in response to the target connection point attribute being inconsistent with the instance object information, generates an alarm to prompt the user to re-fill in the second connection point information.
[0019] On the other hand, a processor test system integration device is provided, the device comprising:
[0020] A requirement input module, used to determine the functional requirements of the components to be integrated and input the requirements into the processor test system;
[0021] A first generating module, configured to generate, in response to receiving the requirement, a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and original information of the component to be integrated by the processor testing system;
[0022] An instance construction module, used to extract the information of the component to be integrated in the first language code through a script tool, and construct an instance object according to the information of the component to be integrated;
[0023] A second generating module, used to generate an interconnection table according to the information of the components to be integrated and the instance objects, and to generate information to be filled in according to the interconnection table for the user to fill in;
[0024] A third generating module is used for importing the script tool in response to the interconnection table, and the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0025] An integration module is used to complete the integration of the processor test system according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0026] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0027] determining functional requirements of the components to be integrated and inputting said requirements into a processor test system;
[0028] In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated;
[0029] Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated;
[0030] Generate an interconnection table according to the information of the components to be integrated and the instance objects;
[0031] Generate information to be filled in according to the interconnection table for users to fill in;
[0032] In response to the interconnection table being imported into the script tool, the script tool generates a top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0033] The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0034] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0035] determining functional requirements of the components to be integrated and inputting said requirements into a processor test system;
[0036] In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated;
[0037] Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated;
[0038] Generate an interconnection table according to the information of the components to be integrated and the instance objects;
[0039] Generate information to be filled in according to the interconnection table for users to fill in;
[0040] In response to the interconnection table being imported into the script tool, the script tool generates a top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0041] The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0042] The above-mentioned processor test system integration method, device, computer equipment and storage medium generate the first language code and source code of the component through the demand input and the original information of the component to be integrated, thereby realizing the systematic analysis and code generation of component requirements. Secondly, the script tool structures the various information of the component by extracting code information and generating instance objects, which is convenient for subsequent association operations. The construction and import of the interconnection table further enhances the visualization and intuitiveness of the connection relationship between components. Finally, the generation of the top-level source code of the subsystem and the integration of the component source code conveniently realize the integration of the subsystem of the test system, and improve the automation and reliability of the overall integration process. The overall solution simplifies the complexity of the integration process, so that the integration of subsystems does not require manual code writing, making system integration more convenient and reducing the technical requirements for operators. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 An application environment diagram of a processor test system integration method in one embodiment;
[0044] Figure 2 A schematic diagram of a process flow of a processor test system integration method in one embodiment;
[0045] Figure 3 A schematic flow chart of the steps of integrating a processor test system in one embodiment;
[0046] Figure 4 A schematic diagram of an interconnected object database structure of a processor test system integration method in another embodiment;
[0047] Figure 5A schematic diagram of interconnection of a processor test system integration method in another embodiment;
[0048] Figure 6 A processor test system code structure diagram of a processor test system integration method in one embodiment;
[0049] Figure 7 A schematic diagram of a first connection point attribute structure of a processor testing system method in another embodiment;
[0050] Figure 8 It is a structural block diagram of a processor test system integration device in one embodiment;
[0051] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] 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.
[0053] The processor test system integration method provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0054] In one embodiment, Figure 2 As shown, a processor test system integration method is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0055] Step S201, determining the functional requirements of the components to be integrated, and inputting the requirements into the processor testing system.
[0056] Among them, the functional requirements can be the port width, the presence or absence of functions, such as the data width of the host port and slave port of the atb bit width expansion module (atbupsizer); whether the apb async bridge provides a low-power port, etc. This functional requirement can be configured according to the user's design intention. The processor test system can be the CoreSight architecture, which is a debug and trace architecture launched by ARM specifically for debugging ARM processors.
[0057] Step S203: in response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated.
[0058] The original information of the component includes the interface, interface version, and interface direction of the component; the port name, port width, port direction, and standard port corresponding to the interface of each interface; the hardware parameters of the component; the location of the source code of the component relative to the root directory of the component, etc. The first language code can be XML language. The source code can be Verilog source code.
[0059] Step S205: extracting the information of the components to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the components to be integrated.
[0060] Among them, the script tool can be Extract. The information of the component to be integrated includes functional requirement information and the original information of the component to be integrated. Instance object means that in the complete IC design (Integrated circuit design, IC design), the Verilog module is only used as a template. After being implemented in the IC, it is called an "instance". One module can be used to create several instances, and each instance has its own independent name, parameter configuration, and port connection status. Similar to Verilog, the script tool will also use the same component to create multiple instances in a complete subsystem. Therefore, it is necessary to construct an instance object (Instance Object) based on the component to meet the functional requirements. Compared with the component, the instance object has an instance name attribute.
[0061] Step S207: Generate an interconnection table according to the information of the components to be integrated and the instance objects.
[0062] Among them, the interconnection table can be presented in Excel format.
[0063] Step S209: Generate information to be filled in according to the interconnection table for the user to fill in.
[0064] Specifically, the user can manually fill in the interconnection table according to the design intention and the system prompts, or fill it in automatically.
[0065] Step S211 , in response to the interconnection table being imported into the script tool, the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table.
[0066] Step S213, completing the integration of the processor test system according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0067] In the above-mentioned processor test system method, the first language code and source code of the component are generated by inputting the requirements and the original information of the component to be integrated, thereby realizing the systematic analysis and code generation of the component requirements. Secondly, the scripting tool structures the various information of the component by extracting the code information and generating instance objects, which is convenient for subsequent association operations. The construction and import of the interconnection table further enhance the visualization and intuitiveness of the connection relationship between components. Finally, the generation of the top-level source code of the subsystem and the integration of the component source code conveniently realize the integration of the subsystem of the test system, and improve the automation and reliability of the overall integration process. The overall solution simplifies the complexity of the integration process, so that the integration of the subsystem does not require manual code writing, making system integration more convenient and reducing the technical requirements for operators.
[0068] In one embodiment, the processor testing system generates a first language code for the component to be integrated and a source code for the component to be integrated according to the requirements and the original information of the component to be integrated, including: in response to receiving the requirements, the processor testing system converts the requirements into command line parameters and inputs the command line parameters into a build system tool; the build system tool generates a first language code for the component to be integrated and a source code for the component to be integrated according to the command line parameters and in combination with the original information of the component to be integrated.
[0069] Specifically, the CoreSight chip front-end IP (such as SoC-400, SoC-600) released by ARM contains multiple component packages, which contain XSL language with additional text control information, rather than the final user-usable code, that is, the usable Verilog code is generated based on it. Figure 3 As shown, when using a component, the user needs to determine the functional requirements for the component and input them into the Coresight system. By building a system tool, Build_Component can translate the user-provided requirements into XML first language code in combination with the original information of the component to be integrated, and use it as a control basis to generate the source code of the component to be integrated on the template of the XSL language code.
[0070] The above embodiment realizes seamless conversion from requirements to build commands by automatically parsing and converting the requirements into command line parameters after receiving the requirements through the processor test system, thus simplifying the process of manual input and configuration. After receiving the command line parameters, the build system tool can quickly generate the first language code and source code that meet the requirements according to the requirement instructions and in combination with the original information of the components to be integrated. The workload of manual code writing is reduced, making component integration more efficient, and through the standardized processing of the build system tool, the generated code conforms to the unified syntax and structure specifications, ensuring the correctness and consistency of the code.
[0071] In one embodiment, the original information of the component to be integrated includes at least one of the following: component name, interface information, parameter information, the interface information includes one or more of the following: interface name, interface direction, port information; the port information includes one or more of the following: port name, port direction;
[0072] The method of extracting the component information to be integrated in the first language code by a script tool may be Extract, and constructing an instance object according to the component information to be integrated, including extracting the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated, and saving the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated to a component information registration table, which is a data structure and is saved in a software container (such as a python dictionary); traversing the component information registration table, and obtaining interface information, port information, and parameter information matching the component name according to the component name; establishing instance objects for each component according to the component name, interface information, port information, and parameter information, and generating instantiation names of the instance objects, which are displayed in the instantiation comparison table shown in Table 1:
[0073] Table 1 Instantiation comparison table
[0074]
[0075] Through the Excel-Dump script tool, search the component names one by one in the assembly information to be integrated, obtain the interface and port information of the component according to the component information registration table and the instantiation name, and build an interconnection object database, such as Figure 4 As shown, the database is a structure that can accommodate multi-level and multi-depth data and is maintained in the memory. When the script ends, the database is written to a file for storage and used for port interconnection.
[0076] The above embodiment extracts key information such as the name of the component, the direction and name of the interface and port through a script tool, and stores it in a component information registration table, so that the information can be structured and centrally managed. After that, the system traverses the registration table, associates and extracts the matching interface, port and parameter information through the component name, and creates an instance object and a unique instantiation name for each component. This process automatically generates instance objects for each component, avoids the lengthy operation of manual configuration, and ensures the standardization and consistency of the instantiation process. In addition, by combining the instantiation name with the content of the component information registration table, the system constructs a detailed interconnected object database. The database provides comprehensive data support for the interaction and connection of components, and realizes seamless docking of the integration process.
[0077] In one embodiment, an interconnection table is generated according to the original information of the component to be integrated and the instance object, including configuring an output method for the instance object. Each object has its own method (Method) in addition to the aforementioned information. Write a method for each object (assuming it is named excel_dump). For example, if the python language is used and the third-party library openpyxl for excel processing is used, then the port object outputs the content of the method excel_dump in a tabular form, that is, in the worksheet introduced by openpyxl, fill in the port attributes in order to each cell of the specified row, and split it by bit (that is, each bit occupies a row). According to the output method, the connection point bits, the original information of the component to be integrated and the instance object information are obtained; the interconnection table is generated according to the connection point bits, the original information of the component to be integrated and the instance object information;
[0078] Among them, the interconnection table includes first connection point information and second connection point information, the first connection point information includes the acquired instantiation name, interface name, interface direction, port name, port direction, and bit; the second connection point information includes the instantiation name, interface name, port name, and bit to be filled in.
[0079] Specifically, since the output table is used to obtain the user's interconnection instructions, and the interconnection involves at least two connection points, each row of the table, in addition to the port information of each component, also needs to leave a blank in the column where the second connection point is located for the user to fill in the interconnection point information. For example, the module comp1 has interfaces CLK, RESET, and APB interfaces. The CLK interface has only one port, clk, and the RESET interface has only one port, rst_n. The APB interface has various signals contained in the standard APB4, such as psel, penable, pwrite, pready, paddr, etc. Then, after all port objects of the instance object comp1 have executed the excel_dump method, the final output is as follows: Figure 5 The interconnection table shown.
[0080] The above embodiment is an instance object configuration output method, which enables the system to obtain connection point bits, component original information and instance object information. Then, a preliminary interconnection table is generated based on this information, and the user supplements and improves the interconnection relationship according to functional requirements. The interconnection table includes two types of connection point information. The first connection point information records detailed data such as the instantiation name, interface name, direction, port name, port direction and bits, and the second connection point information records the key data of the target connection point. This process automates the pairing of connection points between components, reduces the workload of manual input, and improves the correctness and consistency of connection configuration.
[0081] In one embodiment, the generating of information to be filled in according to the interconnection table for user filling in includes: when an instantiated connection point needs to be connected to a constant value, the "instantiation name" column of the second connection point uses TIE to indicate the constant value to be filled in; when an instantiated connection point needs to be used as an integrated top-level port, the "instantiation name" column of the second connection point uses TOP to indicate. The script tool generates prompt information to remind the user to fill in the instantiation name and / or port name in the second connection point information in the row where the first connection point information is located according to the first connection point information in the interconnection table; in response to receiving the instantiation name and / or port name filled in by the user, the script tool obtains the interface name and / or bit matching the instantiation name and / or port name from the interconnection object database according to the instantiation name and / or port name, and automatically fills the obtained interface name and / or bit into the corresponding position of the second connection point information. For example, the script tool can be Excel-Load, and the script automatically identifies the port bit widths of the first and second connection points in the interconnection object database information according to the instantiation name and port name to match the bit and interface information of both parties.
[0082] The filling method may also be to fill in the instantiation name and interface name of the second connection point information according to the first connection point information, and the script tool will match the port information and bits of the first and second connection points according to the interconnection object database information.
[0083] The filling method can also be to determine the port direction of the first connection point, then fill in the output port information in the row where the input port is located, and then there is no need to fill in the row where the corresponding output port is located. For example, in the second connection point information of the row where the input port of the INST_A instance is located, it is filled in to connect to the input port of the INST_B instance, then there is no need to declare the interconnection relationship between the two again when filling in the interconnection information of INST_B;
[0084] In the above embodiment, the user fills in the second connection point information in the interconnection table, so that the connection relationship between the components is clearer and more accurate. According to the first connection point information, the user can identify the input port according to the port direction, and fill in the second connection point information in the corresponding row to ensure the matching of the port direction. In addition, the user can directly fill in the instantiation name, port name and interface name corresponding to the first connection point in the interconnection table, which greatly simplifies the configuration process of the connection point. Through this semi-automatic filling based on the first connection point information, the tedious steps of the user in matching ports and interfaces are reduced, and the error probability is reduced.
[0085] In one embodiment, in response to the interconnection table being imported into the script tool, an Excel-Load script is used to read and analyze an Excel table, and the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table, including: establishing an interconnection relationship between the first connection point and the second connection point according to the first connection point information and the second connection point information; performing a legality check on the first connection point information and the second connection point information; in response to satisfying the legality, updating the interconnection relationship to the interconnection object database; and generating the top-level source code of the subsystem to be integrated according to the interconnection object database. In the process of establishing the interconnection relationship, a batch of non-repetitive Verilog connections will be generated. To ensure the uniqueness of the connection name, the instantiation name, interface name, and port name of the output side of the two connection points are used as the connection name, and the connection relationship is updated to the interconnection object database; according to the interconnection object database, the Verilog-Writing script traverses all instances in the interconnection object database, and each instance executes the verilog_dump method of its respective port, and finally generates the top-level source code of the subsystem to be integrated in the format of the Verilog language, such as Figure 6 The diagram shows a code structure diagram of a processor test system subsystem integrated according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated, including each port, the connection relationship in the interconnection table and each instance.
[0086] The above embodiment automatically generates top-level source code by importing the interconnection table. The method directly establishes the relationship between connection points according to the connection information in the interconnection table, and performs a legality check on the connection points through a script tool to ensure the correctness of the connection relationship. If the legality check passes, the system automatically updates the interconnection relationship to the interconnection object database, thereby simplifying the interconnection relationship management process, avoiding the steps of manually building and checking the connection relationship one by one, and is suitable for the rapid and efficient implementation of complex system integration.
[0087] In one embodiment, the validity check of the first connection point information and the second connection point information includes: the script tool reads the interconnection relationship between the first connection point and the second connection point, and uses the second connection point having an interconnection relationship with the first connection point as the target connection point; reads the target connection point information, and writes the target connection point information into the target connection point attribute of the first connection point information; searches for corresponding instance object information in the interconnection object database according to the target connection point attribute, compares the target connection point attribute with the instance object information, and in response to the target connection point attribute being consistent with the instance object information, updates the interconnection relationship between the first connection point and the second connection point to the interconnection object database; in response to the target connection point attribute being inconsistent with the instance object information, generates an alarm to prompt the user to re-fill in the second connection point information.
[0088] The legality check rules can adopt the system default rules or be customized by the user. For example, users can be allowed to define the check rules through a graphical interface or script, including port type, connection order, data type matching, performance restrictions, etc.; specifically, conditions and logic support can be added, such as "if the port is X, then the port type must be Y", and logical relationships, such as "and" and "or" combination conditions. Customized check rules can meet users' personalized needs for component functions, make the check rules adapt to different functional scenarios, and increase the flexibility of the check and system compatibility.
[0089] The above embodiment realizes the automation of the connection relationship legitimacy check by adding the target connection point attribute to the port information of the first connection point. After reading the interconnection table, the script tool compares the target connection point attribute with the instance object information in the interconnection object database to ensure the consistency and direction matching between the connection points, reducing the complexity of manual comparison and effectively avoiding connection errors caused by manual operation.
[0090] It should be understood that although Figure 1-9 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-9 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0091] In one embodiment, Figure 8 As shown, a processor test system device is provided, including: a requirement input module 21, a first generation module 22, an example construction module 23, a second generation module 24, a third generation module 25 and an integration module 26, wherein:
[0092] A requirement input module, used to determine the functional requirements of the components to be integrated and input the requirements into the processor test system;
[0093] A first generating module, configured to generate, in response to receiving the requirement, a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and original information of the component to be integrated by the processor testing system;
[0094] An instance construction module, used to extract the information of the component to be integrated in the first language code through a script tool, and construct an instance object according to the information of the component to be integrated;
[0095] A second generating module, used to generate an interconnection table according to the information of the components to be integrated and the instance objects, and to generate information to be filled in according to the interconnection table for the user to fill in;
[0096] A third generating module is used for importing the script tool in response to the interconnection table, and the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0097] An integration module is used to complete the integration of the processor test system according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0098] In one embodiment, the first generation module 22 is used by the processor testing system to generate the first language code of the component to be integrated and the source code of the component to be integrated according to the requirements and the original information of the component to be integrated, including: in response to receiving the requirements, the processor testing system converts the requirements into command line parameters and inputs the command line parameters into the build system tool; the build system tool generates the first language code of the component to be integrated and the source code of the component to be integrated according to the command line parameters and in combination with the original information of the component to be integrated.
[0099] In one embodiment, the example construction module 23 is used for the original information of the component to be integrated to include at least one of the following: component name, interface information, parameter information, the interface information includes one or more of the following: interface name, interface direction, port information; the port information includes one or more of the following: port name, port direction;
[0100] Among them, the extracting of the component information to be integrated in the first language code by a script tool and constructing an instance object according to the component information to be integrated include: extracting the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated, and saving the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated to a component information registration table; traversing the component information registration table, and obtaining the interface information, port information, and parameter information matching the component name according to the component name; establishing instance objects for each component according to the component name, interface information, port information, and parameter information, and generating an instantiation name of the instance object; and constructing an interconnection object database according to the component information registration table and the instantiation name.
[0101] In one embodiment, the second generation module 24 is used to generate an interconnection table according to the information of the component to be integrated and the instance object, including: configuring an output method for the instance object; obtaining connection point bits, original information of the component to be integrated and the instance object information according to the output method; generating an interconnection table according to the connection point bits, original information of the component to be integrated and the instance object information;
[0102] Among them, the interconnection table includes first connection point information and second connection point information, the first connection point information includes the acquired instantiation name, interface name, interface direction, port name, port direction, and bit; the second connection point information includes the instantiation name, interface name, port name, and bit to be filled in.
[0103] Generating information to be filled in according to the interconnection table for user filling in includes: the script tool generates prompt information based on the first connection point information in the interconnection table to remind the user to fill in the instantiation name and / or port name in the second connection point information in the row where the first connection point information is located; in response to receiving the instantiation name and / or port name filled in by the user, the script tool obtains the interface name and / or bit matching the instantiation name and / or port name from the interconnection object database according to the instantiation name and / or port name, and automatically fills the obtained interface name and / or bit into the corresponding position of the second connection point information.
[0104] In one embodiment, the third generation module 25 is used to import the script tool in response to the interconnection table, and the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table, including: establishing an interconnection relationship between the first connection point and the second connection point according to the first connection point information and the second connection point information; performing a legality check on the first connection point information and the second connection point information; in response to satisfying the legality, updating the interconnection relationship to the interconnection object database; and generating the top-level source code of the subsystem to be integrated according to the interconnection object database.
[0105] The first connection point information and the second connection point information are checked for legitimacy, including: the script tool reads the interconnection relationship between the first connection point and the second connection point, and uses the second connection point having an interconnection relationship with the first connection point as the target connection point; reads the target connection point information, and writes the target connection point information into the target connection point attribute of the first connection point information; searches for corresponding instance object information in the interconnection object database according to the target connection point attribute, compares the target connection point attribute with the instance object information, and in response to the target connection point attribute being consistent with the instance object information, updates the interconnection relationship between the first connection point and the second connection point to the interconnection object database; in response to the target connection point attribute being inconsistent with the instance object information, generates an alarm to prompt the user to re-fill in the second connection point information.
[0106] For the specific definition of the processor test system device, please refer to the definition of the processor test system method above, which will not be repeated here. Each module in the above-mentioned processor test system device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0107] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store processor test system data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a processor test system method is implemented.
[0108] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0109] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0110] determining functional requirements of the components to be integrated and inputting said requirements into a processor test system;
[0111] In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated;
[0112] Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated;
[0113] Generate an interconnection table according to the information of the components to be integrated and the instance objects;
[0114] Generate information to be filled in according to the interconnection table for users to fill in;
[0115] In response to the interconnection table being imported into the script tool, the script tool generates a top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0116] The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0117] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0118] The processor testing system generates a first language code for the component to be integrated and a source code for the component to be integrated according to the requirements and the original information of the component to be integrated, including: in response to receiving the requirements, the processor testing system converts the requirements into command line parameters and inputs the command line parameters into a build system tool; the build system tool generates a first language code for the component to be integrated and a source code for the component to be integrated according to the command line parameters and in combination with the original information of the component to be integrated.
[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0120] The original information of the component to be integrated includes at least one of the following: component name, interface information, parameter information, the interface information includes one or more of the following: interface name, interface direction, port information; the port information includes one or more of the following: port name, port direction;
[0121] Among them, the extracting of the component information to be integrated in the first language code by a script tool and constructing an instance object according to the component information to be integrated include: extracting the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated, and saving the component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated to a component information registration table; traversing the component information registration table, and obtaining the interface information, port information, and parameter information matching the component name according to the component name; establishing instance objects for each component according to the component name, interface information, port information, and parameter information, and generating an instantiation name of the instance object; and constructing an interconnection object database according to the component information registration table and the instantiation name.
[0122] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0123] Generate an interconnection table according to the information of the component to be integrated and the instance object, including: configuring an output method for the instance object; obtaining connection point bits, original information of the component to be integrated and the instance object information according to the output method; generating an interconnection table according to the connection point bits, original information of the component to be integrated and the instance object information;
[0124] Among them, the interconnection table includes first connection point information and second connection point information, the first connection point information includes the acquired instantiation name, interface name, interface direction, port name, port direction, and bit; the second connection point information includes the instantiation name, interface name, port name, and bit to be filled in.
[0125] The generating of information to be filled in according to the interconnection table for user filling in includes: the script tool generating prompt information according to the first connection point information in the interconnection table to remind the user to fill in the instantiation name and / or port name in the second connection point information in the row where the first connection point information is located; in response to receiving the instantiation name and / or port name filled in by the user, the script tool obtains the interface name and / or bit matching the instantiation name and / or port name from the interconnection object database according to the instantiation name and / or port name, and automatically fills the obtained interface name and / or bit into the corresponding position of the second connection point information.
[0126] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0127] In response to the interconnection table being imported into the script tool, the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table, including: establishing an interconnection relationship between the first connection point and the second connection point according to the first connection point information and the second connection point information; performing a legality check on the first connection point information and the second connection point information; in response to satisfying the legality, updating the interconnection relationship to the interconnection object database; and generating the top-level source code of the subsystem to be integrated according to the interconnection object database.
[0128] The first connection point information and the second connection point information are checked for legitimacy, including: the script tool reads the interconnection relationship between the first connection point and the second connection point, and uses the second connection point having an interconnection relationship with the first connection point as the target connection point; reads the target connection point information, and writes the target connection point information into the target connection point attribute of the first connection point information; searches for corresponding instance object information in the interconnection object database according to the target connection point attribute, compares the target connection point attribute with the instance object information, and in response to the target connection point attribute being consistent with the instance object information, updates the interconnection relationship between the first connection point and the second connection point to the interconnection object database; in response to the target connection point attribute being inconsistent with the instance object information, generates an alarm to prompt the user to re-fill in the second connection point information.
[0129] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0130] determining functional requirements of the components to be integrated and inputting said requirements into a processor test system;
[0131] In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated;
[0132] Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated;
[0133] Generate an interconnection table according to the information of the components to be integrated and the instance objects;
[0134] Generate information to be filled in according to the interconnection table for users to fill in;
[0135] In response to the interconnection table being imported into the script tool, the script tool generates a top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0136] The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0137] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0138] determining functional requirements of the components to be integrated and inputting said requirements into a processor test system;
[0139] In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated;
[0140] Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated;
[0141] Generate an interconnection table according to the information of the components to be integrated and the instance objects;
[0142] Generate information to be filled in according to the interconnection table for users to fill in;
[0143] In response to the interconnection table being imported into the script tool, the script tool generates a top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table;
[0144] The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
[0145] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0146] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0147] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A processor test system integration method, characterized in that: include, determining functional requirements of the components to be integrated and inputting said requirements into a processor test system; In response to receiving the requirement, the processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and the original information of the component to be integrated; Extracting the information of the component to be integrated in the first language code by using a script tool, and constructing an instance object according to the information of the component to be integrated; Generate an interconnection table according to the component information to be integrated and the instance object, wherein the interconnection table is used to represent the interconnection relationship between the instance objects; the interconnection table includes first connection point information, and the first connection point information includes the acquired component information to be integrated and the instance object information of the instance object; Generate information to be filled in according to the interconnection table for the user to fill in; the information to be filled in is the instance object information of the second connection point interconnected with the first connection point; In response to importing the interconnection table filled in by the user into the script tool, the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table filled in by the user; The integration of the processor test system is completed according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
2. The method according to claim 1, characterized in that The processor testing system generates a first language code of the component to be integrated and a source code of the component to be integrated according to the requirements and the original information of the component to be integrated, including: In response to receiving the requirement, the processor testing system converts the requirement into command line parameters and inputs the command line parameters into a build system tool; The construction system tool generates the first language code of the component to be integrated and the source code of the component to be integrated according to the command line parameters and in combination with the original information of the component to be integrated.
3. The method according to claim 2, characterized in that The original information of the component to be integrated includes at least one of the following: component name, interface information, parameter information, the interface information includes one or more of the following: interface name, interface direction, port information; the port information includes one or more of the following: port name, port direction; The extracting the component information to be integrated in the first language code by using a script tool and constructing an instance object according to the component information to be integrated includes: Extract the component name, interface name, interface direction, port name, port direction, and parameter information from the original information of the component to be integrated. The component name, interface name, interface direction, port name, port direction, and parameter information in the original information of the component to be integrated are saved in the component information registration table; Traversing the component information registration table, and acquiring interface information, port information, and parameter information matching the component name according to the component name; According to the component name, interface information, port information, and parameter information, respectively, an instance object is established for each component, and an instantiation name of the instance object is generated; An interconnection object database is constructed according to the component information registration table and the instantiation name.
4. The method according to claim 1, characterized in that: Generate an interconnection table according to the component information to be integrated and the instance object, including: Configuring an output method for the instance object; Acquire the connection point bits, the original information of the component to be integrated and the instance object information according to the output method; Generate an interconnection table according to the connection point bits, the original information of the components to be integrated and the instance object information; Among them, the interconnection table includes first connection point information and second connection point information. The first connection point information includes the acquired instantiation name, interface name, interface direction, port name, port direction, and bits; the second connection point information includes the instantiation name, interface name, port name, and bits to be filled in.
5. The method according to claim 4, characterized in that The generating of information to be filled in according to the interconnection table for user to fill in comprises: The script tool generates prompt information for prompting the user to fill in the instantiation name and / or port name in the second connection point information in the row where the first connection point information is located according to the first connection point information in the interconnection table; In response to receiving the instantiation name and / or port name filled in by the user, the script tool obtains the interface name and / or bit that matches the instantiation name and / or port name from the interconnection object database according to the instantiation name and / or port name, and automatically fills the obtained interface name and / or bit into the corresponding position of the second connection point information.
6. The method according to claim 5, characterized in that In response to importing the interconnection table filled in by the user into the script tool, the script tool generates the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table filled in by the user, including: Establishing an interconnection relationship between the first connection point and the second connection point according to the first connection point information and the second connection point information; Performing a validity check on the first connection point information and the second connection point information; In response to satisfying the legality, updating the interconnection relationship to the interconnection object database; The top-level source code of the subsystem to be integrated is generated according to the interconnected object database.
7. The method according to claim 6, characterized in that The checking the legitimacy of the first connection point information and the second connection point information includes: The script tool reads the interconnection relationship between the first connection point and the second connection point, and uses the second connection point having an interconnection relationship with the first connection point as a target connection point; Read the target connection point information, and write the target connection point information into the target connection point attribute of the first connection point information; According to the target connection point attribute, the corresponding instance object information is searched in the interconnection object database, and the target connection point attribute is compared with the instance object information. In response to the target connection point attribute being consistent with the instance object information, updating the interconnection relationship between the first connection point and the second connection point into the interconnection object database; In response to the inconsistency between the target connection point attribute and the instance object information, an alarm is generated to prompt the user to re-fill in the second connection point information.
8. A processor test system integrated device, characterized in that: The device comprises: A requirement input module, used to determine the functional requirements of the components to be integrated and input the requirements into the processor test system; A first generating module, configured to generate, in response to receiving the requirement, a first language code of the component to be integrated and a source code of the component to be integrated according to the requirement and original information of the component to be integrated by the processor testing system; An instance construction module, used to extract the information of the component to be integrated in the first language code through a script tool, and construct an instance object according to the information of the component to be integrated; A second generation module is used to generate an interconnection table according to the component information to be integrated and the instance object, and to generate information to be filled in according to the interconnection table for the user to fill in; wherein the interconnection table is used to represent the interconnection relationship between the instance objects; the interconnection table includes first connection point information, the first connection point information includes the acquired component information to be integrated and the instance object information of the instance object, and the information to be filled in is the instance object information of the second connection point interconnected with the first connection point; A third generating module, configured to generate the top-level source code of the subsystem to be integrated according to the connection relationship in the interconnection table filled in by the user in response to importing the interconnection table filled in by the user into the script tool; An integration module is used to complete the integration of the processor test system according to the source code of the component to be integrated and the top-level source code of the subsystem to be integrated.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Subsystem integration method and subsystem integration system for integration design of system-on-chip
CN102012954A
Code integration method, system and device for register conversion circuit and medium
CN114968202A