CN116015279A - Clock configuration method, device, equipment and medium of programmable logic device - Google Patents
Clock configuration method, device, equipment and medium of programmable logic device Download PDFInfo
- Publication number
- CN116015279A CN116015279A CN202310095002.2A CN202310095002A CN116015279A CN 116015279 A CN116015279 A CN 116015279A CN 202310095002 A CN202310095002 A CN 202310095002A CN 116015279 A CN116015279 A CN 116015279A
- Authority
- CN
- China
- Prior art keywords
- programmable logic
- clock
- logic device
- configuration
- configuration method
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F5/00—Methods or arrangements for data conversion without changing the order or content of the data handled
- G06F5/06—Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/02—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components
- H03K19/173—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using elementary logic circuits as components
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- General Physics & Mathematics (AREA)
- Design And Manufacture Of Integrated Circuits (AREA)
- Logic Circuits (AREA)
Abstract
Description
技术领域technical field
本申请属于可编程逻辑器件技术领域,涉及一种可编程逻辑器件的时钟配置方法、装置、设备及介质。The application belongs to the technical field of programmable logic devices, and relates to a clock configuration method, device, equipment and medium of a programmable logic device.
背景技术Background technique
电磁干扰(ElectromagneticInterference,简称EMI),指电路系统在运行时通过传导干扰或者辐射干扰的方式,对该电路系统的周边电路系统产生影响,因此,为了保证整个电路系统的正常工作,电子产品的研发必须符合相关机构颁布的电磁兼容的规范,确保上市的电子产品满足规范要求。Electromagnetic Interference (EMI for short) refers to the influence of the circuit system on the peripheral circuit system of the circuit system through conduction interference or radiation interference during operation. Therefore, in order to ensure the normal operation of the entire circuit system, the research and development of electronic products It must comply with the electromagnetic compatibility specifications promulgated by relevant agencies to ensure that the electronic products on the market meet the specification requirements.
随着集成电路技术的发展,可编程逻辑器件(FPGA、CPLD等)中数字信号的时钟频率越来越高,改善可编程逻辑器件时钟引起的辐射干扰已经是每一个应用厂商都要面对的问题,传统的技术方案通过在晶振时钟和可编程逻辑器件之间增加展频芯片配置可编程逻辑器件的时钟来达到改善电磁干扰的效果,但是增加展频芯片的同时还会提高产品的硬件成本和研发成本,并且对于已经量产的可编程逻辑器件,增加展频芯片还需要重新测试产品,大幅度拉长了项目时间。With the development of integrated circuit technology, the clock frequency of digital signals in programmable logic devices (FPGA, CPLD, etc.) is getting higher and higher. Improving the radiation interference caused by the clock of programmable logic devices has been faced by every application manufacturer. Problem, the traditional technical solution achieves the effect of improving electromagnetic interference by adding a spread spectrum chip between the crystal oscillator clock and the programmable logic device to configure the clock of the programmable logic device, but adding a spread spectrum chip will also increase the hardware cost of the product And research and development costs, and for programmable logic devices that have been mass-produced, adding a spread spectrum chip requires retesting the product, which greatly lengthens the project time.
发明内容Contents of the invention
本申请的目的在于提供一种可编程逻辑器件的时钟配置方法、装置、设备及介质,以解决传统技术方案改善电磁干扰时所需成本高的技术问题。The purpose of this application is to provide a clock configuration method, device, equipment and medium of a programmable logic device, so as to solve the technical problem of high cost required for improving electromagnetic interference in traditional technical solutions.
为解决上述技术问题,本申请的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme of the present application is as follows:
本申请提供一种可编程逻辑器件的时钟配置方法,包括:The present application provides a clock configuration method of a programmable logic device, including:
配置所述可编程逻辑器件为将接收到的时钟输入信号转换为若干个不同相位的时钟输出信号;Configuring the programmable logic device to convert the received clock input signal into several clock output signals with different phases;
配置所述可编程逻辑器件的各功能模块分别接收所述时钟输出信号;其中,所述功能模块的数量与所述时钟输出信号的数量相同。Each functional module of the programmable logic device is configured to receive the clock output signal respectively; wherein, the number of the functional modules is the same as the number of the clock output signal.
进一步地,所述可编程逻辑器件的时钟配置方法,还包括:Further, the clock configuration method of the programmable logic device also includes:
生成配置位流文件,将所述配置位流文件下载至所述可编程逻辑器件以配置所述可编程逻辑器件,配置后的所述可编程逻辑器件用于:Generate a configuration bit stream file, download the configuration bit stream file to the programmable logic device to configure the programmable logic device, the configured programmable logic device is used for:
接收时钟输入信号,将所述时钟输入信号转换为若干个不同相位的所述时钟输出信号并分别输出至所述可编程逻辑器件的各所述功能模块。receiving a clock input signal, converting the clock input signal into several clock output signals with different phases and outputting them to the functional modules of the programmable logic device respectively.
进一步地,所述配置所述可编程逻辑器件为将接收到的时钟输入信号转换为若干个不同相位的时钟输出信号的步骤,包括:Further, the step of configuring the programmable logic device to convert the received clock input signal into several clock output signals with different phases includes:
根据所述功能模块的数量配置所述可编程逻辑器件的锁相环模块,使所述时钟输入信号经所述锁相环模块输出若干个不同相位的所述时钟输出信号。The phase-locked loop module of the programmable logic device is configured according to the number of the functional modules, so that the clock input signal outputs several clock output signals with different phases through the phase-locked loop module.
进一步地,所述配置所述可编程逻辑器件的各功能模块分别接收所述时钟输出信号的步骤,包括:Further, the step of configuring each functional module of the programmable logic device to respectively receive the clock output signal includes:
例化所述可编程逻辑器件的原语,使所述锁相环模块输出的所述时钟输出信号为所述可编程逻辑器件全局时钟的时钟信号,或为所述可编程逻辑器件局部时钟的时钟信号,以及Instantiate the primitives of the programmable logic device, so that the clock output signal output by the phase-locked loop module is the clock signal of the global clock of the programmable logic device, or the clock signal of the local clock of the programmable logic device clock signal, and
使所述锁相环模块输出的所述时钟输出信号能驱动各所述功能模块。The clock output signal output by the phase-locked loop module can drive each of the functional modules.
进一步地,所述例化所述可编程逻辑器件的原语的步骤之后,还包括:Further, after the step of instantiating the primitives of the programmable logic device, it also includes:
为所述功能模块配置数据缓存器,所述数据缓存器用于实现所述可编程逻辑器件不同时钟域的数据缓存。A data buffer is configured for the functional module, and the data buffer is used to implement data buffering in different clock domains of the programmable logic device.
进一步地,所述例化数据缓存器的步骤之后,还包括:Further, after the step of instantiating the data buffer, it also includes:
根据所述可编程逻辑器件的区域约束将所述功能模块约束至所述功能模块的布局位置。The functional modules are constrained to the layout positions of the functional modules according to the area constraints of the programmable logic device.
进一步地,所述根据所述可编程逻辑器件的区域约束将所述功能模块约束至所述功能模块的布局位置的步骤,还包括:Further, the step of constraining the functional modules to the layout positions of the functional modules according to the area constraints of the programmable logic device further includes:
约束所述功能模块避开受电磁干扰影响严重的布局位置。The functional modules are constrained to avoid layout locations that are seriously affected by electromagnetic interference.
基于上述任一可编程逻辑器件的时钟配置方法,本申请还提供一种可编程逻辑器件的时钟配置方法,所述装置包括:Based on the clock configuration method of any of the above-mentioned programmable logic devices, the present application also provides a clock configuration method of a programmable logic device, and the device includes:
第一配置模块,用于配置所述可编程逻辑器件为将接收到的时钟输入信号转换为若干个不同相位的时钟输出信号;The first configuration module is used to configure the programmable logic device to convert the received clock input signal into several clock output signals with different phases;
第二配置模块,用于配置所述可编程逻辑器件的各功能模块分别接收所述时钟输出信号;其中,所述功能模块的数量与所述时钟输出信号的数量相同;The second configuration module is configured to configure each functional module of the programmable logic device to receive the clock output signal respectively; wherein, the number of the functional modules is the same as the number of the clock output signal;
第三配置模块,用于生成配置位流文件,将所述配置位流文件下载至所述可编程逻辑器件以配置所述可编程逻辑器件,配置后的所述可编程逻辑器件用于:The third configuration module is configured to generate a configuration bit stream file, and download the configuration bit stream file to the programmable logic device to configure the programmable logic device, and the configured programmable logic device is used for:
接收时钟输入信号,将所述时钟输入信号转换为若干个不同相位的所述时钟输出信号并分别输出至所述可编程逻辑器件的各所述功能模块。receiving a clock input signal, converting the clock input signal into several clock output signals with different phases and outputting them to the functional modules of the programmable logic device respectively.
基于上述任一可编程逻辑器件的时钟配置方法,本申请还提供一种电子设备,包括:Based on the clock configuration method of any of the above programmable logic devices, the present application also provides an electronic device, including:
存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述可编程逻辑器件的时钟配置方法的步骤。A memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program, the clock configuration method for any of the programmable logic devices described above is implemented step.
基于上述任一可编程逻辑器件的时钟配置方法,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一项所述可编程逻辑器件的时钟配置方法的步骤。Based on the clock configuration method of any of the above-mentioned programmable logic devices, the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned A step of the clock configuration method of a programmable logic device.
相比于现有技术,本申请的有益效果在于:Compared with the prior art, the beneficial effects of the present application are:
本申请实施例提供的可编程逻辑器件的时钟配置方法,将可编程逻辑器件接收到的时钟输入信号进行时钟调相,分出多个不同相位的时钟输出信号,让可编程逻辑器件原处于同一时钟域下的各个功能模块能在同一时钟频率下的不同相位运行,使可编程逻辑器件内部的逻辑单元和相关电路器件避开了同一个时刻翻转的场景,进而让时钟辐射明显降低,在不增加额外硬件成本的基础上就能改善电磁干扰。The clock configuration method of the programmable logic device provided by the embodiment of the present application performs clock phase modulation on the clock input signal received by the programmable logic device, and separates a plurality of clock output signals with different phases, so that the programmable logic device is originally in the same Each functional module in the clock domain can run in different phases at the same clock frequency, so that the logic unit and related circuit devices inside the programmable logic device avoid the scene of flipping at the same time, and then the clock radiation is significantly reduced. EMI can be improved at the cost of additional hardware.
此外,本申请实施例提供的可编程逻辑器件的时钟配置方法还能根据实际需求进行多次迭代,不仅避免了重新设计硬件的复杂度,缩短了项目设计的时间周期,并且让产品在不同应用场景需求下通过升级可编程逻辑器件的位流便可以达到改善电磁干扰效果,如使用本申请实施例提供的可编程逻辑器件的时钟配置方法后还需要进一步降低电磁干扰的影响,则可以在上一次使用的基础上继续对时钟输入信号进行分解,以进一步降低电磁干扰。In addition, the clock configuration method for programmable logic devices provided by the embodiment of the present application can perform multiple iterations according to actual needs, which not only avoids the complexity of redesigning hardware, shortens the time period of project design, and allows products to be used in different applications. Under scenario requirements, the effect of electromagnetic interference can be improved by upgrading the bit stream of the programmable logic device. If it is necessary to further reduce the influence of electromagnetic interference after using the clock configuration method of the programmable logic device provided in the embodiment of this application, you can use the above The clock input signal continues to be decomposed on a one-use basis to further reduce electromagnetic interference.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the application. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为传统技术方案实现可编程逻辑器件的时钟配置的产品结构示意图。FIG. 1 is a schematic diagram of a product structure for implementing a clock configuration of a programmable logic device in a conventional technical solution.
图2本申请实施例提供的可编程逻辑器件的时钟配置方法的流程图。FIG. 2 is a flow chart of a clock configuration method for a programmable logic device provided by an embodiment of the present application.
图3为本申请实施例提供的可编程逻辑器件的时钟配置方法实现可编程逻辑器件的时钟配置的产品结构示意图。FIG. 3 is a schematic diagram of a product structure for realizing the clock configuration of a programmable logic device by the method for configuring a clock of a programmable logic device provided in an embodiment of the present application.
图4为本申请实施例提供的可编程逻辑器件的时钟配置装置的示意图。FIG. 4 is a schematic diagram of a clock configuration device for a programmable logic device provided in an embodiment of the present application.
图5为本申请实施例提供的电子设备的示意图。FIG. 5 is a schematic diagram of an electronic device provided by an embodiment of the present application.
图6为本申请实施例提供的计算机存储介质的示意图。Fig. 6 is a schematic diagram of a computer storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。应当明确,所描述的实施例仅是本发明一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be clear that the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
FPGA(现场可编程门阵列,FieldProgrammableGateArray)和CPLD(FieldProgrammableGateArray,复杂可编程逻辑器件)是市场上主要类型的可编程逻辑器件,为了便于对本申请实施例进行说明,以下实施例将以FPGA为示例进行说明,但应当明确,本申请实施例提供的可编程逻辑器件的时钟配置方法同样适用于CPLD。FPGA (Field Programmable Gate Array, FieldProgrammableGateArray) and CPLD (FieldProgrammableGateArray, Complex Programmable Logic Device) are the main types of programmable logic devices on the market. Note, but it should be clear that the clock configuration method for programmable logic devices provided in the embodiments of the present application is also applicable to CPLDs.
图1为传统技术方案实现可编程逻辑器件的时钟配置的产品结构示意图,如图1所示,晶振时钟用于输出时钟信号,展频芯片降低时钟引起的频率辐射,FPGA的锁相环模块接收到时钟输入信号后,通过锁相环模块将时钟输入信号进行倍频分频后输出至各功能模块,其中,各功能模块接收到的时钟信号其频率、相位均相同;传统技术方案中,为了降低可编程逻辑器件时钟引起的频率辐射,通过增加展频芯片的方式来达到改善效果,展频芯片的工作原理为通过对尖峰时钟进行调制处理,使其从一个窄带时钟信号变为一个具有边带的频谱,将时钟的尖峰能量分散到展频区域的多个频率段,从而达到降低尖峰能量,抑制EMI的效果。然而,增加硬件器件展频芯片会使得产品的成本明显增加,尤其是对于已经量产的可编程逻辑器件,增加展频芯片还需要对可编程逻辑器件整机重新测试,大幅度拉长了项目时间,极不利于产品的研发和生产;为了解决该技术问题,本申请实施例提供了一种可编程逻辑器件的时钟配置方法,在不增加硬件成本的基础上实现降低时钟引起的频率辐射,使可编程逻辑器件的电磁干扰得到改善。Figure 1 is a schematic diagram of the product structure of the traditional technical solution to realize the clock configuration of the programmable logic device. As shown in Figure 1, the crystal oscillator clock is used to output the clock signal, the spread spectrum chip reduces the frequency radiation caused by the clock, and the phase-locked loop module of the FPGA receives After the clock input signal is received, the clock input signal is multiplied and frequency-divided by the phase-locked loop module and then output to each functional module, wherein the frequency and phase of the clock signal received by each functional module are the same; in the traditional technical solution, in order to Reduce the frequency radiation caused by the programmable logic device clock, and improve the effect by adding a spread spectrum chip. The working principle of the spread spectrum chip is to modulate the spike clock to make it change from a narrowband clock signal to a clock signal with edge The spectrum of the band disperses the peak energy of the clock to multiple frequency segments in the spread spectrum area, thereby achieving the effect of reducing peak energy and suppressing EMI. However, the addition of hardware device spread spectrum chips will significantly increase the cost of the product, especially for programmable logic devices that have been mass-produced. Adding spread spectrum chips also requires retesting of the entire programmable logic device, which greatly lengthens the project Time is extremely unfavorable for product development and production; in order to solve this technical problem, the embodiment of the present application provides a clock configuration method for programmable logic devices, which can reduce the frequency radiation caused by the clock without increasing the hardware cost. The electromagnetic interference of the programmable logic device is improved.
图2本申请实施例提供的可编程逻辑器件的时钟配置方法的流程图,如图2所示,本申请实施例提供的可编程逻辑器件的时钟配置方法包括:Fig. 2 is a flowchart of the clock configuration method of the programmable logic device provided by the embodiment of the present application. As shown in Fig. 2, the clock configuration method of the programmable logic device provided by the embodiment of the present application includes:
步骤S1:配置可编程逻辑器件为将接收到的时钟输入信号转换为若干个不同相位的时钟输出信号。Step S1: configuring the programmable logic device to convert the received clock input signal into several clock output signals with different phases.
步骤S2:配置可编程逻辑器件的各功能模块分别接收时钟输出信号;其中,功能模块的数量与时钟输出信号的数量相同。Step S2: configuring each functional module of the programmable logic device to receive the clock output signal respectively; wherein, the number of the functional modules is the same as the number of the clock output signal.
本申请实施例将可编程逻辑器件接收到的时钟输入信号进行时钟调相,分出多个不同相位的时钟信号,让可编程逻辑器件原本处于同一时钟域下的各个功能模块能在同一时钟频率下的不同相位运行,使可编程逻辑器件内部的逻辑单元和相关电路器件避开了同一个时刻翻转的场景,进而让时钟辐射明显降低,在不增加额外硬件成本的基础上就能改善电磁干扰。In the embodiment of the present application, the clock input signal received by the programmable logic device is clock phase modulated, and multiple clock signals with different phases are separated, so that each functional module of the programmable logic device originally in the same clock domain can operate at the same clock frequency. The operation of different phases under different phases makes the logic unit and related circuit devices inside the programmable logic device avoid the scene of flipping at the same time, so that the clock radiation is significantly reduced, and the electromagnetic interference can be improved without increasing additional hardware costs. .
在一些实施例中,本申请实施例提供的可编程逻辑器件的时钟配置方法还包括:In some embodiments, the clock configuration method of the programmable logic device provided in the embodiment of the present application further includes:
步骤S3:生成配置位流文件,将配置位流文件下载至可编程逻辑器件以配置可编程逻辑器件;应当明确,可编程逻辑器件的设计以及出厂后一些复杂的升级或修改都是通过EDA(Electronicdesignautomation,电子设计自动化)软件执行设计过程,最终将生成的位流文件下载至可编程逻辑器件完成设计的;因此,本申请实施例在步骤S1和步骤S2实现了对可编程逻辑器件功能的配置后,还应生成相应的配置位流文件,将配置位流文件下载至可编程逻辑器件以配置可编程逻辑器件能实现步骤S1和步骤S2的功能,配置后的可编程逻辑器件在实际运行时接收到时钟输入信号后,会将时钟输入信号转换为若干个不同相位的时钟输出信号并分别输出至可编程逻辑器件的各功能模块,使可编程逻辑器件原本处于同一时钟域下的各个功能模块能在同一时钟频率下的不同相位运行。Step S3: generate a configuration bit stream file, and download the configuration bit stream file to the programmable logic device to configure the programmable logic device; it should be clear that the design of the programmable logic device and some complicated upgrades or modifications after leaving the factory are all done through EDA ( Electronic design automation (electronic design automation) software executes the design process, and finally downloads the generated bit stream file to the programmable logic device to complete the design; therefore, the embodiment of the present application realizes the configuration of the programmable logic device function in steps S1 and S2 Finally, the corresponding configuration bit stream file should be generated, and the configuration bit stream file should be downloaded to the programmable logic device to configure the programmable logic device to realize the functions of step S1 and step S2. After the configured programmable logic device is actually running After receiving the clock input signal, it will convert the clock input signal into several clock output signals with different phases and output them to the functional modules of the programmable logic device respectively, so that the functional modules of the programmable logic device originally in the same clock domain Ability to operate at different phases at the same clock frequency.
应当明确,对于已经出厂的可编程逻辑器件,实现本申请实施例提供的可编程逻辑器件的时钟配置方法时,如果只是要对可编程逻辑器件进行简单的升级或修改,如只需要将时钟输入信号分解为少数个不同相位的时钟输出信号时,可以直接通过可编程逻辑器件的硬件进行配置(分解为两个或三个时钟输出信号时,或者有些可编程逻辑器件在设计时能自定义哪种情况下可以直接配置),此时可以不使用EDA软件实施。It should be clear that for programmable logic devices that have been shipped out of the factory, when implementing the clock configuration method for programmable logic devices provided by the embodiment of the present application, if only a simple upgrade or modification of the programmable logic device is required, for example, only the clock input When the signal is decomposed into a few clock output signals with different phases, it can be configured directly through the hardware of the programmable logic device (when it is decomposed into two or three clock output signals, or some programmable logic devices can customize which In this case, it can be directly configured), and at this time, it can be implemented without using EDA software.
在一些实施例中,本申请实施例提供的可编程逻辑器件的时钟配置方法,步骤S1:配置可编程逻辑器件为将接收到的时钟输入信号转换为若干个不同相位的时钟输出信号的步骤包括:In some embodiments, the clock configuration method of a programmable logic device provided by the embodiment of the present application, step S1: the step of configuring the programmable logic device to convert the received clock input signal into several clock output signals with different phases includes :
根据功能模块的数量配置可编程逻辑器件的锁相环模块,使时钟输入信号经锁相环模块输出若干个不同相位的时钟输出信号。The phase-locked loop module of the programmable logic device is configured according to the number of functional modules, so that the clock input signal outputs several clock output signals with different phases through the phase-locked loop module.
图3为本申请实施例提供的可编程逻辑器件的时钟配置方法实现可编程逻辑器件的时钟配置的产品结构示意图,如图3所示,晶振时钟用于产生时钟输入信号,时钟输入信号经锁相环模块(PLL)后产生时钟输出信号并传输至可编程逻辑器件的各功能模块,其中,锁相环模块能根据各功能模块需要的时钟频率和电磁辐射的规范要求将接收到的时钟输入信号倍频、分频后转换为多个同频率但不同相位的时钟输出信号。Figure 3 is a schematic diagram of the product structure of the clock configuration method of the programmable logic device provided by the embodiment of the application to realize the clock configuration of the programmable logic device, as shown in Figure 3, the crystal oscillator clock is used to generate the clock input signal, and the clock input signal is locked The phase loop module (PLL) generates a clock output signal and transmits it to each functional module of the programmable logic device. Among them, the phase locked loop module can input the received clock according to the clock frequency and electromagnetic radiation requirements After the signal is multiplied and divided, it is converted into multiple clock output signals with the same frequency but different phases.
锁相环是一种利用相位同步产生电压,去调谐压控振荡器以产生目标频率的负反馈控制系统。最基础的锁相环系统主要包含三个基本模块:鉴相器、环路滤波器其实也就是低通滤波器,和压控振荡器。实际使用过程中,锁相环系统还会根据需求还会加一些分频器、倍频器、混频器等模块。本申请实施例的目的在于将时钟输入信号时钟调相为多个不同相位的时钟输出信号,锁相环模块实现时钟信号的倍频分频的工作原理也属于本领域常规技术手段,因此此处对于锁相环模块只进行简单的工作原理说明。A phase-locked loop is a negative feedback control system that uses phase synchronization to generate a voltage to tune a voltage-controlled oscillator to produce a target frequency. The most basic phase-locked loop system mainly includes three basic modules: phase detector, loop filter, which is actually a low-pass filter, and voltage-controlled oscillator. In actual use, the phase-locked loop system will also add some frequency dividers, frequency multipliers, mixers and other modules according to requirements. The purpose of the embodiment of the present application is to phase-modulate the clock input signal into multiple clock output signals with different phases. The working principle of the phase-locked loop module to realize the frequency multiplication and frequency division of the clock signal also belongs to the conventional technical means in the field, so here Only a simple description of the working principle of the phase-locked loop module is given.
在一些实施例中,本申请实施例提供的可编程逻辑器件的时钟配置方法,步骤S2:配置可编程逻辑器件的各功能模块分别接收时钟输出信号的步骤包括:In some embodiments, in the clock configuration method of the programmable logic device provided in the embodiment of the present application, step S2: the step of configuring each functional module of the programmable logic device to receive the clock output signal respectively includes:
例化可编程逻辑器件的原语,使锁相环模块输出的时钟输出信号为可编程逻辑器件全局时钟的时钟信号,或者为可编程逻辑器件局部时钟的时钟信号,以及使锁相环模块输出的时钟输出信号能驱动各功能模块。对于锁相环模块而言,通过直接例化锁相环模块对应的原语即能实现对可编程逻辑器件的配置,当改善可编程逻辑器件某一区域的电磁干扰时,可以通过将锁相环模块输出的时钟信号配置为该区域时钟的时钟信号,当改善可编程逻辑器件全局的电磁干扰时,可以通过将锁相环模块输出的时钟信号配置为可编程逻辑器件全局时钟的时钟信号,具体可以根据实际需求选择全局时钟或者区域时钟(局部时钟)进行配置。Instantiate the primitives of the programmable logic device, make the clock output signal output by the phase-locked loop module be the clock signal of the global clock of the programmable logic device, or the clock signal of the local clock of the programmable logic device, and make the output signal of the phase-locked loop module The clock output signal can drive each functional module. For the phase-locked loop module, the configuration of the programmable logic device can be realized by directly instantiating the corresponding primitives of the phase-locked loop module. When improving the electromagnetic interference in a certain area of the programmable logic device, the phase-locked The clock signal output by the loop module is configured as the clock signal of the regional clock. When improving the overall electromagnetic interference of the programmable logic device, the clock signal output by the phase-locked loop module can be configured as the clock signal of the global clock of the programmable logic device. Specifically, a global clock or a regional clock (local clock) can be selected for configuration according to actual requirements.
其中,可编程逻辑器件的原语即primitive,是厂商根据器件特征开发的一系列常用模块的名字,是芯片的基本元件,代表可编程逻辑器件实际用于的硬件逻辑单元。原语在设计中可以直接例化使用,是最直接的代码输入方式。Among them, the primitive of the programmable logic device is primitive, which is the name of a series of commonly used modules developed by the manufacturer according to the characteristics of the device. It is the basic component of the chip and represents the hardware logic unit actually used by the programmable logic device. Primitives can be instantiated and used in the design, which is the most direct way of code input.
在一些实施例中,本申请实施例提供的可编程逻辑器件的时钟配置方法,步骤S2中配置可编程逻辑器件的原语的步骤之后还包括:In some embodiments, the clock configuration method of the programmable logic device provided in the embodiment of the present application, after the step of configuring the primitives of the programmable logic device in step S2, further includes:
为功能模块配置数据缓存器,数据缓存器用于在可编程逻辑器件时钟相位不同时进行数据缓存,可编程逻辑器件功能模块的数据缓存器通常使用FIFO或者RAM;以FPGA为示例,FPGA内部的各功能模块通过FIFO或者RAM实现数据缓存,以避免不同时钟相位下各功能模块接收数据时造成各功能模块的功能异常。Configure the data buffer for the function module. The data buffer is used for data buffer when the clock phase of the programmable logic device is different. The data buffer of the function module of the programmable logic device usually uses FIFO or RAM; taking FPGA as an example, each internal FPGA The function modules implement data buffering through FIFO or RAM, so as to avoid the function abnormality of each function module when each function module receives data under different clock phases.
其中,FIFO(FirstInFirstOut,先进先出数据缓存器),FIFO的分类根据FIFO工作的时钟域分为同步FIFO和异步FIFO。同步FIFO是指读时钟和写时钟为同一个时钟。在时钟沿来临时同时发生读写操作。异步FIFO是指读写时钟不一致,读写时钟是互相独立的。同步FIFO常用于同步时钟的数据缓存,异步FIFO常用于跨时钟域的数据信号的传递。Among them, FIFO (FirstInFirstOut, first-in-first-out data buffer), the classification of FIFO is divided into synchronous FIFO and asynchronous FIFO according to the clock domain where FIFO works. Synchronous FIFO means that the read clock and write clock are the same clock. Read and write operations occur simultaneously at the clock edge. Asynchronous FIFO means that the read and write clocks are inconsistent, and the read and write clocks are independent of each other. Synchronous FIFOs are often used for data buffering of synchronous clocks, and asynchronous FIFOs are often used for transmission of data signals across clock domains.
在一些实施例中,本申请实施例提供的可编程逻辑器件的时钟配置方法,为功能模块配置数据缓存器的步骤之后还包括:In some embodiments, the clock configuration method of the programmable logic device provided in the embodiment of the present application further includes after the step of configuring the data buffer for the functional module:
根据可编程逻辑器件的区域约束将功能模块约束至功能模块的布局位置。本申请实施例提供的可编程逻辑器的时钟配置方法通过EDA软件实施时,在步骤S1和步骤S2配置完成后,为能实现可编程逻辑器件的正常工作,在将时钟输入信号分解为的不同相位的时钟输出信号时还应为各功能模块配置FIFO或RAM以实现缓存数据,以及为将各功能模块布局至相应的布局位置。The functional modules are constrained to the layout positions of the functional modules according to the area constraints of the programmable logic device. When the clock configuration method of the programmable logic device provided by the embodiment of the present application is implemented by EDA software, after step S1 and step S2 are configured, in order to realize the normal operation of the programmable logic device, the clock input signal is decomposed into different When outputting the phase clock signal, FIFO or RAM should be configured for each functional module to cache data, and to arrange each functional module to a corresponding layout position.
在一些实施例中,当功能模块的原布局位置受电磁干扰影响严重时,还可以为该功能模块重新布局,使该功能模块避开受电磁干扰影响严重的区域。In some embodiments, when the original layout position of the functional module is seriously affected by electromagnetic interference, the functional module can also be rearranged so that the functional module avoids the area seriously affected by electromagnetic interference.
其中,对各功能模块的布局通过区域约束实现,以FPGA为示例,区域约束在FPGA中的作用为:选定FPGA的某个位置定义基本设计单元,因为FPGA中有很多门级结构,综合和布局布线是按照设计逻辑进行的,布局资源具体位置可能是随机的,因此可以通过施加区域约束限定FPGA布局资源的位置。Among them, the layout of each functional module is realized through regional constraints. Taking FPGA as an example, the role of regional constraints in FPGA is: select a certain position of FPGA to define the basic design unit, because there are many gate-level structures in FPGA, synthesis and Layout and routing are carried out according to the design logic, and the specific location of layout resources may be random, so the location of FPGA layout resources can be limited by imposing area constraints.
本申请实施例提供的可编程逻辑器件的时钟配置方法,通过对可编程逻辑器件使用位流升级的方式,将可编程逻辑器件接收到的时钟输入信号进行时钟调相,分出多个不同相位的时钟输出信号,让可编程逻辑器件原处于同一时钟域下的各个功能模块能在同一时钟频率下的不同相位运行,使可编程逻辑器件内部的逻辑单元和相关电路器件避开了同一个时刻翻转的场景,进而让时钟辐射明显降低,在不增加额外硬件成本的基础上就能改善电磁干扰。The clock configuration method of the programmable logic device provided by the embodiment of the present application, by using the bit stream upgrade method for the programmable logic device, performs clock phase modulation on the clock input signal received by the programmable logic device, and separates multiple different phases The clock output signal of the programmable logic device allows each functional module of the programmable logic device to be in the same clock domain to run at different phases at the same clock frequency, so that the logic unit and related circuit devices inside the programmable logic device avoid the same time Flipping the scene, and then significantly reducing the clock radiation, can improve electromagnetic interference without adding additional hardware costs.
此外,本申请实施例提供的可编程逻辑器件的时钟配置方法还能根据实际需求进行多次迭代,不仅避免了重新设计硬件的复杂度,缩短了项目设计的时间周期,并且让产品在不同应用场景需求下通过升级可编程逻辑器件的位流便可以达到改善电磁干扰效果,如使用本申请实施例提供的可编程逻辑器件的时钟配置方法后还需要进一步降低电磁干扰的影响,则可以在上一次使用的基础上继续对时钟输入信号进行分解,以进一步降低电磁干扰。In addition, the clock configuration method for programmable logic devices provided by the embodiment of the present application can perform multiple iterations according to actual needs, which not only avoids the complexity of redesigning hardware, shortens the time period of project design, and allows products to be used in different applications. Under scenario requirements, the effect of electromagnetic interference can be improved by upgrading the bit stream of the programmable logic device. If it is necessary to further reduce the influence of electromagnetic interference after using the clock configuration method of the programmable logic device provided in the embodiment of this application, you can use the above The clock input signal continues to be decomposed on a one-use basis to further reduce electromagnetic interference.
基于上述可编程逻辑器件的时钟配置方法,本申请实施例还提供一种可编程逻辑器件的时钟配置装置40,如图4所示,该装置40包括:Based on the above-mentioned clock configuration method for a programmable logic device, an embodiment of the present application also provides a
第一配置模块100,用于配置可编程逻辑器件为将接收到的时钟输入信号转换为若干个不同相位的时钟输出信号;The
第二配置模块200,用于配置可编程逻辑器件的各功能模块分别接收时钟输出信号;其中,功能模块的数量与时钟输出信号的数量相同;The
第三配置模块300,用于生成配置位流文件,将配置位流文件下载至可编程逻辑器件以配置可编程逻辑器件,配置后的可编程逻辑器件用于:The
接收时钟输入信号,将时钟输入信号转换为若干个不同相位的时钟输出信号并分别输出至可编程逻辑器件的各所述功能模块。The clock input signal is received, and the clock input signal is converted into several clock output signals of different phases, which are respectively output to the functional modules of the programmable logic device.
关于上述可编程逻辑器件的时钟配置装置中各模块实现上述技术方案的其他细节,可参见上述实施例中提供的可编程逻辑器件的时钟配置方法中的描述,此处不再赘述。For other details of implementing the above technical solution by each module in the clock configuration device of the programmable logic device, refer to the description in the clock configuration method of the programmable logic device provided in the above embodiment, and details are not repeated here.
基于上述可编程逻辑器件的时钟配置方法,本申请实施例还提供了一种电子设备50,如图5所示,包括存储器51、处理器52以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述实施例提供的可编程逻辑器件的时钟配置方法的步骤。Based on the clock configuration method of the above-mentioned programmable logic device, the embodiment of the present application also provides an
基于上述可编程逻辑器件的时钟配置方法,本申请实施例还提供了一种计算机可读存储介质60,如图6所示,计算机可读存储介质60存储有计算机程序61,计算机程序61被处理器执行时实现上述实施例提供的可编程逻辑器件的时钟配置方法的步骤。Based on the clock configuration method of the above programmable logic device, the embodiment of the present application also provides a computer-
以上内容是结合具体的实施方式对本申请所作的进一步详细说明,不能认定本申请的具体实施只局限于这些说明。对于本申请所属技术领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干简单推演或替换,都应视为本申请的保护范围。The above content is a further detailed description of the present application in conjunction with specific implementation modes, and it cannot be considered that the specific implementation of the present application is limited to these descriptions. For those of ordinary skill in the technical field to which this application belongs, some simple deduction or substitutions can be made without departing from the concept of this application, which should be regarded as the protection scope of this application.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310095002.2A CN116015279A (en) | 2023-01-17 | 2023-01-17 | Clock configuration method, device, equipment and medium of programmable logic device |
| PCT/CN2024/070633 WO2024152915A1 (en) | 2023-01-17 | 2024-01-04 | Clock configuration method and apparatus for programmable logic device, and device and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310095002.2A CN116015279A (en) | 2023-01-17 | 2023-01-17 | Clock configuration method, device, equipment and medium of programmable logic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116015279A true CN116015279A (en) | 2023-04-25 |
Family
ID=86035879
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310095002.2A Pending CN116015279A (en) | 2023-01-17 | 2023-01-17 | Clock configuration method, device, equipment and medium of programmable logic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116015279A (en) |
| WO (1) | WO2024152915A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024152915A1 (en) * | 2023-01-17 | 2024-07-25 | 深圳市紫光同创电子有限公司 | Clock configuration method and apparatus for programmable logic device, and device and medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7340021B1 (en) * | 2003-11-13 | 2008-03-04 | Altera Corporation | Dynamic phase alignment and clock recovery circuitry |
| US7098707B2 (en) * | 2004-03-09 | 2006-08-29 | Altera Corporation | Highly configurable PLL architecture for programmable logic |
| CN1633145A (en) * | 2004-12-30 | 2005-06-29 | 上海贝豪通讯电子有限公司 | A TD-SCDMA handset circuit board realizing efficient integral layout |
| CN103677077A (en) * | 2013-12-18 | 2014-03-26 | 西安智多晶微电子有限公司 | Complex programmable logic device (CPLD) for strengthening clock management |
| CN116015279A (en) * | 2023-01-17 | 2023-04-25 | 深圳市紫光同创电子有限公司 | Clock configuration method, device, equipment and medium of programmable logic device |
-
2023
- 2023-01-17 CN CN202310095002.2A patent/CN116015279A/en active Pending
-
2024
- 2024-01-04 WO PCT/CN2024/070633 patent/WO2024152915A1/en not_active Ceased
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024152915A1 (en) * | 2023-01-17 | 2024-07-25 | 深圳市紫光同创电子有限公司 | Clock configuration method and apparatus for programmable logic device, and device and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2024152915A1 (en) | 2024-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6356123B1 (en) | Non-integer frequency divider | |
| US5317601A (en) | Clock distribution system for an integrated circuit device | |
| EP1575170A1 (en) | Highly configurable pll architecture for programmable logic device | |
| US5517147A (en) | Multiple-phase clock signal generator for integrated circuits, comprising PLL, counter, and logic circuits | |
| US5223833A (en) | Serial-parallel converting circuit | |
| US6078202A (en) | Semiconductor device having portions that operate at different frequencies, and method of designing the device | |
| US5230013A (en) | PLL-based precision phase shifting at CMOS levels | |
| US8977884B2 (en) | Shared-PLL audio clock recovery in multimedia interfaces | |
| US20080174347A1 (en) | Clock synchronization system and semiconductor integrated circuit | |
| CN116015279A (en) | Clock configuration method, device, equipment and medium of programmable logic device | |
| CN218181513U (en) | I2S master-slave mode control circuit | |
| US7236040B2 (en) | Method and apparatus for generating multiphase clocks | |
| US9582028B1 (en) | Circuits and methods of TAF-DPS based chip level global clock signal distribution | |
| US6677786B2 (en) | Multi-service processor clocking system | |
| US6477657B1 (en) | Circuit for I/O clock generation | |
| CN115714597A (en) | Universal PLL clock control circuit and SOC chip | |
| CN108768391B (en) | Frequency synthesizer system based on raspberry pi and Python language | |
| US20030145244A1 (en) | Glitchless clock selection circuit | |
| US20190087516A1 (en) | Concurrently optimized system-on-chip implementation with automatic synthesis and integration | |
| CN113325918B (en) | Clock management circuit, chip and electronic equipment | |
| CN117579059A (en) | A ring oscillator phase-locked loop based on oversampling SDM and multi-phase selection | |
| JP3235087B2 (en) | Clock generator for microprocessor | |
| WO2004001563A2 (en) | Clock signal generation and distribution via ring oscillators | |
| US6412099B1 (en) | Apparatus and method for converting logical connection information of circuit | |
| CN117707285A (en) | Automatic switching system for internal and external reference clocks for high-speed signal processing |
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 | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 518000 Guowei R & D building 401, No.015, Gaoxin South 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Ziguang Tongchuang Electronics Co.,Ltd. Address before: 518000 Guowei R & D building 401, No.015, Gaoxin South 1st Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Applicant before: SHENZHEN PANGO MICROSYSTEMS Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information |