CN109471818B - Bus structure implementation method and device - Google Patents
Bus structure implementation method and device Download PDFInfo
- Publication number
- CN109471818B CN109471818B CN201811404319.5A CN201811404319A CN109471818B CN 109471818 B CN109471818 B CN 109471818B CN 201811404319 A CN201811404319 A CN 201811404319A CN 109471818 B CN109471818 B CN 109471818B
- Authority
- CN
- China
- Prior art keywords
- data
- identification information
- input data
- bus input
- bus
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Bus Control (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a method and a device for realizing a bus structure, which relate to the technical field of computers, and the method comprises the following steps: acquiring data identification information of bus input data, and matching the data identification information with preset equipment identification information; and if the data identification information and the equipment identification information are successfully matched, receiving bus input data. The method comprises the steps that data identification information of bus input data is obtained, and the data identification information is matched with preset equipment identification information; and if the data identification information and the equipment identification information are successfully matched, receiving bus input data. The received bus input data is processed, so that the master device and the slave device are combined into one device, the bus interconnection module is not needed to analyze and arbitrate, and the efficiency of bus input data transmission is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a bus structure implementation method and device.
Background
With the development of integrated circuits, the functions of SoC (System on a Chip) become more and more complex. Accordingly, the bus topology within the SoC is also becoming more complex in order to connect the various functional modules.
The existing bus topology structure adopts a star bus topology structure or a tree bus topology structure, and is composed of a master device, a bus interconnection module and a slave device, wherein the master device and the slave device are connected with the bus interconnection module, the master device initiates an access request to the slave device, the bus interconnection module needs to analyze and arbitrate the access request initiated by the master device, and if the access request initiated by the master device is analyzed and arbitrated, the access request can be sent to the slave device, so that the master device can access the slave device.
However, in the process of accessing the slave device by the master device, part of the access does not need to be analyzed and arbitrated by the bus interconnection module, but is still analyzed and arbitrated by the bus interconnection module, which causes the problem of low efficiency of accessing the slave device by the master device.
Disclosure of Invention
The present invention provides a method and an apparatus for implementing a bus structure to solve the problem of low efficiency of accessing a slave device by a master device in the bus structure.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for implementing a bus structure;
the method comprises the following steps:
acquiring data identification information of bus input data, wherein the data identification information is used for indicating equipment for processing the bus input data;
matching the data identification information with preset equipment identification information;
and if the data identification information and the equipment identification information are successfully matched, receiving the bus input data.
Further, before the obtaining the data identification information of the bus input data, the method further includes:
detecting whether a bus transmits the bus input data;
the acquiring data identification information of the bus input data includes:
and if the bus sends the bus input data, acquiring data identification information of the bus input data.
Further, after the receiving the bus input data, the method further comprises:
determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the equipment identification information or not according to a pre-stored event table;
if the data type corresponding to the bus input data is determined to be consistent with the data type corresponding to the equipment identification information, processing the bus input data to obtain processed bus input data;
and displaying that the processed bus input data is in a finished state.
Further, after determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the device identification information according to a pre-stored event table, the method further includes:
if the data type corresponding to the bus input data is determined to be inconsistent with the data type corresponding to the equipment identification information, generating a data processing request, wherein the data processing request comprises target equipment identification information;
sending the data processing request to enable target equipment to receive and process the data processing request according to the identification information of the target equipment to obtain target processing information;
and receiving the target processing information sent by the target equipment.
Further, the method further comprises:
and if the data identification information and the equipment identification information are failed to be matched, not receiving the bus input data.
In a second aspect, an embodiment of the present invention further provides a device for implementing a bus structure;
the device comprises:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring data identification information of bus input data, and the data identification information is used for indicating equipment for processing the bus input data;
the matching module is used for matching the data identification information with preset equipment identification information;
and the first receiving module is used for receiving the bus input data if the data identification information is successfully matched with the equipment identification information.
Further, the apparatus further comprises:
the detection module is used for detecting whether the bus transmits the bus input data or not;
and the acquisition module is specifically used for acquiring data identification information of the bus input data if the bus sends the bus input data.
Further, the apparatus further comprises:
the first judgment module is used for determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the equipment identification information or not according to a pre-stored event table;
the second obtaining module is used for processing the bus input data to obtain processed bus input data if the data type corresponding to the bus input data is determined to be consistent with the data type corresponding to the equipment identification information;
and the display module is used for displaying that the processed bus input data is in a finished state.
Further, the apparatus further comprises:
the processing module is used for generating a data processing request if the data type corresponding to the bus input data is determined to be inconsistent with the data type corresponding to the equipment identification information, and the data processing request comprises target equipment identification information;
the sending module is used for sending the data processing request so that the target equipment receives and processes the data processing request according to the identification information of the target equipment to obtain target processing information;
and the second receiving module is used for receiving the target processing information sent by the target equipment.
Further, the apparatus further comprises:
and the second judgment module is used for not receiving the bus input data if the data identification information and the equipment identification information are failed to be matched.
In summary, according to the bus structure implementation method provided by the present invention, after the device acquires the data identification information of the bus input data and the identification information of the device are consistent, the device receives the bus input data, and processes the received bus input data, so that the master device and the slave device are combined into one device without parsing and arbitrating through the bus interconnection module, thereby solving the problem of low efficiency of master device accessing the slave device due to the master device accessing the slave device, and improving the efficiency of bus input data transmission.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic diagram of a system-on-chip architecture according to the present invention;
fig. 2 is a schematic flowchart of a bus structure implementation method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a bus structure implementation method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a bus structure implementation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a bus structure implementation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
FIG. 1 is a schematic diagram of a system-on-chip according to the present invention; as shown in fig. 1, the system includes at least one device, which may include a first device 110, a second device 120, and a third device 130.
Wherein, the output port of the first device 110 is connected to the input port of the second device 120, the output port of the second device 120 is connected to the input port of the third device 130, and the output port of the third device 130 is connected to the input port of the first device 110. Also, each device is connected to other devices through a bus.
In the process of transmitting bus input data through the bus, each device needs to detect the bus input data in order to determine whether to receive the bus input data, so as to execute different operations according to the judgment result.
Specifically, if the first device 110 detects the bus input data, first, the data identification information of the bus input data may be obtained, and the data identification information may be matched with the device identification information of the first device 110, and if the matching is successful, the bus input data may be received and processed.
However, if the matching fails, the first device 110 does not receive the bus input data but forwards the bus input data to the second device 120, and accordingly, the second device 120 may perform an operation similar to the above-described process, determine whether the data identification information matches the device identification information of the second device 120, and perform a different operation.
It should be noted that each device may include a bus parsing module and a function module, where the bus parsing module is configured to parse and determine whether bus input data transmitted by a bus can be received by the device, and the function module is configured to determine whether bus input data transmitted by a bus can be processed by the device, each device may parse bus input data and initiate a data processing request, which is not dependent on processing by a bus interconnection module, and adding or deleting devices in a system does not affect the overall system architecture, and does not require redesigning the bus structure.
When the data identification information of the bus input data is successfully matched with the device identification information of the first device 110, the bus input data is received. According to an event table preset in the first device 110, the first device judges whether the data type in the bus input data is consistent with the data type of the identification information of the first device 110, if so, the bus input data is processed according to the data type, and the processing completion state is displayed after the processing. The event table pre-stored by the first device 110 indicates the data type of the identification information of the first device 110.
According to an event table pre-stored in the first device 110, if the data type of the bus input data is not consistent with the data type of the identification information of the first device 110, the first device 110 generates a data processing request according to the data type of the bus input data, if the data type of the bus input data is stored in the event table of the third device 130, the data processing request includes the set identification information of the third device 130, the third device 130 receives the data processing request through the identification information of the third device 130 in the data processing request and processes the data processing request, and after the processing is completed, target processing information is obtained, so that the third device 130 sends the target processing information to the first device 110, and the first device 110 receives the target processing information and displays that the bus input data processing is completed.
Fig. 2 is a flowchart illustrating a method for implementing a bus structure according to an embodiment of the present invention, which is applied to any device of the system on chip shown in fig. 1, and as shown in fig. 2, the method includes:
The data identification information is used for indicating equipment for processing bus input data.
In the process of bus input data transmission through a bus, the bus input data needs to be processed by a device in a bus structure of a system on chip, and before processing, the device in the bus structure judges whether the bus input data transmitted through the bus needs to be processed.
Therefore, the device in the system on chip may first obtain the data identification information in the bus input data, so that in the subsequent step, it may be determined whether the bus input data needs to be processed according to the data identification information.
Specifically, the device may detect whether the bus transmits bus input data in real time, and if it is detected that the bus transmits the bus input data to the device, the device may first obtain data of a specified field in the bus input data, so as to obtain data identification information in the bus input data.
It should be noted that each device in the bus structure of the system on chip has different functional modules, data identification information in the bus input data is used to determine whether the device can receive the bus input data, and the data identification information may be an IP (Internet Protocol) address or other information, which is not limited in this embodiment of the present invention.
After the device acquires the data identification information of the bus input data, the device can judge according to the acquired data identification information to determine whether the data identification information is consistent with the device identification information, so that in the subsequent steps, different operations can be executed on the bus input data according to the judgment result.
Specifically, the data identification information of the bus input data may be matched with the identification information of the device, and whether the data identification information is consistent with the preset identification information of the device is determined, and if the data identification information is consistent with the identification information of the device, it is indicated that the data identification information is successfully matched with the preset identification information of the device. And if the data identification information is inconsistent with the identification information of the equipment, indicating that the data identification information is unsuccessfully matched with the preset equipment identification information.
It should be noted that the preset device identification information and the device receiving the bus input data are both used to indicate the same device. When the bus input data is transmitted in the system on chip, each device needs to acquire the data identification information of the bus input data, and the data identification information of the bus input data and the device identification information are matched.
And step 203, receiving bus input data if the data identification information is successfully matched with the equipment identification information.
And after the matching is successful, the device in the system on chip can receive the bus input data transmitted by the bus and process the received bus input data.
Specifically, after the device receives the bus input data, the data type of the bus input data and the data type of the device identification information may be matched according to an event table stored in the device, and if the data type of the device identification information is consistent with the data type of the bus input data, the bus input data may be processed. And processing the data type of the bus input data consistent with the data type of the equipment identification information.
For example: the device is an analog-digital converter, the data type in an event table in the device can show that an analog signal is converted into a digital signal, the data type in the event table indicates the data type in the device identification information, when the data type of the bus input data is converted into the digital signal, the data type of the bus input data is consistent with the data type in the device identification information, the bus input data can be processed, the analog signal of the bus input data is converted to obtain the processed digital signal, and the device finishes processing.
It should be noted that at least one data type is stored in the event table in each device, the data type of the bus input data and the data type of the device identification information may be matched according to the stored event table, and if the data type of the bus input data and the data type of the device identification information are successfully matched, the bus input data is processed.
In summary, according to the bus structure implementation method provided by the present invention, after the device acquires the data identification information of the bus input data and the identification information of the device are consistent, the bus input data is received, and the device processes the received bus input data, so that the master device and the slave device are combined into one device, and the bus interconnection module is not required to perform parsing and arbitration, thereby solving the problem of low efficiency of the master device accessing the slave device due to the access of the master device to the slave device in the prior art, and improving the transmission efficiency of the bus input data.
Fig. 3 is a schematic flowchart of a method for implementing a bus structure according to another embodiment of the present invention, as shown in fig. 3, the method includes:
In at least one device of a bus structure in the system on chip, each device needs to detect whether a bus sends bus input data or not at any moment, and if the bus input data is not detected, the bus input data needs to be continuously detected; if the bus input data sent by the bus is detected, corresponding operation can be executed on the sent bus input data in the subsequent steps.
After detecting the bus input data sent by the bus, the device can continue to detect the bus input data sent by the bus.
Specifically, after the device detects the bus input data, it needs to perform subsequent processing on the bus input data, and if the bus input data is not detected, it needs to detect the bus input data in the bus transmission all the time.
And step 303, matching the data identification information with preset equipment identification information.
Since the process from step 302 to step 303 is similar to the process from step 201 to step 202, it is not repeated here.
And step 304, if the data identification information and the equipment identification information are not matched successfully, not receiving the bus input data.
If the data identification information and the device identification information fail to be matched, the bus input data is not received, but the bus input data sent by the bus is forwarded to other devices, so that the other devices execute similar operations as in steps 301 to 311 on the bus input data sent by the bus.
Specifically, corresponding to the system on chip in fig. 1, when the identification information of the bus input data is not consistent with the device identification information of the first device, the first device does not receive the bus input data and forwards the bus input data to the second device, the second device obtains the device identification information of the bus input data and matches the device identification information of the second device with the identification information of the bus input data, and when the second device identification information is not consistent with the identification information of the bus input data, the second device forwards the bus input data to the third device until the device identification information of a certain device is consistent with the identification information of the bus input data, the device receives the bus input data.
And 305, receiving bus input data if the data identification information and the equipment identification information are successfully matched.
The process of step 305 is similar to the process of step 203, and is not described herein again.
Step 306, determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the device identification information according to a pre-stored event table.
The method comprises the steps that an event table corresponding to an event which can be processed by the device is stored in each device in a bus structure of the system on chip, the event table stored in each device is different, the event table stored in advance in the device can comprise a data type of device identification information and is used for representing the data type which can be processed by the device, after bus input data are received according to the event table stored in the device in advance, the data type of the bus input data is matched with the data type corresponding to the device identification information, whether the data type of the bus input data exists in the event table or not is judged, and if the data type of the bus input data exists in the data type of the device identification information in the event table of the device, the bus input data need to be continuously processed in the subsequent steps.
Specifically, after the device receives the bus input data, it may first determine whether the device can process the received bus input data, and if it is determined according to the event table in the device that the data type of the bus input data is inconsistent with the data type in the device identification information, it indicates that the device cannot process the bus input data received by the device.
For example: the event table stored in the first device indicates the data types that can be processed by the first device, and the data types of the device identification information in the event table of the first device indicate that the data types can only be processed by the first device. The event table stored in the second device indicates the data types that the second device can process, and the data types of the device identification information in the event table of the second device can only be processed by the second device.
It should be noted that the event tables of each device are different, and if the device is an analog-to-digital converter, the data type of the device identification information in the event table in the device is to convert an analog signal into a digital signal, and when the data type of the bus input data is to convert an analog signal into a digital signal, the device can process the bus input data after receiving the bus input data.
And 307, if the data type corresponding to the bus input data is determined to be consistent with the data type corresponding to the equipment identification information, processing the bus input data to obtain the processed bus input data.
And after the data type in the bus input data received by the equipment is successfully matched with the data type in the equipment identification information, the equipment processes the bus input data, wherein the processed data type is the data type of the equipment identification information stored in the event table, and the processed bus input data is finally obtained.
Specifically, the device receives bus input data, matches the data type of the bus input data with the data type in the device identification information according to an event table pre-stored in the device, and processes the bus input data if the data type of the bus input data is consistent with the data type in the device identification information, so as to obtain the processed bus input data.
For example: if the device is an analog-to-digital converter, after the device receives the bus input data, if the data type of the device identification information in the event table stored in the analog-to-digital converter is consistent with the data type of the bus input data, the analog-to-digital converter can process the bus input data and convert the analog signal of the bus input data into a digital signal.
It should be noted that, in practical applications, the bus input data may include data of a plurality of data types, where a data type of a part of the data in the bus input data is consistent with a data type in the data types corresponding to the device identification information, but a data type of the remaining data in the bus input data is inconsistent with a data type in the data types corresponding to the device identification information, the device may process a consistent data type in the data types of the bus input data and the corresponding data types in the device identification information, and for some data types in the bus input data that are inconsistent with a data type corresponding to the device identification information, at least one data processing request may be generated according to an inconsistent data type in the data types of the bus input data and the corresponding data types of the device identification information, at least one target processing request is sent, the device may receive at least one target processing information corresponding to the at least one target processing request sent and processed by the at least one target device.
For example: if the first device receives the post-bus input data, judging that the data types of the bus input data exist in the data types in the device identification information of the first device and are inconsistent according to an event table stored in the first device in advance, processing the data type of the device identification information in the first device and the data type of the bus input data, generating at least one data processing request, wherein the at least one data processing request comprises identification information of at least one target device, and if the target device comprises: and the second device and the third device respectively process the at least one data processing request, and the device receives target processing information obtained after the second device and the third device respectively process the at least one data processing request. And finally, the first equipment obtains the processed bus input data.
When the event table stored in the analog-to-digital converter stores the data type of the bus input data, the analog signal of the received bus input data may be converted into a digital signal by processing the data type.
And 308, displaying that the processed bus input data is in a finished state.
After the device processes the received bus input data, the processed bus input data is obtained, at this time, the device completes processing of the bus input data, and displays that the processing state of the bus input data is a completion state on the device, and the completion state is used for indicating that the processing of the bus input data is completed. Of course, the display state may also include: a wait state to indicate that bus transaction data is being processed, and a process failure state. The processing failure state is used for indicating that the device fails to process data on the bus.
In addition, a user can observe the processing state of the bus input data on the device through the device, and real-time monitoring of the data processing condition in the bus structure of the system on chip is facilitated.
Specifically, when the device receives the bus input data and processes the bus input data, the device displays that the bus input data is being processed and please wait for a state, and when the bus input data processing fails due to a problem in the bus input data processing, the device displays that the bus input data processing fails, and the device can reprocess the bus input data.
It should be noted that, the device updates each processing stage of the bus input data processing, and finally, after the bus input data processing is completed, the device displays that the bus input data processing is in a completed state.
Wherein the data processing request includes target device identification information.
If the data type corresponding to the bus input data is determined to be inconsistent with the data type corresponding to the equipment identification information, the matching is failed, the data type of the bus input data is not in the data type corresponding to the equipment identification information, the equipment is further indicated to be incapable of processing the bus input data, a data processing request is generated, and other equipment is required to assist in processing the bus input data.
Specifically, when a device cannot process received bus input data, a data processing request is generated according to the data type of the bus input data, so that other devices can process the bus input data which cannot be processed by the device.
It should be noted that the data processing request is generated according to the device identification information in the device event table, for example, if the data type of the device identification information of the first device in the event table of the first device is not consistent with the data type of the received bus input data, the data processing request needs to be generated, and if the data type of the device identification information of the first device in the event table of the third device is consistent with the data type of the bus input data, the generated data processing request may include the device identification information of the third device, and the third device receives the data processing request through the third device identification information in the data processing request.
And step 310, sending a data processing request to enable the target device to receive and process the data processing request according to the identification information of the target device, so as to obtain target processing information.
And after the equipment for receiving the bus input data cannot process the bus input data, generating a data processing request and sending the data processing request, so that the target equipment performs matching according to the target equipment identification information carried in the data processing request, and after the matching is successful, the target equipment receives the data processing request.
Specifically, after the device receiving the bus input data sends a data processing request to the target device, so that the target device can perform matching according to the data type of the device identification information in the event table and the data type of the data processing request, if the data type of the data processing request is stored in the data type of the device identification information in the event table stored in the target device, the target device processes the data processing request to obtain processed target processing information, and feeds back a result after processing the data processing request to the device sending the data processing request to obtain fed back target processing information.
And 311, receiving the target processing information sent by the target equipment.
And when the target equipment processes the data processing request, target processing information is obtained, and the target equipment sends the target processing information.
Specifically, after receiving a data processing request feedback result sent by the target device, the device updates the processing state of the bus input data, and updates the bus input data processing waiting state into a bus input data processing completion state so as to show the bus input data processing completion state to the user.
In summary, in the method for implementing a bus structure provided in the embodiments of the present invention, after the data identification information of the device input data through the bus is matched with the device identification information, if the device can process the bus input data after the matching is successful, the device processes the bus input data and displays a processing completion state, and if the device cannot process the bus input data, the device generates a data processing request and sends the data processing request to the target device, so that the target device receives the data processing request through the identification information of the target device carried in the data processing request, and the target device receives the data processing request through the identification information of the target device carried in the data processing request and processes the data processing request to obtain the target processing information. And the final equipment receives the target processing information sent by the target equipment and displays the completion of the processing of the bus input data, thereby improving the transmission efficiency of the bus input data in bus transmission.
Fig. 4 is a schematic diagram of a bus structure implementation apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus may include:
a first obtaining module 401, configured to obtain data identification information of bus input data, where the data identification information is used to indicate a device that processes the bus input data;
a matching module 402, configured to match the data identification information with preset device identification information;
the first receiving module 403 is configured to receive bus input data if the data identification information and the device identification information are successfully matched.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether the bus sends bus input data or not;
the acquisition module is specifically used for acquiring data identification information of the bus input data if the bus sends the bus input data.
Optionally, the apparatus further comprises:
the first judgment module is used for determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the equipment identification information or not according to a pre-stored event table;
the second acquisition module is used for processing the bus input data to obtain processed bus input data if the data type corresponding to the bus input data is determined to be consistent with the data type corresponding to the equipment identification information;
and the display module is used for displaying that the processed bus input data is in a finished state.
Optionally, the apparatus further comprises:
the processing module is used for generating a data processing request if the data type corresponding to the bus input data is determined to be inconsistent with the data type corresponding to the equipment identification information, and the data processing request comprises target equipment identification information;
the sending module is used for sending the data processing request so that the target equipment receives and processes the data processing request according to the identification information of the target equipment to obtain target processing information;
and the second receiving module is used for receiving the target processing information sent by the target equipment.
Optionally, the apparatus further comprises:
and the second judgment module is used for not receiving the bus input data if the data identification information and the equipment identification information are failed to be matched.
In summary, the bus structure implementation apparatus provided by the present invention receives the bus input data after determining that the data identification information of the bus input data obtained by the device is consistent with the identification information of the device, and the device processes the received bus input data, so that the master device and the slave device are combined into one device without parsing and arbitrating through the bus interconnect module, thereby solving the problem of low efficiency of accessing the slave device by the master device due to access of the slave device by the master device in the prior art, and improving efficiency between bus input data transmissions.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 5 is a schematic diagram of a bus structure implementation apparatus according to an embodiment of the present invention, where the apparatus may be integrated in a terminal device or a chip of the terminal device, and the terminal may be a computing device with a processing function.
The device includes: memory 501, processor 502.
The memory 501 is used for storing programs, and the processor 502 calls the programs stored in the memory 501 to execute the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Claims (6)
1. A method for implementing a bus structure, the method comprising:
acquiring data identification information of bus input data, wherein the data identification information is used for indicating equipment for processing the bus input data;
matching the data identification information with preset equipment identification information;
if the data identification information and the equipment identification information are successfully matched, receiving the bus input data;
after the step of receiving the bus input data, further comprising:
determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the equipment identification information or not according to a pre-stored event table; the pre-stored event table comprises the data type of the equipment identification information and is used for representing the data type which can be processed by equipment;
if the data type corresponding to the bus input data is determined to be consistent with the data type corresponding to the equipment identification information, processing the bus input data to obtain processed bus input data;
displaying that the processed bus input data is in a finished state;
after determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the device identification information according to a pre-stored event table, the method further includes:
if the data type corresponding to the bus input data is determined to be inconsistent with the data type corresponding to the equipment identification information, generating a data processing request, wherein the data processing request comprises target equipment identification information;
sending the data processing request to enable target equipment to receive and process the data processing request according to the identification information of the target equipment to obtain target processing information;
and receiving the target processing information sent by the target equipment.
2. The method of claim 1, wherein prior to said obtaining data identification information for bus input data, the method further comprises:
detecting whether a bus transmits the bus input data;
the acquiring data identification information of the bus input data includes:
and if the bus sends the bus input data, acquiring data identification information of the bus input data.
3. The bus structure implementation method of any of claims 1-2, wherein the method further comprises:
and if the data identification information and the equipment identification information are failed to be matched, not receiving the bus input data.
4. An apparatus for implementing a bus structure, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring data identification information of bus input data, and the data identification information is used for indicating equipment for processing the bus input data;
the matching module is used for matching the data identification information with preset equipment identification information;
the first receiving module is used for receiving the bus input data if the data identification information is successfully matched with the equipment identification information;
the first judgment module is used for determining whether the data type corresponding to the bus input data is consistent with the data type corresponding to the equipment identification information or not according to a pre-stored event table;
the second obtaining module is used for processing the bus input data to obtain processed bus input data if the data type corresponding to the bus input data is determined to be consistent with the data type corresponding to the equipment identification information;
the display module is used for displaying that the processed bus input data is in a finished state;
the processing module is used for generating a data processing request if the data type corresponding to the bus input data is determined to be inconsistent with the data type corresponding to the equipment identification information, and the data processing request comprises target equipment identification information;
the sending module is used for sending the data processing request so that the target equipment receives and processes the data processing request according to the identification information of the target equipment to obtain target processing information;
and the second receiving module is used for receiving the target processing information sent by the target equipment.
5. The bus structure implementation apparatus of claim 4, wherein the apparatus further comprises:
the detection module is used for detecting whether the bus transmits the bus input data or not;
and the acquisition module is specifically used for acquiring data identification information of the bus input data if the bus sends the bus input data.
6. The bus structure implementing apparatus of any one of claims 4-5, wherein the apparatus further comprises:
and the second judgment module is used for not receiving the bus input data if the data identification information and the equipment identification information are failed to be matched.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811404319.5A CN109471818B (en) | 2018-11-22 | 2018-11-22 | Bus structure implementation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811404319.5A CN109471818B (en) | 2018-11-22 | 2018-11-22 | Bus structure implementation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109471818A CN109471818A (en) | 2019-03-15 |
CN109471818B true CN109471818B (en) | 2021-08-31 |
Family
ID=65674014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811404319.5A Active CN109471818B (en) | 2018-11-22 | 2018-11-22 | Bus structure implementation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109471818B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112288990A (en) * | 2019-07-24 | 2021-01-29 | 上海东方富联科技有限公司 | Method, system, medium and device for generating internet of things event based on internet of things data |
CN111541598B (en) * | 2020-04-21 | 2021-08-03 | 重庆欢腾科技有限公司 | Distributed multi-host communication system, functional module and communication method thereof |
CN113067760A (en) * | 2021-03-10 | 2021-07-02 | 深圳市智莱科技股份有限公司 | Communication method, system, equipment and storage medium of power transformation cabinet |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794089A (en) * | 2015-05-12 | 2015-07-22 | 中国电子科技集团公司第四十七研究所 | Improved UART communication method, device and system suitable for single chip microcomputers |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101260313B1 (en) * | 2007-06-12 | 2013-05-03 | 삼성전자주식회사 | Electric apparatus and data sending/receiving method thereof and slave apparatus and communication method between the plural number of apparatuses |
CN101169771B (en) * | 2007-11-30 | 2010-06-02 | 华为技术有限公司 | Multiple passage internal bus external interface device and its data transmission method |
CN102262572B (en) * | 2011-07-19 | 2013-05-08 | 浙江大学 | Inter integrated circuit (IIC) bus interface controller with cyclic redundancy checking (CRC) function |
KR101596078B1 (en) * | 2012-06-12 | 2016-02-26 | 엘에스산전 주식회사 | A method for configurating CANopen network, a method for operating a slave apparatus of CANopen network and an operating system of PLC apparatus using CANopen network |
CN105847456B (en) * | 2015-01-13 | 2019-07-16 | 浙江大华技术股份有限公司 | A kind of RS485 distributes address methods, devices and systems automatically |
CN105243039A (en) * | 2015-11-13 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Serial port communication system and method |
CN106506306B (en) * | 2016-12-10 | 2020-11-20 | 锐捷网络股份有限公司 | Method and device for transmitting data message |
-
2018
- 2018-11-22 CN CN201811404319.5A patent/CN109471818B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104794089A (en) * | 2015-05-12 | 2015-07-22 | 中国电子科技集团公司第四十七研究所 | Improved UART communication method, device and system suitable for single chip microcomputers |
Also Published As
Publication number | Publication date |
---|---|
CN109471818A (en) | 2019-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109471818B (en) | Bus structure implementation method and device | |
US11509505B2 (en) | Method and apparatus for operating smart network interface card | |
US9710255B1 (en) | Updating system of firmware of complex programmable logic device and updating method thereof | |
US11269705B2 (en) | Method and apparatus for outputting information | |
CN108733720B (en) | On-line checking method and checking system for SQL (structured query language) query of multiple database types | |
CN105471968B (en) | A kind of method for interchanging data, system and data platform server | |
CN111767241B (en) | PCIe fault injection test method, device and storage medium | |
CN111211929A (en) | Fault positioning method, fault positioning device, control equipment and intelligent equipment | |
US20230153229A1 (en) | Method of testing performance, electronic device, and computer-readable medium | |
CN112346947B (en) | Performance detection method, device, electronic equipment and computer readable medium | |
EP3920500A1 (en) | Method and apparatus for verifying operation state of application | |
CN112380094B (en) | RPA business process processing method and device | |
CN114070763B (en) | Test method, client, server and medium based on improved REST protocol | |
CN107968717B (en) | Processing method of interface control command and Modem device | |
CN117520195A (en) | Method, apparatus, device, storage medium and program product for testing interface | |
CN108306939B (en) | Data processing method and device and forwarding equipment | |
US20050235049A1 (en) | System and method for monitoring startup processes of remote computers by a local server | |
CN116450176A (en) | Version updating method and device, electronic equipment and storage medium | |
US20050210232A1 (en) | System and method for monitoring BIOS messages of remote computers by a local server | |
CN114896110A (en) | Link detection method, device, equipment and storage medium | |
CN109446462B (en) | Page-based data monitoring processing method, device, equipment and storage medium | |
CN110727537A (en) | Method and device for uniformly processing response message, computer equipment and storage medium | |
CN116306400B (en) | Integrated circuit verification method, system, device, equipment and medium | |
CN115543712A (en) | Automatic detection method and device for equipment configuration information, electronic equipment and medium | |
CN116795611A (en) | Test method, test device, electronic equipment and storage medium |
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 |