A kind of across voltage domain data transmission method, voltage domain subsystem and electronic equipment
Technical field
The present invention relates to technical field of data transmission and low-power chip design field, more particularly to one kind is across voltage
Numeric field data transmission method, voltage domain subsystem and electronic equipment.
Background technology
With can the function of portable electronic products become increasingly complex, how to utilize limited battery energy in the most efficient manner
Amount become at present can portable electronic products design need one of major issue for solving, then reduce the design of power consumption and just become be
Irrespective of size chip SOC(System On Chip)The inevitable requirement of design.DVFS(Dynamic Voltage and Frenquency
Scaling, dynamic voltage frequency adjustment)While buck/boost, operating frequency, also with adjustment, is the effective of reduction power consumption
One of method.
At present, support that the SOC of DVFS adopts GALS substantially(Globally Asynchronous Locally
Synchronous, Global Asynchronous, local synchronization)Timing topology, data are transmitted between two voltage domain subsystems
When, the data signal of the clock signal used in two voltage domain subsystems and reception needs timing source synchronization, so as to realize
The stable synchronous transfer between two voltage domain subsystems of data.
However, in prior art, the clock signal that two voltage domain subsystems are used comes from same clock source, i.e.,
One clock source produces respectively respective clock signal for two voltage domain subsystems, and is sent respectively to corresponding voltage
Domain subsystem, uses for it, because the transmission path that the clock signal that the clock source is produced reaches two voltage domain subsystems can
Can be different, for example, transmission range is different, and the working condition such as residing voltage, frequency is also differed in transmitting procedure, can cause two
The sequential of the clock signal that individual voltage domain subsystem is used is difficult to synchronization, so as to the number for causing to be received in voltage domain subsystem
It is believed that it is number different from the clock signal sequential that gathered data is used, in turn result in chip back-end realization it is difficult to ensure that two electricity
The stable transmission of data between pressure domain subsystem.
The content of the invention
The embodiment of the present invention provides a kind of asynchronous interface method, voltage domain subsystem and electronic equipment, existing to solve
Because the data signal received in voltage domain subsystem and the clock signal sequential for using are difficult to synchronization present in technology, and lead
Data cannot stablize the problem of transmission between the two voltage domain subsystems for causing.
The embodiment of the present invention provides a kind of asynchronous interface method, including:
The first voltage domain subsystem of electronic equipment receive that the second voltage domain subsystem of the electronic equipment sends the
One across voltage domain data signal, and first clock signal synchronous with the described first across voltage domain data signal timing source;
First across the voltage domain data signal is gathered using first clock signal, the first gathered data is obtained.
The embodiment of the present invention also provides the voltage domain subsystem in a kind of electronic equipment, including:
Asynchronous interface receiving unit, the second voltage domain subsystem for receiving the electronic equipment send first across electricity
Pressure numeric field data signal, and first clock signal synchronous with the described first across voltage domain data signal timing source;
Asynchronous interface collecting unit, for using first clock signal collection, first across the voltage numeric field data letter
Number, obtain the first gathered data.
The embodiment of the present invention also provides a kind of electronic equipment, including:First voltage domain subsystem and second voltage domain subsystem
System, wherein:
Second voltage domain subsystem, for sending the first across voltage domain data signal to first voltage domain subsystem,
And first clock signal synchronous with the described first across voltage domain data signal timing source;
First voltage domain subsystem, for receiving the described first across voltage domain data signal, and when described first
Clock signal;And first across the voltage domain data signal is gathered using first clock signal, obtain the first gathered data.
In method provided in an embodiment of the present invention, in the electronic device second voltage domain subsystem is to first voltage domain subsystem
During system transmission data, second voltage domain subsystem is to the first synchronous across voltage domain number of first voltage domain subsystem transmission timing source
It is believed that number and the first clock signal so that first voltage domain subsystem can effectively be gathered using first clock signal
First across the voltage domain data signal, obtains the first gathered data.Using this method, the first synchronous across voltage domain number of timing source
It is believed that number reaching first voltage domain subsystem through identical path with the first clock signal such that it is able to so that first voltage domain
Subsystem effectively gathers the first synchronous across voltage domain data signal of timing source using the first clock signal, compares existing skill
Art, it is to avoid need the problem of the clock signal that synchronous two voltage domain subsystems are used such that it is able to be more easily implemented two
The stable transmission of data between individual voltage domain subsystem.
Description of the drawings
Fig. 1 is across the voltage domain data transmission method flow chart of one kind provided in an embodiment of the present invention;
Fig. 2 is across the voltage domain data transmission method flow chart of one kind that the embodiment of the present invention 1 is provided;
Fig. 3 is the structural representation of the voltage domain subsystem in a kind of electronic equipment that the embodiment of the present invention 2 is provided;
Fig. 4 is the structural representation of a kind of electronic equipment that the embodiment of the present invention 3 is provided.
Specific embodiment
The embodiment of the present invention provides a kind of across voltage domain data transmission method, as shown in figure 1, including:
Step S101, the first voltage domain subsystem of electronic equipment receive the second voltage domain subsystem of the electronic equipment and send out
The first across the voltage domain data signal sent, and the first clock letter synchronous with first across the voltage domain data signal timing source
Number.
Step S102, first across the voltage domain data signal is gathered using first clock signal, obtain the first collection number
According to.
Below in conjunction with the accompanying drawings, method, subsystem and the electronic equipment for being provided the present invention with specific embodiment is carried out in detail
Description.
Embodiment 1:
In the embodiment of the present invention 1, electronic equipment includes two voltage domain subsystems, first voltage domain subsystem and second electric
Pressure domain subsystem, for example, the first voltage domain subsystem can be CPU(Central Processing Unit, central authorities are processed
Device)Subsystem, the second voltage domain subsystem can be SOC subsystems;Or the first voltage domain subsystem can be SOC
System, the second voltage domain subsystem can be cpu subsystem.When carrying out data transmission between the two, can be using following number
According to transmission method, the data transmission method can also be applied in the chip of electronic equipment implement the mistake of dynamic voltage frequency adjustment
Cheng Zhong, by second voltage domain subsystem to as a example by the subsystem transmission data of first voltage domain, as shown in Fig. 2 the embodiment of the present invention 1
Across the voltage domain data transmission method for providing, specifically includes following process step:
Step S201, second voltage domain subsystem to first voltage domain subsystem sends the first across voltage domain data signal,
And first clock signal synchronous with first across the voltage domain data signal timing source.
Specifically, it is possible to use the first clock signal drive generate the first across voltage domain data signal so that
Both first clock signal data signal across voltage domain with first timing sources are synchronous, for example with the following two kinds mode:
First kind of way:Second voltage domain subsystem generates first for itself using by internal clock generating unit
Clock signal, and the first across voltage domain data signal of generation is driven using the first clock signal, so that the first clock
Both signal data signal across voltage domain with first timing sources are synchronous.
The second way:The clock source of electronic equipment internal generates the first clock signal, and is transferred to second voltage domain
System is used, and second voltage domain subsystem is driven using first clock signal for receiving and generates the first across voltage numeric field data letter
Number, so that both the first clock signal data signals across voltage domain with first timing source is synchronous.
Further, first across the voltage domain data signal can continue multiple cycles, and not obtain first voltage
Data are just sent before the answer signal that domain subsystem is returned.To realize not obtaining first voltage domain subsystem return response letter
Number allow for before sending data, the second voltage domain subsystem can in advance know that the data of the first voltage domain subsystem are deposited
Storage capacity, to ensure the data volume of a transmission data not over the data storage capacity, specific implementation can be adopted
Various modes of the prior art, here is no longer described in detail.
Step S202, the first voltage domain subsystem are receiving synchronous the first clock signal and first of timing source across electricity
After pressure numeric field data signal, first across the voltage domain data signal is gathered using first clock signal, obtains the first gathered data,
So as to complete second voltage domain subsystem to the data transfer of first voltage domain subsystem.
Step S203, further, in this step, first voltage domain subsystem can also be by the first gathered data for obtaining
In storing data queue.
Specifically, can be by the first acquired data storage to asynchronous FIFO(First Input First Output, first enter
First dequeue)In.
Step S204, first voltage domain subsystem are read using the second clock signal that itself is generated from the data queue
First gathered data of storage, so as to the data completed collection are transformed into the process of itself clock zone.Wherein, the second clock
Signal can also be generated and sent to give first voltage domain subsystem by the clock source of electronic equipment, use for it.
Accordingly, when first voltage domain subsystem is to second voltage domain subsystem transmission data, above-mentioned Fig. 2 can be adopted
Shown similar procedure, including:
First voltage domain subsystem to second voltage domain subsystem sends the second across voltage domain data signal, and with second
The synchronous second clock signal of across voltage domain data signal timing source;
Second voltage domain subsystem obtains second using the second clock signals collecting second across the voltage domain data signal
Gathered data.Specifically, second gathered data can continue to the first voltage domain second voltage domain subsystem for instruction
Subsystem sends the indication signal across voltage domain data signal;
Second voltage domain subsystem by the second acquired data storage for obtaining to the data queue of itself, and can also make
The second gathered data of storage is read from data queue with the first clock signal, when completing for the data of collection to be transformed into itself
The process in clock domain.
In the embodiment of the present invention 1, the voltage used due to first voltage domain subsystem and second voltage domain subsystem is not
Together, so, the signal for transmitting between the two can be through Level Shifter(Level conversion)Unit is transmitted, concrete to pass
Defeated process can adopt prior art, here to be no longer described in detail.
Using the embodiment of the present invention 1 provide scheme, between first voltage domain subsystem and second voltage domain subsystem
During transmission data, be the clock signal that uses itself and the data signal simultaneous transmission synchronous with clock signal timing source to
Other side, because the clock signal and data signal of transmission reach other side through identical path such that it is able to so that other side uses
Clock signal effectively gathers the synchronous data signal of timing source, and then can be more easily implemented between two voltage domain subsystems
The stable transmission of data, and can facilitating chip back-end realization difficulty.
Embodiment 2:
Based on same inventive concept, according to across the voltage domain data transmission method that the above embodiment of the present invention is provided, accordingly
Ground, the embodiment of the present invention 2 also provides the voltage domain subsystem in a kind of electronic equipment, and its structural representation is as shown in figure 3, bag
Include:
Asynchronous interface receiving unit 301, the second voltage domain subsystem for receiving electronic equipment send first across electricity
Pressure numeric field data signal, and first clock signal synchronous with first across the voltage domain data signal timing source;
Asynchronous interface collecting unit 302, for using the first clock signal collection first across voltage numeric field data letter
Number, obtain the first gathered data.
Above-mentioned asynchronous interface receiving unit 301 and asynchronous interface collecting unit 302 can collectively constitute asynchronous interface unit.
Further, above-mentioned voltage domain subsystem, also includes:
Source sync cap unit 303, for sending the second across voltage domain data signal to the second voltage domain subsystem, with
And the second clock signal synchronous with second across the voltage domain data signal timing source, for being made by the second voltage domain subsystem
With the second clock signals collecting second across the voltage domain data signal, the second gathered data is obtained.
Further, above-mentioned asynchronous interface collecting unit 302, is additionally operable to the first acquired data storage that will be obtained to data
In queue;And the second clock signal generated using this voltage domain subsystem is read the first of storage from the data queue and is adopted
Collection data.
Embodiment 3:
Based on same inventive concept, according to across the voltage domain data transmission method that the above embodiment of the present invention is provided, accordingly
Ground, the embodiment of the present invention 3 also provides a kind of electronic equipment, its structural representation as shown in figure 4, including:First voltage domain subsystem
System 402 and second voltage domain subsystem 401, wherein:
Second voltage domain subsystem 401, for sending the first across voltage numeric field data letter to first voltage domain subsystem 402
Number, and first clock signal synchronous with first across the voltage domain data signal timing source;
First voltage domain subsystem 402, for receiving first across the voltage domain data signal, and the first clock letter
Number;And first across the voltage domain data signal is gathered using first clock signal, obtain the first gathered data.
Further, above-mentioned first voltage domain subsystem 402, is additionally operable to send second to second voltage domain subsystem 401
Across voltage domain data signal, and the second clock signal synchronous with second across the voltage domain data signal timing source;
Above-mentioned second voltage domain subsystem 401, is additionally operable to receive the second across voltage domain data signal, and second clock letter
Number, and using the second clock signals collecting second across the voltage domain data signal, obtain the second gathered data.
In sum, scheme provided in an embodiment of the present invention, including:The first voltage domain subsystem of electronic equipment is received should
The first across voltage domain data signal that the second voltage domain subsystem of electronic equipment sends, and with first across the voltage numeric field data
The first synchronous clock signal of signal sequence source;First across the voltage domain data signal is gathered using first clock signal, is obtained
To the first gathered data.Using scheme provided in an embodiment of the present invention, can be easier to realize between two voltage domain subsystems
The stable transmission of data, and can facilitating chip back-end realization difficulty.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.