Clock generation device, clock generation method and electronic equipment

By designing a clock generation device based on digital signals in the HDMI system, and using the frequency division module and clock selection module to generate the appropriate read clock signal, the problem of high power consumption and large occupation of the PLL circuit in the HDMI system is solved, and FIFO caching is realized The reading and writing speed is balanced, and the signal stability and accuracy are improved.

CN118550356APending Publication Date: 2024-08-27HAINING ESWIN IC DESIGN CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410508673.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the HDMI system, the PLL circuit is used to generate a read clock signal to balance the read and write speed of the FIFO buffer. However, it has the problems of high power consumption, high intellectual property costs, and occupied chip area.

Method used

Design a clock generation device that uses a plurality of first frequency division modules and clock selection modules to delete at least one of every N consecutive clock pulses in the write clock signal according to the received write clock signal and the target color depth of the image data. Frequency division is performed in the form of pulses to generate appropriate read clock signals to achieve integer and decimal frequency division to meet the read and write speed balance requirements under different color depths.

Benefits of technology

The device is completely based on digital signal processing, which avoids the clock glitch problem caused by analog signal conversion, improves the stability and accuracy of reading clock signals, saves chip area, reduces power consumption, and reduces intellectual property costs and packaging Use of pins.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550356A
    Figure CN118550356A
Patent Text Reader

Abstract

The embodiment of the invention provides a clock generation device, a clock generation method and electronic equipment. The clock generation device comprises a plurality of first frequency division modules which are respectively used for outputting corresponding read clock signals based on different frequency division coefficients; wherein the first frequency division module performs frequency division in a manner of deleting at least one clock pulse from every N continuous clock pulses in a received write clock signal to obtain a corresponding read clock signal; n is an integer greater than 1; the frequency division coefficient is greater than 1; and the clock selection module is connected with each first frequency division module and is used for determining a target frequency division coefficient according to the target color depth of the received image data and outputting the read clock signal output by the first frequency division module corresponding to the target frequency division coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic devices, and in particular, to a clock generating device, a clock generating method and an electronic device. Background Art

[0002] High Definition Multimedia Interface (HDMI) is a fully digital video and audio interface, mainly used to connect video devices such as high-definition televisions and computer monitors, and to transmit high-quality audio and video signals. In the HDMI system, the First In First Out (FIFO) buffering technology is usually used to handle the difference in data transmission rates between the sender (source) and the receiver (sink).

[0003] In order to ensure that audio and video data are played normally, the speed of writing data to the FIFO cache and the speed of reading data from the FIFO cache are required to be in a dynamic balance, which requires the clock frequencies at both ends of the FIFO cache to be in a dynamic balance, that is, the write clock frequency and the read clock frequency are dynamically balanced. The write clock frequency is provided by the source end, and the read clock is generated by the phase-locked loop (PLL) in the sink end according to the write clock frequency. Although the read clock generated by the PLL can meet the requirements of the read and write speed balance of the FIFO cache under different color depths, the PLL has problems such as high power consumption, high intellectual property (IP) related costs, and pin occupation. Summary of the invention

[0004] In view of this, embodiments of the present application provide a clock generating device, a clock generating method and an electronic device.

[0005] On the one hand, an embodiment of the present application provides a clock generating device, the clock generating device comprising:

[0006] A plurality of first frequency division modules, each used to output a read clock signal corresponding to a different frequency division coefficient; wherein the first frequency division module divides the received write clock signal by deleting at least one clock pulse for every N consecutive clock pulses to obtain the corresponding read clock signal; N is an integer greater than 1; and the frequency division coefficient is greater than 1;

[0007] A clock selection module is connected to each of the first frequency division modules, and is used to determine a target frequency division coefficient according to a target color depth of the received image data, and output the read clock signal output by the first frequency division module corresponding to the target frequency division coefficient.

[0008] In some embodiments, the first frequency division module includes:

[0009] A counting unit, configured to perform a pulse counting operation on the received write clock signal and output a count value; the counting unit resets the count value when the count value is equal to N;

[0010] A clock gating unit is connected to the counting unit; the clock gating unit is used to close the clock gating switch to delete the clock pulse when the received counting value is equal to the preset value, and to enable the clock gating switch when the received counting value is not equal to the preset value; wherein the preset value is determined according to the value of N.

[0011] In some embodiments, if the frequency division coefficient is equal to N / (N-1), the preset value is N;

[0012] If the frequency division coefficient is equal to N, the preset value is any value from 1 to N-1.

[0013] In some embodiments, the clock generating device further comprises:

[0014] The second frequency division module is connected to the clock selection module and is used for outputting the read clock signal having the same frequency as the write clock signal when the target color depth of the received image data is a specific value.

