CN118585357B - Component communication method, device, equipment and storage medium in verification environment - Google Patents
Component communication method, device, equipment and storage medium in verification environment Download PDFInfo
- Publication number
- CN118585357B CN118585357B CN202411055033.6A CN202411055033A CN118585357B CN 118585357 B CN118585357 B CN 118585357B CN 202411055033 A CN202411055033 A CN 202411055033A CN 118585357 B CN118585357 B CN 118585357B
- Authority
- CN
- China
- Prior art keywords
- component
- receiving end
- broadcast
- end component
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012795 verification Methods 0.000 title claims description 45
- 238000013507 mapping Methods 0.000 claims abstract description 63
- 230000006870 function Effects 0.000 claims description 12
- 239000012634 fragment Substances 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 4
- 238000012545 processing Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000000712 assembly Effects 0.000 description 5
- 238000000429 assembly Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000005284 excitation Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a component communication method, a device, an electronic device and a computer readable storage medium in an authentication environment, comprising the following steps: responding to a registration request of a sender component, declaring a broadcast film area occupied by the sender component in a preset mapping area, and recording the corresponding relation between the broadcast film area and the identification of the sender component; responding to a registration request of a receiving end component, acquiring an access identifier transmitted by the receiving end component, determining a target broadcasting zone corresponding to the access identifier according to the corresponding relation, and binding the receiving end component with the target broadcasting zone; and responding to the message acquisition request, acquiring the broadcast message from the target broadcast film region and transmitting the broadcast message to the receiving end component. The parameters automatically transmitted by the registration operation comprise simpler parameters such as the identification, the whole process is simple to operate, and the connection codes of the receiving end components do not need to be written one by one under the condition that the number of the receiving end components is large, so that the development cost is reduced, and the development efficiency is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for component communication in an authentication environment, an electronic device, and a computer readable storage medium.
Background
The operation stability of a network-on-chip (NOC) is critical, and in order to meet the operation stability of the network-on-chip, verification of the design of the network-on-chip is required.
Currently, the verification environment includes a large number of verification components, the verification components need to cooperatively send and test the design to be tested, and there is a one-to-many communication requirement between the verification components. Specifically, when one verification component communicates with a plurality of other verification components, a transmission interface (analysis_port for broadcasting) may be firstly declared at an entrance of the verification environment, then a receiving port (imp for receiving broadcasting content) may be declared at an exit end, and then a connection may be respectively performed on the transmission end component and the plurality of receiving end components at a top layer (env_top) of the verification platform, so that the purpose that the transmission end component transmits data to the plurality of receiving end components is achieved.
However, in the current scheme, connection between the transmitting end assembly and each receiving end assembly needs to be performed one by one, and under the condition that the number of the receiving end assemblies is large, the workload of connection operation is large, erroneous connection is easy to occur, and development cost is high.
Disclosure of Invention
The embodiment of the application provides a component communication method, device, electronic equipment and computer readable storage medium in an authentication environment, which are used for solving the problems in the related art.
In a first aspect, an embodiment of the present application provides a method for communicating components in a verification environment, the method including:
Responding to a registration request of a sender component in a network-on-chip verification environment, declaring a broadcast patch occupied by the sender component in a preset mapping area, and recording the corresponding relation between the broadcast patch and the identifier of the sender component; the sending end component is used for writing a broadcast message into the broadcast film zone;
Responding to a registration request of a receiving end component in a network-on-chip verification environment, acquiring an access identifier transmitted by the receiving end component, determining a target broadcasting patch corresponding to the access identifier according to the corresponding relation, and binding the receiving end component with the target broadcasting patch;
and responding to the message acquisition request of the receiving end component, acquiring a broadcast message from the target broadcast film zone and transmitting the broadcast message to the receiving end component.
In a second aspect, an embodiment of the present application provides a component communication apparatus in an authentication environment, the apparatus comprising:
The first registration module is used for responding to a registration request of a sender component in a network-on-chip verification environment, declaring a broadcast patch occupied by the sender component in a preset mapping area, and recording the corresponding relation between the broadcast patch and the identifier of the sender component; the sending end component is used for writing a broadcast message into the broadcast film zone;
the second registration module is used for responding to a registration request of a receiving end component in a network-on-chip verification environment, acquiring an access identifier transmitted by the receiving end component, determining a target broadcasting film zone corresponding to the access identifier according to the corresponding relation, and binding the receiving end component with the target broadcasting film zone;
and the acquisition module is used for responding to the message acquisition request of the receiving end assembly, acquiring the broadcast message from the target broadcast film zone and transmitting the broadcast message to the receiving end assembly.
In a third aspect, an embodiment of the present application further provides an electronic device, including a processor;
a memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of the first aspect.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of the first aspect.
In the embodiment of the application, the corresponding broadcast film area can be allocated for the sender component participating in registration based on the mapping area for global use, and the corresponding relation between the broadcast film area and the identification of the sender component is recorded, the target broadcast film area corresponding to the access identification can be determined according to the access identification and the corresponding relation transmitted by the receiver component during registration of the subsequent receiver component, the receiver component and the target broadcast film area are bound, so that the target broadcast film area can respond to the message acquisition request of the receiver component, and acquire broadcast messages from the target broadcast film area and transmit the broadcast messages to the receiver component.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a method of component communication in a verification environment provided by an embodiment of the present application;
FIG. 2 is a block diagram of a verification environment provided by an embodiment of the present application;
FIG. 3 is a block diagram of a mapping component according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of a method for component communication in a verification environment according to an embodiment of the present application;
FIG. 5 is a block diagram of a component communication device in an authentication environment provided by an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device provided by an embodiment of the invention;
fig. 7 is a block diagram of another electronic device in accordance with another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, the term "and/or" as used in the specification and claims to describe an association of associated objects means that there may be three relationships, e.g., a and/or B, may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The term "plurality" in embodiments of the present application means two or more, and other adjectives are similar.
FIG. 1 is a flowchart illustrating steps of a method for component communication in a verification environment according to an embodiment of the present application, where, as shown in FIG. 1, the method may include:
step 101, responding to a registration request of a sender component in a network-on-chip verification environment, declaring a broadcast patch occupied by the sender component in a preset mapping area, and recording a corresponding relation between the broadcast patch and an identifier of the sender component.
The sending end component is used for writing a broadcast message into the broadcast film zone.
In practical applications, although multiple processor cores in a multi-core processor chip execute respective codes, data sharing and synchronization are needed between the processor cores, so that a multi-core processor hardware structure must support efficient inter-core communication, and the performance of the on-chip communication structure will also directly affect the performance of the processor. Thus, the network-on-chip is intended to address communication problems within the multi-core processor, the network-on-chip being an integrated circuit on a network-based communication subsystem, the network-on-chip being a router-based packet-switched network between the systems-on-chip. Network-on-chip technology references the interconnect network structure of parallel computers, integrating a large number of computing resources on a single chip and the communication network on chip connecting these resources. Each processor core is provided with an independent router and private caches thereof and are connected together through an on-chip communication network, a message communication mechanism is adopted between the processor cores, and the router and a packet switching technology are used for replacing an on-chip bus of the related technology to complete communication tasks, so that various bottleneck problems caused by bus interconnection of the related technology are solved.
Specifically, in order to meet the running stability of the network on chip, a verification platform corresponding to the network on chip design needs to be built to perform stability verification of the network on chip design, and the built verification platform can be provided with a large number of components for verification excitation, wherein the components are related to verification of the network on chip and are used for realizing interface configuration, models, comparison functions, definition of corresponding signal time sequences and the like required by starting a verification function. For example, the external interface excitation component is used for implementing an interaction interface between the verification platform and the external device, and the processor core interface excitation component is used for implementing an interaction interface between the verification platform and the processor core, which of course may be more, and is not shown here one by one.
During the operation of the verification platform, there is a one-to-many communication requirement between these components, such as component a sending data to component B, component C, and component D simultaneously. The related art adopts the top layer (env_top) of the verification environment to respectively connect the transmitting end assembly and the plurality of receiving end assemblies, thereby achieving the purpose that the transmitting end assembly transmits data to the plurality of receiving end assemblies. However, this approach is cumbersome, resulting in inefficient development.
In order to solve the problem, the embodiment of the application can construct an independent mapping component, the mapping component is associated with a mapping area for global use, and mapping connection of a sending end component and a receiving end component is established by adopting a static lut table mode, so that the one-to-many communication requirement of the sending end component is realized.
In this step, referring to fig. 2, in an embodiment of the present application, a mapping component independent of other components may be built in the verification environment, where a mapping area is associated with the mapping component, and the mapping area is equivalent to a Look-Up Table (LUT), which is a data structure or a hardware resource for fast searching and outputting data. The look-up table may essentially be regarded as a random access memory in which data is written in advance and corresponding content is looked up and output by means of an input signal, typically as an address. The partial fragment in the mapping area may be divided for use by the sender component to store data to be sent by the sender component through a sending port (analysis_port), and the receiver component may acquire desired data from the partial fragment through a get request through a receiving port (imp).
Further, before the sender component performs communication, the sender component needs to register in the mapping component, the mapping component of the verification environment may respond to the registration request of the sender component, and declare the broadcast area occupied by the sender component in the mapping area, that is, allocate an idle area from the mapping area as the broadcast area occupied by the sender component, where the size of the broadcast area is determined by the sending requirement of the sender component, that is, the greater the number of receiver components corresponding to the sender component, the greater the broadcast area. In addition, the registration request further includes an identifier of the sender component, and after the allocation of the broadcast film is completed, the mapping component may record a correspondence between the broadcast film allocated by the sender component and the identifier of the sender component.
Optionally, the broadcast patch includes a plurality of zone ports; the sending end component is used for respectively writing broadcast messages into all the regional ports.
Referring to fig. 3, the broadcast zone may include a plurality of zone ports, each zone port may occupy a partial zone in the broadcast zone, the zones occupied by different zone ports are different, and the transmitting end component may write a broadcast message into each zone port. One corresponding receiving end component can be bound at the next time of one regional port, and after the corresponding regional ports are bound by the plurality of receiving end components respectively, a broadcast message can be obtained from the regional ports through get requests, so that the requirement of the transmitting end component for one-to-many communication to the plurality of receiving end components is met.
Step 102, responding to a registration request of a receiving end component in a network-on-chip verification environment, acquiring an access identifier transmitted by the receiving end component, determining a target broadcast fragment corresponding to the access identifier according to the corresponding relation, and binding the receiving end component with the target broadcast fragment.
In the embodiment of the application, the receiving end component can realize communication by registering in the mapping component, the mapping component of the verification environment can respond to the registration request of the receiving end component and extract the access identifier transmitted by the receiving end component from the registration request of the receiving end component, and the access identifier transmitted by the receiving end component is used for representing the source object of the data received by the receiving end component, for example, if the component B wants to receive the data sent by the component A, the access identifier carried in the registration request of the component B is the identifier of the component A.
Specifically, in step 101, the mapping component records the correspondence between the broadcast patch allocated to the sender component and the identifier of the sender component, so after the mapping component obtains the access identifier transmitted by the receiver component, the mapping component can match the access identifier with the correspondence, thereby determining to obtain the target broadcast patch corresponding to the access identifier, that is, the receiving port of the receiver component can access the target broadcast patch through the binding operation, so as to obtain the message data written by the sender component and stored in the target broadcast patch.
Optionally, the broadcast patch includes a plurality of zone ports; the sending end component is configured to write broadcast messages into all the zone ports respectively, and step 102 may specifically include:
And step 1021, allocating an idle target area port in the target broadcast zone for the receiving end component, and completing the binding of the receiving end component and the target broadcast zone.
In the embodiment of the application, after the target broadcast zone corresponding to the access identifier is determined, an idle target area port in the target broadcast zone can be allocated to the receiving end component to complete the binding of the receiving end component and the target broadcast zone. The target zone ports bound by different receiving end components are different.
For example, referring to fig. 2, assume that a broadcast tile divided in a mapping region by a transmission port (port) of a transmitting side component includes: regional port port_region_1 to regional port port_region_n; and N receiving end components are sequentially bound to the N area ports, and the N receiving end components are in one-to-one correspondence with the N area ports.
Step 103, responding to the message acquisition request of the receiving end component, acquiring a broadcast message from the target broadcast film zone and sending the broadcast message to the receiving end component.
In the embodiment of the application, a plurality of receiving end components can be bound in one target broadcast zone, and after the plurality of receiving end components are respectively bound with the corresponding regional ports in the target broadcast zone, the receiving end components can obtain broadcast messages from the regional ports through get requests, so that the requirement of the transmitting end components for one-to-many communication to the plurality of receiving end components is met.
For example, referring to fig. 2, assuming that N receiving end assemblies are sequentially bound to N area ports, where the N receiving end assemblies are in one-to-one correspondence with the N area ports, when the transmitting end assembly is to broadcast the message a, the transmitting end assembly may write the message a into each of the N area ports, and the subsequent receiving end assembly may obtain the message a from the corresponding area port through a get request.
In summary, in the embodiment of the present application, a corresponding broadcast zone may be allocated to a sender component participating in registration based on a mapping area for global use, and a correspondence between the broadcast zone and an identifier of the sender component is recorded, when a subsequent receiver component registers, a target broadcast zone corresponding to an access identifier may be determined according to the access identifier and the correspondence transmitted by the receiver component, and the receiver component and the target broadcast zone are bound, so that the target broadcast zone may respond to a request for obtaining a message from the receiver component, and obtain a broadcast message from the target broadcast zone and transmit the broadcast message to the receiver component.
Fig. 4 is a flowchart illustrating specific steps of a method for communication between components in a verification environment according to an embodiment of the present application, where, as shown in fig. 4, the method may include:
Step 201, responding to a registration request of the sending end component through a first function of an external component, and acquiring an identifier and an area size parameter transmitted by the sending end component; the external component is associated with a mapping region and a memory region.
Step 202, selecting an idle area with the size represented by the area size parameter as the broadcast film area in the mapping area.
Step 203, recording the correspondence between the broadcast film area and the identifier of the sender component in the memory area.
Optionally, the identifying includes: and customizing the identification or the address information of the sender component.
In the embodiment of the present application, referring to fig. 2, for steps 201 to 203, the external component is a mapping component, where the mapping component is associated with a mapping area and a memory area, where the mapping area is used for global call, specifically, an idle area in the mapping area may be allocated to occupy use by a sender component participating in registration, and a registration request of the sender component may be responded by a first function (not depicted in the figure) of the mapping component.
Specifically, the registration request of the sender component may carry the identifier of the sender component and the region size parameter, where the region size parameter may be used to define the size of the broadcast zone, that is, the value of the total number N of region ports included in the broadcast zone, for example, if a sender component a is supposed to broadcast data to 20 receiver components, the region size parameter in the registration request corresponding to the sender component may be 20, and the specific value of the region size parameter may be determined according to the actual requirement, which is not specifically limited in the embodiment of the present application.
Furthermore, in the embodiment of the present application, each area port may occupy the same space, and after receiving the identifier and the area size parameter transmitted by the sender component, the mapping component may select, in the mapping area, an idle area including the area size parameter and the area port as a broadcast patch, and in addition, the memory area may be used to record related information of the mapping area, so that the mapping component may also record, in an independent memory area, a correspondence between the broadcast patch and the identifier of the sender component.
Step 204, responding to the registration request of the receiving end component through a second function of the external component, and acquiring the access identifier transmitted by the receiving end component.
Wherein, the external component is associated with a mapping region and a memory region; and the memory area is recorded with the corresponding relation between the broadcast area and the identifier.
Step 205, matching the access identifier in the memory area, and determining a target broadcast zone corresponding to the access identifier.
And step 206, allocating an idle target area port in the target broadcast film zone for the receiving end component, and completing the binding of the receiving end component and the target broadcast film zone.
Wherein the broadcast patch includes a plurality of zone ports; the sending end component is used for respectively writing broadcast messages into all the regional ports.
In the embodiment of the present application, with reference to fig. 2 and fig. 3, for steps 204-206, the receiving end component may implement communication by registering in the mapping component, where the access module in the mapping component has a second function built therein, and the second function may obtain, in response to a registration request of the receiving end component, an access identifier transmitted by the receiving end component, where the access identifier transmitted by the receiving end component is used to characterize a source object of data received by the receiving end component, for example, if the component B wants to receive data sent by the component a, an access identifier carried in the registration request of the component B is an identifier of the component a.
Because the corresponding relation between the broadcasting film area allocated for the sending end component and the identifier of the sending end component is recorded in the memory area of the mapping component, after the mapping component obtains the access identifier transmitted by the receiving end component, the mapping component can match the access identifier with the corresponding relation, so as to determine to obtain the target broadcasting film area corresponding to the access identifier, and then the mapping component can allocate an idle target area port in the target broadcasting film area for the receiving end component, so that the binding of the receiving end component and the target broadcasting film area is completed.
For example, referring to fig. 2, assuming that the receiving port 1 of the receiving end component 1 is first bound to the zone port 1 in the broadcast zone, the receiving port 2 of the receiving end component 2 may be further bound to the free zone port 2 in the broadcast zone for the next registered receiving end component 2, and so on, the binding of N receiving end components is sequentially completed.
In the embodiment of the application, the broadcast zone may include a plurality of zone ports, each zone port may occupy a part of the zone in the broadcast zone, the areas occupied by the different zone ports are different, and the sending end component may write the broadcast message into each zone port. A plurality of receiving end components can be bound in one target broadcast zone, and after the plurality of receiving end components are respectively bound with the corresponding regional ports in the target broadcast zone, the receiving end components can obtain broadcast messages from the regional ports through get requests, so that the requirement of the transmitting end components for one-to-many communication to the plurality of receiving end components is met.
Step 207, responding to the message acquisition request of the receiving end component, and acquiring the message identifier transmitted by the receiving end component.
Step 208, determining a target broadcast message matched with the message identifier in all broadcast messages stored in a target broadcast zone corresponding to the receiving end component, and sending the target broadcast message to the receiving end component.
In the embodiment of the present application, with reference to fig. 2, for steps 207 to 208, a receiving end component may initiate a message acquisition request (get request) to a mapping component through a corresponding receiving port, so that the mapping component may extract, in response to the message acquisition request, a broadcast message requested to be acquired by the message acquisition request from an area port bound to the receiving end component, and send the target broadcast message to the receiving end component.
For example, assuming that the sending end component writes a message 1, a message 2 and a message 3 into each area port through the sending port, if the message acquisition request sent by the receiving end component 1 is a request for acquiring the message 2, the mapping component may respond to the message acquisition request to extract the message 2 from the area port 1 and transmit the message 2 to the receiving end component 1; if the message acquisition request sent by the receiving end component 3 is a request for acquiring the message 1, the mapping component may extract the message 1 from the area port 3 and transmit the message 1 to the receiving end component 3 in response to the message acquisition request.
Optionally, the method may further include:
step 209, when there is no free target area port in the target broadcast zone, returning error reporting information to the receiving end component.
In the embodiment of the present application, when the mapping component allocates the zone port in the target broadcast zone for the receiving end component, if no idle target zone port exists currently, the mapping component returns an error message to the receiving end component so as to inform that the receiving end component cannot communicate with the receiving end component currently. And enabling the receiving end component to carry out port allocation when the receiving end component waits for the idle target area port to appear in the target broadcast zone subsequently.
In summary, in the embodiment of the present application, a corresponding broadcast zone may be allocated to a sender component participating in registration based on a mapping area for global use, and a correspondence between the broadcast zone and an identifier of the sender component is recorded, when a subsequent receiver component registers, a target broadcast zone corresponding to an access identifier may be determined according to the access identifier and the correspondence transmitted by the receiver component, and the receiver component and the target broadcast zone are bound, so that the target broadcast zone may respond to a request for obtaining a message from the receiver component, and obtain a broadcast message from the target broadcast zone and transmit the broadcast message to the receiver component.
FIG. 5 is a block diagram of a component communication device in an authentication environment, the device comprising:
A first registration module 301, configured to respond to a registration request for a sender component in a network-on-chip verification environment, declare a broadcast patch occupied by the sender component in a preset mapping area, and record a correspondence between the broadcast patch and an identifier of the sender component; the sending end component is used for writing a broadcast message into the broadcast film zone;
A second registration module 302, configured to obtain an access identifier transmitted by a receiving end component in a network-on-chip verification environment in response to a registration request for the receiving end component, determine, according to the correspondence, a target broadcast zone corresponding to the access identifier, and bind the receiving end component with the target broadcast zone;
and the obtaining module 303 is configured to obtain a broadcast message from the target broadcast film area and send the broadcast message to the receiving end component in response to the message obtaining request of the receiving end component.
Optionally, the broadcast patch includes a plurality of zone ports; the sending end component is used for respectively writing broadcast messages into all the regional ports;
the second registration module 302 includes:
And the binding submodule is used for distributing an idle target area port in the target broadcast film zone for the receiving end component and finishing the binding of the receiving end component and the target broadcast film zone.
Optionally, the first registration module 301 includes:
the acquisition sub-module is used for responding to the registration request of the sending end component through a first function of the external component and acquiring the identifier and the region size parameter transmitted by the sending end component; the external component is associated with a mapping area and a memory area;
a selecting sub-module, configured to select, in the mapping area, an idle area with a size represented by the area size parameter as the broadcast area;
And the recording sub-module is used for recording the corresponding relation between the broadcast film area and the identification of the transmitting end component in the memory area.
Optionally, the second registration module 302 includes:
The access identification sub-module is used for responding to the registration request of the receiving end component through a second function of the external component and acquiring an access identification transmitted by the receiving end component; the external component is associated with a mapping area and a memory area; the memory area is recorded with the corresponding relation between the broadcast area and the mark;
and the matching sub-module is used for matching the access identifier in the memory area and determining a target broadcast fragment corresponding to the access identifier.
Optionally, the apparatus further includes:
and the error reporting module is used for returning error reporting information to the receiving end component when the idle target area port does not exist in the target broadcast zone.
Optionally, the acquiring module 303 includes:
The message identification sub-module is used for responding to the message acquisition request of the receiving end component and acquiring the message identification transmitted by the receiving end component;
And the transmitting sub-module is used for determining a target broadcast message matched with the message identifier in all broadcast messages stored in the target broadcast film region corresponding to the receiving end component and transmitting the target broadcast message to the receiving end component.
Optionally, the identifying includes: and customizing the identification or the address information of the sender component.
In summary, in the embodiment of the present application, a corresponding broadcast zone may be allocated to a sender component participating in registration based on a mapping area for global use, and a correspondence between the broadcast zone and an identifier of the sender component is recorded, when a subsequent receiver component registers, a target broadcast zone corresponding to an access identifier may be determined according to the access identifier and the correspondence transmitted by the receiver component, and the receiver component and the target broadcast zone are bound, so that the target broadcast zone may respond to a request for obtaining a message from the receiver component, and obtain a broadcast message from the target broadcast zone and transmit the broadcast message to the receiver component.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Embodiments of the present application provide a component communication device in an authentication environment, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, including for performing the methods described in one or more of the embodiments above.
Fig. 6 is a block diagram of an electronic device 600, according to an example 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, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, an 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.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is used to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, multimedia, and so forth. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 or optical disk.
The power supply component 606 provides power to the various components of the electronic device 600. The power supply components 606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen between the electronic device 600 and the user that provides an output interface. 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 a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense demarcations of touch or sliding actions, but also detect durations and pressures associated with the touch or sliding operations. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a multimedia mode, the front-facing camera and/or the rear-facing camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is for outputting and/or inputting audio signals. For example, the audio component 610 includes a Microphone (MIC) for receiving external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light 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 gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is utilized to facilitate communication between the electronic device 600 and other devices, either in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
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 elements for implementing the methods provided by the embodiments of the application.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of electronic device 600 to perform the above-described method. For example, the non-transitory storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 7 is a block diagram of an electronic device 700, according to an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 7, electronic device 700 includes a processing component 722 that further includes one or more processors and memory resources represented by memory 732 for storing instructions, such as application programs, executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the methods provided by embodiments of the present application.
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, such as WindowsServerTM, macOSXTM, unixTM, linuxTM, freeBSDTM or the like, stored in memory 732.
The embodiment of the application also provides a computer program product, comprising a computer program which, when being executed by a processor, realizes the method described in the above embodiment.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (9)
1. A method of component communication in a verification environment, the method comprising:
Responding to a registration request of a sending end component through a first function of an external component, and acquiring an identifier and an area size parameter transmitted by the sending end component; the external component is associated with a mapping area and a memory area;
Selecting an idle area with the size represented by the area size parameter from the mapping area as a broadcasting film area, and recording the corresponding relation between the broadcasting film area and the identification of the transmitting end component in the memory area; the sending end component is used for writing a broadcast message into the broadcast film zone;
Responding to a registration request of a receiving end component in a network-on-chip verification environment, acquiring an access identifier transmitted by the receiving end component, determining a target broadcasting fragment corresponding to the access identifier according to the corresponding relation in the memory area, and binding the receiving end component with the target broadcasting fragment;
and responding to the message acquisition request of the receiving end component, acquiring a broadcast message from the target broadcast film zone and transmitting the broadcast message to the receiving end component.
2. The method of claim 1, wherein the broadcast patch comprises a plurality of zone ports; the sending end component is used for respectively writing broadcast messages into all the regional ports;
The binding the receiving end component with the target broadcast patch includes:
And allocating an idle target area port in the target broadcast zone for the receiving end component, and completing the binding of the receiving end component and the target broadcast zone.
3. The method for component communication in a verification environment according to claim 1, wherein the obtaining, in response to a registration request for a receiving component in a network-on-chip verification environment, an access identifier transmitted by the receiving component, and determining, according to the correspondence, a target broadcast segment corresponding to the access identifier, includes:
Responding to the registration request of the receiving end component through a second function of the external component, and acquiring an access identifier transmitted by the receiving end component; the external component is associated with a mapping area and a memory area; the memory area is recorded with the corresponding relation between the broadcast area and the mark;
And matching the access identifier in the memory area, and determining a target broadcast zone corresponding to the access identifier.
4. The method of component communication in a verification environment of claim 2, wherein the method further comprises:
And when the idle target area port does not exist in the target broadcast zone, returning error reporting information to the receiving end component.
5. The method according to claim 2, wherein the obtaining, in response to the message obtaining request of the receiving end component, a broadcast message from the target broadcast zone and sending the broadcast message to the receiving end component includes:
responding to a message acquisition request of the receiving end component, and acquiring a message identifier transmitted by the receiving end component;
and determining a target broadcast message matched with the message identifier in all broadcast messages stored in a target broadcast film zone corresponding to the receiving end component, and sending the target broadcast message to the receiving end component.
6. A method of component communication in a verification environment as claimed in any one of claims 1 to 5 wherein said identifying comprises: and customizing the identification or the address information of the sender component.
7. A component communication apparatus in an authentication environment, the apparatus comprising:
The first registration module is used for responding to a registration request of a sending end component through a first function of an external component and acquiring an identifier and an area size parameter which are transmitted by the sending end component; the external component is associated with a mapping area and a memory area; selecting an idle area with the size represented by the area size parameter from the mapping area as a broadcasting film area, and recording the corresponding relation between the broadcasting film area and the identification of the transmitting end component in the memory area; the sending end component is used for writing a broadcast message into the broadcast film zone;
the second registration module is used for responding to a registration request of a receiving end component in a network-on-chip verification environment, acquiring an access identifier transmitted by the receiving end component, determining a target broadcasting fragment corresponding to the access identifier according to the corresponding relation in the memory area, and binding the receiving end component with the target broadcasting fragment;
and the acquisition module is used for responding to the message acquisition request of the receiving end assembly, acquiring the broadcast message from the target broadcast film zone and transmitting the broadcast message to the receiving end assembly.
8. An electronic device, comprising: a processor;
a memory for storing the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 6.
9. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411055033.6A CN118585357B (en) | 2024-08-02 | 2024-08-02 | Component communication method, device, equipment and storage medium in verification environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411055033.6A CN118585357B (en) | 2024-08-02 | 2024-08-02 | Component communication method, device, equipment and storage medium in verification environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118585357A CN118585357A (en) | 2024-09-03 |
CN118585357B true CN118585357B (en) | 2024-10-15 |
Family
ID=92526962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411055033.6A Active CN118585357B (en) | 2024-08-02 | 2024-08-02 | Component communication method, device, equipment and storage medium in verification environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118585357B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413528A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Test environment intelligent configuration method and system |
CN115996199A (en) * | 2021-10-15 | 2023-04-21 | 中兴智能科技南京有限公司 | Network-on-chip and multicast message transmission method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693938B2 (en) * | 2004-02-13 | 2010-04-06 | Envisionit Llc | Message broadcasting admission control system and method |
KR101373778B1 (en) * | 2012-02-13 | 2014-03-14 | 한양대학교 산학협력단 | Network on chip and data transmission method for inter communication of system on chip, and recording medium storing program for executing method of the same in computer |
CN117353927A (en) * | 2022-06-28 | 2024-01-05 | 中兴通讯股份有限公司 | Message processing method, switching equipment, terminal and storage medium |
CN116701015A (en) * | 2023-05-24 | 2023-09-05 | 阿里云计算有限公司 | Inter-application communication method and device |
-
2024
- 2024-08-02 CN CN202411055033.6A patent/CN118585357B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413528A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Test environment intelligent configuration method and system |
CN115996199A (en) * | 2021-10-15 | 2023-04-21 | 中兴智能科技南京有限公司 | Network-on-chip and multicast message transmission method |
Also Published As
Publication number | Publication date |
---|---|
CN118585357A (en) | 2024-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2647493C2 (en) | Method and device for presenting wi-fi list | |
CN107370772B (en) | account login method and device and computer readable storage medium | |
RU2651800C1 (en) | Method and device connection status checking | |
US9843667B2 (en) | Electronic device and call service providing method thereof | |
JP2017513161A (en) | Transfer processing method and apparatus | |
WO2020097845A1 (en) | Method and device for using network slice | |
CN108600529B (en) | Information interaction method and device and computer readable storage medium | |
CN107820300A (en) | Network search method and device | |
CN115766851A (en) | Device registration method and device, mobile terminal and storage medium | |
CN107562500B (en) | Debugging device, method and equipment | |
CN113190307A (en) | Control adding method, device, equipment and storage medium | |
CN118585357B (en) | Component communication method, device, equipment and storage medium in verification environment | |
CN110913276B (en) | Data processing method, device, server, terminal and storage medium | |
CN109542644B (en) | Application programming interface calling method and device | |
CN111130985B (en) | Incidence relation establishing method, device, terminal, server and storage medium | |
CN118567883B (en) | Component communication method, device, equipment and storage medium in verification environment | |
CN114430370B (en) | Method, device, equipment and storage medium for determining network slice | |
CN111562994B (en) | Application program interface forwarding method and device, electronic equipment and storage medium | |
CN106992882B (en) | Router file migration method and device | |
CN114238728B (en) | Vehicle data processing method, device and equipment | |
CN113468503B (en) | Identification information distribution method and device and electronic equipment | |
CN110716985B (en) | Node information processing method, device and medium | |
CN112102081B (en) | Method, device, readable storage medium and blockchain network for generating blockchain | |
CN113055597B (en) | Camera calling implementation method and device and electronic equipment | |
CN112764885B (en) | Object access method, device, electronic equipment, storage medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |