CN110086595A - Synchronous bus communications method - Google Patents

Synchronous bus communications method Download PDF

Info

Publication number
CN110086595A
CN110086595A CN201910305849.2A CN201910305849A CN110086595A CN 110086595 A CN110086595 A CN 110086595A CN 201910305849 A CN201910305849 A CN 201910305849A CN 110086595 A CN110086595 A CN 110086595A
Authority
CN
China
Prior art keywords
equipment
signal
transmission
data
main equipment
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.)
Pending
Application number
CN201910305849.2A
Other languages
Chinese (zh)
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.)
Beijing Exploration Technology Co Ltd
Original Assignee
Beijing Exploration Technology 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 Beijing Exploration Technology Co Ltd filed Critical Beijing Exploration Technology Co Ltd
Priority to CN201910305849.2A priority Critical patent/CN110086595A/en
Publication of CN110086595A publication Critical patent/CN110086595A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0079Receiver details
    • H04L7/0087Preprocessing of received signal for synchronisation, e.g. by code conversion, pulse generation or edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of synchronous bus communications method and devices, comprising: if the sampled result between the transmission commencing signal sampled from main equipment and transmission cycle signal is consistent, it is determined that start data transmission;According to the transmission address signal got from main equipment, data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing the data transmission under synchronous bus communications in combination with actual data transfer demand, so as to meet the different demands in Industry Control, the scope of application is wider.

Description

Synchronous bus communications method
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of synchronous bus communications method.
Background technique
With the high speed development of integrated circuit technique, the type and quantity of data to be treated increase sharply.And in phase In the technology of pass, synchronous bus communications agreement is usually provided with more operating mode, and some functions are not necessarily under many modes With obtaining, and function actually required does not also have in the operational mode sometimes.Therefore, now it is badly in need of a kind of synchronous bus communications side Method.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of synchronous bus communications method and device, to solve in the prior art same Walk bus communication protocol problem inconvenient for use.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
According to a first aspect of the embodiments of the present invention, a kind of synchronous bus communications method is provided, comprising:
If the sampled result between the transmission commencing signal sampled from main equipment and transmission cycle signal is consistent, really Surely start data transmission;
According to the transmission address signal got from main equipment, data to be written are transmitted to by bridge device corresponding from setting It is standby.
Further, the main equipment is with described from the synchronizing clock signals used between equipment with frequency with phase.
Further, it is described data to be written are transmitted to by bridge device it is corresponding after equipment, further includes:
In the transmission process of data to be written, by the way that the main equipment and the read-write operation between equipment are identified Signal is connected with each other, to identify current read-write state.
Further, the sampled result is unanimously that signal rises at the same time or signal while falling.
Further, it is described data to be written are transmitted to by bridge device it is corresponding after equipment, further includes:
In data transmission procedure, if being set from the master in the preset time window from equipment issues confirmation signal It is standby to receive write operation end signal, it is determined that transmission process terminates.
Further, after the determining beginning data transmission, further includes:
To being taken from each data that continue got from equipment or operation, the result taken or operation obtains is transmitted to described Main equipment.
It is further, described that the result taken or operation obtains is transmitted to after the main equipment, further includes:
In data transmission procedure, if from the preset time window from equipment issues confirmation signal (S_ACK_O) The interior main equipment receives readback operation signal, it is determined that the data that the main equipment reads back are effective.
According to a second aspect of the embodiments of the present invention, a kind of synchronous bus communications device is provided, comprising:
First determining module, for when between the transmission commencing signal sampled from main equipment and transmission cycle signal When sampled result is consistent, it is determined that start data transmission;
First transmission module, for according to the transmission address signal that is got from main equipment, by bridge device by number to be written It is corresponding from equipment according to being transmitted to.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising:
At least one processor;And
At least one processor being connect with processor communication, in which:
Memory is stored with the program instruction that can be executed by processor, and the instruction of processor caller is able to carry out first party Synchronous bus communications method provided by any possible implementation in the various possible implementations in face.
According to the fourth aspect of the invention, a kind of non-transient computer readable storage medium, non-transient computer are provided Readable storage medium storing program for executing stores computer instruction, and computer instruction makes the various possible implementations of computer execution first aspect In synchronous bus communications method provided by any possible implementation.
The embodiment of the present invention has the advantages that by when the transmission commencing signal sampled from main equipment is followed with transmission When sampled result between ring signal is consistent, it is determined that start data transmission.According to the transmission address letter got from main equipment Number, data to be written are transmitted to by bridge device corresponding from equipment.It is synchronized due to being realized in combination with actual data transfer demand Data transmission under bus communication, so as to meet the different demands in Industry Control, the scope of application is wider.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Structure depicted in this specification, ratio, size etc., only to cooperate the revealed content of specification, for Those skilled in the art understands and reads, and is not intended to limit the invention enforceable qualifications, therefore does not have technical Essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the function of the invention that can be generated Under effect and the purpose that can reach, should all still it fall in the range of disclosed technology contents obtain and can cover.
Fig. 1 is a kind of overall flow schematic diagram of synchronous bus communications method provided in an embodiment of the present invention;
Fig. 2 is a kind of synchronous bus communications device overall structure diagram provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
With increasingly complicated and integrated circuit technique the high speed development of electric system and industrial control system, need to handle The type and quantity of data increase sharply.And in the related art, synchronous bus communications agreement is usually provided with more work Operation mode, and some functions are not necessarily with obtaining under many modes, and function actually required is not in the operational mode yet sometimes Have.Therefore, now it is badly in need of a kind of synchronous bus communications method.
For said circumstances, as described in Figure 1, a kind of the whole of synchronous bus communications method of the specific embodiment of the invention is shown Body flow chart, this method can be adapted for synchronous bus communications system, which includes main equipment, from equipment and bridge device.It should If method include: S1, sampled from main equipment transmission commencing signal and transmit cycle signal between sampled result it is consistent, It then determines and starts data transmission;The transmission address signal that S2, basis are got from main equipment, is passed data to be written by bridge device It transports to corresponding from equipment.
Wherein, main equipment, refer to from equipment and bridge device the module with digital circuit communication function, including it is integrated A module or a digit chip itself in circuit.Main equipment is the initiator of communication protocol, and a synchronous bus is logical Only one main equipment in letter system.It is the recipient of communication protocol from equipment, can has in a synchronous bus communications system It is multiple from equipment.It is a kind of special from equipment that bridge device refers to, is responsible for main equipment and from the agreement between equipment.
Wherein, synchronizing clock signals M_CLK can be used in main equipment, and main equipment signal can synchronize this clock signal M_ CLK, and sampled using this clock signal M_CLK.Transmission commencing signal can indicate that the signal is to hold with M_STR_O The signal of a continuous M_CLK, represents the beginning of data transmission.Transmission cycle signal can indicate that the signal can be with M_CYC_O Continue multiple periods.When M_CYC_O is consistent with the sampled result of M_STR_O, it is determined that start data transmission.
It should be noted that the slave equipment of opposite end can also use synchronizing clock signals S_CLK.Transmitting address signal can To be indicated with M_ADR_O, which is used to indicate the address of the slave equipment as data transmission objectives.In addition, bridge device may be used also According to the decoding result to M_ADR_O, to determine to distribute transmission commencing signal S_STR_I to which from equipment, which to be determined There is effective signal S_STR_I from equipment.Wherein, S_STR_I is corresponding with M_STR_O.Bridge device can also be according to M_ The decoding result of ADR_O determines which collects S_ACK_O, confirmation signal that S_ACK_O expression from equipment issue from from equipment.
Bridge device can also determine to distribute transmission cycle signal to which from equipment according to the decoding result to M_ADR_O S_CYC_I, to determine which has effective S_CYC_I from equipment, wherein M_CYC_O is corresponding with S_CYC_I.Bridge device is also Which can determine to distribute transmission address signal S_ADR_I to from equipment, which to be determined according to the decoding result to M_ADR_O It is a to have effective S_ADR_I from equipment, wherein M_ADR_O is corresponding with S_ADR_I.
In addition, main equipment can indicate that width can be according to need to the data to be written transmitted from equipment with M_DAT_O It asks and is configured, and is effective when M_CYC_O is effective.Bridge device can also according to the decoding result to M_ADR_O, determine to Which distributes data S_DAT_I to be written from equipment, to determine which has effective S_DAT_I from equipment, wherein M_DAT_O with S_DAT_I is corresponding.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications method is provided, the master sets It is standby with it is described between equipment using with frequency with phase synchronizing clock signals.Specifically, M_CLK and S_CLK is with frequency with phase Clock signal.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications method is provided, it is described to pass through Data to be written are transmitted to corresponding after equipment by bridge device, further includes: in the transmission process of data to be written, by by institute It states main equipment and the read-write operation id signal between equipment is connected with each other, to identify current read-write state.
Wherein, the read-write operation id signal of main equipment can be indicated with M_WE_O.Wherein, M_WE_O has in M_CYC_O If when effect effectively, representative is a write operation, is otherwise a read operation.This signal keeps permanent in the effective duration of M_CYC_O It is fixed.It can be indicated from the read-write operation id signal of equipment with S_WE_I.Wherein, it is each all connected to from the S_WE_I of equipment The M_WE_O of main equipment.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications method, the sampling are provided As a result it unanimously rises at the same time or signal while falling for signal.Specifically, M_CYC_O is consistent with the sampled result of M_STR_O, can Referring to that the two rises at the same time, being also possible to the two while falling.By taking the two rises at the same time as an example, then M_CYC_ is represented at this time O is effective.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications method is provided, it is described to pass through Data to be written are transmitted to corresponding after equipment by bridge device, further includes: in data transmission procedure, if from described from equipment It issues the main equipment in the preset time window that confirmation signal rises and receives write operation end signal, it is determined that transmission process knot Beam.
Wherein, write operation end signal can be indicated with M_VLD_I, which is specially to continue a M_CLK period Input signal represents write operation completion in write operation.It should be noted that issuing write operation end signal S_ over there from equipment VLD_O, main equipment is ready to receive to arrive M_VLD_I.Wherein, S_VLD_O is corresponding with M_VLD_I, and S_VLD_O is all from setting Standby S_VLD_O take or operation after access M_VLD_I.S_VLD_O's is defined as: S_ in a synchronous bus communications system ACK_O to S_VLD_O has the delay in fixed M_CLK period.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications method, the determination are provided After starting data transmission, further includes: to being taken from each data that continue got from equipment or operation, will take or operation obtains Result be transmitted to the main equipment.
Wherein, it can be indicated from each data that continue got from equipment with S_DAT_O.It should be noted that for It is any from equipment, if should it is invalid from the S_VLD_O of equipment, the S_DAT_O of the equipment is necessary for 0, in this way can or can not It is interfered with each other between when occurring from equipment return data.In addition, main equipment can generate input signal M_DAT_I, the signal Continue a M_CLK period, represents from the data read back from equipment, M_DAT_I is corresponding with S_DAT_O.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications method is provided, it is described to take Or the result that operation obtains is transmitted to after the main equipment, further includes: in data transmission procedure, if sending out from described from equipment The main equipment receives readback operation signal in the preset time window that confirmation signal rises out, it is determined that the main equipment reads back Data it is effective.
Wherein, readback operation signal can equally be indicated with M_VLD_I.By the content of above-described embodiment it is found that writing behaviour The signal indicates that write operation is completed when making, and the data that can then indicate to read back in read operation are effective.
Method provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
Such as Fig. 2, a kind of overall structure diagram of synchronous bus communications device of the specific embodiment of the invention is shown, comprising:
First determining module A01, for when the transmission commencing signal that be sampled from main equipment and transmission cycle signal it Between sampled result it is consistent when, it is determined that start data transmission;
First transmission module A02 will be to be written by bridge device for the transmission address signal that basis is got from main equipment Data are transmitted to corresponding from equipment.
Wherein, main equipment, refer to from equipment and bridge device the module with digital circuit communication function, including it is integrated A module or a digit chip itself in circuit.Main equipment is the initiator of communication protocol, and a synchronous bus is logical Only one main equipment in letter system.It is the recipient of communication protocol from equipment, can has in a synchronous bus communications system It is multiple from equipment.It is a kind of special from equipment that bridge device refers to, is responsible for main equipment and from the agreement between equipment.
Wherein, synchronizing clock signals M_CLK can be used in main equipment, and main equipment signal can synchronize this clock signal M_ CLK, and sampled using this clock signal M_CLK.Transmission commencing signal can indicate that the signal is to hold with M_STR_O The signal of a continuous M_CLK, represents the beginning of data transmission.Transmission cycle signal can indicate that the signal can be with M_CYC_O Continue multiple periods.When M_CYC_O is consistent with the sampled result of M_STR_O, it is determined that start data transmission.
It should be noted that the slave equipment of opposite end can also use synchronizing clock signals S_CLK.Transmitting address signal can To be indicated with M_ADR_O, which is used to indicate the address of the slave equipment as data transmission objectives.In addition, bridge device may be used also According to the decoding result to M_ADR_O, to determine to distribute transmission commencing signal S_STR_I to which from equipment, which to be determined There is effective signal S_STR_I from equipment.Wherein, S_STR_I is corresponding with M_STR_O.Bridge device can also be according to M_ The decoding result of ADR_O determines which collects S_ACK_O, confirmation signal that S_ACK_O expression from equipment issue from from equipment.
Bridge device can also determine to distribute transmission cycle signal to which from equipment according to the decoding result to M_ADR_O S_CYC_I, to determine which has effective S_CYC_I from equipment, wherein M_CYC_O is corresponding with S_CYC_I.Bridge device is also Which can determine to distribute transmission address signal S_ADR_I to from equipment, which to be determined according to the decoding result to M_ADR_O It is a to have effective S_ADR_I from equipment, wherein M_ADR_O is corresponding with S_ADR_I.
In addition, main equipment can indicate that width can be according to need to the data to be written transmitted from equipment with M_DAT_O It asks and is configured, and is effective when M_CYC_O is effective.Bridge device can also according to the decoding result to M_ADR_O, determine to Which distributes data S_DAT_I to be written from equipment, to determine which has effective S_DAT_I from equipment, wherein M_DAT_O with S_DAT_I is corresponding.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications device is provided, the master sets It is standby with it is described between equipment using with frequency with phase synchronizing clock signals.Specifically, M_CLK and S_CLK is with frequency with phase Clock signal.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications device is provided, the device is also Include:
Link block, in the transmission process of data to be written, by by the main equipment and described between equipment Read-write operation id signal be connected with each other, to identify current read-write state.
Wherein, the read-write operation id signal of main equipment can be indicated with M_WE_O.Wherein, M_WE_O has in M_CYC_O If when effect effectively, representative is a write operation, is otherwise a read operation.This signal keeps permanent in the effective duration of M_CYC_O It is fixed.It can be indicated from the read-write operation id signal of equipment with S_WE_I.Wherein, it is each all connected to from the S_WE_I of equipment The M_WE_O of main equipment.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications device, the sampling are provided As a result it unanimously rises at the same time or signal while falling for signal.Specifically, M_CYC_O is consistent with the sampled result of M_STR_O, It also refers to the two to rise at the same time, be also possible to the two while falling.By taking the two rises at the same time as an example, then M_ is represented at this time CYC_O is effective.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications device is provided, the device is also Include:
Second determining module is used in data transmission procedure, if from described default from equipment issues confirmation signal The main equipment receives write operation end signal in time window, it is determined that transmission process terminates.
Wherein, write operation end signal can be indicated with M_VLD_I, which is specially to continue a M_CLK period Input signal represents write operation completion in write operation.It should be noted that issuing write operation end signal S_ over there from equipment VLD_O, main equipment is ready to receive to arrive M_VLD_I.Wherein, S_VLD_O is corresponding with M_VLD_I, and S_VLD_O is all from setting Standby S_VLD_O take or operation after access M_VLD_I.S_VLD_O's is defined as: S_ in a synchronous bus communications system ACK_O to S_VLD_O has the delay in fixed M_CLK period.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications device is provided, the device is also Include:
Second transmission module, for will take or operation is obtained to being taken from each data that continue got from equipment or operation To result be transmitted to the main equipment.
Wherein, it can be indicated from each data that continue got from equipment with S_DAT_O.It should be noted that for It is any from equipment, if should it is invalid from the S_VLD_O of equipment, the S_DAT_O of the equipment is necessary for 0, in this way can or can not It is interfered with each other between when occurring from equipment return data.In addition, main equipment can generate input signal M_DAT_I, the signal Continue a M_CLK period, represents from the data read back from equipment, M_DAT_I is corresponding with S_DAT_O.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
On the basis of any above-mentioned specific embodiment of the invention, a kind of synchronous bus communications device is provided, the device is also Include:
Third determining module is used in data transmission procedure, if from described default from equipment issues confirmation signal The main equipment receives readback operation signal in time window, it is determined that the data that the main equipment reads back are effective.
Device provided in an embodiment of the present invention, by being recycled when the transmission commencing signal and transmission that are sampled from main equipment When sampled result between signal is consistent, it is determined that start data transmission.According to the transmission address signal got from main equipment, Data to be written are transmitted to by bridge device corresponding from equipment.Due to realizing synchronous bus in combination with actual data transfer demand Data transmission under communication, so as to meet the different demands in Industry Control, the scope of application is wider.
For example as follows:
Fig. 3 illustrates the entity structure schematic diagram of a kind of electronic equipment, as shown in figure 3, the electronic equipment may include: place Manage device (processor) 310, communication interface (Communications Interface) 320,330 He of memory (memory) Communication bus 340, wherein processor 310, communication interface 320, memory 330 are completed mutual by communication bus 340 Communication.Processor 310 can call the logical order in memory 330, to execute following method: if sampling to obtain from main equipment Transmission commencing signal and transmit cycle signal between sampled result it is consistent, it is determined that start data transmission;It is set according to from master Data to be written are transmitted to corresponding from equipment by the standby transmission address signal got by bridge device.
In addition, the logical order in above-mentioned memory 330 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally Substantially the part of the part that contributes to existing technology or the technical solution can be in other words for the technical solution of invention The form of software product embodies, which is stored in a storage medium, including some instructions to So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention The all or part of the steps of example the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, The computer program is implemented to carry out the various embodiments described above offer method when being executed by processor, for example, if being set from master Sampled result between the transmission commencing signal that standby sampling obtains and transmission cycle signal is consistent, it is determined that starts data transmission; According to the transmission address signal got from main equipment, data to be written are transmitted to by bridge device corresponding from equipment.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of synchronous bus communications method characterized by comprising
If the sampled result between the transmission commencing signal sampled from main equipment and transmission cycle signal is consistent, it is determined that open The transmission of beginning data;
According to the transmission address signal got from main equipment, data to be written are transmitted to by bridge device corresponding from equipment.
2. synchronous bus communications method according to claim 1, which is characterized in that the main equipment and it is described from equipment it Between using with frequency with phase synchronizing clock signals.
3. synchronous bus communications method according to claim 1, which is characterized in that it is described by bridge device by data to be written It is transmitted to corresponding after equipment, further includes:
In the transmission process of data to be written, by by the main equipment and the read-write operation id signal between equipment It is connected with each other, to identify current read-write state.
4. synchronous bus communications method according to claim 1, which is characterized in that the sampled result is unanimously that signal is same Shi Shengqi or signal are fallen simultaneously.
5. synchronous bus communications method according to claim 1, which is characterized in that it is described by bridge device by data to be written It is transmitted to corresponding after equipment, further includes:
In data transmission procedure, if being connect from the main equipment in the preset time window from equipment issues confirmation signal Receive write operation end signal, it is determined that transmission process terminates.
6. synchronous bus communications method according to claim 1, which is characterized in that the determining data that start transmit it Afterwards, further includes:
To being taken from each data that continue got from equipment or operation, the result taken or operation obtains is transmitted to the master and is set It is standby.
7. synchronous bus communications method according to claim 6, which is characterized in that the result that will be taken or operation obtains It is transmitted to after the main equipment, further includes:
In data transmission procedure, if being connect from the main equipment in the preset time window from equipment issues confirmation signal Receive readback operation signal, it is determined that the data that the main equipment reads back are effective.
8. a kind of synchronous bus communications device characterized by comprising
First determining module, for when the sampling between the transmission commencing signal sampled from main equipment and transmission cycle signal As a result when consistent, it is determined that start data transmission;
First transmission module, for being passed data to be written by bridge device according to the transmission address signal got from main equipment It transports to corresponding from equipment.
9. a kind of electronic equipment characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claim 1 to 7 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction is performed to realize the method as described in claim 1 to 7 is any.
CN201910305849.2A 2019-04-16 2019-04-16 Synchronous bus communications method Pending CN110086595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910305849.2A CN110086595A (en) 2019-04-16 2019-04-16 Synchronous bus communications method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305849.2A CN110086595A (en) 2019-04-16 2019-04-16 Synchronous bus communications method

