Component communication method, device, equipment and storage medium in verification environment
By using the transmission channel pool to allocate and bind transmission channels to components in the verification environment, the problems of cumbersome and high cost of component connection are solved, and automated registration and efficient development of component communication are realized.
Patent Information
- Application Number
- CN202411059815.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-02
AI Technical Summary
In a verification environment, the prior art requires connecting the sending end components and the receiving end components one by one, resulting in a large amount of connection operations and prone to errors in the case of a large number of receiving end components, which increases development costs.
The transmission channel is allocated to the transmitting end component through a preset transmission channel pool, and the corresponding relationship between its identification and channel is recorded. The receiving end component determines the target transmission channel based on the access identification when registering, so as to realize one-to-one communication between components. Simplify registration and reduce development costs.
It realizes automatic registration and simple operation of component communication, reduces development costs and improves development efficiency, especially when there is a large number of components on the receiving end, there is no need to write connection code.
Smart Images

Figure CN118567883B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a component communication method, device, electronic device and computer-readable storage medium in a verification environment. Background Art
[0002] The operational stability of the network-on-chip (NOC) is crucial. In order to ensure the operational stability of the NOC, the design of the NOC needs to be verified.
[0003] At present, the verification environment includes a large number of verification components, which need to cooperate in stimulating and testing the design under test, and there is a one-to-one communication requirement between verification components. Specifically, when the verification components communicate with each other, the sending interface (port) can be first declared at the entrance of the verification environment, and then the receiving port (get_export) can be declared at the exit. Then, the sending component and the receiving component can be connected one by one at the top level (env_top) of the verification platform, so as to achieve the purpose of sending data from the sending component to the receiving component.
[0004] However, the current solution requires connecting the sending end component and the receiving end component one by one. When the number of receiving end components and sending end components is large, the workload of the connection operation is large and incorrect connections are prone to occur, resulting in high development costs. Summary of the invention
[0005] Embodiments of the present application provide a component communication method, device, electronic device, and computer-readable storage medium in a verification environment to solve problems in related technologies.
[0006] In a first aspect, an embodiment of the present application provides a component communication method in a verification environment, the method comprising:
[0007] In response to a registration request for a transmitter component in an on-chip network verification environment, a corresponding transmission channel is allocated to the transmitter component in a preset transmission channel pool, and a corresponding relationship between an identifier of the transmitter component and the allocated transmission channel is recorded; the transmitter component is used to write a message to the transmission channel;
[0008] In response to a registration request for a receiving-end component in an on-chip network verification environment, acquiring an access identifier passed in by the receiving-end component, determining a target transmission channel corresponding to the access identifier according to the corresponding relationship, and binding the receiving-end component to the target transmission channel;
[0009] In response to the message acquisition request of the receiving-end component, the message is acquired from the target transmission channel and sent to the receiving-end component.
[0010] In a second aspect, an embodiment of the present application provides a component communication device in a verification environment, the device comprising:
[0011] A first registration module, configured to respond to a registration request for a sender component in a network-on-chip verification environment, allocate a corresponding transmission channel to the sender component in a preset transmission channel pool, and record a corresponding relationship between an identifier of the sender component and the allocated transmission channel; the sender component is configured to write a message into the transmission channel;
[0012] A second registration module is used to respond to a registration request for a receiving-end component in the on-chip network verification environment, obtain an access identifier passed in by the receiving-end component, and determine a target transmission channel corresponding to the access identifier according to the corresponding relationship, and bind the receiving-end component to the target transmission channel;
[0013] The acquisition module is used to respond to the message acquisition request of the receiving end component, acquire the message from the target transmission channel and send it to the receiving end component.
[0014] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor;
[0015] a memory for storing instructions executable by the processor;
[0016] The processor is configured to execute the instructions to implement the method of the first aspect.
[0017] 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.
[0018] In an embodiment of the present application, a corresponding transmission channel can be allocated to the sending-end component participating in the registration based on a transmission channel pool for global use, and the correspondence between the transmission channel and the identifier of the sending-end component can be recorded. When the receiving-end component is subsequently registered, the target transmission channel corresponding to the access identifier can be determined based on the access identifier and the correspondence passed in by the receiving-end component, and the receiving-end component can be bound to the target transmission channel, so that the target transmission channel can subsequently respond to the message acquisition request of the receiving-end component, obtain the message from the target transmission channel and send it to the receiving-end component, thereby realizing one-to-one communication between components in the verification environment. In an embodiment of the present application, the communication process only requires the sending-end component and the receiving-end component to perform automated registration operations. The parameters automatically passed in by the registration operation include relatively simple parameters such as the identifier. The entire process is simple to operate. When the number of receiving-end components is large, there is no need to write the connection code of the receiving-end components one by one, thereby reducing development costs and improving development efficiency.
[0019] 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
[0020] 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.
[0021] Figure 1 It is a flowchart of the steps of a component communication method in a verification environment provided by an embodiment of the present application;
[0022] Figure 2 It is an architectural diagram of a verification environment provided by an embodiment of the present application;
[0023] Figure 3 It is a flowchart of the specific steps of a component communication method in a verification environment provided by an embodiment of the present application;
[0024] Figure 4 It is a block diagram of a component communication device in a verification environment provided by an embodiment of the present application;
[0025] Figure 5 is a block diagram of an electronic device provided by an embodiment of the present invention;
[0026] Figure 6 is a block diagram of another electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0027] 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.
[0028] 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.
[0029] Figure 1 , is a flowchart of a component communication method in a verification environment provided by an embodiment of the present application, such as Figure 1 As shown, the method may include:
[0030] Step 101: In response to a registration request for a transmitter component in a network-on-chip verification environment, a corresponding transmission channel is allocated to the transmitter component in a preset transmission channel pool, and a corresponding relationship between an identifier of the transmitter component and the allocated transmission channel is recorded.
[0031] The sending end component is used to write messages into the transmission channel.
[0032] In practical applications, although multiple processor cores in a multi-core processor chip execute their own codes, data sharing and synchronization are required between 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. 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 interconnection 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.
[0033] Specifically, in the design and development process of the network on chip, in order to meet the operational stability of the network on chip, it is also necessary to build a verification platform corresponding to the network on chip design to verify the stability of the network on chip design. The built verification platform can have a large number of components for verification stimulation. These components are related to the verification of the network on chip and are used to implement the interface configuration, model, comparison function and definition of corresponding signal timing required for starting the verification function. For example, the external interface stimulation component is used to realize the interactive interface between the verification platform and the external device, and the processor core interface stimulation component is used to realize the interactive interface between the verification platform and the processor core. Of course, there can be more types of verification stimulation components, which are not shown here one by one.
[0034] During the verification platform operation, there are one-to-many communication requirements between these components, such as component A needs to send data to component B, component C needs to send data to component D, and component E needs to send data to component F. The relevant technology uses the top level (env_top) of the verification environment to connect the corresponding sender component and receiver component one by one, so as to achieve the purpose of sending data from the sender component to the receiver component. However, this method is relatively cumbersome, resulting in low development efficiency.
[0035] In order to solve this problem, an embodiment of the present application can construct an independent external component, which is associated with a transmission channel pool for global use. The transmission channel pool allocates transmission channels to each group of sending-end components and receiving-end components participating in the communication, thereby realizing one-to-one communication requirements of each group of sending-end components and receiving-end components.
[0036] In this step, refer to Figure 2In the embodiment of the present application, an external component independent of other components can be built in the verification environment. A transmission channel pool is associated with the external component. Multiple transmission channels can be established and maintained in the transmission channel pool. The transmission channels in the transmission channel pool can be divided into each group of sending end components and receiving end components for use. The transmission channel is used to store the data to be sent by the sending end component through the sending port (port). In addition, the receiving end component can also obtain the desired data from the transmission channel through the receiving port (get_export) through a get request.
[0037] Furthermore, before the sending component communicates, it needs to register in the external component first. The registration module in the external component of the verification environment can respond to the registration request of the sending component and allocate an idle transmission channel in the transmission channel pool to the sending component. In addition, the registration request also includes the identifier of the sending component. After the allocation of the transmission channel is completed, the external component can record the corresponding relationship between the transmission channel allocated to the sending component and the identifier of the sending component.
[0038] Optionally, the transmission channel is a first-in-first-out (FIFO) queue.
[0039] In the embodiment of the present application, the FIFO queue is used to execute a sequential execution method, where the first data to enter is completed and retired first, and then the second data is executed. The FIFO queue does not classify the data. When the speed at which the data enters the FIFO queue is greater than the speed at which the FIFO queue can send it, the FIFO allows the data to enter the queue in the order in which the data arrives at the interface. At the same time, the FIFO allows the data to exit the queue in the order in which it enters the queue. The advanced data will exit the queue first, and the late data will exit the queue later. This mechanism makes the FIFO queue have the advantages of simple processing and low overhead.
[0040] Specifically, after allocating a transmission channel to the sending end component, the sending end component may write the message data to be sent into the transmission channel, and the transmission channel may store the message data in sequence according to the writing order of the message data.
[0041] Step 102: In response to a registration request for a receiving-end component in an on-chip network verification environment, obtain an access identifier passed by the receiving-end component, determine a target transmission channel corresponding to the access identifier based on the corresponding relationship, and bind the receiving-end component to the target transmission channel.
[0042] In an embodiment of the present application, the receiving-end component can realize communication with the sending-end component by registering in an external component. The external component of the verification environment can respond to the registration request of the receiving-end component and extract the access identifier passed in by the receiving-end component from the registration request of the receiving-end component. The access identifier passed in by the receiving-end component is used to characterize the source object of the data received by the receiving-end component. For example, assuming that component B wants to receive data sent by component A, the access identifier carried in the registration request of component B can be the identifier of component A.
[0043] Specifically, since the external component records the correspondence between the transmission channel allocated to the sending end component and the identifier of the sending end component in step 101, after the external component obtains the access identifier transmitted by the receiving end component, the external component can match the access identifier with the above correspondence to determine the target transmission channel corresponding to the access identifier, that is, the receiving port of the receiving end component can access the target transmission channel through a binding operation to obtain the message data written by the sending end component and stored in the target transmission channel.
[0044] Step 103: In response to the message acquisition request of the receiving-end component, acquire the message from the target transmission channel and send it to the receiving-end component.
[0045] In an embodiment of the present application, a target transmission channel can be bound to a receiving end component. After a receiving end component is bound to the target transmission channel, the receiving end component can obtain messages from the target transmission channel through a get request, thereby realizing the need for one-to-one communication between the sending end component and the receiving end component.
[0046] For example, refer to Figure 2 , assuming that N receiving-end components are bound to N transmission channels in sequence, and N sending-end components, N receiving-end components and N transmission channels correspond one to one, then when sending-end component 1 wants to send message A, sending-end component 1 can write message A to transmission channel 1, and then receiving-end component 1 can obtain message A from the corresponding transmission channel 1 through a get request. The same is true for each group of other sending-end components and receiving-end components participating in the communication.
[0047] In summary, in the embodiment of the present application, based on the transmission channel pool for global use, corresponding transmission channels can be allocated to the sending-end components participating in the registration, and the correspondence between the transmission channels and the identifiers of the sending-end components can be recorded. When the receiving-end component is subsequently registered, it can determine the target transmission channel corresponding to the access identifier based on the access identifier and the correspondence passed in by the receiving-end component, and bind the receiving-end component to the target transmission channel, so that the target transmission channel can subsequently respond to the message acquisition request of the receiving-end component, obtain the message from the target transmission channel and send it to the receiving-end component, thereby realizing one-to-one communication between components in the verification environment. In the embodiment of the present application, the communication process only requires the sending-end component and the receiving-end component to perform automated registration operations. The parameters automatically passed in by the registration operation include relatively simple parameters such as the identifier. The whole process is simple to operate. When the number of receiving-end components is large, there is no need to write the connection code of the receiving-end components one by one, thereby reducing development costs and improving development efficiency.
[0048] Figure 3 , is a flowchart of the specific steps of a component communication method in a verification environment provided by an embodiment of the present application, such as Figure 3 As shown, the method may include:
[0049] Step 201: Respond to the registration request of the sending end component through the first function of the external component, and obtain the identifier passed in by the sending end component; the external component is associated with the transmission channel pool and the memory area.
[0050] Step 202: In the transmission channel pool, a new idle transmission channel is established and allocated to the sending end component.
[0051] Step 203: Record the correspondence between the allocated transmission channel and the identifier of the sending end component in the memory area.
[0052] Optionally, the identifier includes: a custom identifier or address information of the sending end component;
[0053] In the embodiment of the present application, for steps 201-203, refer to Figure 2 The external component is associated with a transmission channel pool and a memory area, wherein the transmission channel pool is used for global calls. Specifically, the idle transmission channels in the transmission channel pool can be allocated to the sending end components participating in the registration for occupation and use. The registration request of the sending end component can be responded to by the first function in the registration module of the external component.
[0054] Step 204, responding to the registration request of the receiving-end component through the second function of the external component, and obtaining the access identifier passed in by the receiving-end component; the external component is associated with a memory area; the memory area records the correspondence between the transmission channel and the identifier.
[0055] Step 205: Match the access identifier in the memory area, determine the target transmission channel corresponding to the access identifier, and bind the receiving end component to the target transmission channel.
[0056] In the embodiment of the present application, for steps 204-205, refer to Figure 2 The receiving component can achieve communication by registering in the external component. The registration module in the external component has a built-in second function. The second function can respond to the registration request of the receiving component and obtain the access identifier passed in by the receiving component. The access identifier passed in by the receiving component is used to represent the source object of the data received by the receiving component. For example, assuming that component B wants to receive data sent by component A, the access identifier carried in the registration request of component B is the identifier of component A.
[0057] Since the memory area of the external component records the correspondence between the transmission channel allocated to the sending end component and the identifier of the sending end component, after the external component obtains the access identifier passed in by the receiving end component, the external component can match the access identifier with the above correspondence, thereby determining the target transmission channel corresponding to the access identifier, and then completing the binding of the receiving end component and the target transmission channel.
[0058] For example, refer to Figure 2 Assuming that the transmission channel 1 in the transmission channel pool is first allocated to the sending port of the sending component 1, then for the next registered sending component 2, a new transmission channel 2 can be established in the transmission channel pool and allocated to the sending port of the sending component 2, and so on, the transmission channel allocation of N sending components is completed sequentially.
[0059] In an embodiment of the present application, a transmission channel pool may include multiple transmission channels, each transmission channel has an independent occupied space, and different transmission channels occupy different spaces. The sending end component can write messages to the transmission channel. After the receiving end component is bound to the transmission channel, the receiving end component can obtain the message from the transmission channel through a get request, thereby realizing the need for one-to-one communication between the sending end component and the receiving end component.
[0060] Step 206: In response to the message acquisition request of the receiving-end component, acquire the message identifier transmitted by the receiving-end component.
[0061] Step 207: Determine a target message matching the message identifier among all messages stored in the target transmission channel corresponding to the receiving-end component, and send the target message to the receiving-end component.
[0062] In the embodiment of the present application, for steps 206-207, refer to Figure 2The receiving component can initiate a message acquisition request (get request) to the external component through the corresponding receiving port, so that the external component can respond to the message acquisition request, extract the target message requested by the message acquisition request from the transmission channel bound to the receiving component, and send the target message to the receiving component.
[0063] For example, refer to Figure 2 , assuming that the sending component writes message 1, message 2 and message 3 to transmission channel 1 through the sending port, if the message acquisition request issued by the receiving component 1 is to request to obtain message 2, the external component can respond to the message acquisition request, extract message 2 from transmission channel 1 and transmit it to the receiving component 1; if the message acquisition request issued by the receiving component 3 is to request to obtain message 1, the external component can respond to the message acquisition request, extract message 1 from transmission channel 3 and transmit it to the receiving component 3.
[0064] Optionally, in one implementation, step 207 may specifically include:
[0065] Sub-step 2071: extract all messages from the target transmission channel.
[0066] Sub-step 2072: extract the target message matching the message identifier from all the messages and send it to the receiving end component.
[0067] In the embodiment of the present application, for sub-steps 2071-2072, since the transmission channel is a first-in-first-out (FIFO) queue, the messages stored in the transmission channel are stored in sequence according to the transmission order (the earlier the message is stored, the higher the order), and each message is sent out in sequence according to the transmission order, and the earlier the message is stored, the earlier it is sent out. In one implementation, if the target message requested by the receiving end component is not the first message in the transmission queue, then in response to the message acquisition request of the receiving end component, the target transmission channel can first extract all the messages it has stored, and then filter out the target message that matches the message identifier and send it to the receiving end component to meet the need of the receiving end component to obtain a specific message.
[0068] Optionally, in another implementation, step 207 may specifically include:
[0069] Sub-step 2073: extract all messages from the target transmission channel.
[0070] Sub-step 2074: Send all of the messages to the receiving end component, so that the receiving end component receives the target message matching the message identifier, and discards messages other than the target message matching the message identifier.
[0071] In an embodiment of the present application, for sub-steps 2073-2074, in another implementation method, if the target message requested by the receiving-end component is not the first message in the transmission queue, then in response to the message acquisition request of the receiving-end component, the target transmission channel can first extract all its stored messages and send them to the receiving-end component, and then the receiving-end component filters out the target messages that match the message identifier and retains them, and discards messages other than the target messages that match the message identifier, so as to meet the need of the receiving-end component to obtain specific messages.
[0072] Optionally, the transmission channel pool is associated with a channel quantity parameter, and the channel quantity parameter is used to reflect the number of transmission channels in the transmission channel pool that have been used. After step 202, the method further includes:
[0073] Step 208: Increment the channel quantity parameter by 1.
[0074] In the embodiment of the present application, for each newly registered sending end component, a corresponding transmission channel is created in the transmission channel pool, that is, the channel quantity parameter is incremented by 1. The value of the channel quantity parameter can reflect the number of transmission channels maintained by the current transmission channel pool in real time.
[0075] In summary, in the embodiment of the present application, based on the transmission channel pool for global use, corresponding transmission channels can be allocated to the sending-end components participating in the registration, and the correspondence between the transmission channels and the identifiers of the sending-end components can be recorded. When the receiving-end component is subsequently registered, it can determine the target transmission channel corresponding to the access identifier based on the access identifier and the correspondence passed in by the receiving-end component, and bind the receiving-end component to the target transmission channel, so that the target transmission channel can subsequently respond to the message acquisition request of the receiving-end component, obtain the message from the target transmission channel and send it to the receiving-end component, thereby realizing one-to-one communication between components in the verification environment. In the embodiment of the present application, the communication process only requires the sending-end component and the receiving-end component to perform automated registration operations. The parameters automatically passed in by the registration operation include relatively simple parameters such as the identifier. The whole process is simple to operate. When the number of receiving-end components is large, there is no need to write the connection code of the receiving-end components one by one, thereby reducing development costs and improving development efficiency.
[0076] Figure 4 : is a block diagram of a component communication device in a verification environment provided by an embodiment of the present application, the device comprising:
[0077] The first registration module 301 is used to respond to a registration request for a sender component in a network-on-chip verification environment, allocate a corresponding transmission channel to the sender component in a preset transmission channel pool, and record a corresponding relationship between the identifier of the sender component and the allocated transmission channel; the sender component is used to write a message to the transmission channel;
[0078] The second registration module 302 is used to respond to a registration request for a receiving-end component in the on-chip network verification environment, obtain an access identifier passed by the receiving-end component, and determine a target transmission channel corresponding to the access identifier according to the corresponding relationship, and bind the receiving-end component to the target transmission channel;
[0079] The acquisition module 303 is used to respond to the message acquisition request of the receiving end component, acquire the message from the target transmission channel and send it to the receiving end component.
[0080] Optionally, the first registration module 301 includes:
[0081] A first response submodule, used to respond to the registration request of the sending end component through a first function of an external component, and obtain the identifier passed in by the sending end component; the external component is associated with the transmission channel pool and the memory area;
[0082] An allocation submodule, used to establish a new idle transmission channel in the transmission channel pool and allocate it to the sending end component;
[0083] The recording submodule is used to record the corresponding relationship between the allocated transmission channel and the identifier of the sending end component in the memory area.
[0084] Optionally, the second registration module 302 includes:
[0085] A second response submodule is used to respond to the registration request of the receiving end component through the second function of the external component, and obtain the access identifier passed by the receiving end component; the external component is associated with a memory area; the memory area records the corresponding relationship between the transmission channel and the identifier;
[0086] The determination submodule is used to match the access identifier in the memory area to determine the target transmission channel corresponding to the access identifier.
[0087] Optionally, the transmission channel pool is associated with a channel quantity parameter, and the channel quantity parameter is used to reflect the number of transmission channels that have been used in the transmission channel pool;
[0088] The device also includes:
[0089] The auto-increment module is used to auto-increment the channel quantity parameter by 1.
[0090] Optionally, the acquisition module 303 includes:
[0091] A third response submodule, configured to respond to the message acquisition request of the receiving-end component and acquire the message identifier transmitted by the receiving-end component;
[0092] The sending submodule is used to determine a target message matching the message identifier among all messages stored in the target transmission channel corresponding to the receiving end component, and send the target message to the receiving end component.
[0093] Optionally, the sending submodule includes:
[0094] A first extraction unit, used to extract all messages from the target transmission channel;
[0095] The second extraction unit is used to extract the target message matching the message identifier from all the messages and send it to the receiving end component.
[0096] Optionally, the sending submodule includes:
[0097] A third extraction unit, used to extract all messages from the target transmission channel;
[0098] The discarding unit is used to send all the messages to the receiving end component so that the receiving end component receives the target message matching the message identifier, and discards the messages except the target message matching the message identifier.
[0099] Optionally, the identifier includes: a custom identifier or address information of the sending end component;
[0100] The transmission channel is a first-in-first-out transmission queue.
[0101] In summary, in the embodiment of the present application, based on the transmission channel pool for global use, corresponding transmission channels can be allocated to the sending-end components participating in the registration, and the correspondence between the transmission channels and the identifiers of the sending-end components can be recorded. When the receiving-end component is subsequently registered, it can determine the target transmission channel corresponding to the access identifier based on the access identifier and the correspondence passed in by the receiving-end component, and bind the receiving-end component to the target transmission channel, so that the target transmission channel can subsequently respond to the message acquisition request of the receiving-end component, obtain the message from the target transmission channel and send it to the receiving-end component, thereby realizing one-to-one communication between components in the verification environment. In the embodiment of the present application, the communication process only requires the sending-end component and the receiving-end component to perform automated registration operations. The parameters automatically passed in by the registration operation include relatively simple parameters such as the identifier. The whole process is simple to operate. When the number of receiving-end components is large, there is no need to write the connection code of the receiving-end components one by one, thereby reducing development costs and improving development efficiency.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] An embodiment of the present application provides a component communication device in a verification environment, 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 above embodiments.
[0106] Figure 5 is 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.
[0107] Reference Figure 5 , 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 .
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] Figure 6is 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. Figure 6 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.
[0119] 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.
[0120] 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.
[0121] 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.
[0122] 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 component communication in a verification environment, It is characterized in that The method comprises: Responding to the registration request of the sending end component through the first function of the external component to obtain the identifier passed in by the sending end component; the external component is associated with a transmission channel pool and a memory area; In the transmission channel pool, a new idle transmission channel is established and allocated to the sending end component; and the corresponding relationship between the allocated transmission channel and the identifier of the sending end component is recorded in the memory area; the sending end component is used to write a message to the transmission channel; In response to a registration request for a receiving-end component in an on-chip network verification environment, acquiring an access identifier passed in by the receiving-end component, and determining a target transmission channel corresponding to the access identifier according to the corresponding relationship in the memory area, and binding the receiving-end component to the target transmission channel; In response to the message acquisition request of the receiving-end component, the message is acquired from the target transmission channel and sent to the receiving-end component.
2. The component communication method in the verification environment according to claim 1, It is characterized in that The step of responding to a registration request for a receiving-end component in an on-chip network verification environment, acquiring an access identifier passed in by the receiving-end component, and determining a target transmission channel corresponding to the access identifier according to the corresponding relationship, comprises: Responding to the registration request of the receiving end component through the second function of the external component to obtain the access identifier passed by the receiving end component; the external component is associated with a memory area; the corresponding relationship between the transmission channel and the identifier is recorded in the memory area; The access identifier is matched in the memory area to determine a target transmission channel corresponding to the access identifier.
3. The component communication method in the verification environment according to claim 1, It is characterized in that The transmission channel pool is associated with a channel quantity parameter, and the channel quantity parameter is used to reflect the number of transmission channels that have been used in the transmission channel pool; After allocating a corresponding transmission channel for the sending end component in a preset transmission channel pool in response to the registration request for the sending end component in the on-chip network verification environment, the method further includes: Increment the channel quantity parameter by 1.
4. The component communication method in the verification environment according to claim 1, It is characterized in that The step of obtaining a message from the target transmission channel and sending the message to the receiving end component in response to the message obtaining request of the receiving end component comprises: In response to the message acquisition request of the receiving-end component, acquiring the message identifier transmitted by the receiving-end component; Among all messages stored in the target transmission channel corresponding to the receiving-end component, a target message matching the message identifier is determined, and the target message is sent to the receiving-end component.
5. The component communication method in the verification environment according to claim 4, It is characterized in that The sending the target message to the receiving end component includes: Extract all messages from the target transmission channel; A target message matching the message identifier is extracted from all the messages and sent to the receiving end component.
6. The component communication method in the verification environment according to claim 4, It is characterized in that The sending the target message to the receiving end component includes: Extract all messages from the target transmission channel; All of the messages are sent to the receiving end component so that the receiving end component receives the target message matching the message identifier, and discards messages other than the target message matching the message identifier.
7. The component communication method in a verification environment according to any one of claims 1 to 6, It is characterized in that The identifier includes: a custom identifier or address information of the sending end component; The transmission channel is a first-in-first-out transmission queue.
8. A component communication device in a verification environment, It is characterized in that The device comprises: A first registration module is used to respond to the registration request of the sending end component through the first function of the external component, and obtain the identifier passed in by the sending end component; the external component is associated with a transmission channel pool and a memory area; in the transmission channel pool, a new idle transmission channel is established and allocated to the sending end component; and the corresponding relationship between the allocated transmission channel and the identifier of the sending end component is recorded in the memory area; the sending end component is used to write a message to the transmission channel; A second registration module is used to respond to a registration request for a receiving-end component in the on-chip network verification environment, obtain an access identifier passed in by the receiving-end component, and determine a target transmission channel corresponding to the access identifier according to the corresponding relationship in the memory area, and bind the receiving-end component to the target transmission channel; The acquisition module is used to respond to the message acquisition request of the receiving end component, acquire the message from the target transmission channel and send it to the receiving end component.
9. An electronic device, It is 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, It is 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.
Citation Information
Patent Citations
On-chip network router based on field programmable gate array (FPGA)
CN102685017A
On-chip network test package based on bidirectional transmission path
CN108833204A
Processing apparatus and system for performing data processing on multiple pieces of channel information
CN114546914A
Transmission path planning method and device in network-on-chip simulation, electronic equipment and computer readable storage medium
CN115250251A
Storage management method and device of many-core system and integrated circuit
CN115633098A
