US8294504B2 - Methods and systems related to a configurable delay counter used with variable frequency clocks - Google Patents
Methods and systems related to a configurable delay counter used with variable frequency clocks Download PDFInfo
- Publication number
- US8294504B2 US8294504B2 US12/919,077 US91907709A US8294504B2 US 8294504 B2 US8294504 B2 US 8294504B2 US 91907709 A US91907709 A US 91907709A US 8294504 B2 US8294504 B2 US 8294504B2
- Authority
- US
- United States
- Prior art keywords
- count
- value
- circuit
- input clock
- edge
- 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.)
- Active, expires
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K23/00—Pulse counters comprising counting chains; Frequency dividers comprising counting chains
- H03K23/64—Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
- H03K23/66—Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses
- H03K23/662—Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses by adding or suppressing pulses
Definitions
- the present invention relates generally to the use of delay counters, and in particular to a delay counter for use with a configurable clock.
- Communication protocols are often implemented using one or more finite state machines (FSMs).
- FSMs finite state machines
- the state machine becomes more complex. If only a few discrete frequencies are to be allowed, then the state machine can be designed to accommodate those frequencies, advancing the state when the appropriate limit has been reached.
- the frequency is allowed to be any value within some range, the discrete approach presented above is not practical.
- This problem can be solved by implementing a programmable register which is compared to the counter value.
- Software must program this register appropriately for the given frequency. For example, if the frequency is configured to be 500 MHz, the limit register could be programmed to a value of 100. If the frequency is 250 MHz, the limit register might be programmed to 50. And if the frequency is 400 MHz (not one of the originally considered discrete frequencies), the register can be programmed to 80.
- Comparators that must check against arbitrary values typically require either a full comparator, which can be implemented with exclusive OR gates, or a subtractor to detect greater-than-or-equal. For applications that use a large count value and a correspondingly large number of bits, implementing such comparison logic begins to require a prohibitive amount of logic.
- aspects of the present invention are directed to arrangements and approaches for a configurable counter for use with a plurality of different clock frequencies.
- the present invention involves use of a reset-able counter that produces multiple delay times as required by, for example, a FSM (finite state machine).
- the counter increments/decrements (counts) a stored value by a configurable amount. That configurable amount is determined based upon the period of a clock cycle divided by a desired time unit. Thus, the value held by the counter does not represent a count of clock cycles, but rather a count of time units.
- the present invention is directed to a device for generating fixed delays derived upon a variable frequency input clock.
- the device includes a memory, a count circuit and a comparison circuit.
- the memory is for storing a value that represents a number of time-units between consecutive clock edges of the input clock.
- the count circuit changes a current-count value by an amount corresponding to the stored value, the change being responsive to receiving a clock edge of the input clock.
- the comparison circuit compares the current-count value to a fixed value, wherein the fixed value represents a fixed delay time. In some implementations, the comparison circuit performs a greater than or equal comparison between the fixed value and the current-count value.
- the present invention involves a method for generating fixed delays derived upon a variable frequency input clock.
- the method includes: storing, in a memory, a count-by value that represents a number of time-units between consecutive clock edges of the input clock; changing a current-count value by an amount corresponding to the count-by value in response to receiving a clock edge of the input clock; comparing the current-count value to a fixed value, wherein the fixed value represents a fixed-delay time; and implementing an action in response to the comparison.
- FIG. 1 shows a block diagram of a system implemented according to an embodiment of the present invention
- FIG. 2 shows a configurable positive-going counter, according to an example embodiment of the present invention.
- FIG. 3 shows a configurable negative-going counter, according to an example embodiment of the present invention.
- the present invention is believed to be applicable to a variety of arrangements and approaches for a configurable counter for use with a plurality of different clock frequencies. While the present invention is not necessarily limited to such applications, an appreciation of various aspects of the invention is best gained through a discussion of examples in such an environment.
- a single reset-able counter is implemented.
- the counter is used to produce multiple delay times as required by, for example, a FSM (finite state machine).
- the counter increments/decrements (counts) a stored value by a configurable amount. That configurable amount is determined based upon the period of a clock cycle divided by a desired time unit. Thus, the value held by the counter does not represent a count of clock cycles, but rather a count of time units.
- the desired time unit is a single nanosecond
- the (configurable) clock frequency is 200 MHz.
- One clock cycle at 200 MHz takes 5 ns.
- the counter would be configured to count by 5 (i.e., 5 ns/1 ns). This can be accomplished by adding 5 to the counter value each clock cycle.
- the increment value is configured to add 8 to the counter each clock cycle (i.e., 8 ns per clock cycle).
- the counter will reach a value of 400 after only 50 clock cycles. Note that 50 clock cycles at 125 MHz is 400 ns, and thus, the count accurately represents the time delay.
- This same timeout counter and configured value (5 for 200 MHz, 8 for 125 MHz, etc) can be used for multiple delay times used by the FSM. For instance, one state might wait for the counter value to reach 400. Another state might wait for the counter value to reach only 200 (i.e., for a 200 ns delay).
- the counter itself, and the single configuration parameter can be used for multiple states, each having independent delays.
- the value in the counter might not land on the exact timeout desired.
- the timeout check can be implemented using a “greater-than-or-equal” type of comparison. For example, suppose a delay of 300 ns is needed using the two example clock frequencies given above. When the clock frequency is 200 MHz the count is by 5 and 300 ns is reached after 60 clock cycles. However, when the clock frequency is 125 MHz, the count is by 8. After 37 clock cycles, the counter value will be 296, and after clock cycle 38 , the counter value will be 304. Thus, the counter value never reaches exactly 300; however, 304 passes a greater-than-or-equal test when compared to 300, so the timeout can be considered finished.
- some frequencies cannot be represented as having a clock period with an integer number of nanoseconds. For example, consider an 80 MHz clock with a clock period of 12.5 ns. If it is important that the delay never be too short, the configured counter increment could be set to 12. Then when a 200 ns delay is required, and the counter is incrementing by 12, the counter value would reach 204 after 17 clock cycles. At 80 MHz (12.5 ns period), 17 clock cycles represent 212.5 ns.
- the units represented by the timeout counter can be set to something other than nanoseconds.
- An example of such a change would be to represent picoseconds (ps), which are 1000 times smaller than a nanosecond.
- the increment value would be 5000 instead of 5.
- the increment would be 8000, and for 80 MHz, the increment would be 12500.
- a trade-off can be made between accuracy and hardware resources. For example, instead of changing the count value to represent picoseconds (adding approximately 10 bits to the counter), another approach can be to change the counter value to represent 0.25 ns (adding only 2 bits to the counter). This reduces the maximum error for each clock cycle to less than 0.25 ns.
- FIG. 1 shows a block diagram of a system implemented according to an embodiment of the present invention.
- Counter 100 provides a count value to logic circuit 150 .
- logic circuit 150 is a FSM.
- Clock signal 108 determines the frequency at which counter 100 increments (or decrements) the count value.
- Clock frequency setting 102 represents a numerical value that is stored in a memory as represented by the count-by-X setting 104 .
- Accumulator 110 increments or decrements the current count by the amount of setting 104 on each occurrence of a clock event from clock signal 108 .
- a clock event could be represented by one or both of a negative or positive edge of the clock signal 108 .
- Reset 106 sets the current count value to a known value (e.g., zero).
- Logic circuit 150 receives the count value from accumulator 110 . This value is compared to one or more delay values using comparators 114 , 118 . The result of the comparison can be used by logic circuit 150 . For the example where logic circuit 150 is a FSM, states 116 and 120 use respective comparison results as a condition in the FSM. By setting the appropriate count-by-x setting 104 , the comparators 114 , 118 can be optimized to compare the received count to a single value independent of the frequency of clock signal 108 . This can be particularly useful for implementing the comparators that are optimized according to the single comparison value.
- the count-by-X setting 104 can be set using a variety of different methods and systems.
- the count-by-X setting is determined during an initial configuration of the device. This can be done, for example, during manufacturing of a device that includes the count circuit.
- a non-exclusive list of storage mechanisms includes non-volatile memory (e.g., eprom), component loading options (e.g., resistors loaded according to the desired frequency), cut-able traces, or fuses.
- the count-by-X setting is determined by a user of the count circuit.
- the user can be an Original-Equipment-Manufacture (OEM) who uses a circuit board or integrated-circuit chip that includes the count circuit.
- the count-by-X setting is dynamically adjustable. This can be implemented, for example, using processing logic that writes data representing the count-by-X setting to memory, which can be a volatile memory.
- the counter is implemented for use in the PHY of a communication stack that is designed to operate with a configurable clock frequency and fixed time delays (i.e., not contingent on the clock frequency).
- a software driver can be configured to set the count-by-X setting as the clock frequency is adjusted.
- the count-by-X setting can be set once. This can be particularly useful for facilitating the implementation of a product that is useable over a large number of different clock frequency settings.
- FIG. 2 shows a configurable positive-going counter, according to an example embodiment of the present invention.
- Counter 200 includes inputs for clock 216 , count-by-X setting 202 and reset 206 .
- Counter 200 outputs count 210 .
- Count 210 is the output resulting from an addition of components A ( 208 ) and B ( 214 ).
- Component B is equal to the count-by-X setting 202 .
- Component A is equal to the previous count 210 .
- Reset 206 resets the current count value to a known quantity (e.g., zero).
- the clock frequency is determined to be 200 MHz and the desired count value is ns.
- the count-by-X setting 202 is set to 5.
- the reset is released when the count is to begin.
- the count value begins at a known value, which can be zero. Assuming count output starts at zero, the count output transitions from 0 to 5 (0+5) after the first clock event. After the second clock event, the count output transitions from 5 to 10 (5+5). This sequence continues until the reset 206 is applied.
- FIG. 3 shows a specific embodiment of a configurable negative-going counter, according to an example embodiment of the present invention.
- Counter 300 includes inputs for clock 316 , count-by-X setting 302 , reset/load 304 and initialization value 312 .
- Count 310 is an output that results from the subtraction of component B ( 308 ) from component A ( 306 ).
- the initialization value can be set in much the same methods discussed in connection with the count-by-X setting.
- Reset/load 304 input determines when the count is to begin. When the count begins, the initialization value becomes the current count value. For each subsequent clock event, the current count value is decremented by the count-by-X setting. In this manner the count value counts down from the initialization value.
- the count down mechanism may be preferable as the comparator can simply look for a negative (or zero) value.
- the initialization value can be dynamically set for the different time-delays.
- the initialization value can be set according to the specific time-delay by, for example, a software driver that controls the communications (e.g., a driver for controlling Phy-based communications).
- a specific embodiment of the present invention is particularly useful for mobile communications devices, such as cellular phones.
- a counter is implemented for delays in the communication Phy of the mobile device.
- the Phy can include, for example, a wide-area-network (WAN) interface sublayer (WIS), as may be implemented in connection with a device that is consistent with UniPhy.
- WAN wide-area-network
- WIS wide-area-network interface sublayer
Landscapes
- Pulse Circuits (AREA)
Abstract
Description
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/919,077 US8294504B2 (en) | 2008-02-27 | 2009-02-27 | Methods and systems related to a configurable delay counter used with variable frequency clocks |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US3201708P | 2008-02-27 | 2008-02-27 | |
US12/919,077 US8294504B2 (en) | 2008-02-27 | 2009-02-27 | Methods and systems related to a configurable delay counter used with variable frequency clocks |
PCT/IB2009/050810 WO2009107105A2 (en) | 2008-02-27 | 2009-02-27 | Methods and systems related to a configurable delay counter used with variable frequency clocks |
Publications (2)
Publication Number | Publication Date |
---|---|
US20110050313A1 US20110050313A1 (en) | 2011-03-03 |
US8294504B2 true US8294504B2 (en) | 2012-10-23 |
Family
ID=40941739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US12/919,077 Active 2029-04-06 US8294504B2 (en) | 2008-02-27 | 2009-02-27 | Methods and systems related to a configurable delay counter used with variable frequency clocks |
Country Status (3)
Country | Link |
---|---|
US (1) | US8294504B2 (en) |
EP (1) | EP2250729A2 (en) |
WO (1) | WO2009107105A2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9797936B2 (en) | 2015-03-05 | 2017-10-24 | National Instruments Corporation | Counter enhancements for improved performance and ease-of-use |
TWI700893B (en) * | 2019-07-01 | 2020-08-01 | 奕力科技股份有限公司 | Time calibration circuit and time calibration method thereof |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20160046613A (en) * | 2014-10-21 | 2016-04-29 | 삼성전자주식회사 | Device and method for processing counter data |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4365201A (en) | 1979-10-30 | 1982-12-21 | U.S. Philips Corporation | Frequency synthesizer |
US5706322A (en) * | 1995-05-11 | 1998-01-06 | E-Systems, Inc. | Precision time of day counter |
US5744992A (en) * | 1995-12-20 | 1998-04-28 | Vlsi Technology, Inc. | Digital phase shifter |
US6044412A (en) | 1997-10-21 | 2000-03-28 | Vlsi Technology, Inc. | Integrated circuit pin sharing method and apparatus for diverse memory devices by multiplexing subsets of pins in accordance with operation modes |
US6690525B2 (en) * | 2001-05-25 | 2004-02-10 | Infineon Technologies Ag | High-speed programmable synchronous counter for use in a phase locked loop |
EP1521179A1 (en) | 2003-10-02 | 2005-04-06 | Broadcom Corporation | Phase controlled high speed interfaces |
US20070033337A1 (en) | 2005-08-05 | 2007-02-08 | Lsi Logic Corporation | Configurable high-speed memory interface subsystem |
US7330924B1 (en) | 2004-08-27 | 2008-02-12 | Xilinx, Inc. | Network media access controller embedded in a programmable logic device—physical layer interface |
US20080304352A1 (en) | 2007-06-11 | 2008-12-11 | Mediatek Inc. | Memory controllers and pad sequence control methods thereof |
-
2009
- 2009-02-27 US US12/919,077 patent/US8294504B2/en active Active
- 2009-02-27 WO PCT/IB2009/050810 patent/WO2009107105A2/en active Application Filing
- 2009-02-27 EP EP09716056A patent/EP2250729A2/en not_active Withdrawn
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4365201A (en) | 1979-10-30 | 1982-12-21 | U.S. Philips Corporation | Frequency synthesizer |
US5706322A (en) * | 1995-05-11 | 1998-01-06 | E-Systems, Inc. | Precision time of day counter |
US5744992A (en) * | 1995-12-20 | 1998-04-28 | Vlsi Technology, Inc. | Digital phase shifter |
US6044412A (en) | 1997-10-21 | 2000-03-28 | Vlsi Technology, Inc. | Integrated circuit pin sharing method and apparatus for diverse memory devices by multiplexing subsets of pins in accordance with operation modes |
US6690525B2 (en) * | 2001-05-25 | 2004-02-10 | Infineon Technologies Ag | High-speed programmable synchronous counter for use in a phase locked loop |
EP1521179A1 (en) | 2003-10-02 | 2005-04-06 | Broadcom Corporation | Phase controlled high speed interfaces |
US7330924B1 (en) | 2004-08-27 | 2008-02-12 | Xilinx, Inc. | Network media access controller embedded in a programmable logic device—physical layer interface |
US20070033337A1 (en) | 2005-08-05 | 2007-02-08 | Lsi Logic Corporation | Configurable high-speed memory interface subsystem |
US20080304352A1 (en) | 2007-06-11 | 2008-12-11 | Mediatek Inc. | Memory controllers and pad sequence control methods thereof |
Non-Patent Citations (4)
Title |
---|
ISA/EPO, International Search Report dated Apr. 28, 2010 for PCT/IB2009/053873. |
ISA/EPO, International Search Report dated Oct. 1, 2009 for PCT/IB2009/050810. |
PCT International Search Report and Written Opinion, PCT Application No. PCT/IB2009/050810, Oct. 1, 2009, 9 pages. |
PCT International Search Report and Written Opinion, PCT Application No. PCT/IB2009/053873, Apr. 28, 2010, 11 pages. |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9797936B2 (en) | 2015-03-05 | 2017-10-24 | National Instruments Corporation | Counter enhancements for improved performance and ease-of-use |
TWI700893B (en) * | 2019-07-01 | 2020-08-01 | 奕力科技股份有限公司 | Time calibration circuit and time calibration method thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2009107105A2 (en) | 2009-09-03 |
WO2009107105A3 (en) | 2009-11-19 |
US20110050313A1 (en) | 2011-03-03 |
EP2250729A2 (en) | 2010-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8847777B2 (en) | Voltage supply droop detector | |
US7269524B1 (en) | Delay lock loop delay adjusting method and apparatus | |
US20090238017A1 (en) | Digital dll circuit | |
US9647653B2 (en) | Method for reduced power clock frequency monitoring | |
JP2023515639A (en) | Calibration circuit, memory and calibration method | |
US7778093B2 (en) | Memory control circuit capable of dynamically adjusting deglitch windows, and related method | |
US8294504B2 (en) | Methods and systems related to a configurable delay counter used with variable frequency clocks | |
US20070252626A1 (en) | All-digital power-on reset device | |
US8761332B2 (en) | Dynamic prescaling counters | |
US8134389B2 (en) | Programmable frequency divider | |
KR20030017527A (en) | Baud rate generator with fractional devider | |
WO2018222641A1 (en) | Mid-cycle adjustment of internal clock signal timing | |
US7816961B2 (en) | System and method for signal adjustment | |
US8284879B2 (en) | Lossless transfer of events across clock domains | |
CN115085696A (en) | Deterministic jitter generator with controllable probability distribution | |
US8930739B2 (en) | Memory controller | |
US7886176B1 (en) | DDR memory system for measuring a clock signal by identifying a delay value corresponding to a changed logic state during clock signal transitions | |
US7009431B2 (en) | Interpolator linearity testing system | |
CN115826678A (en) | Method, device and system for calibrating clock phases of multiple FPGAs (field programmable gate arrays) and storage medium | |
US7962681B2 (en) | System and method of conditional control of latch circuit devices | |
US10665277B2 (en) | Timing calibration system and a method thereof | |
US10326433B2 (en) | Clock filter and clock processing method | |
US8552780B2 (en) | Method and apparatus for determining duty cycle of a clock in a circuit using a configurable phase locked loop | |
US10320395B2 (en) | Cascaded counter circuit with pipelined reload of variable ratio determined values | |
US8867698B2 (en) | Counting circuit, delay value quantization circuit, and latency control circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: VL C.V., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:NXP B.V;REEL/FRAME:024422/0067 Effective date: 20091116 |
|
AS | Assignment |
Owner name: SYNOPSYS, INC., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:VIRAGE LOGIC CORPORATION;VL C.V.;ARC CORES LIMITED;AND OTHERS;REEL/FRAME:025105/0907 Effective date: 20100902 |
|
AS | Assignment |
Owner name: VL C.V., CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:PONTIUS, TIMOTHY ALLEN;REEL/FRAME:025875/0449 Effective date: 20101106 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 8 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 12TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1553); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 12 |