[0015] In some embodiments, the target frequency division coefficient is a ratio of the target color depth to a preset basic color depth.

[0016] On the other hand, an embodiment of the present application provides a clock generation method, the clock generation method comprising:

[0017] Get the write clock signal;

[0018] Based on different frequency division coefficients, frequency division is performed by deleting at least one clock pulse for every N consecutive clock pulses in the write clock signal to obtain corresponding multiple read clock signals; wherein N is an integer greater than 1; and the frequency division coefficient is greater than 1;

[0019] Determining a target frequency division coefficient according to a target color depth of the received image data;

[0020] The read clock signal corresponding to the target frequency division factor is output.

[0021] In some embodiments, the clock generation method further includes:

[0022] performing a pulse counting operation on the write clock signal;

[0023] Resetting the count value when the count value is equal to N;

[0024] The frequency division is performed by deleting at least one clock pulse for every N consecutive clock pulses in the write clock signal to obtain corresponding multiple read clock signals, including:

[0025] When the count value is equal to a preset value, the clock pulse is deleted to obtain the read clock signal; wherein the preset value is determined according to the value of N.

[0026] In some embodiments, the clock generation method further includes:

[0027] If the frequency division coefficient is set to N / (N-1), the preset value is set to N;

[0028] If the frequency division coefficient is set to N, the preset value is set to each value from 1 to N-1.

[0029] In some embodiments, the outputting the read clock signal corresponding to the target frequency division coefficient includes:

[0030] If the target frequency division coefficient is 1, the read clock signal having the same frequency as the write clock signal is output.

[0031] In some embodiments, determining the target frequency division coefficient according to the target color depth of the received image data includes:

[0032] The target frequency division coefficient is determined according to the ratio of the target color depth to a preset basic color depth.

[0033] The present application also provides an electronic device, the electronic device comprising:

[0034] An interface unit for receiving image data having a target color depth;

[0035] Any of the above-mentioned clock generating devices is used to output the read clock signal according to the target color depth of the image data.

[0036] The clock generating device provided in the embodiment of the present application can meet the requirements of the balance of the read and write speeds of the FIFO cache by selecting the corresponding first frequency division module to output the read clock signal corresponding to each frequency division coefficient according to different target color depths. The first frequency division module divides the frequency by deleting at least one clock pulse for every N consecutive clock pulses in the received write clock signal, which can not only realize integer frequency division, but also fractional frequency division, meeting the frequency requirements of the read clock signal for each target color depth. Compared with obtaining the read clock signal through the PLL circuit, the clock generating device in the embodiment of the present application obtains the read clock signal completely based on the processing of the digital signal. On the one hand, since there is no need to convert the digital signal into an analog signal, there will be no clock glitch problem caused by the fractional frequency division using an analog circuit; on the other hand, the problem of the read clock signal frequency being affected by the interference of the circuit signal based on the processing of the digital signal will hardly occur, which increases the stability and accuracy of the read clock signal frequency. In addition, the clock generating device removes the PLL circuit, which can greatly save chip area, reduce power consumption, save IP costs and reduce packaging pins. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The structure of the clock generating device in the embodiment of the present application is shown in FIG. Figure 1 ;

[0038] Figure 2 The structure of the clock generating device in the embodiment of the present application is shown in FIG. Figure 2 ;

[0039] Figure 3 The structure of the first frequency division module in the embodiment of the present application is shown in FIG. Figure 1 ;

[0040] Figure 4 Comparison of the pulse waveforms of the write clock signal and the read clock signal in the embodiment of the present application Figure 1 ;

[0041] Figure 5 Comparison of the pulse waveforms of the write clock signal and the read clock signal in the embodiment of the present application Figure 2 ;

[0042] Figure 6 Comparison of the pulse waveforms of the write clock signal and the read clock signal in the embodiment of the present application Figure 3 ;

[0043] Figure 7 The structure of the clock generating device in the embodiment of the present application is shown in FIG. Figure 3 ;

[0044] Figure 8 The pulse waveform comparison of the clock signal and the read clock signal in the embodiment of the present application is shown in FIG. Figure 4 ;

[0045] Fig. 9 The structure of the clock generating device in the embodiment of the present application is shown in FIG. Figure 4 ;

[0046] Fig.10 The structure of the first frequency division module in the embodiment of the present application is shown in FIG. Figure 2 ;

[0047] Fig.11 A schematic diagram of a clock generation method in an embodiment of the present application;

[0048] Fig.12 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the embodiments of the present application and the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] In the following description, a large number of specific details are given to provide a more thorough understanding of the present application. However, it is obvious to those skilled in the art that the present application can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present application, some technical features known in the art are not described; that is, all features of the actual embodiments are not described here, and well-known functions and structures are not described in detail.

