Method, device, equipment and storage medium for building network on chip

By converting the constituent units of the on-chip network into displayable interface elements, users can place and connect them in the built interface to generate on-chip network code files and verification files, which solves the human resource dependence and synchronous update problems in the existing technology. It achieves rapid construction and automatic synchronization updates, reducing costs.

CN118520825BActive Publication Date: 2024-10-01BEIJING INSTITUTE OF OPEN SOURCE CHIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410998784.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing technologies rely heavily on human resources in on-chip network design and verification, resulting in high costs. On-chip network files and verification platforms cannot be updated simultaneously, which increases the complexity and cost of design and verification.

Method used

By converting the constituent units of the on-chip network into displayable interface elements, users can position and connect them in the build interface to generate on-chip network code files and verification files, achieving rapid construction and synchronous updates.

Benefits of technology

It reduces the dependence on human resources, reduces the manual writing of codes and scripts, realizes the rapid construction of the on-chip network structure and the automatic synchronous update of verification files, and reduces the cost of design and verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520825B_ABST
    Figure CN118520825B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and computer-readable storage medium for building a network on chip, including: in response to the connection operation between at least some of the target interface elements in the interface elements displayed on the building interface, obtaining the network on chip structure, each target interface element included in the network on chip structure is associated with a corresponding code fragment, at least some of the target interface elements are associated with a corresponding verification incentive component, and each interface element corresponds to a constituent unit in the network on chip; according to the network on chip structure, and the code fragments and verification incentive components associated with the target interface elements in the network on chip structure, code conversion is performed to obtain the network on chip code file and verification file. The process of the present application eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources, and the verification file can also be automatically updated synchronously when the network on chip structure changes, reducing the cost of synchronous updates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable storage medium for building a network on a chip. Background Art

[0002] The network-on-chip (NOC) is a key technology of multi-processor architecture. It is the interconnection path and communication network inside the processor, responsible for message transmission, and is the basis for the collaborative work of processors. At the same time, in order to ensure the operational stability of the network-on-chip, the design of the network-on-chip needs to be verified.

[0003] At present, the first method is to manually develop the on-chip network file and manually build the verification platform based on the written on-chip network file. The second method is to build the on-chip network script file through the script method and manually build the verification platform based on the on-chip network script file. The consistency, peripheral interface and other related functions are realized by passing parameters to the script.

[0004] However, the current solution relies heavily on human resources, resulting in high labor costs. In addition, the on-chip network files and verification platform cannot be updated synchronously, and the overhead of parameter transfer in method 2 is huge, which further increases the cost of on-chip network design and verification. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for building a network on a chip to solve the problems in the related art.

[0006] In a first aspect, an embodiment of the present application provides a method for building an on-chip network, the method comprising:

[0007] In response to a connection operation between at least some of the target interface elements in the interface elements displayed on the build interface, an on-chip network structure is obtained, wherein each target interface element included in the on-chip network structure is associated with a corresponding code fragment, at least some of the target interface elements are associated with a corresponding verification incentive component, and each of the interface elements corresponds to a constituent unit in the on-chip network;

[0008] According to the on-chip network structure, as well as the code snippets and verification stimulus components associated with the target interface elements in the on-chip network structure, code conversion is performed to obtain the on-chip network code file and verification file, and the verification file is used to build a verification platform to verify the on-chip network.

[0009] In a second aspect, an embodiment of the present application provides a device for building a network on chip, the device comprising:

[0010] An identification module is used to identify a first data row in a storage array of a dynamic random access memory; the first data row is a data row that is attacked;

[0011] a generating module, configured to generate an exchange request for a second data row associated with the first data row if it is determined that the data in the second data row associated with the first data row meets a preset condition;

[0012] The exchange module is used to respond to the exchange request through a memory controller to transfer the data in the second data row to the security area in the storage array.

[0013] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor;

[0014] a memory for storing instructions executable by the processor;

[0015] The processor is configured to execute the instructions to implement the method of the first aspect.

