1. Field
The present disclosure relates to systems and techniques for calibrating an integrated circuit to an electronic device.
2. Background
Integrated circuits have revolutionized the electronics industry by enabling new applications which were not possible with discrete devices. Integration allows complex circuits consisting of millions of electronic components to be packaged into a single chip of semiconductor material. In addition, integration offers the advantages of fabricating hundreds of chips on a single silicon wafer, which greatly reduces the cost and increases the reliability of each of the finished circuits.
Integrated circuits are widely used today in electronic devices to implement sophisticated circuitry such as general purpose and specific application processors. A controller integrated onto the chip may be used to interface the various processors with off chip components, such as external memory and the like. Clocks generated by the controller may be used to access these off-chip components. These clocks should operate at a specific nominal speed, within a certain allowed tolerance, to ensure that the controller can communicate with the off-chip components under worst case temperature and voltage conditions.
Due to processes inherent in the silicon wafer fabrication process, a set of chips generated from a single wafer may fall into a range of different process speed ratings. Depending on the application, some manufacturers are forced to discard slow chips and fast chips that are outside of the nominal tolerance range. This leads to large amounts of waste, which can be very costly.
In an attempt to preserve those portions of the wafer that do not produce nominal chips, some manufacturers engage in a method of speed binning, in which the various chips produced from a single wafer are tested and batched according to their graded process speed. This method of batching chips according to their speed is time consuming and costly. Further cost is incurred as a result of selling slow chips and fast chips at reduced prices.
Accordingly, there is a need for a methodology wherein the operation of all chips from a single wafer may be guaranteed under worst case temperature and voltage conditions.
In one aspect of the invention, an electronic device includes an electronic component and an integrated circuit configured to generate a system clock and an external clock having a programmable delay from the system clock, the integrated circuit being further configured to provide the external clock to the electronic component to support communications therewith, communicate with the electronic component, and calibrate the external clock delay as a function of the communications.
In another aspect of the present invention, a method of calibrating an integrated circuit to an electronic component, the integrated circuit having a system clock. The method includes generating an external clock on the integrated circuit, the external clock having a programmable delay from the system clock, providing the external clock from the integrated circuit to the electronic component to support communications therewith, communicating between the integrated circuit and the electronic component, and calibrating the external clock delay as a function of the communications.
In yet another aspect of the present invention, an electronic device includes an electronic component, and an integrated circuit. The integrated circuit includes means for generating a system clock, means for generating an external clock having a programmable delay from the system clock, means for providing the external clock to the electronic component to support communications therewith, means for communicating between the integrated circuit and the electronic component, and means for calibrating the external clock delay as a function of the communications.
In a further aspect of the present invention, computer readable media embodying a program of instructions executable by a processor performs a method of calibrating an integrated circuit to an electronic component, the integrated circuit including a system clock and an external clock having a programmable delay from the system clock, the external clock being provided to the electronic component to support communications therewith. The method includes communicating between the integrated circuit and the electronic component, and calibrating the external clock delay as a function of the communications.
It is understood that other embodiments of the present invention will become readily apparent to those skilled in the art from the following detailed description, wherein various embodiments of the invention are shown and described by way of illustration. As will be realized, the invention is capable of other and different embodiments and its several details are capable of modification in various other respects, all without departing from the spirit and scope of the present invention. Accordingly, the drawings and detailed description are to be regarded as illustrative in nature and not as restrictive.
Aspects of the present invention are illustrated by way of example, and not by way of limitation, in the accompanying drawings wherein:
The detailed description set forth below in connection with the appended drawings is intended as a description of various embodiments of the present invention and is not intended to represent the only embodiments in which the present invention may be practiced. Each embodiment described in this disclosure is provided merely as an example or illustration of the present invention, and should not necessarily be construed as preferred or advantageous over other embodiments. The detailed description includes specific details for the purpose of providing a thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the present invention. Acronyms and other descriptive terminology may be used merely for convenience and clarity and are not intended to limit the scope of the invention.
In the following detailed description, various aspects of the present invention may be described in the context of an integrated circuit coupled to external memory. The integrated circuit may be an Application Specific Integrated Circuit (ASIC) with multiple processors. The external memory may be a Synchronous Dynamic Random Access Memory (SDRAM) or similar device. While these inventive aspects may be well suited for use with these components, those skilled in the art will readily appreciate that these inventive aspects are likewise applicable for use in various other electronic devices. Accordingly, any reference to a specific type of integrated circuit or off-chip component is intended only to illustrate the inventive aspects, with the understanding that such inventive aspects have a wide range of applications.
The microprocessor 104 may be used as a platform to run application programs that, among other things, provide user control and overall system management functions for the electronic device. The DSP 106 may be implemented with an embedded communications software layer which runs application specific algorithms to reduce the processing demands on the microprocessor 104. The transceiver 108 may be used to provide access to an external medium, such as a radio link in the case of a wireless telephone, terminal, Personal Data Assistant (PDA), or other similar device. In some embodiments, the transceiver 108 may provide access to Ethernet, cable modem line, fiber optics, Digital Subscriber Line (DSL), Public Switched Telephone Network (PSTN), or any other communications medium. In other embodiments, the electronics device may be self-contained without a transceiver to support external communications. The I/O interface 110 may be used to support various user interfaces. The user interfaces may include a keypad, mouse, touch screen, audio speaker, microphone, camera and/or the like.
The EBI 112 may be used to provide access between the components on the ISB 114. The EBI 112 may include a controller that provides an interface between the ISB 114 and one or more off-chip components, such as external memory 118. The interface may include a clock bus 120, an address bus 122, a control bus 124, and a data bus 126. Although not shown, the EBI may also provide an interface to a Liquid Crystal Display (LCD) and/or other user interface devices.
In at least one embodiment of a electronic device, the external memory may be a SDRAM. Alternatively, the external memory may be a Burst NOR, Burst PSRAM, RAM, ROM, EPROM, EEPROM, or any other memory device. In the case of a SDRAM, the controller may be used to generate an external clock and a feedback clock from the system clock. The external clock may be provided to the SDRAM over the clock bus 120 to read from and write to the SDRAM. The feedback clock may be used by the controller to sample data read from the SDRAM.
An example of the timing requirements to write to the SDRAM is shown in
An example of the timing requirements to read from the SDRAM is shown in
The controller may be used to generate the external and feedback clocks. A multiplexer 408 may be used to select the appropriate system clock depending on whether the data is clocked out of the synchronous or asynchronous controller. In the embodiment shown, the multiplexer 408 may be set to select the system clock used by the synchronous controller 402 to interface to the SDRAM. An exclusive OR gate 410 may be used to provide flexibility by providing an inverted or non-inverted system clock to the output. A programmable delay cell 412 may be used to set the delay of the external clock. The multiplexer and exclusive OR gate controls, as well as the delay of the external clock, may be programmed by software running on the microprocessor 104, or by any other means. A bus driver 414 may be used to provide the external clock to the SDRAM.
The feedback clock may be generated from either the system clock or the external clock. In the described embodiment, both clocks may be provided to a multiplexer 416 to provide some versatility to the software programmer. The selected system clock may be provided to an exclusive OR gate 418. The exclusive OR gate 418 allows either the inverted or non-inverted clock to be used. A programmable delay cell 420 may be used to delay the feedback clock. The feedback clock may then be fed back to the controllers 402 and 404. The multiplexer and exclusive OR gate controls, as well as the delay of the feedback clock, may be programmed by software running on the microprocessor 104, or by any other means.
As discussed earlier, certain timing constraints imposed by the controller and the SDRAM may limit the possible delay settings for the external and feedback clocks. The delay setting for the external clock, for example, may be constrained by the minimum set-up and hold times for the SDRAM. Similarly, the delay setting for the feedback clock may be constrained by the minimum set-up, hold and resampling set-up times for the controller. These timing constraints can vary with process, temperature and voltage.
The delay settings for the external and feedback clocks may be programmed during a characterization procedure at the factory. This process may entail the collection of characterization data for the integrated circuit across process, voltage and temperature. The delay settings may then be computed in a worst case analysis from the characterization data and the timing specifications for the SDRAM. These computed delay settings may used to calibrate the programmable delay cells on the controller. This approach may work quite well for one particular process corner, but may not work well for others.
Various methods may be implemented to make the system work across all possible process, voltage and temperature variations. By way of example, faster, and perhaps, more expensive memory devices may be used. Alternatively, stricter limitations may be imposed on the process spread and process shift during fabrication resulting in a higher yield of chips that may be used. Perhaps, a more attractive approach involves calibrating the delay settings on a per-device basis. A calibration algorithm embodied in software, or implemented in any other manner, may be enabled during factory test, every time the electronic device boots up, or continuously during its operation.
The calibration algorithm will be described in connection with
Returning to
Returning to
The only remaining timing parameter for the read operation is the minimum resampling set-up time tset-up. Referring to
Returning to
Once the delay between the feedback clock and the external clock is determined, the calibration algorithm may be used to sweep the tuning range of the programmable delay cells while accessing memory. More specifically, the calibration algorithm may begin with zero delay between the system clock and the feedback clock and incrementally increase the delay. For each incremental delay, the calibration algorithm causes the controller to read from and write to the SDRAM and then classifies each read and write attempt as a failure or success depending on the outcome.
In step 504, chip voltage may be set to the lowest rated voltage. In step 506, a variable n may be set to zero. The delay between the system clock and the feedback clock may then be set to n, and the delay between the system clock and the external clock may be set to n+K. This is done in step 508. The controller may then attempt to write to and read from the SDRAM, in step 510, and record the results in step 512. Next, in step 514, the calibration algorithm may then determine whether n equals the maximum delay between the system clock and the feedback clock. The maximum delay is one clock cycle. If n is less than the maximum delay, then n may be incremented by one in step 516. The calibration algorithm may then loop back to step 508 to perform another read/write operation and record the results. If, on the other hand, n equals the maximum delay between the system clock and the feedback clock, then the calibration algorithm may determine whether the chip voltage is at the highest rated voltage in step 518. If the chip voltage is less than the highest rated voltage, then the calibration algorithm may increment the chip voltage by some amount in step 520, and loop back to step 506 to sweep the full tuning range of the programmable delay cells again while accessing memory. If, on the other hand, the chip voltage is at the maximum rated voltage, then the delay settings may be selected in step 522. Although not shown, a temperature loop may also be added to ensure proper operation under worst case temperature conditions. However, in many applications, the speed of the chip does not vary much with temperature relative to variations due to process and voltage. In these applications, the effects of temperature can be ignored.
The next bar graph 604 shows the results of the read/write operation at a chip voltage slightly below the nominal voltage. The lower boundary remains fixed at n=2, but the upper boundary has moved upward to n=28. This means that at a higher chip voltage, the minimum resampling set-up time tset-up at the controller is reduced. This trend continues as the chip voltage increases. In the next two bar graphs 606 and 608, the upper boundary is equal to the maximum delay settings. The bar graph 606 shows the results of the read/write operation at a chip voltage slightly above nominal and the bar graph 608 shows the same at the maximum rated chip voltage. This means that at high chip voltages, the minimum resampling set-up time tset-up at the controller can never be the cause of failure.
The bar graphs also show that lower boundary also increases with voltage. At a chip voltage slightly above nominal, the lower boundary has moved upward to n=3, and at the maximum rated chip voltage, the lower boundary is at n=5. This means that the programmable delay required to meet the minimum set-up time tset-up at the SDRAM increases as the chip voltage increases.
The bar graph 610 shows the final solution. The lower boundary is fixed by the maximum lower boundary of the bar graphs 602, 604, 606 and 608. The upper boundary is fixed by the minimum upper boundary of the same bar graphs. In this case, the final solution has a lower boundary at n=5 and an upper boundary at n=19. Thus, when n is between 5 and 19, inclusive, all five timing parameters can be guaranteed under worst case voltage conditions. The calibration algorithm may set the programmable delay cells (see
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The methods or algorithms described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in the terminal, or elsewhere. In the alternative, the processor and the storage medium may reside as discrete components in the terminal, or elsewhere.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
This application is related to and claims the benefit of the filing date of U.S. provisional application Ser. No. ______ (Attorney docket no. 50278-093), by Jagrut Patel, et. al., filed on Nov. 24, 2003, entitled “Calibrating an Integrated Circuit to an Electronic Device.”
Number | Date | Country | |
---|---|---|---|
60525103 | Nov 2003 | US |