[0051] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present application. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.

[0052] In order to thoroughly understand the present application, detailed steps and detailed structures will be presented in the following description to illustrate the technical solution of the present application. The preferred embodiments of the present application are described in detail below, but in addition to these detailed descriptions, the present application may also have other implementation methods.

[0053] In HDMI systems, FIFO buffer technology is usually used to handle data transmission rate differences or timing mismatches. For example, when the data processing speed of the sink end is lower than the data transmission speed of the source end, the FIFO buffer can temporarily store part of the data and wait for the sink end to process the previous data before continuing to read, ensuring the stable operation of the HDMI system. Among them, the speed of writing data to the FIFO buffer (write speed) can be controlled by the write clock signal; the speed of reading data from the FIFO buffer (read speed) can be controlled by the read clock signal. In order to ensure the normal playback of audio and video data, the speed of writing data to the FIFO buffer and the speed of reading data from the FIFO buffer must be balanced.

[0054] PLL can generate read clock signals of different frequencies synchronized with the received write clock signal based on the frequency and phase of the received write clock signal through internal phase-frequency comparator, phase-locked loop filter, voltage-controlled oscillator and divider. Although the read clock signal generated by configuring PLL under different color depths can meet the requirements of FIFO cache read and write speed balance, the PLL circuit itself needs to occupy a certain chip area and may consume more power. PLL also requires additional power supply and control signals, and therefore needs to occupy a certain package pin. In addition, PLL may also have the problem of increased intellectual property-related costs.

[0055] In view of this, an embodiment of the present application provides a clock generating device, such as Figure 1As shown, the clock generating device 100 includes a plurality of first frequency division modules 110 and a clock selection module 120. The plurality of first frequency division modules 110 are respectively used to output read clock signals corresponding to different frequency division coefficients; wherein, the first frequency division module 110 divides the received write clock signal by deleting at least one clock pulse for every N consecutive clock pulses to obtain the corresponding read clock signal; N is an integer greater than 1; and the frequency division coefficient is greater than 1. The clock selection module 120 is connected to each first frequency division module 110, and the clock selection module 120 is used to determine the target frequency division coefficient according to the target color depth of the received image data, and output the read clock signal output by the first frequency division module corresponding to the target frequency division coefficient. The write clock signal used to control the write speed can be recovered from the physical layer. Specifically, the physical layer converts the digital signal into a physical signal and transmits the data through a physical medium. In the received signal, the write clock signal can be extracted through the physical layer. The color depth of the data determines the amount of data required for each pixel of the image. The higher the color depth, the richer the color information contained in each pixel, so more data bits are required to represent it. Generally, 8-bit, 10-bit or 12-bit binary data is used to represent the color information of a pixel. In the HDMI system, the write clock signal determines the speed of writing image data into the FIFO buffer, and the read clock signal determines the speed of reading image data from the FIFO buffer. Here, the target color depth of the image data refers to: the color depth of the image data currently being transmitted. When the target color depth of the image data changes, the transmission rate of the image data will also change accordingly. For different target color depths, different frequency division coefficients can be determined based on the target color depth to adjust the output read clock signal frequency, thereby meeting the requirements for the balance of read and write speeds of the FIFO buffer.

[0056] The first frequency division module changes the number of pulses occurring within a predetermined time length by deleting some clock pulses in the clock signal, that is, changes the frequency of the clock signal. Specifically, the first frequency division module divides the received write clock signal by deleting at least one clock pulse for every N consecutive clock pulses to obtain a read clock signal with a suitable frequency. For the same write clock signal, multiple read clock signals with different frequencies can be obtained through different first frequency division modules. Among them, the ratio between the number of pulses occurring in the write clock signal within a predetermined time length and the number of pulses occurring in the read clock signal within a predetermined time length is the frequency division coefficient corresponding to the read clock signal. The clock selection module determines the target color depth of the image data based on the received image data; and determines the corresponding target frequency division coefficient based on the target color depth, and then selects the read clock signal corresponding to the target frequency division coefficient for output.

[0057] By deleting some clock pulses in the clock signal, not only integer division (division coefficient is a positive integer) but also fractional division (division coefficient is a fraction) can be achieved. For example, by deleting one clock pulse for every two consecutive clock pulses in the received write clock signal, a read clock signal with a division coefficient of 2 can be obtained; by deleting one clock pulse for every three consecutive clock pulses in the received write clock signal, a read clock signal with a division coefficient of 1.5 can be obtained.