[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method of the first aspect.

[0017] In the embodiment of the present application, each constituent unit of the on-chip network can be converted into a displayable interface element, and the user can select the corresponding interface element in the construction interface to perform operations such as positioning and interconnection, so as to realize the rapid construction of the topological structure of the on-chip network. In addition, each interface element can be associated with a corresponding code snippet and a corresponding verification incentive component. After the construction of the topological structure of the on-chip network is completed, the on-chip network code file and the verification file can be obtained by one-click generation based on the on-chip network structure and the code snippet and verification incentive component associated with the target interface element in the on-chip network structure. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources. In addition, when changing the on-chip network structure, the target interface elements included in the changed on-chip network structure are still associated with the corresponding code snippet and verification incentive component, so the verification file can also be automatically updated when the on-chip network structure changes, reducing the cost of synchronous update.

[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 It is a flowchart of the steps of a method for building a network on chip provided in an embodiment of the present application;

[0021] Figure 2 This is a diagram of an on-chip network construction interface provided by an embodiment of the present application;

[0022] Figure 3 It is a code snippet mapping diagram provided by an embodiment of the present application;

[0023] Figure 4 It is an incentive component mapping diagram provided in an embodiment of the present application;

[0024] Figure 5 It is a flowchart of the specific steps of a method for building an on-chip network provided in an embodiment of the present application;

[0025] Figure 6 It is a schematic diagram of a component library and a code library provided in an embodiment of the present application;

[0026] Figure 7 It is an architectural diagram of a method for building a network on chip provided in an embodiment of the present application;

[0027] Figure 8 This is a verification platform architecture diagram provided by an embodiment of the present application;

[0028] Fig. 9 It is a block diagram of a device for building a network on a chip provided in an embodiment of the present application;

[0029] Fig.10 is a block diagram of an electronic device provided by an embodiment of the present invention;

[0030] Fig.11 is a block diagram of another electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three kinds of relationships can exist, for example, A and / or B can be represented: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the front and back associated objects are a kind of "or" relationship. In the embodiment of the present application, the term "multiple" refers to two or more, and other quantifiers are similar.

[0033] Figure 1 , is a flowchart of a method for building a network on chip provided by an embodiment of the present application, such as Figure 1 As shown, the method may include:

[0034] Step 101: In response to a connection operation between at least some target interface elements in the interface elements displayed on the build interface, an on-chip network structure is obtained.

[0035] Each target interface element included in the on-chip network structure is associated with a corresponding code fragment, at least part of the target interface elements are associated with a corresponding verification incentive component, and each of the interface elements corresponds to a constituent unit in the on-chip network.

[0036] In practical applications, although the multiple processor cores in a multi-core processor chip each execute their own code, data needs to be shared and synchronized between the processor cores. Therefore, the hardware structure of the multi-core processor must support efficient inter-core communication, and the performance of the on-chip communication structure will directly affect the performance of the processor.

[0037] Therefore, the on-chip network aims to solve the communication problem within the multi-core processor. The on-chip network is an integrated circuit on a network-based communication subsystem. The on-chip network is a packet switching network based on routers between on-chip systems. The on-chip network technology draws on the interconnected network structure of parallel computers, integrating a large number of computing resources and an on-chip communication network connecting these resources on a single chip. Each processor core has an independent router and its private cache, and is connected together through an on-chip communication network. The processor cores use a message communication mechanism, and use routers and packet switching technology to replace the on-chip bus of related technologies to complete the communication task, thereby solving various bottleneck problems caused by bus interconnection in related technologies.

[0038] Among them, the design and development of the on-chip network in the related technology relies on human resources and requires a lot of manual compilation. In addition, in order to meet the operational stability of the on-chip network, it is also necessary to build a verification platform corresponding to the on-chip network design to verify the stability of the on-chip network design. The related technology is based on the on-chip network design to manually write verification files. The whole process is cumbersome and time-consuming. When the on-chip network design changes, the verification file also needs to be manually updated synchronously, which further increases the labor cost.

[0039] In an embodiment of the present application, in order to reduce the manpower cost of the on-chip network design, verification and synchronous update process, and reduce the complexity of the design, verification and synchronous update process, the embodiment of the present application can develop a method of constructing on-chip network design and verification files using flowchart design ideas based on a simple and intuitive interface design.

[0040] The specific idea of ​​the embodiment of the present application is to convert each constituent unit of the on-chip network into a displayable interface element, and the user selects the corresponding interface elements in the construction interface to perform operations such as positioning and interconnection, thereby realizing the construction of the topological structure of the on-chip network. In addition, each interface element can be associated with a corresponding code snippet and a corresponding verification incentive component. Therefore, after completing the construction of the topological structure of the on-chip network, the on-chip network code file and verification file can be obtained through one-click generation based on the on-chip network structure and the code snippet and verification incentive component associated with the target interface element in the on-chip network structure.

[0041] In this step, you can first show Figure 2 The on-chip network building interface shown in the figure may include a material selection area. In general, the on-chip network may include components such as external devices, routing modules, consistency modules, and processor cores (more components are not shown one by one). In the embodiment of the present application, each component may be configured with an interface element of a corresponding shape, and different components may have different interface elements. Figure 2 In the example, the interface elements of the routing module can be configured as a rounded square, the interface elements of the consistency module can be configured as an ellipse, the interface elements of the processor core can be configured as a circle, and the interface elements of the external device can be configured as a rectangular box.

[0042] Further, see Figure 2 , the user can select at least some of the target interface elements from the interface elements displayed in the construction interface according to the actual design requirements, and place and connect the target interface elements in the design area, so as to obtain a designed on-chip network structure, such as Figure 2In the present invention, four routing module interface elements, one consistency module interface element, one processor core interface element and one external device interface element are selected to construct a topological structure of an on-chip network, wherein the four routing module interface elements are connected to each other in sequence, the consistency module interface element is connected to the interface element of routing module 1, the processor core interface element is connected to the interface element of routing module 4, and the external device interface element is connected to the interface element of routing module 2.

[0043] In addition, each interface element is associated with a corresponding code snippet, which is used to implement the function of the component unit corresponding to the interface element. Figure 3 The routing module interface element can be associated with the routing module code snippet, the consistency module interface element can be associated with the consistency module code snippet, the processor core interface element can be associated with the processor core code snippet, and the external device interface element can be associated with the external device code snippet. In the process of generating the final on-chip network code file, the on-chip network code file is generated by instantiating and connecting the code snippets layer by layer.

[0044] Furthermore, at least some of the interface elements are associated with corresponding verification stimulus components, which are related to the verification of the on-chip network and are used to implement the interface configuration, model, comparison function and corresponding signal timing definition required to start the verification function. Figure 4 , the external device interface element can be associated with an external interface stimulus component, the processor core interface element can be associated with a processor core interface stimulus component, the external interface stimulus component is used to implement the interactive interface between the verification platform and the external device, and the processor core interface stimulus component is used to implement the interactive interface between the verification platform and the processor core. Of course, there can be more verification stimulus components, which are not shown here one by one.

[0045] Step 102: Perform code conversion according to the on-chip network structure, and the code fragments and verification stimulus components associated with the target interface elements in the on-chip network structure to obtain an on-chip network code file and a verification file.

[0046] The verification file is used to build a verification platform to verify the on-chip network.

[0047] In an embodiment of the present application, after constructing the on-chip network structure in the form of a flowchart by building an interface, the one-click conversion function can be used to automatically perform code conversion based on the on-chip network structure and the code snippets and verification stimulus components associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and verification file.

[0048] At the same time, when the design of the on-chip network structure is changed, the target interface elements included in the changed on-chip network structure and their positions and connection relationships may change. However, since the target interface elements included in the changed on-chip network structure are still associated with corresponding code snippets and verification stimulus components, the verification file can also be automatically updated when the on-chip network structure changes, thereby achieving quick and synchronous update of the verification file and the on-chip network code file.

[0049] In summary, in the embodiments of the present application, each constituent unit of the on-chip network can be converted into a displayable interface element, and the user can select the corresponding interface element in the construction interface to perform operations such as positioning and interconnection, so as to realize the rapid construction of the topological structure of the on-chip network. In addition, each interface element can be associated with a corresponding code snippet and a corresponding verification incentive component. After the construction of the topological structure of the on-chip network is completed, the on-chip network code file and the verification file can be obtained by one-click generation based on the on-chip network structure and the code snippet and verification incentive component associated with the target interface element in the on-chip network structure. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources. In addition, when changing the on-chip network structure, the target interface elements included in the changed on-chip network structure are still associated with the corresponding code snippets and verification incentive components. Therefore, the verification file can also be automatically updated when the on-chip network structure changes, reducing the cost of synchronous updates.

[0050] Figure 5 , is a flowchart of the specific steps of a method for building an on-chip network provided in an embodiment of the present application, such as Figure 5 As shown, the method may include:

[0051] Step 201: display a building interface, wherein the building interface includes a plurality of interface elements to be selected.

[0052] Step 202: Select a target interface element in the building interface, set the position of the target interface element by dragging, and connect multiple target interface elements to each other to obtain the on-chip network structure.

[0053] In an embodiment of the present application, for steps 201-202, each constituent unit of the on-chip network can be converted into a displayable interface element, and the user can select the corresponding interface element in the construction interface to perform operations such as positioning and interconnection, thereby realizing the construction of the topological structure of the on-chip network.

[0054] For example, refer to Figure 2In the material selection area, you can configure the interface elements of the routing module as a rounded box, the interface elements of the consistency module as an ellipse, the interface elements of the processor core as a circle, and the interface elements of the external device as a rectangular box. Users can select at least some of the target interface elements in the material selection area according to actual needs, and position and connect the target interface elements in the design area to obtain a designed on-chip network structure.

[0055] like Figure 2 In the figure, the user selected 4 routing module interface elements, 1 consistency module interface element, 1 processor core interface element and 1 external device interface element to build a topological structure of an on-chip network, in which the 4 routing module interface elements are connected to each other in sequence, the consistency module interface element is connected to the interface element of routing module 1, the processor core interface element is connected to the interface element of routing module 4, and the external device interface element is connected to the interface element of routing module 2.

[0056] Step 203: Perform code conversion according to the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and intermediate files, wherein the intermediate files are used to record the topology information and interface information of the on-chip network.

[0057] In an embodiment of the present application, a one-key conversion function can be used to automatically perform code conversion based on the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and the intermediate file.

[0058] Among them, the code snippets associated with each target interface element in the on-chip network structure can be instantiated and connected layer by layer, so as to obtain the on-chip network code file and intermediate file. The on-chip network code file reflects the basic functional information of the on-chip network, and the intermediate file is the topological information and interface information of the on-chip network. The intermediate file can be a file in .yml format, which is a file used to describe configuration information.

[0059] Optionally, the constituent units in the on-chip network include: one or more of a processor core, a consistency module, an external device, and a routing module; and the shapes of the interface elements corresponding to different constituent units are different.

[0060] Optionally, the verification stimulus component includes one or more of: a processor core interface stimulus component, an external interface stimulus component, a verification comparison stimulus component, a verification reference model, and a connection component.

[0061] Optionally, step 203 may specifically include:

[0062] Sub-step 2031: according to the target interface element included in the on-chip network structure, searching for a code snippet corresponding to the target interface element from a preset code library, wherein the code library stores the correspondence between the interface elements and the code snippets.

[0063] Sub-step 2032: performing code conversion according to the on-chip network structure and the code fragment associated with the target interface element to obtain the on-chip network code file and the intermediate file.

[0064] In the embodiment of the present application, for sub-steps 2031-2032, refer to Figure 6 , which shows a schematic diagram of a code library and a component library, wherein the code library includes code snippets such as routing module code snippets, consistency module code snippets, processor core code snippets, and external device code snippets, which are used to be called and used during one-key conversion. Figure 7 The on-chip network construction architecture of the embodiment of the present application may include an input component, a conversion system, and an output and test system, and the conversion system includes a code conversion module and a verification conversion module. For the code conversion module, when responding to a one-key conversion, it can match the code fragment corresponding to the target interface element in the code library based on the target interface element included in the on-chip network structure, and then instantiate and connect the matched code fragments layer by layer, so as to obtain the on-chip network code file and intermediate file.

[0065] Optionally, step 203 may specifically include:

[0066] Sub-step 2033: converting the on-chip network structure into a recognizable standard format file.

[0067] Sub-step 2034: performing code conversion according to the standard format file and the code snippet associated with the target interface element in the on-chip network structure to obtain the on-chip network code file and the intermediate file.

[0068] In the embodiment of the present application, for sub-steps 2033-2034, refer to Figure 7 In order to improve the standardization and stability of the conversion process, the input of the code conversion module can be standardized, that is, the code conversion module needs to take a file in a preset format as input. Figure 2 The on-chip network structure constructed in the building interface is converted into a recognizable standard format file, and then the standard format file is input into the code conversion module to obtain the on-chip network code file and the intermediate file. Among them, the recognizable standard format file can be a file in .sml or .yml format.

[0069] Step 204: Perform code conversion according to the intermediate file and the verification incentive component associated with the target interface element to obtain the verification file.

[0070] In the embodiments of this application, refer to Figure 7 The intermediate file, as a file that carries the topology information and interface information of the on-chip network, can provide intermediate variables for the construction of the verification platform. Therefore, the embodiment of the present application can instantiate and construct the verification file according to the topology information and interface information of the on-chip network described in the intermediate file, and the verification platform can be built by running the verification file.

[0071] Optionally, step 204 may specifically include:

[0072] Sub-step 2041: according to the target interface element included in the on-chip network structure, searching for a verification stimulus component corresponding to the target interface element from a preset component library, wherein the component library stores the correspondence between the interface elements and the verification stimulus components.

[0073] Sub-step 2042: performing code conversion according to the on-chip network structure and the verification incentive component associated with the target interface element to obtain the verification file.

[0074] In the embodiment of the present application, for sub-steps 2041-2042, refer to Figure 6 , which shows a schematic diagram of a code library and a component library, wherein the component library includes a processor core stimulus component, an external interface stimulus component, a verification comparison stimulus component, a verification reference model, a connection component, etc. These stimulus components are used when building a verification platform. For further reference Figure 7 In the on-chip network building architecture of the embodiment of the present application, for the verification conversion module, when responding to a one-key conversion, it can use the intermediate file as input, match the stimulus component corresponding to the target interface element in the component library, and then instantiate the matched stimulus component to obtain a verification file.

[0075] Reference Figure 8 , which shows a schematic diagram of a verification architecture, including: a verification platform and a code to be tested, wherein the verification platform includes a verification comparison module, a processor core interface, an external interface and a verification reference model; the code to be tested includes an on-chip network code file.

[0076] Specifically, when the on-chip network simulation corresponding to the on-chip network code file is running, the data for the processor core and the external device can be transmitted between the verification platform and the on-chip network by the bridge module, the data for the processor core can be passed into the verification comparison module by the processor core interface implemented by the verification platform, and the data for the external device can be passed into the verification comparison module by the external interface implemented by the verification platform. The verification comparison module is used to compare the data of the processor core, the data of the external device and the data of the verification reference model, so as to obtain the verification result.

[0077] In summary, in the embodiments of the present application, each constituent unit of the on-chip network can be converted into a displayable interface element, and the user can select the corresponding interface element in the construction interface to perform operations such as positioning and interconnection, so as to realize the rapid construction of the topological structure of the on-chip network. In addition, each interface element can be associated with a corresponding code snippet and a corresponding verification incentive component. After the construction of the topological structure of the on-chip network is completed, the on-chip network code file and the verification file can be obtained by one-click generation based on the on-chip network structure and the code snippet and verification incentive component associated with the target interface element in the on-chip network structure. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources. In addition, when changing the on-chip network structure, the target interface elements included in the changed on-chip network structure are still associated with the corresponding code snippets and verification incentive components. Therefore, the verification file can also be automatically updated when the on-chip network structure changes, reducing the cost of synchronous updates.

[0078] Fig. 9 : is a block diagram of a device for building a network on chip provided in an embodiment of the present application, the device comprising:

[0079] A construction module 301 is used to obtain an on-chip network structure in response to a connection operation between at least some of the target interface elements in the interface elements displayed on the construction interface, wherein each target interface element included in the on-chip network structure is associated with a corresponding code fragment, at least some of the target interface elements are associated with a corresponding verification incentive component, and each of the interface elements corresponds to a constituent unit in the on-chip network;

[0080] The conversion module 302 is used to perform code conversion according to the on-chip network structure, and the code fragments and verification stimulus components associated with the target interface elements in the on-chip network structure, to obtain the on-chip network code file and verification file, and the verification file is used to build a verification platform to verify the on-chip network.

[0081] Optionally, the construction module 301 includes:

[0082] A display submodule, used to display a building interface, wherein the building interface includes a plurality of interface elements to be selected;

[0083] The construction submodule is used to select a target interface element in the construction interface, set the position of the target interface element by dragging, and connect multiple target interface elements to each other to obtain the on-chip network structure.

[0084] Optionally, the conversion module 302 includes:

[0085] A first conversion submodule is used to perform code conversion according to the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and the intermediate file, wherein the intermediate file is used to record the topology information and interface information of the on-chip network;

[0086] The second conversion submodule is used to perform code conversion according to the intermediate file and the verification incentive component associated with the target interface element to obtain the verification file.

[0087] Optionally, the first conversion submodule includes:

[0088] A first search unit, configured to search a code fragment corresponding to a target interface element included in the on-chip network structure from a preset code library, wherein the code library stores a correspondence between interface elements and code fragments;

[0089] The first conversion unit is used to perform code conversion according to the on-chip network structure and the code fragment associated with the target interface element to obtain the on-chip network code file and the intermediate file.

[0090] Optionally, the first conversion submodule includes:

[0091] A conversion unit, used to convert the on-chip network structure into a recognizable standard format file;

[0092] The second conversion unit is used to perform code conversion according to the standard format file and the code fragment associated with the target interface element in the on-chip network structure to obtain the on-chip network code file and the intermediate file.

[0093] Optionally, the second conversion submodule includes:

[0094] A second search unit is used to search for a verification stimulus component corresponding to the target interface element from a preset component library according to the target interface element included in the on-chip network structure, wherein the component library stores a correspondence between the interface element and the verification stimulus component;

[0095] The third conversion unit is used to perform code conversion according to the on-chip network structure and the verification incentive component associated with the target interface element to obtain the verification file.

[0096] Optionally, the constituent units in the on-chip network include: one or more of a processor core, a consistency module, an external device, and a routing module; and the shapes of the interface elements corresponding to different constituent units are different.

[0097] Optionally, the verification stimulus component includes one or more of: a processor core interface stimulus component, an external interface stimulus component, a verification comparison stimulus component, a verification reference model, and a connection component.

[0098] In summary, in the embodiments of the present application, each constituent unit of the on-chip network can be converted into a displayable interface element, and the user can select the corresponding interface element in the construction interface to perform operations such as positioning and interconnection, so as to realize the rapid construction of the topological structure of the on-chip network. In addition, each interface element can be associated with a corresponding code snippet and a corresponding verification incentive component. After the construction of the topological structure of the on-chip network is completed, the on-chip network code file and the verification file can be obtained by one-click generation based on the on-chip network structure and the code snippet and verification incentive component associated with the target interface element in the on-chip network structure. The whole process eliminates the link of manually writing codes and scripts, greatly reducing the dependence on human resources. In addition, when changing the on-chip network structure, the target interface elements included in the changed on-chip network structure are still associated with the corresponding code snippets and verification incentive components. Therefore, the verification file can also be automatically updated when the on-chip network structure changes, reducing the cost of synchronous updates.

[0099] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0100] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0101] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0102] An embodiment of the present application provides a device for building a network on a chip, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to include methods for performing one or more of the methods described in the above-mentioned embodiments.

