[go: up one dir, main page]

CN110401586A - A kind of bus communication, device, equipment and readable storage medium storing program for executing - Google Patents

A kind of bus communication, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110401586A
CN110401586A CN201910683188.7A CN201910683188A CN110401586A CN 110401586 A CN110401586 A CN 110401586A CN 201910683188 A CN201910683188 A CN 201910683188A CN 110401586 A CN110401586 A CN 110401586A
Authority
CN
China
Prior art keywords
bus
signal
wishbone
transport protocol
agreement
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.)
Granted
Application number
CN201910683188.7A
Other languages
Chinese (zh)
Other versions
CN110401586B (en
Inventor
谢武志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN201910683188.7A priority Critical patent/CN110401586B/en
Publication of CN110401586A publication Critical patent/CN110401586A/en
Application granted granted Critical
Publication of CN110401586B publication Critical patent/CN110401586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Bus Control (AREA)

Abstract

The invention discloses a kind of bus communications, method includes the following steps: obtaining the first signal transmitted in the first bus according to the first transport protocol;According to the Corresponding matching relationship of Wishbone agreement and the first transport protocol, the first signal is converted, obtains Wishbone signal;According to the Corresponding matching relationship of Wishbone agreement and the second transport protocol, Wishbone signal is converted;Wherein, the first transport protocol, Wishbone agreement and the second transport protocol are different;Control the second signal obtained after the second bus transfer conversion Wishbone signal.As it can be seen that this method can reduce the complexity of communication issue between foreign peoples's bus.The invention also discloses a kind of bus communicating devices, equipment and readable storage medium storing program for executing, have corresponding technical effect.

Description

A kind of bus communication, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of bus communication, device, equipment and readable storage Medium.
Background technique
Along with science and technology development, the arriving of big data era, whether mass data processing or low-power consumption power saving ring The new line for protecting consciousness, is all one of the target that society is paid attention to.Server used in data center, earlier chip and core The interface that piece is linked up, other than using I2C bus interface, another important interface is lpc bus, to the ESPI of latest generation Bus is all important communication interface.
Wherein, lpc bus only needs seven signal line for research and development in 1998, and data line can be simplified to 4, i.e., can be complete At communication, speed can reach 33MHz.ESPI bus, this data line maintains 4, but speed reaches as high as lpc bus Twice, reach 66MHz, and voltage quasi position drops to 1.8V also from original 3.3V.As it can be seen that ESPI bus not only conforms to the modern times Server develop towards low-power consumption, bandwidth efficiency also improves twice than previously.But in practical applications, and not all IC It is all using ESPI bus interface, many interfaces still use I2C bus, UART bus, spi bus etc..
It, can not direct communication between different types of bus, if it is desired to realize and be communicated between foreign peoples's bus, then need same When research concern two kinds of buses control method.Such as, if it is desired to ESPI bus is communicated with the realization of I2C bus, and designer needs It goes how research ESPI module and I2C module will control simultaneously, how to control entire data flow, accurate can just allow two Interface can be transmitted with proper communication, data.It needs to write data exchange control module between ESPI and I2C module, it just can be with Two different interfaces are allowed to communicate with each other.But, it is desirable to ESPI bus is communicated with UART bus, then needing to grind again again Suitable data exchange control module can just be write out by studying carefully.
In conclusion the problems such as how efficiently solving the communication of foreign peoples's bus, is that current those skilled in the art are badly in need of The technical issues of solution.
Summary of the invention
The object of the present invention is to provide a kind of bus communication, device, equipment and readable storage medium storing program for executing, to reduce foreign peoples The communication issue complexity of bus.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of bus interface communication means, comprising:
Obtain the first signal transmitted in the first bus according to the first transport protocol;
According to the Corresponding matching relationship of Wishbone agreement and first transport protocol, first signal is turned It changes, obtains Wishbone signal;
According to the Corresponding matching relationship of the Wishbone agreement and the second transport protocol, to the Wishbone signal into Row conversion;Wherein, first transport protocol, the Wishbone agreement and second transport protocol are different;
It controls the second bus transfer and converts the second signal obtained after the Wishbone signal.
Preferably, the second bus transfer of the control converts the second signal obtained after the Wishbone signal, comprising:
Transmission control parameters are obtained, and control the second letter described in second bus transfer according to the transmission control parameters Number configured transmission;Wherein, the configured transmission includes frequency and data width.
Preferably, the acquisition transmission control parameters, comprising:
Destination register value is read, determines that the transmission is controlled according to the corresponding relationship of the configured transmission and register value Parameter processed.
Preferably, further includes:
User's control instruction is received, executes the user's control instruction to adjust the destination register value.
It is preferably, described to obtain the first signal transmitted in the first bus according to the first transport protocol, comprising:
Obtain the ESPI signal transmitted in ESPI bus according to ESPI protocol.
Preferably, further includes:
According to the Corresponding matching relationship of the Wishbone agreement and third transport protocol, to the Wishbone signal into Row conversion;
Control third bus transfer converts the third signal obtained after the Wishbone signal;Wherein, the third passes Defeated agreement, first transport protocol, second transport protocol and the Wishbone agreement are different.
Preferably, according to the Corresponding matching relationship of Wishbone agreement and first transport protocol, to first letter It number is converted, obtains Wishbone signal, comprising:
According to the Corresponding matching relationship of the Wishbone agreement and first transport protocol, to first signal into Row conversion, and the Wishbone signal is transmitted in Wishbone bus.
A kind of bus communicating devices, comprising:
First signal acquisition module, for obtaining the first signal transmitted in the first bus according to the first transport protocol;
First signal conversion module, for being closed according to the Corresponding matching of Wishbone agreement and first transport protocol System, converts first signal, obtains Wishbone signal;
Second signal conversion module, for being closed according to the Corresponding matching of the Wishbone agreement and the second transport protocol System, converts the Wishbone signal;Wherein, first transport protocol, the Wishbone agreement and described Two transport protocols are different;
Second signal transmission module converts obtain after the Wishbone signal second for controlling the second bus transfer Signal.
A kind of bus communication device, comprising:
CPLD, the first bus port and the second bus port, and the CPLD respectively with first bus port and institute The second bus port is stated to be connected;
Wherein, first bus port, for being connect with external first bus;
Second bus port, for being connect with external second bus;
The CPLD, for obtaining the first signal transmitted in the first bus according to the first transport protocol;According to The Corresponding matching relationship of Wishbone agreement and first transport protocol converts first signal, obtains Wishbone signal;According to the Corresponding matching relationship of the Wishbone agreement and the second transport protocol, to the Wishbone Signal is converted;Wherein, the mutual not phase of first transport protocol, the Wishbone agreement and second transport protocol Together;It controls the second bus transfer and converts the second signal obtained after the Wishbone signal.
Using method provided by the embodiment of the present invention, obtain in the first bus according to the first of the transmission of the first transport protocol Signal;According to the Corresponding matching relationship of Wishbone agreement and the first transport protocol, the first signal is converted, is obtained Wishbone signal;According to the Corresponding matching relationship of Wishbone agreement and the second transport protocol, Wishbone signal is carried out Conversion;Wherein, the first transport protocol, Wishbone agreement and the second transport protocol are different;Control the second bus transfer The second signal obtained after conversion Wishbone signal.
Wishbone bus is a kind of bus of open architecture, and wide-spread using for a long time, control mode is simple.In It is simple by control mode when needing to realize the communication between the first bus of foreign peoples and the second bus in this method Wishbone bus realizes foreign peoples's bus communication between the first bus and Wishbone bus, i.e., by as medium first The first signal transmitted in one bus is converted to the Wishbone signal that can be transmitted in Wishbone bus;It then, then will Wishbone signal is converted to the second signal that can be transmitted in the second bus.As it can be seen that will directly convert the first signal in this method Challenge between second signal, the conversion subproblem and second being converted between the first signal and Wishbone signal Conversion subproblem between signal and Wishbone signal.And since Wishbone bus marco is simple, it is easy to accomplish, after conversion Two sub-problems it is opposite be easier to solve, the complexity of communication issue between foreign peoples's bus can be reduced, further can be significantly The research and development for reducing research staff are time-consuming, and since Wishbone bus marco is simple, corresponding service logic is also more simple, It is not easy to make mistakes.
Correspondingly, the embodiment of the invention also provides bus communicating devices corresponding with above-mentioned bus communication, set Standby and readable storage medium storing program for executing, has above-mentioned technique effect, and details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of bus communication in the embodiment of the present invention;
Fig. 2 is the control principle schematic diagram that ESPI bus and Wishbone bus communication are realized in the embodiment of the present invention;
Fig. 3 is to realize that the specific control principle of ESPI bus and Wishbone bus communication is illustrated in the embodiment of the present invention Figure;
Fig. 4 is the corresponding upper layer IP module diagram of ESPI collocation Wishbone bus in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of bus communicating devices in the embodiment of the present invention;
Fig. 6 is ESPI bus a kind of in the embodiment of the present invention, UART and I2C bus communication schematic illustration.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of implementation flow chart of bus communication in the embodiment of the present invention.
This method can be applied to CPLD (Complex Programmable Logic Device, complicated programmable logic device Part) in, this method comprises:
S101, the first signal transmitted in the first bus according to the first transport protocol is obtained.
It should be noted that first, second, and third be only used for distinguishing different objects in embodiments of the present invention, and Meaning is limited without successive, primary and secondary etc..For example, first and second in the first bus and the second bus are used to indicate that there are two kinds Different buses;First transport protocol is then the transport protocol implemented in the first bus, and the first signal indicates in the first bus The signal of transmission.
In embodiments of the present invention, the first transport protocol, Wishbone agreement and the second transport protocol are different.The One transport protocol can be one of the non-Wishbone agreements such as I2C agreement, LPC agreement, ESPI protocol, UART protocol agreement, Second transport protocol can be other common protocols of the first transport protocol of non-present and Wishbone agreement.For example, when the first biography When defeated agreement is I2C agreement, the second transport protocol can be ESPI protocol.Correspondingly, the first bus and the first transport protocol are corresponding, Second bus and the second transport protocol are corresponding.For example, then the first bus is that ESPI is total when the first transport protocol is ESPI protocol Line.
That is, to realize that ESPI bus is communicated with other buses of non-ESPI bus and Wishbone bus When, above-mentioned steps S101 can be specially the ESPI signal for obtaining and transmitting in ESPI bus according to ESPI protocol.For example, available The port ESPI is monitored ESPI bus, and the ESPI control module in the port ESPI can be according to ESPI protocol to ESPI bus Electric signal is parsed, and ESPI signal is obtained.
S102, according to the Corresponding matching relationship of Wishbone agreement and the first transport protocol, the first signal is converted, Obtain Wishbone signal.
In embodiments of the present invention, the Corresponding matching that can be predefined between Wishbone agreement and the first transport protocol closes System, specifically, can be obtained inside it by determining Wishbone agreement and being specifically defined for the first transport protocol Corresponding matching relationship between signal.For example, according to the transmission data wire between the first transport protocol and Wishbone agreement Quantity determines that the electric signal of the data line a in corresponding first bus of the first transport protocol should be by Wishbone bus Which data line is accepted, or after how need to being converted, which data to transmit the signal by.May be used also about signal conversion process With specific reference to existing protocol integrated test system module, specifically, being solved using the first transport protocol control module to the first signal Analysis obtains the data content transmitted and then reads the data content by Wishbone control module, and according to Wishbone Agreement generates Wishbone signal.
Below by taking the conversion of ESPI bus and Wishbone bus as an example, signal conversion process is described in detail.Please Referring to figs. 2 and 3.As it can be seen that the data that ESPI bus and Wishbone bus are transmitted, can all store into memory (such as RAM), The data exchange between ESPI bus and Wishbone bus is realized through memory, it is slow that wishbone bus also can pass through configuration Storage goes the frequency of setting ESPI, data width.When the first bus is non-ESPI bus, " ESPI " in Fig. 2 and Fig. 3 is replaced Being changed to other buses and corresponding to title (can such as replace with I2C), and realization process can refer in this, and this is no longer going to repeat them.
In practical applications, IP application module in upper layer can refer to Fig. 4, control ESPI bus.Wherein, Fig. 4 is this The corresponding upper layer IP module diagram of ESPI collocation Wishbone bus in inventive embodiments.In Fig. 4, left side linking Wishbone bus, right side are then connected ESPI bus.
S103, according to the Corresponding matching relationship of Wishbone agreement and the second transport protocol, Wishbone signal is carried out Conversion.
In the process, to the translation process of Wishbone signal can refer to above to the conversion of the first signal at Reason process, this is no longer going to repeat them.
The second signal obtained after S104, control the second bus transfer conversion Wishbone signal.
After converting, i.e., controllable second bus transfer second signal.Specifically, it is corresponding that the second bus can be used Transmission control module, which is realized, controls the signal of the second bus.
In embodiments of the present invention, process of first bus to the second bus transfer data is only listed, in practical application In, be related to the second bus need to be to the first bus transfer data when, specific implementation process can refer to the first bus to Two lines bus transmits the realization principle step of data, and this is no longer going to repeat them.
Using method provided by the embodiment of the present invention, obtain in the first bus according to the first of the transmission of the first transport protocol Signal;According to the Corresponding matching relationship of Wishbone agreement and the first transport protocol, the first signal is converted, is obtained Wishbone signal;According to the Corresponding matching relationship of Wishbone agreement and the second transport protocol, Wishbone signal is carried out Conversion;Wherein, the first transport protocol, Wishbone agreement and the second transport protocol are different;Control the second bus transfer The second signal obtained after conversion Wishbone signal.
Wishbone bus is a kind of bus of open architecture, and wide-spread using for a long time, control mode is simple.In It is simple by control mode when needing to realize the communication between the first bus of foreign peoples and the second bus in this method Wishbone bus realizes foreign peoples's bus communication between the first bus and Wishbone bus, i.e., by as medium first The first signal transmitted in one bus is converted to the Wishbone signal that can be transmitted in Wishbone bus;It then, then will Wishbone signal is converted to the second signal that can be transmitted in the second bus.As it can be seen that will directly convert the first signal in this method Challenge between second signal, the conversion subproblem and second being converted between the first signal and Wishbone signal Conversion subproblem between signal and Wishbone signal.And since Wishbone bus marco is simple, it is easy to accomplish, after conversion Two sub-problems it is opposite be easier to solve, the complexity of communication issue between foreign peoples's bus can be reduced, further can be significantly The research and development for reducing research staff are time-consuming, and since Wishbone bus marco is simple, corresponding service logic is also more simple, It is not easy to make mistakes.
It should be noted that based on the above embodiment, the embodiment of the invention also provides be correspondingly improved scheme.Excellent It can mutually be referred between step or corresponding steps same with the above-mentioned embodiment involved in choosing/improvement embodiment, it is corresponding beneficial Effect can also be cross-referenced, no longer repeats one by one in preferred/improvement embodiment of this paper.
In embodiments of the present invention, the signal transmitted in bus can also be controlled.For controlling second signal, control The second signal obtained after the second bus transfer conversion Wishbone signal is made, can be specially to obtain transmission control parameters, and press The configured transmission of the second bus transfer second signal is controlled according to transmission control parameters;Wherein, configured transmission includes frequency and data Width.
Wherein, transmission control parameters are obtained, it can be by reading destination register value, according to configured transmission and register value Corresponding relationship determine transmission control parameters.Wherein, destination register is pre-set to read for user or upper layer application The register write, and in embodiments of the present invention, it can be also the corresponding relationship of the numerical value setting and configured transmission of destination register, For example, frequency is the integral multiple of first 4 corresponding numerical value of target register values, data width is latter 4 of target register values Corresponding numerical value.
Preferably, user can also realize transmission control by way of sending control instruction.Have, i.e. reception user Control instruction executes user's control instruction to adjust destination register value.Concrete implementation process and configuration and setting module pair The specific adjustment process of configured transmission, this is no longer going to repeat them.
Preferably, in embodiments of the present invention, it is communicated when the first bus need to be realized with third bus, i.e., when data are transmitted, Then following steps can be executed after executing above-mentioned steps S102:
Step 1: according to the Corresponding matching relationship of Wishbone agreement and third transport protocol, to Wishbone signal into Row conversion;
Step 2: the third signal obtained after control third bus transfer conversion Wishbone signal
Wherein, third transport protocol, the first transport protocol, the second transport protocol and Wishbone agreement are different. Above-mentioned steps one and step 2 can be cross-referenced with step S103, the step S104 in embodiment one, and this is no longer going to repeat them.
Embodiment two:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of bus communicating devices, are described below Bus communicating devices can correspond to each other reference with above-described bus communication.
Shown in Figure 5, which comprises the following modules:
First signal acquisition module 101, for obtaining the first signal transmitted in the first bus according to the first transport protocol;
First signal conversion module 102, for the Corresponding matching relationship according to Wishbone agreement and the first transport protocol, First signal is converted, Wishbone signal is obtained;
Second signal conversion module 103, for the Corresponding matching relationship according to Wishbone agreement and the second transport protocol, Wishbone signal is converted;Wherein, the mutual not phase of the first transport protocol, Wishbone agreement and the second transport protocol Together;
Second signal transmission module 104, for control the second bus transfer conversion Wishbone signal after obtain second Signal.
Using device provided by the embodiment of the present invention, obtain in the first bus according to the first of the transmission of the first transport protocol Signal;According to the Corresponding matching relationship of Wishbone agreement and the first transport protocol, the first signal is converted, is obtained Wishbone signal;According to the Corresponding matching relationship of Wishbone agreement and the second transport protocol, Wishbone signal is carried out Conversion;Wherein, the first transport protocol, Wishbone agreement and the second transport protocol are different;Control the second bus transfer The second signal obtained after conversion Wishbone signal.
Wishbone bus is a kind of bus of open architecture, and wide-spread using for a long time, control mode is simple.In It is simple by control mode when needing to realize the communication between the first bus of foreign peoples and the second bus in the present apparatus Wishbone bus realizes foreign peoples's bus communication between the first bus and Wishbone bus, i.e., by as medium first The first signal transmitted in one bus is converted to the Wishbone signal that can be transmitted in Wishbone bus;It then, then will Wishbone signal is converted to the second signal that can be transmitted in the second bus.As it can be seen that will directly convert the first signal in the present apparatus Challenge between second signal, the conversion subproblem and second being converted between the first signal and Wishbone signal Conversion subproblem between signal and Wishbone signal.And since Wishbone bus marco is simple, it is easy to accomplish, after conversion Two sub-problems it is opposite be easier to solve, the complexity of communication issue between foreign peoples's bus can be reduced, further can be significantly The research and development for reducing research staff are time-consuming, and since Wishbone bus marco is simple, corresponding service logic is also more simple, It is not easy to make mistakes.
In a kind of specific embodiment of the invention, second signal transmission module 104 is specifically used for obtaining transmission control Parameter, and according to the configured transmission of transmission control parameters the second bus transfer second signal of control;Wherein, configured transmission includes frequency Rate and data width.
In a kind of specific embodiment of the invention, second signal transmission module 104 is specifically used for reading target deposit Device numerical value determines transmission control parameters according to the corresponding relationship of configured transmission and register value.
In a kind of specific embodiment of the invention, further includes:
Configuration and setting module executes user's control instruction for receiving user's control instruction to adjust destination register number Value.
In a kind of specific embodiment of the invention, the first signal acquisition module 101 is specifically used for obtaining ESPI bus On according to ESPI protocol transmit ESPI signal.
In a kind of specific embodiment of the invention, further includes:
Third signal conversion module is right for the Corresponding matching relationship according to Wishbone agreement and third transport protocol Wishbone signal is converted;
Third signal transmission module, for controlling the third letter obtained after third bus transfer conversion Wishbone signal Number;Wherein, third transport protocol, the first transport protocol, the second transport protocol and Wishbone agreement are different.
In a kind of specific embodiment of the invention, the first signal conversion module 102, for according to Wishbone agreement With the Corresponding matching relationship of the first transport protocol, the first signal is converted, and is transmitted in Wishbone bus Wishbone signal.
Embodiment three:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of bus communication devices, are described below A kind of bus communication device can correspond to each other reference with a kind of above-described bus communication.
CPLD, the first bus port and the second bus port, and CPLD respectively with the first bus port and the second bus end Mouth is connected;
Wherein, the first bus port, for being connect with external first bus;
Second bus port, for being connect with external second bus;
CPLD, for obtaining the first signal transmitted in the first bus according to the first transport protocol;It is assisted according to Wishbone The Corresponding matching relationship of view and the first transport protocol, converts the first signal, obtains Wishbone signal;According to The Corresponding matching relationship of Wishbone agreement and the second transport protocol, converts Wishbone signal;Wherein, the first transmission Agreement, Wishbone agreement and the second transport protocol are different;After controlling the second bus transfer conversion Wishbone signal The second signal of acquisition
Using bus communication provided by above method embodiment, correspondingly, institute of the embodiment of the present invention in CPLD Also the technical effect that there is the bus communication device of offer above method embodiment to have, this is no longer going to repeat them.
It in practical applications, can be by the functional module of the building realization above method step in CPLD.Realize that I2C is total below For line, UART bus are communicated with the realization of ESPI bus, it is described in detail.
Referring to FIG. 6, Fig. 6 is ESPI bus a kind of in the embodiment of the present invention, the signal of UART and I2C bus communication principle Figure.
Firstly, CPLD building I2C control module, Wishbone bus module, UART control module, Wishbone bus and ESPI port control modules.Wherein, I2C control module is used to control the data transmission of I2C bus, and obtains transmission signal extremely Wishbone bus module;UART module is used to control the data transmission of UART bus, and obtains transmission signal to Wishbone Bus module;ESPI port control modules are for controlling ESPI bus data transfer, and it is total to Wishbone to obtain transmission signal Line traffic control module;Wishbone bus module, which converts the transmission signal received to Wishbone bus, to be transmitted, and again It is secondary to be converted into the identifiable data information of transfer bus.That is Wishbone bus control module serves as intermediate conversion wherein Signal is controlled engineering simplification by medium.
Wherein, the communication interaction between I2C control module and Wishbone bus module, UART control module with It is logical between communication interaction and ESPI port control modules and Wishbone bus module between Wishbone bus module Letter interaction can refer to the interactive process between Wishbone bus and ESPI bus herein, and specific implementation module, This is no longer going to repeat them.
Example IV:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described bus communication.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor The step of bus communication of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk The readable storage medium storing program for executing of code.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of bus communication characterized by comprising
Obtain the first signal transmitted in the first bus according to the first transport protocol;
According to the Corresponding matching relationship of Wishbone agreement and first transport protocol, first signal is converted, Obtain Wishbone signal;
According to the Corresponding matching relationship of the Wishbone agreement and the second transport protocol, the Wishbone signal is turned It changes;Wherein, first transport protocol, the Wishbone agreement and second transport protocol are different;
It controls the second bus transfer and converts the second signal obtained after the Wishbone signal.
2. bus communication according to claim 1, which is characterized in that described in the conversion of the second bus transfer of the control The second signal obtained after Wishbone signal, comprising:
Transmission control parameters are obtained, and control second signal described in second bus transfer according to the transmission control parameters Configured transmission;Wherein, the configured transmission includes frequency and data width.
3. bus communication according to claim 2, which is characterized in that the acquisition transmission control parameters, comprising:
Destination register value is read, determines the transmission control ginseng according to the corresponding relationship of the configured transmission and register value Number.
4. bus communication according to claim 3, which is characterized in that further include:
User's control instruction is received, executes the user's control instruction to adjust the destination register value.
5. bus communication according to claim 1, which is characterized in that passed in the first bus of the acquisition according to first First signal of defeated agreement transmission, comprising:
Obtain the ESPI signal transmitted in ESPI bus according to ESPI protocol.
6. bus communication according to claim 1, which is characterized in that further include:
According to the Corresponding matching relationship of the Wishbone agreement and third transport protocol, the Wishbone signal is turned It changes;
Control third bus transfer converts the third signal obtained after the Wishbone signal;Wherein, third transmission association View, first transport protocol, second transport protocol and the Wishbone agreement are different.
7. bus communication according to any one of claims 1 to 6, which is characterized in that according to Wishbone agreement with The Corresponding matching relationship of first transport protocol converts first signal, obtains Wishbone signal, comprising:
According to the Corresponding matching relationship of the Wishbone agreement and first transport protocol, first signal is turned It changes, and transmits the Wishbone signal in Wishbone bus.
8. a kind of bus communicating devices characterized by comprising
First signal acquisition module, for obtaining the first signal transmitted in the first bus according to the first transport protocol;
First signal conversion module is right for the Corresponding matching relationship according to Wishbone agreement and first transport protocol First signal is converted, and Wishbone signal is obtained;
Second signal conversion module, it is right for the Corresponding matching relationship according to the Wishbone agreement and the second transport protocol The Wishbone signal is converted;Wherein, first transport protocol, the Wishbone agreement and second transmission Agreement is different;
Second signal transmission module converts the second letter obtained after the Wishbone signal for controlling the second bus transfer Number.
9. a kind of bus communication device characterized by comprising
CPLD, the first bus port and the second bus port, and the CPLD respectively with first bus port and described Two lines bus port is connected;
Wherein, first bus port, for being connect with external first bus;
Second bus port, for being connect with external second bus;
The CPLD, for obtaining the first signal transmitted in the first bus according to the first transport protocol;It is assisted according to Wishbone The Corresponding matching relationship of view and first transport protocol, converts first signal, obtains Wishbone signal;It presses According to the Corresponding matching relationship of the Wishbone agreement and the second transport protocol, the Wishbone signal is converted;Its In, first transport protocol, the Wishbone agreement and second transport protocol are different;Control the second bus The second signal obtained after the Wishbone signal is converted in transmission.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 7 the step of bus communication.
CN201910683188.7A 2019-07-26 2019-07-26 Bus communication method, device, equipment and readable storage medium Active CN110401586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910683188.7A CN110401586B (en) 2019-07-26 2019-07-26 Bus communication method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910683188.7A CN110401586B (en) 2019-07-26 2019-07-26 Bus communication method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110401586A true CN110401586A (en) 2019-11-01
CN110401586B CN110401586B (en) 2022-03-08

Family

ID=68325176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910683188.7A Active CN110401586B (en) 2019-07-26 2019-07-26 Bus communication method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110401586B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143140A (en) * 2021-11-30 2022-03-04 北京三快在线科技有限公司 Data transmission system, method, storage medium and electronic equipment
WO2024125185A1 (en) * 2022-12-16 2024-06-20 无锡芯光互连技术研究院有限公司 Communication conversion method for communication between master and slave devices, apparatus, and storage medium
WO2024131147A1 (en) * 2022-12-20 2024-06-27 深圳市紫光同创电子有限公司 Enhanced serial peripheral interface implementing method and apparatus, enhanced serial peripheral interface conversion device and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101315547A (en) * 2008-07-15 2008-12-03 北京中星微电子有限公司 Control system based on multiple FPGA
WO2013059987A1 (en) * 2011-10-25 2013-05-02 深圳市海思半导体有限公司 Method of reducing dynamic power consumption and electronic device
CN103268302A (en) * 2013-04-19 2013-08-28 华为技术有限公司 An interface expansion circuit, interface expansion connection method and embedded system
CN204833258U (en) * 2015-08-26 2015-12-02 浪潮集团有限公司 Utilize peripheral hardware extend system of MCU nuclear
CN207867496U (en) * 2018-02-06 2018-09-14 西安凌北电子科技有限公司 A kind of multi-channel serial port card based on PXIe buses
CN109828941A (en) * 2019-03-06 2019-05-31 苏州浪潮智能科技有限公司 AXI2WB bus bridge implementation method, device, equipment and storage medium
CN109831434A (en) * 2019-01-31 2019-05-31 西安微电子技术研究所 A kind of multi-protocol communication exchange control unit based on customized exchanging policy
CN110399317A (en) * 2019-07-15 2019-11-01 西安微电子技术研究所 A kind of multifunctional controller that the software of embedded system is adaptive

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101315547A (en) * 2008-07-15 2008-12-03 北京中星微电子有限公司 Control system based on multiple FPGA
WO2013059987A1 (en) * 2011-10-25 2013-05-02 深圳市海思半导体有限公司 Method of reducing dynamic power consumption and electronic device
CN103268302A (en) * 2013-04-19 2013-08-28 华为技术有限公司 An interface expansion circuit, interface expansion connection method and embedded system
CN204833258U (en) * 2015-08-26 2015-12-02 浪潮集团有限公司 Utilize peripheral hardware extend system of MCU nuclear
CN207867496U (en) * 2018-02-06 2018-09-14 西安凌北电子科技有限公司 A kind of multi-channel serial port card based on PXIe buses
CN109831434A (en) * 2019-01-31 2019-05-31 西安微电子技术研究所 A kind of multi-protocol communication exchange control unit based on customized exchanging policy
CN109828941A (en) * 2019-03-06 2019-05-31 苏州浪潮智能科技有限公司 AXI2WB bus bridge implementation method, device, equipment and storage medium
CN110399317A (en) * 2019-07-15 2019-11-01 西安微电子技术研究所 A kind of multifunctional controller that the software of embedded system is adaptive

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143140A (en) * 2021-11-30 2022-03-04 北京三快在线科技有限公司 Data transmission system, method, storage medium and electronic equipment
WO2024125185A1 (en) * 2022-12-16 2024-06-20 无锡芯光互连技术研究院有限公司 Communication conversion method for communication between master and slave devices, apparatus, and storage medium
WO2024131147A1 (en) * 2022-12-20 2024-06-27 深圳市紫光同创电子有限公司 Enhanced serial peripheral interface implementing method and apparatus, enhanced serial peripheral interface conversion device and medium

Also Published As

Publication number Publication date
CN110401586B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
KR101832797B1 (en) A method, apparatus and system for performing management component transport protocol (mctp) communications with a universal serial bus (usb) device
CN105593830B (en) Methods, devices and systems for the waiting time in the physical unit of measuring circuit
CN110401586A (en) A kind of bus communication, device, equipment and readable storage medium storing program for executing
CN104050138A (en) Apparatus, system, and method for performing link training and equalization
CN104050139A (en) Method, apparatus, and system for improving inter-chip and single-wire communication for a serial interface
CN105051706A (en) Device, method and system for operation of a low power PHY with a PCIe protocol stack
CN113626360B (en) Low-speed MIPI observation type SOC chip and operation method thereof
CN109639737A (en) Agreement generating device, the method for converting protocol of data collection station and configuration method
CN104156333A (en) FPGA-based UART multi-interface extension system and method
CN107562672A (en) A kind of system and method for improving vector network analyzer message transmission rate
WO2009051340A1 (en) Framework device of mobile terminal and method for providing interoperability between components
CN110196830A (en) A kind of information realtime interactive terminal based on embedded system
CN107704407A (en) A system and method for data processing between SPI and UART
CN101140551B (en) A device for realizing asynchronous serial communication of digital signal processor
WO2011012558A1 (en) Transaction terminator
CN208638364U (en) A kind of LVDS bus detection system based on Ethernet
Wan et al. Application and implementation of CAN bus technology in industry real-time data communication
CN208128284U (en) A kind of Ethernet based on S698PM turns Multi-path synchronous serial interface communication apparatus
CN208386579U (en) A kind of 1553B bus detection system based on Ethernet
CN116566762A (en) Cascading equipment based on Modbus-RTU protocol and application method thereof
CN104460923A (en) Intelligent battery managing method, upper computer and portable mobile device
CN208190652U (en) A kind of mainboard of full duplex Universal Synchronous Asynchronous serial transceiver
CN104317688B (en) A kind of battery status detection method
CN109062845A (en) multi-terminal control method and system
CN103544133B (en) Conversion device and conversion method

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