[0058] It should be noted that the number of the first frequency division modules and the specific frequency division coefficients can be set according to actual conditions. Figure 2 As shown, the clock generating device 100 includes three first frequency division modules (1.25 frequency division module 211, 1.5 frequency division module 212 and 2 frequency division module 213) and a clock selection module 120. Among them, the 1.25 frequency division module 211 is used to output a read clock signal corresponding to a frequency division coefficient of 1.25; the 1.5 frequency division module 212 is used to output a read clock signal corresponding to a frequency division coefficient of 1.5; and the 2 frequency division module 213 is used to output a read clock signal corresponding to a frequency division coefficient of 2. The clock selection module 120 determines the target frequency division coefficient according to the target color depth of the received image data, and selects the read clock signal output by the first frequency division module corresponding to the target frequency division coefficient for output. Exemplarily, when the target frequency division coefficient is 1.25, the read clock signal output by the 1.25 frequency division module is selected for output; when the target frequency division coefficient is 1.5, the read clock signal output by the 1.5 frequency division module is selected for output.

[0059] The embodiment of the present application selects the corresponding first frequency division module to output the read clock signal corresponding to each frequency division coefficient according to different target color depths, which can meet the requirements of the balance of read and write speeds of the FIFO cache. The first frequency division module divides the frequency by deleting at least one clock pulse for every N consecutive clock pulses in the received write clock signal, which can not only realize integer frequency division, but also realize fractional frequency division, meeting the frequency requirements of the read clock signal for each target color depth. Compared with obtaining the read clock signal through the PLL circuit, the clock generating device in the embodiment of the present application obtains the read clock signal completely based on the processing of the digital signal. On the one hand, since there is no need to convert the digital signal into an analog signal, the clock burr problem caused by the fractional frequency division using an analog circuit will not occur. On the other hand, the problem of the read clock signal frequency being affected by the interference of the circuit signal based on the processing of the digital signal will hardly occur, which increases the stability and accuracy of the read clock signal frequency. In addition, the clock generating device removes the PLL circuit, which can greatly save chip area, reduce power consumption, save IP costs and reduce packaging pins.

[0060] In some embodiments, Figure 3As shown, the first frequency division module 110 includes a counting unit 111 and a clock gating unit 112. The counting unit 111 is used to perform a pulse counting operation on the received write clock signal and output a count value; the counting unit 111 resets the count value when the count value is equal to N. The clock gating unit 112 is connected to the counting unit 111; the clock gating unit 112 is used to turn off the clock gating switch when the received count value is equal to a preset value; wherein the preset value is determined according to the value of N.

[0061] In some embodiments, each first frequency division module connected to the clock selection module includes a counting unit and a clock gating unit. The counting unit is used to perform a pulse counting operation on the received write clock signal and output a count value; the counting unit resets the count value when the count value is equal to a preset N value. It is understandable that for different frequency division coefficients, the preset N value in the counting unit in different first frequency division modules is different.

[0062] In some embodiments, the counting unit performs a pulse counting operation on the received write clock signal and outputs each count value. The clock gating unit receives each count value and, when the count value is equal to a preset value, turns off the clock gating switch to delete the clock pulse; when the received count value is not equal to the preset value, enables the clock gating switch to allow the clock pulse to be output normally.

[0063] Exemplarily, if N=3 and the preset value is 3, the counting unit performs a pulse counting operation on the received write clock signal and outputs each count value, including a count value equal to 1, a count value equal to 2, and a count value equal to 3; and resets the count value when the count value is equal to 3. The clock gating unit receives each count value and turns off the clock gating switch when the count value is equal to the preset value, that is, when the count value is equal to 3, to delete the clock pulse; when the count value is not equal to the preset value, that is, when the count value is equal to 1 or the count value is equal to 2, the clock gating switch is enabled so that the clock pulse is output normally. At this time, the frequency division coefficient corresponding to the first frequency division module including the counting unit and the clock gating unit is 1.5.

[0064] It should be noted that the initial value of the count value can also be a natural number other than 1. Exemplarily, the initial value of the count value is set to 0. If the frequency division coefficient is 1.5, that is, N=3 and the preset value is 3, there are three cases for the count value: specifically including the count value equal to 0, the count value equal to 1 and the count value equal to 2. At this time, the counting unit is configured to reset the count value when the count value is equal to 2. The clock gating unit is configured to receive each count value and turn off the clock gating switch when the count value is equal to 2 to delete the clock pulse; when the count value is not equal to 2, that is, when the count value is equal to 0 or the count value is equal to 1, the clock gating switch is enabled so that the clock pulse is output normally.

[0065] In some embodiments, if the frequency division coefficient is equal to N / (N-1), the preset value is N; if the frequency division coefficient is equal to N, the preset value is any value from 1 to N-1.