[0103] Fig.10is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0104] Reference Fig.10 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0105] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0106] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0107] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0108] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0109] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0110] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0111] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0112] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0113] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement the methods provided in the embodiments of the present application.

[0114] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0115] Fig.11 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Fig.11 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the method provided in the embodiment of the present application.

[0116] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM or the like.

[0117] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method described in the above embodiment when executed by a processor.

[0118] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0119] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for building a network on chip, characterized in that: The method comprises: In response to a connection operation between at least some of the target interface elements in the interface elements displayed on the build interface, an on-chip network structure is obtained, wherein each target interface element included in the on-chip network structure is associated with a corresponding code fragment, at least some of the target interface elements are associated with a corresponding verification incentive component, and each of the interface elements corresponds to a constituent unit in the on-chip network; According to the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure, code conversion is performed to obtain an on-chip network code file and an intermediate file, wherein the intermediate file is used to record the topology information and interface information of the on-chip network; Acquire a verification incentive component associated with the target interface element from a component library; According to the verification incentive component associated with the intermediate file and the target interface element, code conversion is performed to obtain a verification file, and the verification file is used to build a verification platform to verify the on-chip network.

2. The method for building a network on chip according to claim 1, characterized in that: In response to a connection operation between at least some of the target interface elements in the interface elements displayed on the design interface, an on-chip network structure is obtained, including: Displaying a building interface, wherein the building interface includes a plurality of interface elements to be selected; A target interface element in the construction interface is selected, and the position of the target interface element is set by dragging, and multiple target interface elements are connected to each other to obtain the on-chip network structure.