Publications (1)

Publication Number Publication Date
CN110086595A true CN110086595A (en) 2019-08-02

Family

ID=67415387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910305849.2A Pending CN110086595A (en) 2019-04-16 2019-04-16 Synchronous bus communications method

Country Status (1)

Country Link
CN (1) CN110086595A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050169304A1 (en) * 2004-01-30 2005-08-04 Matsushita Electric Industrial Co., Ltd. Information processing unit
CN103218337A (en) * 2013-03-13 2013-07-24 北京安拓思科技有限责任公司 SoC (System on Chip) and method for realizing communication between master modules and between slave modules based on wishbone bus
CN104133792A (en) * 2013-05-03 2014-11-05 珠海全志科技股份有限公司 RSB communication method and RSB communication system
CN105550145A (en) * 2015-12-09 2016-05-04 天津国芯科技有限公司 Transmission synchronizer used between double buses in single-chip system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050169304A1 (en) * 2004-01-30 2005-08-04 Matsushita Electric Industrial Co., Ltd. Information processing unit
CN103218337A (en) * 2013-03-13 2013-07-24 北京安拓思科技有限责任公司 SoC (System on Chip) and method for realizing communication between master modules and between slave modules based on wishbone bus
CN104133792A (en) * 2013-05-03 2014-11-05 珠海全志科技股份有限公司 RSB communication method and RSB communication system
CN105550145A (en) * 2015-12-09 2016-05-04 天津国芯科技有限公司 Transmission synchronizer used between double buses in single-chip system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘慧: "基于SOC嵌入式处理器调试系统的开发与研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
张磊: "wishbone总线协议下DDR存储控制器设计", 《微电子学与计算机》 *