[0066] If the division coefficient is equal to N / (N-1), the preset value is N, and the first division module divides the received write clock signal by deleting one clock pulse for every N consecutive clock pulses to obtain the corresponding read clock signal. Exemplarily, if the division coefficient is equal to 1.25, N is equal to 5 at this time, and when the initial value of the count value is 1, the first division module divides the received write clock signal by deleting one clock pulse for every 5 consecutive clock pulses to obtain the corresponding read clock signal. Specifically, the counting unit performs a pulse counting operation on the received write clock signal, and outputs a clock deletion signal when the count value is equal to 5. The clock gating unit receives the clock deletion signal and turns off the clock gating switch to delete the clock pulse. When the count value is not equal to 5, that is, the count value is equal to 1, the count value is equal to 2, the count value is equal to 3 or the count value is equal to 5, the counting unit outputs a clock enable signal. The clock gating unit receives the clock enable signal and enables the clock gating switch so that the clock pulse is output normally. The waveform of the write clock signal is similar to the waveform of the read clock signal output by the 1.25 division module as shown in FIG. Figure 4 As shown. If the division coefficient is equal to 1.5, N is equal to 3 at this time. When the initial value of the count value is 1, the first division module (1.5 division module) divides the received write clock signal by deleting one clock pulse for every 3 consecutive clock pulses to obtain the corresponding read clock signal. Specifically, the counting unit performs a pulse counting operation on the received write clock signal, and outputs a clock deletion signal when the count value is equal to 3. The clock gating unit receives the clock deletion signal and turns off the clock gating switch to delete the clock pulse. When the count value is not equal to 3, that is, when the count value is equal to 1 or the count value is equal to 2, the counting unit outputs a clock enable signal. The clock gating unit receives the clock enable signal and enables the clock gating switch so that the clock pulse is output normally. The waveform of the write clock signal and the waveform of the read clock signal output by the 1.5 division module are shown as follows. Figure 5 shown.

[0067] If the frequency division coefficient is equal to N, the preset value is each value from 1 to N-1, and the first frequency division module divides the received write clock signal by deleting N-1 clock pulses for every N consecutive clock pulses to obtain the corresponding read clock signal. Exemplarily, if the frequency division coefficient is equal to 3, then N is equal to 3, and when the initial value of the count value is 1, the preset values ​​are 1 and 2. The first frequency division module divides the received write clock signal by deleting 2 clock pulses for every 3 consecutive clock pulses to obtain the corresponding read clock signal. Specifically, the counting unit performs a pulse counting operation on the received write clock signal, and outputs a clock deletion signal when the count value is equal to 1 or the count value is equal to 2. The clock gating unit receives the clock deletion signal and turns off the clock gating switch to delete the clock pulse. When the count value is not equal to 1 or the count value is not equal to 2, that is, when the count value is equal to 3, the counting unit outputs a clock enable signal. The clock gating unit receives the clock enable signal and enables the clock gating switch so that the clock pulse is output normally. The waveform of the write clock signal is similar to the waveform of the read clock signal output by the 3-frequency division module as shown in FIG. Figure 6 shown.

[0068] In some embodiments, the target frequency division coefficient is a ratio of the target color depth to a preset basic color depth.

[0069] The preset basic color depth can be set according to actual conditions. Specifically, the minimum value among the target color depths can be determined as the basic color depth according to multiple target color depths corresponding to different image data. For example, when the target color depths of the image data are 8 bits, 10 bits, and 12 bits, respectively, the basic color depth is determined to be 8 bits. It should be noted that the frequency division coefficient corresponding to the target color depth is related to the preset basic color depth. When the preset basic color depth changes, the frequency division coefficients corresponding to each target color depth will also change accordingly.

[0070] According to the determined basic color depth and target color depth, the target frequency division coefficient corresponding to each target color depth can be obtained. Exemplarily, if the preset basic color depth is 8, the target frequency division coefficient is equal to the ratio of the target color depth of the image data to 8. Specifically, if the target color depth is 10, the target frequency division coefficient corresponding to the image data is 10 / 8, that is, 1.25; if the target color depth is 12, the target frequency division coefficient corresponding to the image data is 12 / 8, that is, 1.5; if the target color depth is 16, the target frequency division coefficient corresponding to the image data is 16 / 8, that is, 2; if the target color depth is 24, the target frequency division coefficient corresponding to the image data is 24 / 8, that is, 3. It should be noted that the preset basic color depth can also be other values, such as 10 or 12.

[0071] In some embodiments, Figure 7 As shown, the clock generating device 100 further includes a second frequency dividing module 130 .

