Design Example of Half-Integer Frequency Divider Based on CPLD/FPGA

Publisher:明石轩Latest update time:2011-05-27 Source: 与非网Keywords:CPLD Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

CPLD (Complex programmable logic device) and FPGA (Field programmable gate array) are both programmable logic devices, which are developed on the basis of PAL, GAL and other logic devices. Compared with the previous PAL and GAL, FPGA/CPLD is larger in scale and suitable for the application of sequential, combinational and other logic circuits. It can replace dozens or even hundreds of general-purpose IC chips. This chip has the characteristics of being programmable and easy to change the implementation scheme. Since the description of the hardware connection relationship inside the chip can be stored in a disk, ROM, PROM, or EPROM, a new function can be realized by replacing an EPROM chip while the programmable gate array chip and peripheral circuits remain unchanged. It has the advantages of short design and development cycle, low design and manufacturing cost, advanced development tools, no need to test standard products, stable quality and real-time inspection, so it can be widely used in product principle design and product production. FPGA and CPLD devices can be applied to almost all occasions where gate arrays, PLDs and small and medium-sized general-purpose digital integrated circuits are used.

In modern electronic systems, digital systems account for an increasing proportion. The trend of system development is digitalization and integration, and CPLD/FPGA, as a programmable ASIC (application-specific integrated circuit) device, will play an increasingly important role in digital logic systems.

In digital logic circuit design, the frequency divider is a basic circuit. It is usually used to divide a given frequency to obtain the required frequency. The implementation of the integer frequency divider is very simple. It can be implemented using a standard counter or a programmable logic device. However, in some cases, the clock source is not an integer multiple of the required frequency. In this case, a fractional frequency divider can be used for frequency division. For example: a half-integer frequency divider with a frequency division coefficient of 2.5, 3.5, 7.5, etc. When simulating the design of the frequency meter pulse signal, the author used a circuit such as a half-integer frequency divider. Since the clock source signal is 50MHz, and the circuit needs to generate a 20MHz clock signal with a division ratio of 2.5, integer frequency division will not be able to do the job. In order to solve this problem, the author used the VIDL hardware description language and schematic input method, and conveniently completed the design of the half-integer frequency divider circuit through MAX+plusII development software and ALTERA's FLEX series EPF10K10LC84-4 FPGA.

2 Basic principles of fractional frequency division

The basic principle of fractional frequency division is to use pulse throughput counter and phase-locked loop technology to first design two integer frequency dividers with different frequency division ratios, and then obtain the required fractional frequency division value by controlling the different number of times the two frequency division ratios appear in a unit time. For example, when designing a frequency divider with a frequency division coefficient of 10.1, the frequency divider can be designed to be 9 times 10 division and 1 time 11 division, so the total frequency division value is:

F=(9×10+1×11)/(9+1)=10.1

From the characteristics of this implementation method, it can be seen that the signal jitter obtained after frequency division is large because the frequency division value of the frequency divider is constantly changing. When the frequency division coefficient is N-0.5 (N is an integer), the time of deducting the pulse can be controlled to make the output a stable pulse frequency, rather than N division once and N-1 division once.

Modulo 3 counter simulation waveform

Figure 2 Modulo 3 counter simulation waveform

3 Circuit composition

The divider circuit with a division factor of N-0.5 can be composed of an XOR gate, a modulo-N counter and a divider by two. When implementing, the modulo-N counter can be designed as a counter with a preset, so that any divider with a division factor of N-0.5 can be realized. Figure 1 shows the circuit composition of a general half-integer divider.
Using the VHDL hardware description language, any modulo-N counter (whose operating frequency can reach more than 160MHz) can be realized, and a modulo-N logic circuit can be generated. After that, the modulo-N logic circuit, the XOR gate and the D flip-flop are connected using the schematic input method to realize a half-integer (N-0.5) divider and a (2N-1) divider. [page]

4 Half-integer divider design

This paper presents a general method of designing a half-integer frequency divider using FPGA by designing a frequency divider with a division factor of 2.5. The 2.5 frequency divider consists of a modulo 3 counter, an XOR gate and a D flip-flop.

2

Figure 3 2.5 divider circuit schematic

4.1 Modulo 3 Counter

This counter can generate a frequency divider with a frequency division factor of 3 and generate a default logic symbol COUNTER3. Its input ports are RESET, EN and CLK; its output ports are QA and QB. The following is the VHDL description code of the modulo 3 counter:

program

The description structure of the arbitrary modulus counter is exactly the same as that of the modulo 3 counter, the only difference is the number of states of the counter. After the above program is compiled and time-series simulated, the simulation waveform shown in Figure 2 can be obtained in MAX+PLUSII. [page]