3. The method for building a network on chip according to claim 1, characterized in that: The method of performing code conversion according to the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and the intermediate file includes: According to the target interface element included in the on-chip network structure, searching for a code snippet corresponding to the target interface element from a preset code library, wherein the code library stores a correspondence between the interface elements and the code snippets; Code conversion is performed according to the on-chip network structure and the code fragment associated with the target interface element to obtain the on-chip network code file and the intermediate file.

4. The method for building a network on chip according to claim 1, characterized in that: The method of performing code conversion according to the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and the intermediate file includes: Converting the on-chip network structure into a recognizable standard format file; Code conversion is performed according to the standard format file and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and the intermediate file.

5. The method for building a network on chip according to claim 1, characterized in that: The step of performing code conversion according to the verification incentive component associated with the intermediate file and the target interface element to obtain the verification file includes: According to the target interface element included in the on-chip network structure, searching for a verification stimulus component corresponding to the target interface element from a preset component library, wherein the component library stores a correspondence between the interface element and the verification stimulus component; According to the on-chip network structure and the verification incentive component associated with the target interface element, code conversion is performed to obtain the verification file.

6. The method for building a network on chip according to any one of claims 1 to 5, characterized in that: The constituent units in the on-chip network include: one or more of a processor core, a consistency module, an external device, and a routing module; the shapes of the interface elements corresponding to different constituent units are different.

7. The method for building a network on chip according to any one of claims 1 to 5, characterized in that: The verification stimulus component includes one or more of: a processor core interface stimulus component, an external interface stimulus component, a verification comparison stimulus component, a verification reference model, and a connection component.

8. A device for building a network on a chip, characterized in that: The device comprises: A construction module, for obtaining a network-on-chip structure in response to a connection operation between at least some of the target interface elements in the interface elements displayed on the construction interface, wherein each target interface element included in the network-on-chip structure is associated with a corresponding code fragment, at least some of the target interface elements are associated with a corresponding verification incentive component, and each of the interface elements corresponds to a constituent unit in the network-on-chip; A conversion module is used to perform code conversion according to the on-chip network structure and the code fragments associated with the target interface elements in the on-chip network structure to obtain the on-chip network code file and the intermediate file, and the intermediate file is used to record the topology information and interface information of the on-chip network; obtain the verification stimulus component associated with the target interface element from the component library; perform code conversion according to the intermediate file and the verification stimulus component associated with the target interface element to obtain the verification file, and the verification file is used to build a verification platform to verify the on-chip network.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 7.