[0072] The second frequency division module 701 is connected to the clock selection module 120 and is used to output a read clock signal having the same frequency as the write clock signal when the target color depth of the received image data is a specific value.

[0073] The second frequency division module is used to output a read clock signal with the same frequency as the write clock signal. When the target color depth of the image data received by the clock selection module is a specific value, that is, when the target color depth is the same as the preset basic color depth, the clock selection module selects the read clock signal output by the second frequency division module for output, that is, outputs a read clock signal with the same frequency as the write clock signal.

[0074] For example, if the preset basic color depth is 8, when the target color depth of the received image data is equal to the preset basic color depth, that is, when the target color depth of the received image data is also 8, the clock selection module selects the read clock signal output by the second frequency division module (that is, the 1-frequency division module) for output. The waveform of the read clock signal output by the 1-frequency division module is similar to the waveform of the write clock signal as shown in FIG. Figure 8 shown.

[0075] The present application also provides the following embodiments:

[0076] like Fig. 9 As shown, the clock generating device 100 includes a 1-division module 931 , a 1.25-division module 211 , a 1.5-division module 212 and a clock selecting module 120 .

[0077] The write clock signal recovered from the physical layer can generate read clock signals corresponding to different frequency division coefficients through different frequency division modules. For image data with different target color depths, the clock selection module can select different frequency division coefficients according to the target color depth for output. Specifically, when the target color depth is 8, select the 1 frequency division module, and output the read clock signal corresponding to the 1 frequency division module; when the target color depth is 10, select the 1.25 frequency division module, and output the read clock signal corresponding to the 1.25 frequency division module; when the target color depth is 12, select the 1.5 frequency division module, and output the read clock signal corresponding to the 1.5 frequency division module.

[0078] The 1-division module is used to output the read clock signal with the same frequency as the write clock signal. The 1-division module is implemented by a clock gating unit, wherein the clock gating unit switch is set to normally open. The 1.25-division module structure and the 1.5-division module structure are as follows: Fig.10As shown, it includes a counting unit 111 and a clock gating unit 112. Among them, the counting unit 111 generates a clock deletion signal, and the clock gating unit controls the switch of the clock gating unit to be closed after receiving the clock deletion signal, so as to turn off the input write clock signal, that is, to delete the clock. For the 1.5 frequency division module, the frequency is divided by deleting one clock pulse for every three consecutive clock pulses in the received write clock signal. Specifically, the maximum count value of the counting unit of the 1.5 frequency division module is 2, and when the count value is equal to 2, the clock deletion signal is at a low level, and the switch of the clock gating unit is closed; when the count value is equal to 0 or the count value is equal to 1, the clock deletion signal is at a high level, and the switch of the clock gating unit is enabled. For the 1.25 frequency division module, the frequency is divided by deleting one clock pulse for every five consecutive clock pulses in the received write clock signal. Specifically, the maximum count value of the counting unit of the 1.25 division module is 4. When the count value is equal to 4, the clock deletion signal is at a low level and the clock gating unit switch is closed; when the count value is equal to 0, the count value is equal to 1, the count value is equal to 2 or the count value is equal to 3, the clock deletion signal is at a high level and the clock gating unit switch is enabled.

[0079] The clock selection module extracts the current target color depth according to the image resource packet (for example, infoframe packet) sent from the source end, determines the corresponding frequency division coefficient according to the target color depth, and selects the read clock signal corresponding to the frequency division coefficient for output. Since the target color depth of the image data is determined after the timing is determined, the target color depth will not change during the video transmission process. The ordinary multi-select clock selection module can be implemented without the need to specially select a glitch-free clock selection module for reducing short interruptions or glitches on the clock signal when switching the clock source. In addition, the multi-select clock selection module has a simple interface and control logic, and the cost is relatively lower.

[0080] Based on the same inventive concept, the embodiment of the present application also provides a clock generation method, such as Fig.11 As shown, the clock generation method includes:

[0081] S111: Obtain a write clock signal.

[0082] S112: Based on different frequency division coefficients, frequency division is performed by deleting at least one clock pulse for every N consecutive clock pulses in the write clock signal to obtain corresponding multiple read clock signals; wherein N is an integer greater than 1; and the frequency division coefficient is greater than 1.

[0083] S113: Determine a target frequency division coefficient according to the target color depth of the received image data.

[0084] S114: Output a read clock signal corresponding to the target frequency division factor.

[0085] For example, if the target frequency division factor is 1.25, the frequency division can be performed by deleting 1 clock pulse for every 5 consecutive clock pulses in the write clock signal to obtain the read clock signal corresponding to the frequency division factor. If the target frequency division factor is 1.5, the frequency division can be performed by deleting 1 clock pulse for every 3 consecutive clock pulses in the write clock signal to obtain the read clock signal corresponding to the frequency division factor. If the target frequency division factor is 3, the frequency division can be performed by deleting 2 clock pulses for every 3 consecutive clock pulses in the write clock signal to obtain the read clock signal corresponding to the frequency division factor.

