Summary of the invention
In order to solve the above-mentioned problems in the prior art, the present invention provides a kind of with Delay Feedback circuit
CPLD.The technical problem to be solved by the present invention is how to overcome clock when integrating PLL in CPLD unstable and phase offset product
Tired problem.And provide the phase shifting function in the asynchronous clock source of multiple identical frequencies.
An embodiment provides a kind of CPLD with Delay Feedback circuit, including delay phase-locked loop, with
N variable delay, each logic unit and the Delay Feedback circuit of the delay phase-locked loop connection, the n are not less than 1
Integer;Wherein,
The delay phase-locked loop generates 1 the first clock signal of tunnel and the road n phase delay coding;Wherein, the delay locking phase
Ring is by first clock signal transmission to each logic unit;The phase delay coding and the variable delay one
One is corresponding, and the variable delay encodes according to corresponding phase delay received second clock signal carrying out phase shift, and
Dephased second clock signal is transmitted to each logic unit;
The Delay Feedback circuit is by the output terminal of clock of the delay phase-locked loop not via the Clock Tree of the CPLD point
Cloth is connect with the clock return terminal of the delay phase-locked loop.
In one embodiment of the invention, the delay phase-locked loop is by first clock signal by the delay locking phase
Variable delay inside ring is postponed, and by the delay coding transmission after delay to each logic unit.
In one embodiment of the invention, the CPLD be equipped with n output terminal of clock, the n output terminal of clock and
The n variable delay connects one to one, when the output terminal of clock is connected to each logic unit and outside
Clock output end.
In one embodiment of the invention, the CPLD further include: n+1 Selecting phasing branch, the delay locking phase
For exporting between the output end of first clock signal and each logic unit and external clock output end on ring
It is connected by 1 Selecting phasing branch, each variable delay is exported with each logic unit and corresponding external clock
Pass through 1 Selecting phasing branch connection in remaining Selecting phasing branch between end.
In one embodiment of the invention, every Selecting phasing branch includes: third data selector and buffer.
In one embodiment of the invention, every Selecting phasing branch include: third data selector, buffer and
Alternative phase selector.
In one embodiment of the invention, the CPLD further include: the first data selector;The first data selection
The output end of device is connect with the clock return terminal of the delay phase-locked loop, 1 input terminal of first data selector and institute
It states and is connected on delay phase-locked loop for exporting the output end of first clock signal, another 1 of first data selector
Input terminal is connect with the output terminal of clock of the delay phase-locked loop.
In one embodiment of the invention, the CPLD further include: m external clock input terminal and the selection of the second data
Device, 1 external clock input terminal is connect with 1 input terminal of second data selector, in remaining external clock input terminal
N connect one to one with the n variable delay, the output end of second data selector and the delay locking phase
The input end of clock of ring connects, and m is the integer not less than n+1.
In one embodiment of the invention, the CPLD is equipped with external clock return terminal, the external clock return terminal
It is connect with 1 input terminal in the first data selector residue input terminal.
The embodiment of the present invention, the present invention can overcome in CPLD and integrate by the way that delay phase-locked loop DLL to be integrated in CPLD
Unstable and phase offset when PLL accumulates problem, and different clock signals is provided for the logic unit in CPLD, increases CPLD
Add compensation of delay, clock adjustment, phase adjustment, and the phase shift function that the asynchronous clock signal source for providing multiple identical frequencies is different
Can, expand the application that the application field of CPLD is read to digital information, simplify circuit design and the system integration, reduces power consumption, opens
Cost and Material Cost are sent out, it is easy to use.
Specific embodiment
Further detailed description is done to the present invention combined with specific embodiments below, but embodiments of the present invention are not limited to
This.
Below to illustrate the present invention by taking the delay locked loop generates 4 tunnel clock signals (i.e. n=3) as an example, but do not limit
Protection scope of the present invention.Refer to Fig. 3 to Fig. 7, the Complex Programmable Logic Devices has been internally integrated: delay phase-locked loop and
N variable delay connecting with the delay phase-locked loop, the n are the integer not less than 1;
The delay phase-locked loop generates 1 the first clock signal of tunnel and the road n phase delay coding, the phase delay coding with
The variable delay corresponds, and the variable delay is encoded according to corresponding phase delay believes received second clock
It number carries out phase shift, and each is patrolled what dephased second clock signal was transmitted in the Complex Programmable Logic Devices
Collect unit.
In a particular application, the delay phase-locked loop usually can be by first clock signal by the delay phase-locked loop
The variable delay in portion is postponed, and the delay coding transmission after delay is each into the Complex Programmable Logic Devices
A logic unit refers to Fig. 5, the Complex Programmable Logic Devices further include: by the clock output of the delay phase-locked loop
End is not distributed the Delay Feedback circuit connecting with the clock return terminal of the delay phase-locked loop via the Clock Tree of CPLD;
In this case, the clock source of the Complex Programmable Logic Devices is provided by external clock input terminal, is
Convenient for providing multiple clock signals that out of phase is moved to external circuit, it is preferable that the Complex Programmable Logic Devices is equipped with n
A output terminal of clock (in present embodiment, which is realized using the I/O unit in Complex Programmable Logic Devices),
The n output terminal of clock connects one to one with the n variable delay, and the output terminal of clock is connected to the complexity
Each logic unit and external clock output end in programmable logic device.
It will be appreciated that in the Complex Programmable Logic Devices of the present embodiment shown in fig. 5 integrate variable delay with
The principle of the circuit diagram of the relationship of delay phase-locked loop DLL specifically:
The usage mode of DLL is DLL home loop, and Uo and Ui (clock 0) are matched, not via the distribution of Clock Tree, immediately
Clock 0 generates delay coding, clock 1 via DLL, and clock 2 waits receiving ends clock or read clock using variable delay and delay
Coding, generates phase shift appropriate, to read the digital signal of receiving end.Three internal clockings of this configuration mode are all inputs
The phase shift of clock can support the reception of the digital information of 3 communication channels simultaneously;
In another concrete application, the delay phase-locked loop can compile first clock signal transmission to the complexity
Each logic unit in journey logical device, refers to Fig. 6, and the delay phase-locked loop is prolonged first clock signal by described
Variable delay inside slow phaselocked loop carries out Delay Feedback circuit via the Clock Tree of CPLD, the first clock after being postponed
Signal, and each logic unit by the first clock signal transmission after the delay into the Complex Programmable Logic Devices
(i.e. the phase shift output of clock 0 is also pushed to Clock Tree, is distributed to logic macrocell);
In this case, the clock source of the Complex Programmable Logic Devices is provided by external clock input terminal, is
Convenient for providing multiple clock signals that out of phase is moved to external circuit, it is preferable that the Complex Programmable Logic Devices is equipped with n
(in present embodiment, the output terminal of clock is using the I/O unit in Complex Programmable Logic Devices for+1 external clock output end
Realize), 1 external clock output end connects on the delay phase-locked loop for exporting the output end of first clock signal
It connects, remaining n external clock output end connects one to one with the n variable delay.
It will be appreciated that in the Complex Programmable Logic Devices of the present embodiment shown in fig. 5 integrate variable delay with
The principle of the circuit diagram of the relationship of delay phase-locked loop DLL specifically:
DLL generates the coding of variable delay via the circuit of Ui, Ud, Uc, Uo, while generating first clock output Uo
And it is exported by output end C0;Due to the function of DLL, Uo+ clock tree delays and Ui exact matching (Fig. 4);It is variable inside DLL
Delayer replicates 3 times in CPLD, is supplied to the other 3 clocks input of CPLD;DLL exports multiple delay codings, packet simultaneously
It includes but is not limited to 90 degree, 180 degree, 270 degree of phase delay encode and pass through output end C1, C2, C3 and export to corresponding and variable prolong
When device.The present embodiment can produce the clock of clock 1, clock 2 or the phase shift corresponding with Ui of clock 3, for macro in CPLD
Unit uses.In application, clock 1, clock 2 and clock 3 can be the reading restored from 3 different communication channels
Clock.Since clock 1, clock 2, clock 3 are from different routing restorations, and Ui is asynchronous clock.Corresponding PLL's
Using mono- clock source of PLL generates multiple clocks, cannot handle the application in multiple asynchronous clock sources.
In a particular application, certain interference signal can be generated by external return terminal due to clock feedback circuit, asked
Referring to Fig. 7, in order to prevent external interference signal as far as possible, it is preferable that for exporting described first on the delay phase-locked loop
The clock return terminal (Clock feedback, abbreviation CF) of the output end of clock signal and the delay phase-locked loop connects, by institute
The clock return terminal CF of the first clock signal transmission caused by DLL to the DLL is stated, and is returned by the clock of the DLL
Signal received by the CF of end carries out anti-regulation delay, shake and inclination to clock signal and handles, and can reach almost glitch-free
State;
For the ease of by the clock return terminal CF for being transmitted to the DLL of the clock signal of the generation of DLL selectivity, preferably
Ground, the Complex Programmable Logic Devices further include: the first data selector, the output end of the first data selector D1 with
The clock return terminal CF connection of the delay phase-locked loop, 1 input terminal of the first data selector D1 and the delay are locked
For exporting the output end connection of first clock signal on phase ring.
In a particular application, it is inputted to be easy to implement multiple external clocks, it is preferable that the Complex Programmable Logic Devices
Further include: m external clock input terminal and the second data selector D2,1 external clock input terminal and second data are selected
1 input terminal connection of device D2 is selected, n in remaining external clock input terminal correspond company with the n variable delay
It connects, the output end of the second data selector D2 and input end of clock (Clock input, the abbreviation of the delay phase-locked loop
CI it) connects, m is the integer not less than n+1.
For convenient for the DLL to be connect with external clock reference, and guarantee the performance for being supplied to the clock signal of external circuit,
Regulation delay, shake and inclination are prevented as far as possible, it is preferable that the Complex Programmable Logic Devices is returned equipped with external clock
End, the external clock return terminal are connect with 1 input terminal in the first data selector D1 residue input terminal.
For the Selecting phasing convenient for carrying out 0 degree or 180 degree to DLL clock signal generated, it is preferable that described multiple
Miscellaneous programmable logic device further include: n+1 Selecting phasing branch, for exporting first clock on the delay phase-locked loop
Lead between each logic unit and external clock output end in the output end of signal and the Complex Programmable Logic Devices
Cross the connection of 1 Selecting phasing branch, each variable delay and each logic in the corresponding Complex Programmable Logic Devices
Pass through 1 Selecting phasing branch connection in remaining Selecting phasing branch between unit and external clock output end.
It should be noted that 1 Selecting phasing branch in the present embodiment can only be by 1 variable delay and the Variable delay
Each logic unit and external clock output end in the corresponding Complex Programmable Logic Devices of device link together.It lifts
For example, referring to Fig. 4, the Complex Programmable Logic Devices includes 4 Selecting phasing branches (Selecting phasing branch 1, phase choosing
Select branch 2, Selecting phasing branch 3 and Selecting phasing branch 4) and 3 variable delays (variable delays 1, variable delay 2
With variable delay 3), it can be selected by phase for exporting the output end C0 of first clock signal on the delay phase-locked loop
The connection of branch 1 is selected, variable delay 1 is connected by Selecting phasing branch 2, and variable delay 2 is connected by Selecting phasing branch 3
It connects, variable delay 3 is connected by Selecting phasing branch 4.
In a particular application, to be easy to implement Selecting phasing, it is preferable that every Selecting phasing branch includes: third number
According to selector and buffer;Alternatively, every Selecting phasing branch includes: third data selector, buffer and alternative phase
Digit selector.
For example, referring again to Fig. 4, for the Selecting phasing branch 1 in scheme, every Selecting phasing branch is wrapped
It includes: third data selector (the third data selector of Selecting phasing branch 1 is " D31 " in figure), alternative Selecting phasing
Device (the alternative phase selector of Selecting phasing branch 1 is " X1 " in figure, carries out the alternative of 0 degree or 180 degree) and buffering
Device (buffer of Selecting phasing branch 1 includes: " H1 ", " H2 ", " H3 ", " H4 " and " H5 " in figure), every Selecting phasing branch
Lu Kexian is combined by third data selector and alternative phase selector, then connect with buffer composition (i.e. in figure phase
Select branch 1 that can first be combined by third data selector D31 and alternative phase selector X1, then with buffer H1, H2, H3,
H4 connects composition with H5).
In the practical application of prior art CPLD, general design of electronic circuits usually use PLL as system when
Clock management.A stable base frequency clock is generated using a crystal oscillator component on electronic circuit board.Based on this stabilization
Base frequency use PLL frequency multiplication and frequency splitting technology, generate different any clock frequencies.Therefore the application of PLL is extremely
Extensively, it popularizes, often arranges in pairs or groups and use with CPLD;
And DLL is usually applied to restore the digital signal of media medium.In terms of communication, digital signal is via communication channel
Remotely transmitted.Communication channel is typically at complicated, uncontrollable environment, such as radio microware communication via earth table
The atmosphere in face, there is Changes in weather, the uncontrollable factors such as terrain differences.Receiving end digital signal due to communication channel
It is variable, uncontrollable factor, along with interfering with each other for signal, received digital signal usually has frequency shift (FS), and phase is inclined
It moves, the problem of the clock domain shaken etc..It can restore the clock being embedded in digital signal using the technology of DLL, and produce
Raw, out of phase synchronous with signal source, the clock of frequency multiplication frequency dividing.Therefore DLL is commonly used in the receiving end of communication channel.In consumption electricity
Subdomains, DLL is also commonly used to read the information from digital signal storage media, for example reads information from optical disc.It is read in optical disc
It takes in environment there is also the jitter read, deviates, the factors such as shake need the technology using DLL.
General electronic circuit technology personnel (can make commonly using PLL in the generation end of information or the transmission end of information
With PLL), but DLL is not known about usually.Related technical staff (usually communication industry or consumption electricity are read with media medium
The portion of techniques personnel of sub- industry) it will use DLL (in the reading end of information or the receiving end of information, using DLL).
It is the application scenarios in the prior art of DLL and PLL, inherently different using opportunity, and DLL core
Piece area is small, at low cost, low in energy consumption, that completes function identical with PLL, but does not have the problem of accumulated phase is moved, specific
Using, the application of DLL suitable multi-clock similar and different phase shift more advantageous than PLL, PLL is suitable by a Base clock source production
The application of raw multiple and different clock frequency.
The Complex Programmable Logic Devices of the reinforcing asynchronous clock management of the present embodiment, can overcome and integrate PLL in CPLD
When it is unstable problem is accumulated with phase offset, different clock signals is provided for the logic unit in CPLD, increases CPLD
Compensation of delay, clock adjustment, the phase adjustment phase shifting function different with multiple clocks expand the application field of CPLD to digital
The application that information is read simplifies circuit design and the system integration, reduces power consumption, development cost and Material Cost, easy to use.
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.