Similar Documents

Publication Publication Date Title
CN109558344B (en) DMA transmission method and DMA controller suitable for network transmission
CN111737175A (en) High-speed SPI master-slave machine communication method, terminal equipment and storage medium
CN105183423B (en) A kind of cross-clock domain asynchronous data treating method and apparatus
CN105487987B (en) A kind of concurrent sequence of processing reads the method and device of IO
EP3200089B1 (en) Method, apparatus, communication equipment and storage media for determining link delay
CN112100100A (en) SPI communication method and SPI equipment
CN111984557A (en) Data processing method, device and system
CN104808953B (en) Control the method, device and mobile terminal of data storage
CN105808476B (en) The transmission method and device of clock-domain crossing data
CN111294377B (en) Dependency network request sending method, terminal device and storage medium
CN116599589B (en) Signal synchronization method, device, equipment and medium
CN112328523A (en) Method, device and system for transmitting double-rate signal
CN110086595A (en) Synchronous bus communications method
CN112350795A (en) Data transmission method and device, storage medium and electronic device
CN104182264B (en) The start optimization method and its device of a kind of eMMC
CN113765504B (en) Universal dynamic delay jitter elimination method, device, terminal and storage medium
TWI235921B (en) System and method for effectively performing physical direct memory access operations
CN108959313B (en) Concurrent processing method and device for massive small files and storage medium
CN103870318A (en) Non-symmetric-processing multi-core system and network device thereof
CN105446863A (en) Electronic device with recording capability and circuit status recording method
CN103593148A (en) CDF side off-line call ticket data quick access method and device
CN103399949B (en) A kind of database storage block state control method and device
CN108737001A (en) A kind of data processing method and relevant device
CN112084099A (en) Method, device and equipment for obtaining alarm state value based on host and storage medium
CN109992198B (en) Data transmission method of neural network and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802