[0086] The clock generation method provided in the embodiment of the present application selects to output different read clock signals according to different target color depths, which can meet the read and write speed balance required by the FIFO cache under different color depths. By deleting at least one clock pulse for every N consecutive clock pulses in the received write clock signal, not only integer division can be achieved, but also fractional division can be achieved to meet the frequency requirements of the read clock for each target color depth. Compared with obtaining the read clock through the PLL circuit, the read clock signal is obtained completely based on the processing of the digital signal through the method of clock pulse deletion. On the one hand, since there is no need to convert the digital signal into an analog signal, the clock burr problem caused by the fractional division using an analog circuit will not occur. On the other hand, the problem of the read clock signal frequency being affected by the interference of the circuit signal based on the processing of the digital signal will hardly occur, which increases the stability and accuracy of the read clock signal frequency. In addition, the clock generation device removes the PLL circuit, which can greatly save chip area, reduce power consumption, save IP costs and reduce packaging pins.

[0087] In some embodiments, the clock generation method further comprises:

[0088] Performing pulse counting operation on the write clock signal;

[0089] When the count value is equal to N, reset the count value;

[0090] By deleting at least one clock pulse for every N consecutive clock pulses in the write clock signal, the corresponding multiple read clock signals are obtained, including: when the count value is equal to a preset value, the clock pulse is deleted to obtain the read clock signal; wherein the preset value is determined according to the value of N.

[0091] It should be noted that when the count value is not equal to the preset value, the clock pulse deletion operation is not performed, and the read clock signal remains consistent with the write clock signal.

[0092] In some embodiments, the clock generation method further comprises:

[0093] If the frequency division factor is set to N / (N-1), the preset value is set to N;

[0094] If the frequency division coefficient is set to N, the preset value is set to each value from 1 to N-1.

[0095] Exemplarily, if the frequency division coefficient is 1.25, that is, N / (N-1) is equal to 1.25, then N can be determined to be 5, and the preset value is set to 5. The read clock signal corresponding to the frequency division coefficient is obtained by deleting 1 clock pulse for every 5 consecutive clock pulses in the write clock signal. Specifically, a pulse counting operation is performed on the received write clock signal, and the clock gating switch is closed when the count value is equal to 5 to delete the clock pulse. When the count value is not equal to 5, that is, the count value is equal to 1, the count value is equal to 2, the count value is equal to 3, or the count value is equal to 5, the clock gating switch is enabled so that the clock pulse is output normally.

[0096] If the target frequency division coefficient is 1.5, that is, N / (N-1) is equal to 1.5, then N can be determined to be 3, and the preset value can be set to 3. The frequency division can be performed by deleting one clock pulse for every three consecutive clock pulses in the write clock signal to obtain a read clock signal corresponding to the frequency division coefficient. Specifically, a pulse counting operation is performed on the received write clock signal, and the clock gating switch is closed when the count value is equal to 3 to delete the clock pulse. When the count value is not equal to 3, that is, when the count value is equal to 1 or the count value is equal to 2, the clock gating switch is enabled so that the clock pulse is output normally.

[0097] If the target frequency division coefficient is 3, that is, N is equal to 3, and the preset value is set to each value from 1 to 2, the frequency division can be performed by deleting 2 clock pulses for every 3 consecutive clock pulses in the write clock signal to obtain the read clock signal corresponding to the frequency division coefficient. Specifically, a pulse counting operation is performed on the write clock signal, and the clock gating switch is closed when the count value is equal to 1 or the count value is equal to 2 to delete the clock pulse. When the count value is not equal to 1 or the count value is not equal to 2, that is, when the count value is equal to 3, the clock gating switch is enabled so that the clock pulse is output normally.

[0098] In some embodiments, determining a target frequency division coefficient according to a target color depth of received image data includes:

[0099] The target frequency division coefficient is determined according to the ratio of the target color depth to the preset basic color depth.

[0100] For example, if the preset basic color depth is 8, the target frequency division coefficient is the ratio of the target color depth to 8; if the target color depth is 10, the target frequency division coefficient is 1.25; if the target color depth is 12, the target frequency division coefficient is 1.5; if the target color depth is 16, the target frequency division coefficient is 2; if the target color depth is 24, the target frequency division coefficient is 3. It should be noted that the preset basic color depth can be determined according to actual conditions. In some other embodiments, the preset basic color depth can be 10 or 12.

