Circuit system and control method for balancing clock skew based on FPGA (Field Programmable Gate Array)
By designing the delay control unit of the hard-core circuit module in the FPGA to generate delayed clocks and signals with the same phase, the clock skew problem in the FPGA is solved, operating efficiency is improved and logic control is simplified.
Patent Information
- Application Number
- CN202410754856.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
AI Technical Summary
The clock skew problem in FPGA results in low operating efficiency. Existing solutions such as phase-locked loops and FIFOs have resource waste and bit error problems, making it difficult to effectively balance clock skew without increasing hardware resources.
Design a FPGA-based balanced clock skew circuit system, including a hard core circuit module and an FPGA module. Through the clock source unit, delay control unit and interaction unit, the delay controller and delay clock generator are used to generate the delay clock and Signals with the same phase achieve clock skew balance between the clock source and FPGA registers.
It effectively reduces clock skew, avoids resource waste and bit errors, improves FPGA performance without increasing hardware resources, and simplifies logic control.
Smart Images

Figure CN118534972A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a circuit system and a control method for balancing clock skew based on FPGA. Background Art
[0002] FPGA (Field Programmable Gate Array) is a product further developed on the basis of programmable devices such as PAL (Programmable Array Logic) and GAL (General Array Logic). It appears as a semi-custom circuit in the field of Application Specific Integrated Circuit (ASIC), which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices.
[0003] As the process deepens, the logic capacity of FPGA devices is getting larger and larger, and the signal routing is becoming more and more complex, especially posing a huge challenge to the FPGA in clock routing. Usually, the modules in the FPGA core need to use dedicated clock routing to ensure that each point on the clock routing has a relatively small clock skew. However, the dedicated clock routing requires a long clock path delay, which leads to a large clock skew between the registers at the clock source end and the registers on the FPGA, which in turn makes the timing between the registers illegal and difficult to repair, resulting in low FPGA operation efficiency, thereby reducing the performance of the FPGA.
[0004] In order to solve the clock skew between the registers at the clock source end and the registers on the FPGA, a phase-locked loop (PLL) is usually used to correct the phase of the source clock at the clock source end and the core source clock at the FPGA, thereby reducing the clock skew; or, a first-in first-out (FIFO) memory is used to cache data to compensate for the clock skew.
[0005] However, since the phase-locked loop is an analog circuit with a large area, if a phase-locked loop is set for each module in the FPGA, the area of the FPGA will increase, which is not conducive to the miniaturization design of the FPGA. In addition, whether the phase-locked loop can be phase-locked depends on the reference clock, so an additional reference clock needs to be introduced, which will waste the input and output (IO) resources of the FPGA. The use of FIFO will increase data delay, and when there is a deviation in the clock frequency, it will introduce bit errors, causing system chaos. Therefore, the two existing solutions to solve clock skew are not conducive to practical applications. Summary of the invention
[0006] The object of the present invention is to provide a circuit system and control method for balancing clock skew based on FPGA, so as to at least solve the problem of how to effectively balance clock skew without increasing FPGA hardware resources.
[0007] In order to solve the above technical problems, the present invention provides a circuit system for balancing clock skew based on FPGA, comprising:
[0008] The hard core circuit module includes a clock source unit, a delay control unit and a first interaction unit; the clock source unit is used to generate a source clock; the delay control unit is used to generate a delayed clock according to the source clock, and is also used to generate a phase-identical signal according to the source clock and the core source clock; the first interaction unit is used to send and receive data with the second interaction unit under the control of the source clock and the phase-identical signal;
[0009] The FPGA module includes a clock-dedicated routing unit and a second interaction unit; the clock-dedicated routing unit is used to generate an intra-core source clock according to a delayed clock; the second interaction unit is used to send and receive data with the first interaction unit under the control of the intra-core source clock and a signal with the same phase.
[0010] Optionally, in the FPGA-based balanced clock skew circuit system, the delay control unit includes a delay controller and a delayed clock generator; the delay controller is used to generate a delay code and a phase-identical signal based on a source clock and an internal source clock of the core; the delayed clock generator is used to delay the source clock according to the delay code to obtain a delayed clock.
[0011] Optionally, in the FPGA-based balanced clock skew circuit system, the delay controller includes a digital phase detector and an encoder; the digital phase detector is used to detect whether the phases of the source clock and the source clock in the core are consistent, and output a phase detection signal based on the detection result; the encoder is used to output a phase-identical signal and / or a delayed coding signal according to the phase detection signal under the control of the source clock.
[0012] Optionally, in the FPGA-based balanced clock skew circuit system, the digital phase detector is a register; the CK end of the register is connected to the source clock, the D end is connected to the core source clock, and the Q end outputs a phase detection signal, so as to use the source clock as the sampling clock to sample the core source clock, and obtain the phase of the core source clock at the rising edge of the source clock.
[0013] Optionally, in the FPGA-based balanced clock skew circuit system, the delayed clock generator includes a multiplexer and several cascaded buffers, the number of the buffers is consistent with the number of input terminals of the multiplexer, and the output terminal of each buffer is connected to an input terminal of the multiplexer in a one-to-one correspondence; the output terminal of each buffer is connected to the input terminal of the next-level buffer, and the input terminal of the first-level buffer receives the source clock; the multiplexer is used to connect the corresponding input terminal according to the delay code to output the delayed clock.
[0014] Optionally, in the FPGA-based balanced clock skew circuit system, the first interactive unit includes a first transmitter and a first receiver; the first transmitter and the first receiver each include a first register, an interactive logic controller, and a second register; the clock ends of the first register and the second register are both connected to a source clock, and the enable ends of the interactive logic controller are both connected to a signal with the same phase;
[0015] The output end of the first register in the first transmitter is connected to the input end of the interactive logic controller in the first transmitter, the output end of the interactive logic controller in the first transmitter is connected to the input end of the second register in the first transmitter, and the output end of the second register in the first transmitter is connected to the second interactive unit to realize data transmission;
[0016] The input end of the first register in the first receiver is connected to the second interactive unit, and the output end is connected to the input end of the interactive logic controller in the first receiver. The output end of the interactive logic controller in the first receiver is connected to the input end of the second register in the first receiver to realize data reception.
[0017] Optionally, in the FPGA-based balanced clock skew circuit system, the second interaction unit includes a second transmitter and a second receiver; the second transmitter and the second receiver both include a third register and a user logic controller; the clock end of the third register and the clock end of the user logic controller are both connected to the core source clock, and the enable end of the user logic controller is connected to the signal with the same phase;
[0018] The output end of the third register in the second transmitter is connected to the input end of the first register in the first receiver, and the input end of the third register in the second transmitter is connected to the output end of the user logic controller in the second transmitter to realize data transmission;
[0019] The input end of the third register in the second receiver is connected to the output end of the second register in the first transmitter, and the output end of the third register in the second receiver is connected to the input end of the user logic controller in the second receiver to realize data reception.
[0020] Optionally, in the FPGA-based balanced clock skew circuit system, the first register, the second register and the third register are all D flip-flops; the CK end of the D flip-flop is the clock end, the D end is the input end, and the Q end is the output end.
[0021] In order to solve the above technical problems, the present invention further provides a circuit system control method, which is applied to the circuit system with balanced clock skew based on FPGA as described in any one of the above items, and the circuit system control method comprises:
[0022] The source clock is provided by the clock source unit, and the internal source clock is provided by the clock dedicated routing unit;
[0023] Using a delay control unit, a delayed clock and a signal with the same phase are generated according to a source clock and a source clock in the core;
[0024] Send the delayed clock to the clock dedicated routing unit, use the source clock as the clock signal of the first interactive unit, use the source clock in the core as the clock signal of the second interactive unit, and use the signal with the same phase as the enable signal of the first interactive unit and the second interactive unit;
[0025] Data transmission and reception between the first interaction unit and the second interaction unit are realized according to the clock signal and the enable signal.
[0026] Optionally, in the circuit system control method, the delay control unit includes a delay controller and a delayed clock generator, and the delay controller includes a digital phase detector and an encoder; the method of generating a delayed clock and a signal with the same phase according to a source clock and an internal core source clock includes:
[0027] Send the source clock and the core internal source clock to the digital phase detector at the same time;
[0028] In the digital phase detector, the source clock is used to sample the source clock within the core;
[0029] Using an encoder, a phase-identical signal and a delayed coded signal are generated according to the sampling result;
[0030] The delayed coded signal is sent to the delayed clock generator to obtain a delayed clock.
[0031] Optionally, in the circuit system control method, the method of generating the phase-identical signal and the delayed coded signal according to the sampling result includes:
[0032] Regardless of the sampling result, the digital phase detector continues sampling, and the encoder generates a corresponding delayed coded signal, wherein the delayed coded signal generated after each sampling is not completely the same;
[0033] Or, if the source clock and the core source clock are in phase, the encoder outputs a high-level signal with the same phase, and when the phase detection signal output by the digital phase detector after sampling has an upward edge, sampling stops, and the encoder generates a corresponding delayed encoding signal.
[0034] The present invention provides an FPGA-based balanced clock skew circuit system and control method, comprising: a hard core circuit module, comprising a clock source unit, a delay control unit and a first interaction unit; the clock source unit is used to generate a source clock; the delay control unit is used to generate a delayed clock according to the source clock, and is also used to generate a phase-identical signal according to the source clock and an intra-core source clock; the first interaction unit is used to send and receive data with a second interaction unit under the control of the source clock and the phase-identical signal; an FPGA module comprises a clock-dedicated routing unit and a second interaction unit; the clock-dedicated routing unit is used to generate an intra-core source clock according to the delayed clock; the second interaction unit is used to send and receive data with the first interaction unit under the control of the intra-core source clock and the phase-identical signal. A delay control unit set in the hard-core circuit module generates a delayed clock and a signal with the same phase according to the source clock and the source clock in the core, and realizes data interaction between the second interaction unit in the FPGA module and the first interaction unit in the hard-core circuit module through the delayed clock and the signal with the same phase. In this way, the delay control unit is used to balance the clock skew between the register at the clock source end and the register on the FPGA, so that the FPGA module can effectively reduce the clock skew without increasing the hardware resources, thereby solving the problem of how to effectively balance the clock skew without increasing the FPGA hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A structural block diagram of a circuit system for balancing clock skew based on FPGA provided in this embodiment;
[0036] Figure 2 A schematic diagram of the structure of the delay control unit provided in this embodiment;
[0037] Figure 3 A schematic diagram of the structure of the delay controller provided in this embodiment;
[0038] Figure 4 A schematic diagram of the structure of a digital phase detector provided in this embodiment;
[0039] Figure 5 A schematic diagram of the structure of the delay clock generator provided in this embodiment;
[0040] Figure 6 A detailed structural diagram of a circuit system for balancing clock skew based on FPGA provided in this embodiment;
[0041] Figure 7 This is a flow chart of the circuit system control method provided in this embodiment. DETAILED DESCRIPTION
[0042] The following is a further detailed description of the circuit system and control method for balancing clock skew based on FPGA proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the accompanying drawings is often a part of the actual structure. In particular, the emphasis of each accompanying drawing is different, and sometimes different proportions are used.
[0043] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects in order to describe the embodiments of the present invention, rather than to describe a specific order or sequence. It should be understood that the structures used in this way can be interchanged under appropriate circumstances. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0044] This embodiment provides a circuit system for balancing clock skew based on FPGA, such as Figure 1 As shown, including:
[0045] The hard core circuit module includes a clock source unit, a delay control unit and a first interaction unit; the clock source unit is used to generate a source clock; the delay control unit is used to generate a delayed clock according to the source clock, and is also used to generate a phase-identical signal according to the source clock and the core source clock; the first interaction unit is used to send and receive data with the second interaction unit under the control of the source clock and the phase-identical signal;
[0046] The FPGA module includes a clock-dedicated routing unit and a second interaction unit; the clock-dedicated routing unit is used to generate an intra-core source clock according to a delayed clock; the second interaction unit is used to send and receive data with the first interaction unit under the control of the intra-core source clock and a signal with the same phase.
[0047] The circuit system for balancing clock skew based on FPGA provided in this embodiment generates a delayed clock and a signal with the same phase according to a source clock and a source clock in the core by a delay control unit arranged in a hard-core circuit module, and realizes data interaction between a second interaction unit in the FPGA module and a first interaction unit in the hard-core circuit module by the delayed clock and the signal with the same phase. In this way, the delay control unit is used to balance the clock skew between the register at the clock source end and the register on the FPGA, so that the FPGA module can effectively reduce the clock skew without increasing the hardware resources, thereby solving the problem of how to effectively balance the clock skew without increasing the hardware resources of the FPGA.
[0048] Furthermore, in this embodiment, if Figure 2 As shown, the delay control unit includes a delay controller and a delayed clock generator; the delay controller is used to generate a delay code and a phase-identical signal according to a source clock and an internal source clock of the core; the delayed clock generator is used to delay the source clock according to the delay code to obtain a delayed clock.
[0049] Specifically, in this embodiment, if Figure 3 As shown, the delay controller includes a digital phase detector and an encoder; the digital phase detector is used to detect whether the phases of the source clock and the source clock in the core are consistent, and output a phase detection signal according to the detection result; the encoder is used to output a phase-identical signal and / or a delay coding signal according to the phase detection signal under the control of the source clock. In this embodiment, if the digital phase detector detects that the phases of the source clock and the source clock in the core are consistent, the output phase detection signal is a high level, otherwise it is a low level; the phase-identical signal output by the encoder is consistent with the phase detection signal, that is, when the phase detection signal is a high level, the phase-identical signal is a high level.
[0050] In practical applications, the digital phase detector may be a register, such as a D flip-flop (DFF). Figure 4 As shown, the CK end of the register is connected to the source clock, the D end is connected to the core source clock, and the Q end outputs a phase detection signal, so that the source clock is used as the sampling clock to sample the core source clock, and the phase of the core source clock at the rising edge of the source clock is obtained.
[0051] And, in this embodiment, if Figure 5 As shown, the delayed clock generator includes a multiplexer and several cascaded buffers, the number of the buffers is consistent with the number of the input terminals of the multiplexer, and the output terminal of each buffer is connected to an input terminal of the multiplexer in a one-to-one correspondence; the output terminal of each buffer is connected to the input terminal of the next level buffer, and the input terminal of the first level buffer receives the source clock; the multiplexer is used to connect the corresponding input terminal according to the delay code to output the delayed clock.
[0052] In practical applications, the delay of each buffer is about 50ps, that is, after the delay of the first-level buffer Buff0, the signal obtained by the multiplexer port 0 is about 50ps delayed than the source clock; after the delay of the first-level buffer Buff0 and the second-level buffer Buff1, the signal obtained by the multiplexer port 1 is about 100ps delayed than the source clock; in this way, the signal obtained by the latter port will be delayed by the delay time of the buffer connected to it compared with the previous one, so that the signal delay obtained by each port is different. When the delay code is input to the multiplexer, the signal on the corresponding port will be selected, thereby obtaining a signal that is delayed by a certain length of time than the source clock, that is, the delayed clock. Among them, the delayed clock is different from the source clock only in delay, and its logic is exactly the same.
[0053] In this embodiment, the delay of each level of buffer is consistent. Of course, in other embodiments, the delay of each level of buffer may be different, or the number of buffers connected to each port of the multiplexer may be different, and a multiplexer with more ports and a corresponding number of buffers may be selected according to actual needs, and this application does not limit this. However, in order to ensure that the actual delay between the delayed clock and the source clock is within a controllable range, it is necessary to ensure that the delay accuracy of the buffer is within 20 to 50 ps.
[0054] Furthermore, in this embodiment, the first interaction unit includes a first transmitter and a first receiver; the first transmitter and the first receiver both include a first register, an interaction logic controller and a second register; the clock ends of the first register and the second register are both connected to the source clock, and the enable ends of the interaction logic controller are both connected to the signal with the same phase.
[0055] Specifically, Figure 6 As shown, the output end Q of the first register DFF11 in the first transmitter is connected to the input end of the interactive logic controller in the first transmitter, the output end of the interactive logic controller in the first transmitter is connected to the input end D of the second register DFF12 in the first transmitter, and the output end Q of the second register DFF12 in the first transmitter is connected to the second interactive unit to achieve data transmission. The input end D of the first register DFF21 in the first receiver is connected to the second interactive unit, and the output end Q is connected to the input end of the interactive logic controller in the first receiver, and the output end of the interactive logic controller in the first receiver is connected to the input end D of the second register DFF22 in the first receiver to achieve data reception.
[0056] Furthermore, in this embodiment, the second interaction unit includes a second transmitter and a second receiver; the second transmitter and the second receiver both include a third register and a user logic controller; the clock end of the third register and the clock end of the user logic controller are both connected to the core source clock, and the enable end of the user logic controller is connected to the signal with the same phase.
[0057] Specifically, Figure 6 As shown, the output terminal Q of the third register DFF3 in the second transmitter is connected to the input terminal D of the first register DFF21 in the first receiver, and the input terminal D of the third register DFF3 in the second transmitter is connected to the output terminal of the user logic controller in the second transmitter to achieve data transmission. The input terminal D of the third register DFF4 in the second receiver is connected to the output terminal Q of the second register DFF12 in the first transmitter, and the output terminal Q of the third register DFF4 in the second receiver is connected to the input terminal of the user logic controller in the second receiver to achieve data reception.
[0058] Thus, in the hard-core circuit module, the first register DFF11 and the second register DFF12 in the first transmitter, the first register DFF21 and the second register DFF22 in the first receiver, and the delay controller and the delay clock generator all receive the same source clock (the delay length of the source clock received by each device in the hard-core circuit module is consistent), thereby ensuring that the clock skew between each register in the hard-core circuit module is very small; in the FPGA module, the clock dedicated routing unit generates the core source clock according to the delayed clock provided by the delay clock generator, and provides the core source clock to the third register DFF3 and the user logic controller in the second transmitter, and the third register DFF4 and the user logic controller in the second receiver (the delay length of the core source clock received by each device in the FPGA module is consistent), thereby ensuring that the clock skew between each register in the FPGA module is very small. At the same time, the clock dedicated routing unit in the FPGA module is controlled by the delay clock, that is, the phase adjustment of the clock is realized through the delay control unit in the hard-core circuit module, so that the clock skew between the registers in the hard-core circuit module and the registers in the FPGA module is very small.
[0059] In practical applications, the first register, the second register and the third register may all be D flip-flops; the CK terminal of the D flip-flop is a clock terminal, the D terminal is an input terminal, and the Q terminal is an output terminal.
[0060] This embodiment also provides a circuit system control method, which is applied to the circuit system for balancing clock skew based on FPGA as described above. Figure 7 As shown, the circuit system control method includes:
[0061] S1, source clock is provided by clock source unit, and internal source clock is provided by clock dedicated routing unit;
[0062] S2, using the delay control unit to generate a delayed clock and a signal with the same phase according to the source clock and the source clock in the core;
[0063] S3, sending the delayed clock to the clock dedicated routing unit, using the source clock as the clock signal of the first interactive unit, using the core source clock as the clock signal of the second interactive unit, and using the signal with the same phase as the enable signal of the first interactive unit and the second interactive unit;
[0064] S4, realizing data transmission and reception between the first interaction unit and the second interaction unit according to the clock signal and the enable signal.
[0065] Further, in this embodiment, the delay control unit includes a delay controller and a delayed clock generator, and the delay controller includes a digital phase detector and an encoder. Step S2, a method for generating a delayed clock and a signal with the same phase according to a source clock and an internal core source clock includes:
[0066] S21, the source clock and the core source clock are sent to the digital phase detector at the same time.
[0067] S22, in the digital phase detector, the source clock is used to sample the source clock in the core.
[0068] S23, using an encoder to generate a phase-matched signal and a delayed coded signal according to the sampling result.
[0069] Specifically, in this embodiment, no matter what the sampling result is, the digital phase detector continues sampling, and the encoder generates a corresponding delayed coded signal, wherein the delayed coded signal generated after each sampling is not completely the same.
[0070] Or, if the source clock and the core source clock are in phase, the encoder outputs a high-level signal with the same phase, and when the phase detection signal output by the digital phase detector after sampling has an upward edge, sampling stops, and the encoder generates a corresponding delayed encoding signal.
[0071] S24, sending the delayed coded signal to a delayed clock generator to obtain a delayed clock.
[0072] At this time, the encoder stops running, and the signal with the same phase outputs a high level, enabling the interactive logic controller of the hard-core circuit module and the user logic controller of the FPGA module, thereby realizing the transmission and reception of data between the two. Under the logic control provided by this embodiment, it can be ensured that the clock skew between the registers in the system is almost zero.
[0073] The circuit system and control method for balanced clock skew based on FPGA provided in the present embodiment balance the interface problem between FPGA and hard core circuit by adding a delay control unit in the hard core circuit module, thereby improving the performance of FPGA. The circuit system and control method for balanced clock skew based on FPGA provided in the present embodiment are implemented by a fully digital circuit, so the overall power consumption is much lower than the solution using a phase-locked loop. The circuit system and control method for balanced clock skew based on FPGA provided in the present embodiment can adjust the clock phase through the source clock and the source clock in the core, without introducing an additional reference clock, so there is no additional cycle consumption, and the data waiting time is short. The circuit system and control method for balanced clock skew based on FPGA provided in the present embodiment have a simple operating mechanism, and do not need to confirm the precise delay of each stage, nor do they need complex logic control. The delay can be pushed back to the same phase as the source clock by the digital phase detector, encoder and delay clock generator of the delay control unit.
[0074] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. In addition, the different parts between the various embodiments can also be used in combination with each other, and the present invention is not limited to this.
[0075] The present invention provides an FPGA-based balanced clock skew circuit system and control method, comprising: a hard core circuit module, comprising a clock source unit, a delay control unit and a first interaction unit; the clock source unit is used to generate a source clock; the delay control unit is used to generate a delayed clock according to the source clock, and is also used to generate a phase-identical signal according to the source clock and an intra-core source clock; the first interaction unit is used to send and receive data with a second interaction unit under the control of the source clock and the phase-identical signal; an FPGA module comprises a clock-dedicated routing unit and a second interaction unit; the clock-dedicated routing unit is used to generate an intra-core source clock according to the delayed clock; the second interaction unit is used to send and receive data with the first interaction unit under the control of the intra-core source clock and the phase-identical signal. A delay control unit set in the hard-core circuit module generates a delayed clock and a signal with the same phase according to the source clock and the source clock in the core, and realizes data interaction between the second interaction unit in the FPGA module and the first interaction unit in the hard-core circuit module through the delayed clock and the signal with the same phase. In this way, the delay control unit is used to balance the clock skew between the register at the clock source end and the register on the FPGA, so that the FPGA module can effectively reduce the clock skew without increasing the hardware resources, thereby solving the problem of how to effectively balance the clock skew without increasing the FPGA hardware resources.
[0076] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A circuit system for balancing clock skew based on FPGA, It is characterized in that include: The hard core circuit module comprises a clock source unit, a delay control unit and a first interaction unit; the clock source unit is used to generate a source clock; The delay control unit is used to generate a delayed clock according to the source clock, and is also used to generate a signal with the same phase according to the source clock and the source clock in the core; the first interaction unit is used to send and receive data with the second interaction unit under the control of the source clock and the signal with the same phase; The FPGA module includes a clock-dedicated routing unit and a second interaction unit; the clock-dedicated routing unit is used to generate an intra-core source clock according to a delayed clock; the second interaction unit is used to send and receive data with the first interaction unit under the control of the intra-core source clock and a signal with the same phase.
2. The circuit system for balancing clock skew based on FPGA according to claim 1, It is characterized in that The delay control unit includes a delay controller and a delayed clock generator; the delay controller is used to generate a delay code and a phase-identical signal according to a source clock and an internal core source clock; the delayed clock generator is used to delay the source clock according to the delay code to obtain a delayed clock.
3. The circuit system for balancing clock skew based on FPGA according to claim 2, It is characterized in that The delay controller includes a digital phase detector and an encoder; the digital phase detector is used to detect whether the phases of the source clock and the source clock in the core are consistent, and output a phase detection signal according to the detection result; the encoder is used to output a phase-identical signal and / or a delayed coding signal according to the phase detection signal under the control of the source clock.
4. The circuit system for balancing clock skew based on FPGA according to claim 3, It is characterized in that The digital phase detector is a register; the CK end of the register is connected to the source clock, the D end is connected to the core source clock, and the Q end outputs a phase detection signal to sample the core source clock using the source clock as the sampling clock to obtain the phase of the core source clock at the rising edge of the source clock.
5. The circuit system for balancing clock skew based on FPGA according to claim 2, It is characterized in that The delayed clock generator includes a multiplexer and several cascaded buffers, the number of the buffers is consistent with the number of input terminals of the multiplexer, and the output terminal of each buffer is connected to an input terminal of the multiplexer in a one-to-one correspondence; the output terminal of each buffer is connected to the input terminal of the next-level buffer, and the input terminal of the first-level buffer receives the source clock; the multiplexer is used to connect the corresponding input terminal according to the delay code to output the delayed clock.
6. The circuit system for balancing clock skew based on FPGA according to claim 1, It is characterized in that The first interaction unit includes a first transmitter and a first receiver; the first transmitter and the first receiver each include a first register, an interaction logic controller and a second register; the clock ends of the first register and the second register are both connected to a source clock, and the enable end of the interaction logic controller is both connected to a signal with the same phase; The output end of the first register in the first transmitter is connected to the input end of the interactive logic controller in the first transmitter, the output end of the interactive logic controller in the first transmitter is connected to the input end of the second register in the first transmitter, and the output end of the second register in the first transmitter is connected to the second interactive unit to realize data transmission; The input end of the first register in the first receiver is connected to the second interactive unit, and the output end is connected to the input end of the interactive logic controller in the first receiver. The output end of the interactive logic controller in the first receiver is connected to the input end of the second register in the first receiver to realize data reception.
7. The circuit system for balancing clock skew based on FPGA according to claim 6, It is characterized in that The second interaction unit includes a second transmitter and a second receiver; the second transmitter and the second receiver both include a third register and a user logic controller; the clock end of the third register and the clock end of the user logic controller are both connected to the core source clock, and the enable end of the user logic controller is connected to the signal with the same phase; The output end of the third register in the second transmitter is connected to the input end of the first register in the first receiver, and the input end of the third register in the second transmitter is connected to the output end of the user logic controller in the second transmitter to realize data transmission; The input end of the third register in the second receiver is connected to the output end of the second register in the first transmitter, and the output end of the third register in the second receiver is connected to the input end of the user logic controller in the second receiver to realize data reception.
8. The circuit system for balancing clock skew based on FPGA according to claim 7, It is characterized in that The first register, the second register and the third register are all D flip-flops; the CK terminal of the D flip-flop is the clock terminal, the D terminal is the input terminal, and the Q terminal is the output terminal.
9. A circuit system control method, applied to the circuit system with balanced clock skew based on FPGA as claimed in any one of claims 1 to 8, It is characterized in that The circuit system control method comprises: The source clock is provided by the clock source unit, and the internal source clock is provided by the clock dedicated routing unit; Using a delay control unit, a delayed clock and a signal with the same phase are generated according to a source clock and a source clock in the core; Send the delayed clock to the clock dedicated routing unit, use the source clock as the clock signal of the first interactive unit, use the source clock in the core as the clock signal of the second interactive unit, and use the signal with the same phase as the enable signal of the first interactive unit and the second interactive unit; Data transmission and reception between the first interaction unit and the second interaction unit are realized according to the clock signal and the enable signal.
10. The circuit system control method according to claim 9, It is characterized in that The delay control unit includes a delay controller and a delayed clock generator, and the delay controller includes a digital phase detector and an encoder; the method for generating a delayed clock and a signal with the same phase according to a source clock and an internal core source clock includes: Send the source clock and the core internal source clock to the digital phase detector at the same time; In the digital phase detector, the source clock is used to sample the source clock within the core; Using an encoder, a phase-identical signal and a delayed coded signal are generated according to the sampling result; The delayed coded signal is sent to the delayed clock generator to obtain a delayed clock.
11. The circuit system control method according to claim 10, It is characterized in that The method of generating a phase-identical signal and a delayed coded signal according to the sampling result includes: Regardless of the sampling result, the digital phase detector continues sampling, and the encoder generates a corresponding delayed coded signal, wherein the delayed coded signal generated after each sampling is not completely the same; Or, if the source clock and the core source clock are in phase, the encoder outputs a high-level signal with the same phase, and when the phase detection signal output by the digital phase detector after sampling has an upward edge, sampling stops, and the encoder generates a corresponding delayed encoding signal.