4.2 Complete circuit and waveform simulation

COUNTER3, XOR gate and D flip-flop are connected through the circuit logic relationship shown in Figure 3, and are imported into the graphic editor using the schematic input method. Then, the simulation waveform shown in Figure 4 can be obtained through logic synthesis. From the waveforms of outclk and inclk in the figure, it can be seen that outclk will generate a rising edge every 2.5 cycles of inclk, thereby realizing a frequency divider with a division factor of 2.5. If inclk is 50MHz, then outclk is 20MHz. Therefore, it can be seen that this circuit can not only obtain a frequency divider with a division factor of 2.5 (outclk), but also a frequency divider with a division factor of 5 (Q1).

5 Conclusion

After using ALTERA's FLEX series EPF10K10LC84-4 FPGA device to implement half-integer frequency division, the adaptation analysis results after logic synthesis are listed in Table 1. The counter in this example is a 2-bit wide bit vector, that is, the frequency division coefficient is a half-integer value within 4. If the frequency division coefficient is greater than 4, the bit width of count needs to be increased.

Table 1 Half-integer divider adaptation analysis results

Half-integer divider adaptation analysis results

Keywords:CPLD Reference address:Design Example of Half-Integer Frequency Divider Based on CPLD/FPGA

Previous article:Design of SD card read-write controller based on Avalon bus
Next article:Application of PSoC in the acquisition of fiber optic gyroscope pulse output

Recommended ReadingLatest update time:2024-11-17 00:37

FPGA realizes timing synchronization of OFDM underwater acoustic communication system
introduction Orthogonal Frequency Division Multiplexing (OFDM) is a multi-carrier modulation technology that decomposes a broadband channel into a group of mutually orthogonal narrowband sub-channels and uses each sub-channel for parallel data transmission. Therefore, it has high spectrum utilization and strong
[Embedded]
FPGA realizes timing synchronization of OFDM underwater acoustic communication system
LiDAR: The choice between FPGA and ASIC
Real-time processing of LiDAR point clouds, sometimes exceeding 1 million data points per second, requires a high level of computing to accelerate point cloud deep learning algorithms. LiDAR 3D point cloud data is processed by preprocessing through steps such as removing unnecessary data, filtering relevant data, and
[Automotive Electronics]
LiDAR: The choice between FPGA and ASIC
Design and FPGA Implementation of Multi-Rate Convolutional Encoder in L-DACS1
introduction In order to solve the high communication speed and high bandwidth requirements brought about by the growth of ground-to-air data transmission business, the International Civil Aviation Organization (ICAO) requires civil aviation communications to transition from aeronautical telegraph dedicated networks t
[Power Management]
Design and FPGA Implementation of Multi-Rate Convolutional Encoder in L-DACS1
Mir FPGA core board is on the market! Domestic Unisplendour Logos-2 core board and Xilinx Artix-7 core board
New products are on the market! Mir domestic FPGA core board Unisplendour Logos-2 series and Xilinx Artix-7 core board With the rapid development of embedded systems, FPGA is increasingly being chosen by engineers in the fields of industrial control, communications, and 5G communications due to its
[Embedded]
Mir FPGA core board is on the market! Domestic Unisplendour Logos-2 core board and Xilinx Artix-7 core board
Design of register keyboard for external interrupt of DM642 and CPLD
Abstract: This paper introduces a keyboard extension method using DM642 and CPLD. CPLD manages the chip logic in the keyboard circuit, and the external interrupt of DM642 monitors the status of the keys. The classification of keyboards is briefly explained, the hardware circuit schematic diagram of the system is giv
[Embedded]
Design of register keyboard for external interrupt of DM642 and CPLD
Design of temperature test system based on CPLD
1 System Design 1.1 Dynamic storage test The so-called storage test technology refers to a dynamic testing technology that places a micro storage test instrument in the tested object under the condition that there is no impact on the tested object or the impact is within the allowable range, completes the rapid co
[Test Measurement]
Design of temperature test system based on CPLD
Research and Design of HD-SDI Down-conversion Based on FPGA
Abstract: A method of converting high-definition digital TV signals into standard-definition digital TV signals using FPGA is studied. The effective pixels and vertical lines of each line in the image are reduced by resampling and other technologies, completing the down-conversion from HD-SDI to SD-SDI. The design i
[Embedded]
Research and Design of HD-SDI Down-conversion Based on FPGA
Design of large-screen LED dot matrix display system based on FPGA
LED screens have appeared as early as the 1960s, but full-color screens did not appear until the mid-1990s. The price of this technology has dropped significantly in recent years, and the resolution has also improved significantly. For video, the low-resolution performance of LED screens is good. The resolution of L
[Analog Electronics]
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号