[0101] In some embodiments, outputting a read clock signal corresponding to a target frequency division factor includes:

[0102] If the target frequency division factor is 1, a read clock signal having the same frequency as the write clock signal is output.

[0103] Specifically, when the target color depth of the received image data is equal to the preset basic color depth, the target frequency division coefficient is considered to be 1. Exemplarily, when the target color depth and the preset basic color depth are both 8, a read clock signal having the same frequency as the write clock signal is output.

[0104] Based on the same inventive concept, the embodiment of the present application further provides an electronic device 200, such as Fig.12 As shown, the electronic device 200 includes:

[0105] An interface unit 210, for receiving image data having a target color depth;

[0106] Any of the above-mentioned clock generating devices 100 is used to output a read clock signal according to a target color depth of image data.

[0107] Since the clock generating device has the above beneficial effects, the electronic device has the beneficial technical effects similar to those of the above clock generating method. Therefore, the beneficial effects of the electronic device will not be repeated here.

[0108] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0109] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0110] The various embodiments / implementations provided in this application can be combined with each other without causing any contradiction.

[0111] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A clock generating device, characterized in that: The clock generating device comprises: A plurality of first frequency division modules, each used to output a read clock signal corresponding to a different frequency division coefficient; wherein the first frequency division module divides the received write clock signal by deleting at least one clock pulse for every N consecutive clock pulses to obtain the corresponding read clock signal; N is an integer greater than 1; and the frequency division coefficient is greater than 1; A clock selection module is connected to each of the first frequency division modules, and is used to determine a target frequency division coefficient according to a target color depth of the received image data, and output the read clock signal output by the first frequency division module corresponding to the target frequency division coefficient.

2. The clock generating device according to claim 1, characterized in that: The first frequency division module includes: A counting unit, configured to perform a pulse counting operation on the received write clock signal and output a count value; the counting unit resets the count value when the count value is equal to N; A clock gating unit is connected to the counting unit; the clock gating unit is used to close the clock gating switch to delete the clock pulse when the received counting value is equal to the preset value, and to enable the clock gating switch when the received counting value is not equal to the preset value; wherein the preset value is determined according to the value of N.

3. The clock generating device according to claim 2, characterized in that: If the frequency division coefficient is equal to N / (N-1), the preset value is N; If the frequency division coefficient is equal to N, the preset value is any value from 1 to N-1.

4. The clock generating device according to any one of claims 1 to 3, characterized in that: Also includes: The second frequency division module is connected to the clock selection module and is used for outputting the read clock signal having the same frequency as the write clock signal when the target color depth of the received image data is a specific value.

5. The clock generating device according to any one of claims 1 to 3, characterized in that: The target frequency division coefficient is a ratio of the target color depth to a preset basic color depth.

6. A clock generation method, characterized in that: The clock generation method comprises: Get the write clock signal; Based on different frequency division coefficients, frequency division is performed by deleting at least one clock pulse for every N consecutive clock pulses in the write clock signal to obtain corresponding multiple read clock signals; wherein N is an integer greater than 1; and the frequency division coefficient is greater than 1; Determining a target frequency division coefficient according to a target color depth of the received image data; The read clock signal corresponding to the target frequency division factor is output.

7. The clock generation method according to claim 6, characterized in that: The method further comprises: performing a pulse counting operation on the write clock signal; Resetting the count value when the count value is equal to N; The frequency division is performed by deleting at least one clock pulse for every N consecutive clock pulses in the write clock signal to obtain corresponding multiple read clock signals, including: When the count value is equal to a preset value, the clock pulse is deleted to obtain the read clock signal; wherein the preset value is determined according to the value of N.

8. The clock generation method according to claim 7, characterized in that: The method further comprises: If the frequency division coefficient is set to N / (N-1), the preset value is set to N; If the frequency division coefficient is set to N, the preset value is set to each value from 1 to N-1.

9. The clock generation method according to any one of claims 6 to 8, characterized in that: The outputting the read clock signal corresponding to the target frequency division coefficient comprises: If the target frequency division coefficient is 1, the read clock signal having the same frequency as the write clock signal is output.

10. The clock generation method according to any one of claims 6 to 8, characterized in that: The step of determining a target frequency division coefficient according to a target color depth of the received image data includes: The target frequency division coefficient is determined according to the ratio of the target color depth to a preset basic color depth.

11. An electronic device, characterized in that: The electronic device comprises: An interface unit for receiving image data having a target color depth; The clock generating device according to any one of claims 1 to 5, configured to output the read clock signal according to a target color depth of the image data.

Citation Information

Cited By

  • N.5 frequency dividing circuit based on S-counter and 1 / 1. 5 prescaler

    CN118646405A