US20070233411A1 - Method of test of clock generation circuit in electronic device, and electronic device - Google Patents

Method of test of clock generation circuit in electronic device, and electronic device Download PDF

Info

Publication number
US20070233411A1
US20070233411A1 US11/487,504 US48750406A US2007233411A1 US 20070233411 A1 US20070233411 A1 US 20070233411A1 US 48750406 A US48750406 A US 48750406A US 2007233411 A1 US2007233411 A1 US 2007233411A1
Authority
US
United States
Prior art keywords
electronic device
clock
clock source
circuit
counter
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.)
Granted
Application number
US11/487,504
Other versions
US7272527B1 (en
Inventor
Hiroyuki Suto
Masahide Kanegae
Osamu Kawashima
Michihiko Umeda
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Storage Device Corp
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Assigned to FUJITSU LIMITED reassignment FUJITSU LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: KANEGAE, MASAHIDE, KAWASHIMA, OSAMU, SUTO, HIROYUKI, UMEDA, MICHIHIKO
Application granted granted Critical
Publication of US7272527B1 publication Critical patent/US7272527B1/en
Publication of US20070233411A1 publication Critical patent/US20070233411A1/en
Assigned to TOSHIBA STORAGE DEVICE CORPORATION reassignment TOSHIBA STORAGE DEVICE CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: FUJITSU LIMITED
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31727Clock circuits aspects, e.g. test clock circuit details, timing aspects for signal generation, circuits for testing clocks

Definitions

  • the present invention relates to a method of test of a clock generation circuit in an electronic device having an external interface and to an electronic device, and in particular relates to a clock generation circuit testing method for an electronic device having a clock generation circuit for an interface faster than the internal clock of the electronic device, and to an electronic device.
  • Magnetic disk devices and other peripheral devices communicate with a host or similar through a prescribed interface.
  • SATA Serial AT Attachment
  • PCI Express Peripheral Component Interconnect Express
  • interface circuits are provided in existing peripheral devices.
  • existing peripheral devices are designed to operate at a prescribed clock frequency, and have an internal clock source.
  • the device when equipped with a high-speed interface circuit, it is necessary that the device also be equipped with a high-speed clock source to support this interface.
  • a clock source of which is 40 MHz a clock source of 75 MHz, 106.25 MHz, or 150 MHz is installed according to the interface speed. Quartz oscillators are used as such a clock source (see for example Japanese Patent Laid-open No. 64-077305).
  • an object of this invention is to provide a method for testing the clock generation circuit in an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, without using specialized tools or equipment.
  • a further object of the invention is to provide a clock generation circuit testing method for an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, in a testing process.
  • a further object of the invention is to provide a clock generation circuit testing method for an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, without leading to cost increases.
  • a further object of the invention is to provide a clock generation circuit testing method for an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, even after being supplied to the market.
  • a testing method of this invention is a method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, and has the steps of connecting an electronic device to be measured to an electronic device which serves as reference using the interface circuit, synchronizing the electronic device to be measured with the reference electronic device, and counting clock pulses of the clock source in use of counters in the electronic device to be measured and in the reference electronic device; halting, after a prescribed time has elapsed, the counting by the counters of the electronic device to be measured and the reference electronic device; transmitting the count value of the counter of the electronic device to be measured from the electronic device to be measured to the reference electronic device; and comparing the transmitted count value with the count value of the counter of the reference electronic device in the reference electronic device, and testing for deviations in the frequency of the clock source in the electronic device to be measured.
  • another testing method of this invention is a method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, and has the steps of; receiving transferred data into which is inserted alignment data in prescribed transfer units from an electronic device connected by the interface circuit; storing the received transferred data in a FIFO buffer using a clock synchronized with the transfer and of performing output using the clock of the clock source, as well as performing insertion and deletion of the alignment data in the FIFO buffer to prevent overflow and underflow of the FIFO buffer; and modifying at least one of the alignment insertion interval of the transferred data and the conditions for detection of overflow or underflow, judging whether overflow or underflow is detected, and testing for deviations in frequency of the clock source of the electronic device.
  • the other testing method of this invention is a method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, and has the steps of; starting, in use of an internal circuit which operates using a comparatively slow clock source, counting by a counter which counts clock pulses of the comparatively fast clock source and counting by an internal counter which counts the clock pulses of the comparatively slow clock source; detecting that the internal counter has reached a prescribed value, and of reading and outputting the count value of the counter; and inspecting, in use of the count value, for frequency deviation of the comparatively fast clock source of the electronic device.
  • the counting step has a step of transmitting a measurement start message from the reference electronic device to the electronic device to be measured, a step of responding with a measurement start message from the electronic device to be measured to the reference electronic device, and a step of counting the clock pulses of the clock sources by the counters of the electronic device to be measured and of the reference electronic device.
  • the test step has a step of comparing the FIFO pointer of the FIFO buffer with a prescribed threshold, and of judging whether overflow or underflow has been detected.
  • the test step has a step of judging whether the count value is within a range of the specification value corresponding to a prescribed frequency deviation.
  • an electronic device of this invention has a comparatively fast first clock source, an interface circuit which operates using the clock of the first clock source, a comparatively slow second clock source, and an internal circuit which is connected to the interface circuit and which operates in use of the clock of the second clock source.
  • the internal circuit counts in use of a counter the clock pulses of the first clock source in synchronization with an electronic device which is connected to the interface circuit and which serves as reference, transmits the count value of the counter to the reference electronic device after a prescribed amount of time has elapsed, and inspects for frequency deviation of the first clock source in the reference electronic device.
  • another electronic device of this invention has a comparatively fast first clock source, an interface circuit which operates using the clock of the first clock source, a comparatively slow second clock source, and an internal circuit, connected to the interface circuit, which operates using the clock of the second clock source.
  • the internal circuit has a reception circuit which receives transfer data into which alignment data has been inserted in prescribed transfer units, a FIFO buffer which stores the received transfer data using the clock synchronized with the transfer, and outputs the data with the clock of the clock source, and a FIFO control circuit which performs insertion and deletion of alignment data into and from the FIFO buffer to prevent FIFO buffer overflow and underflow.
  • the internal circuit receives the transfer data with the interval of alignment data insertion changed, or changes the detection conditions of overflow or underflow, judges whether overflow or underflow has been detected, and inspects for frequency deviation of the first clock source.
  • the other electronic device of this invention has a comparatively fast first clock source, an interface circuit which operates using the clock of the first clock source, and comparatively slow second clock source, and an internal circuit, connected to the interface circuit, which operates using the clock of the second clock source.
  • the interface circuit has a counter which counts the clock pulses of the first clock source; and the internal clock circuit starts counting by the counter and by an internal counter which counts the clock pulses of the second clock source, detects the fact that the internal counter has reached a prescribed value, reads out the count value of the counter, and uses the count values to inspect for frequency deviation of the first clock source.
  • the internal circuit receives a measurement start message transmitted from the reference electronic device, respond to the reference electronic device with a measurement start message, and use the counter to count the clock pulses of the first clock source.
  • the internal circuit includes a disk drive control circuit.
  • the FIFO control circuit compares the FIFO pointer of the FIFO buffer and a prescribed threshold value, and detects the presence of overflow or underflow.
  • high-speed clock pulses are counted in synchronization with a reference electronic device, and the result is checked, or, alignment of transferred data and the overflow/underflow of a FIFO buffer is utilized, or, the count values of an internal counter and the counter of a fast clock are utilized, to check for frequency deviation of the high-speed clock source; hence all clock sources can be inspected in the state of being mounted in a device.
  • FIG. 1 shows the configuration of the electronic device of one embodiment of the invention
  • FIG. 2 shows the configuration of the hard disk controller of FIG. 1 ;
  • FIG. 3 explains a method of test of a clock source in a first embodiment of the invention
  • FIG. 4 shows the configuration of an interface circuit in a second embodiment of the invention
  • FIG. 5 explains the format of transferred data in the second embodiment of the invention.
  • FIG. 6 explains normal operation of the FIFO buffer of FIG. 4 ;
  • FIG. 7 explains operation during overflow of the FIFO buffer of FIG. 4 ;
  • FIG. 8 explains operation during underflow of the FIFO buffer of FIG. 4 ;
  • FIG. 9 is a diagram of the flow of clock source test processing in a third embodiment of the invention.
  • FIG. 1 shows the configuration of the electronic device of one embodiment of the invention
  • FIG. 2 shows the configuration of the hard disk controller in FIG. 1
  • FIG. 1 shows a magnetic disk device as an example of an electronic device.
  • magnetic disks 4 which are magnetic recording media are provided on a rotation axis 2 of a spindle motor 5 .
  • the spindle motor 5 rotates the magnetic disks 4 .
  • An actuator (VCM) 1 has magnetic heads 3 on suspension tips, and moves the magnetic heads 3 in the radial direction of the magnetic disks 4 .
  • the actuator 1 includes a voice coil motor (VCM) which rotates about a rotation axis.
  • VCM voice coil motor
  • the magnetic disk device is equipped with two magnetic disks 4 , and four magnetic heads 3 are driven simultaneously by the same actuator 1 .
  • the magnetic heads 3 has a read element and a write element.
  • the magnetic heads 3 are configured by laminating, on a slider, the read element comprising a magnetoresistive (MR) element, on top of which is stacked the write element comprising a write coil.
  • MR magnetoresistive
  • control print board (control circuit portion) 20 of the magnetic disk drive mechanism 10 On a control print board (control circuit portion) 20 of the magnetic disk drive mechanism 10 are provided a hard disk controller 6 , MPU 7 , clock sources 8 and 9 , a buffer circuit 30 , a read/write channel circuit 32 , and a servo circuit 34 .
  • the read/write (R/W) channel circuit 32 controls reading and writing by the magnetic heads 3 , supplies write signals to the magnetic heads 3 , receives read signals from the magnetic heads 3 , and performs demodulation.
  • the servo circuit 34 has a spindle motor driving circuit which drives the spindle motor 5 , and a position control circuit which receives servo signals in read signals from the read/write channel circuit 32 , detects the current position, and controls driving of the voice coil motor (VCM) 1 according to position errors with respect to the target position.
  • VCM voice coil motor
  • the hard disk controller (HDC) 6 communicates with the host via the interface 36 , and uses the sector number of the servo signal as reference to judge the position within one circumference and perform data recording and reading.
  • the buffer random access memory (RAM) 30 temporarily stores read data and write data.
  • the HDC 6 communicates with the host using the SATA (Serial ATA), SCSI (Small Computer System Interface), or other interface 36 .
  • the microcontroller (MPU) 7 analyzes commands from the HDC 6 , and performs various processing via the HDC 6 .
  • the MPU 7 has read-only memory (ROM) which stores various programs, and random access memory (RAM).
  • Servo signals are positioned at equal intervals in the circumferential direction on each track of the magnetic disk 4 , from the outer to the inner circumferences.
  • Each track comprises a plurality of sectors, and position signals comprise servo marks, track numbers in Gray code, an index, and offset information (servo burst) PosA, PosB, PosC, PosD.
  • This magnetic disk drive mechanism 10 has a plurality of magnetic disks 4 ; these are stacked on the single spindle motor 5 and rotated in a fixed direction.
  • the first clock source 8 comprises a fast clock source, which supplies a clock to the hard disk controller 6 .
  • a 75 MHz quartz oscillator may be provided, according to the interface speed.
  • the second clock source 9 comprises a slow clock source, and supplies a clock to the MPU 7 , read/write channel circuit 32 , and similar.
  • a 40 MHz quartz oscillator may be provided, according to the processing speed of the MPU 7 .
  • FIG. 2 is a block diagram of the hard disk controller 6 in FIG. 1 .
  • the hard disk controller 6 has an interface circuit (IF core) 60 connected to the serial interface 36 , a buffer controller 62 connected to the interface circuit 60 , a buffer interface portion 38 connected to the buffer controller 62 and which serves as the interface to the buffer 30 , a disk formatter 64 connected to the buffer controller 62 , and a servo interface portion 40 connected to the disk formatter 64 and which serves as the interface to the servo circuit 34 .
  • IF core interface circuit
  • the hard disk controller 6 also has an ECC circuit 66 connected to the disk formatter 64 and which creates and performs checks of ECCs (Error Correction Codes), a read/write interface portion 42 connected to the disk formatter 64 which serves as the interface to the read/write channel circuit 32 , a microprocessor core circuit 68 connected to the interface circuit 60 and which controls exchanges of commands and data with the MPU 7 , in synchronization with operation of the interface circuit 60 , a microprocessor interface portion 44 connected to the microprocessor core circuit 68 which serves as the interface with the MPU 7 , and a counter 70 connected to the microprocessor core circuit 68 which counts clock pulses.
  • ECCs Error Correction Codes
  • the interface circuit 60 operates using the clock of the fast clock source 8 , and performs synchronization of frame data from the high-speed interface 36 , conversion between serial data and parallel data, and similar.
  • the clock of the fast clock source 8 is input to the counter 68 , and the counter 68 counts the clock pulses.
  • the circuits 62 , 64 , 66 , 68 , 70 other than the interface circuit 60 operate using the clock of the slow clock source 9 in FIG. 1 .
  • the interface circuit corresponding to the fast interface here, the hard disk controller
  • the fast clock source 8 and circuits 60 to 70 are mounted on the control print board 20 , and with the print board in the completed state, the performance of the fast clock source 8 is inspected.
  • FIG. 3 explains processing to inspect an interface clock generation circuit in a first embodiment of the invention.
  • a normal control print board (measurement host) 20 A which serves as a reference to indicate that the clock source 8 for measurement are normal and that no abnormalities are observed in various tests, is connected the control circuit board 20 B to be measured to the above-described interface.
  • Both control print boards 20 A, 20 B have the same configuration as that shown in FIG. 1 and FIG. 2 .
  • the reference control print board 20 A is called the first print board 20 A
  • the control print board 20 B to be inspected is called the second print board 20 B.
  • a command requesting the beginning of measurement is issued from the first control print board 20 A to the second control print board 20 B.
  • the second control print board 20 B receives the command via the interface circuit 60 described above, and the MPU 7 analyzes this command and responds to the first control print board 20 A, via the interface circuit 60 , with a request received message.
  • the MPU 7 of the second control print board 20 B transmits a measurement start message to the first control print board 20 A via the interface circuit 60 .
  • the MPU 7 of the second control print board 20 B sets the counter 70 in FIG. 2 to count-enabled, and the MPU 7 of the first control print board 20 A sets the counter 70 of FIG. 2 to count-enabled.
  • the counters 70 on both the print boards 20 A, 20 B count the clock pulses of the fast clock sources 8 .
  • the MPUs 7 of the first and second print boards 20 A, 20 B halt counting operations by each of the counters 70 .
  • the MPU 7 of the second print board 20 B transmits to the first control print board 20 A, via the interface circuit 60 , a measurement end message and the count value measured by the counter 70 .
  • the MPU 7 of the first print board 20 A compares the count value of the counter 70 of the first print board 20 A with the measurement count value received from the second print board 20 B, and checks whether the measurement count value exceeds the specification range for the fast clock source 8 . That is, a judgment is made as to whether the deviation of the measurement count value from the reference count value of the first print board 20 A exceeds the specification range.
  • This judgment result is displayed on a monitor connected to the first print board 20 A, so that it is possible to determine, in a testing process, whether the fast clock source 8 on the second print board 20 B is within the specification range. If the result exceeds the specification range, then the print board 20 B is abnormal, the fast clock source 8 is replaced with another clock source, and measurements are again performed.
  • an interface clock source can be inspected while in the mounted state on a print board without using specialized tools or equipment, so that costs increases can be prevented even when all units are inspected; moreover, because a normal print board is connected, tests can be performed under circumstances of actual use.
  • FIG. 4 is a block diagram of the interface circuit 60 of FIG. 2
  • FIG. 5 explains the frame format of FIG. 4
  • FIG. 6 through FIG. 8 explain operation of the FIFO circuit of FIG. 4 .
  • a buffer to absorb clock skew between the data/clock from outside and the internal clock is provided.
  • FIFO serial interface
  • two ALIGNs are inserted at every 4096 DWORDs (double words), these ALIGNs are discarded in the buffer, and skew adjustment is performed.
  • frequency deviation of the fast clock source 8 occurs, depending on the nature of the deviation, the FIFO buffer may overflow.
  • the magnitude of the frequency deviation is investigated; the number of ALIGNs and FIFO size are stipulated to cause overflow of the FIFO buffer during use of a fast clock source with a frequency deviation of ⁇ 200 ppm or similar, the device for measurement is connected to a host, data is transmitted and received, and a measured device which results in overflow is rejected.
  • the interface circuit 6 has a transmission interface circuit 6 - 1 and a reception interface circuit 6 - 2 .
  • the transmission interface circuit 6 - 1 is connected to the microprocessor core 68 and buffer controller 62 , and has a command/data FIFO buffer 600 which stores commands/data for transmission, a scramble circuit 602 which scrambles commands/data in the FIFO buffer 600 , an align insertion circuit 604 which inserts aligns, and a transmission circuit 606 .
  • the reception interface circuit 6 - 2 has a reception circuit 610 which receives serial signals from the serial interface 36 , a FIFO circuit 612 which stores commands/data received by the reception circuit 610 , a FIFO controller 614 which controls the FIFO circuit 612 , an align deletion circuit 616 which discards aligns, a descramble circuit 618 which descrambles commands/data which has been received and discarded, and a command/data FIFO circuit 620 which stores descrambled commands/data.
  • alignment is used to detect deviation of the frequency by means of discard operations in the reception FIFO buffer 612 . Alignment in this reception FIFO circuit 612 is explained. As shown in FIG. 5 , the transmission-side align insertion circuit 604 inserts two align data items A in units of 4096 DWORDs, and on the receiving side skew correction is possible. In FIG. 5 , this is indicated as “Normal”.
  • the reception FIFO buffer 612 is called an elastic FIFO, and is controlled by a FIFO pointer of the control circuit 614 .
  • the FIFO pointer is incremented by one for each word received from the interface 36 to the FIFO buffer 612 , and is decremented by one for each word read to the later-stage FIFO buffer 620 .
  • the input to the FIFO buffer 612 is synchronized with the clock recovered from the data, and output from the FIFO buffer 612 operates in synchronous with the internal clock (that is, according to the fast clock of the clock source 8 ).
  • the FIFO control circuit 614 discards the next ALIGN detected from the reception FIFO 612 when the FIFO pointer exceeds the align discard threshold (called overflow), and when the FIFO pointer is equal to or less than the align insertion threshold (called underflow) an ALIGN is added to the FIFO buffer 612 and the FIFO pointer is incremented by one.
  • the frequency of the recovered clock described above is the same as the frequency of the internal clock, so that as shown in FIG. 6 , the FIFO pointer does not exceed the align deletion threshold and is not equal to or less than the align insertion threshold, and neither overflow nor underflow occurs.
  • the align insertion interval and threshold values are modified at the time of measurement to force overflow/underflow of the FIFO buffer 612 .
  • deviation of the frequency is detected.
  • ALIGNs are inserted at fixed intervals in 4096 DWORDs of data, as indicated by “Overflow” in FIG. 5 , and the data is transmitted.
  • FIG. 6 when the frequency of the above-described recovered clock is the same as the frequency of the internal clock, the FIFO pointer does not exceed the align deletion threshold, and does not become equal to or less than the align insertion threshold, so that neither overflow nor underflow occur.
  • the FIFO pointer is successively incremented as indicated in FIG. 7 , the align deletion threshold is exceeded, and ALIGNs are discarded. That is, when there is a frequency deviation, overflow occurs. Overflow indicates that the frequency of the internal clock (the clock of the fast clock source) is lower than the recovered clock frequency by a greater amount than is allowed by the specifications.
  • the FIFO pointer is successively decremented as indicated in FIG. 8 , becoming equal to or less than the align deletion threshold, so that ALIGNs are inserted. That is, when there is a frequency deviation, underflow occurs. Underflow indicates that the frequency of the internal clock (the clock of the fast clock source) is higher than the recovered clock frequency by a greater amount than is allowed by the specifications.
  • the print board for measurement 20 B is connected to the reference print board 20 A, and overflow data and underflow data are transmitted from the reference print board 20 A to the print board for measurement 20 B, as shown in FIG. 5 .
  • the control circuit 614 notifies the microprocessor core 68 of operations for align insertion and align deletion in the reception FIFO buffer 612 .
  • an interface clock source can be inspected while in the mounted state on a print board without using specialized tools or equipment, so that costs increases can be prevented even when all units are inspected; moreover, because a normal print board is connected, tests can be performed under circumstances of actual use.
  • FIG. 9 shows the flow of processing to inspect an interface clock generation circuit in a third embodiment of the invention.
  • a reference clock clock of a slow clock source 9
  • FIG. 9 The processing of FIG. 9 is explained referring to FIG. 1 and FIG. 2 .
  • the MPU 7 starts an internal counter (not shown) which operates using the clock of the slow clock source 9 and the counter 70 within the HDC 6 which counts the clock pulses of the fast clock source 8 .
  • the MPU 7 checks whether the count value is within a range of ⁇ 200 ppm of the stipulated value. If the value is within this range, the MPU 7 judges operation to be normal, and if outside the range, judges operation to be abnormal.
  • the slow clock source 9 (for example, at 40 MHz) for the system clock, used by the controller in the device for measurement, is employed, and counting is started simultaneously by the counter 70 using the fast clock source 8 and the controller using the slow clock source.
  • the frequencies are both investigated after counting has been performed for a fixed time, frequency deviation is checked, and if necessary the unit is rejected or similar.
  • This method initially requires special booting and similar, but does not require a host, and so can be realized extremely simply.
  • the calibration function can be used in measurements even after shipment. That is, a SMART (Self Monitoring and Analysis Report Technology) function which can be used after shipment is added. The frequency is checked periodically, and when signs of degradation are observed, the host is notified. By this means, high product quality can be maintained even after shipment. As causes of degradation, degradation of the oscillator circuit in the quartz oscillator is conceivable.
  • control print board of a magnetic disk device was used as an example of an electronic device; but application to the print boards or similar of electronic devices comprising other fast interfaces is also possible.
  • the serial interface is not limited to that of the above embodiments, and application to other devices is possible.
  • first and second embodiments also, by providing diagnostic functions having the above-described test functions in the electronic circuitry of the print board, tests after product shipment are similarly possible.
  • a fast clock is counted in synchronization with an electronic device serving as reference, and the result is checked; or, alignment of transferred data and FIFO buffer overflow/underflow are utilized; or, the count values of an internal counter and of a counter of the fast clock are used, to check for frequency deviation of the fast clock source.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

In an electronic device having an interface circuit which operates using a fast clock source, frequency deviation of the clock source is inspected in the mounted state. The clock pulses of the fast clock source are counted in synchronization with an electronic device serving as reference, and the result is checked; or, alignment data of transfer data and overflow/underflow of the FIFO buffer are utilized; or, the count values of an internal counter and a fast clock counter are utilized, to check for frequency deviation of the fast clock source. In the state of being mounted in the device, tests can be performed of the clock sources of all units.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2006-092919, filed on Mar. 30, 2006, the entire contents of which are incorporated herein by reference.
  • BACKGROUND OF THE INVENTION
  • 1. Field of the Invention
  • The present invention relates to a method of test of a clock generation circuit in an electronic device having an external interface and to an electronic device, and in particular relates to a clock generation circuit testing method for an electronic device having a clock generation circuit for an interface faster than the internal clock of the electronic device, and to an electronic device.
  • 2. Description of the Related Art
  • Magnetic disk devices and other peripheral devices communicate with a host or similar through a prescribed interface. With demands for faster processing in recent years, there have been strong demands for faster interfaces. For example, in high-speed serial transfer over Fibre Channel, SATA (Serial AT Attachment), PCI Express and similar, transfer rates reach 2 GB to 4 GB per second.
  • In order to accommodate such high-speed interfaces, interface circuits are provided in existing peripheral devices. On the other hand, existing peripheral devices are designed to operate at a prescribed clock frequency, and have an internal clock source. As a result, when equipped with a high-speed interface circuit, it is necessary that the device also be equipped with a high-speed clock source to support this interface.
  • For example, in an electronic device the internal clock source of which is 40 MHz, a clock source of 75 MHz, 106.25 MHz, or 150 MHz is installed according to the interface speed. Quartz oscillators are used as such a clock source (see for example Japanese Patent Laid-open No. 64-077305).
  • In such quartz oscillators, depending on the interface, it is required that the oscillation frequency be within 0.01% (for example ±100 ppm) of the specification; but electronic equipment manufacturers install oscillators in peripheral devices and other electronic devices without performing checks of all the clock sources for which a high-precision oscillation frequency is required, opting instead to trust the expertise of the supplier of the clock source. There have been proposals of methods to diagnose problems with a quartz oscillator, when mounted on a printed circuit board, as originating with either the oscillator or the oscillation circuit (see for example Japanese Patent Laid-open No. 9-246868).
  • However, even among clock sources such as these, the existence of units which do not satisfy specifications cannot be denied. On the part of electronic device manufacturers, tests of individual purchased clock sources would be sufficient, but the installation of dedicated testing tools and equipment by electronic device manufacturers would be a cause of increased costs. Tests of clock source units after mounting on printed circuit boards similarly result in cost increases.
  • For this reason, after installation in an electronic device (on a printed circuit board), it has not been possible to exclude problematic clock sources until actual faults occur in various tests of the electronic device itself. Moreover, even if problems do not occur in various device tests, there is the possibility that faults may occur in a printed circuit board equipped with a clock source which does not satisfy specifications after the electronic device has been supplied to the market.
  • SUMMARY OF THE INVENTION
  • Hence an object of this invention is to provide a method for testing the clock generation circuit in an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, without using specialized tools or equipment.
  • A further object of the invention is to provide a clock generation circuit testing method for an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, in a testing process.
  • A further object of the invention is to provide a clock generation circuit testing method for an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, without leading to cost increases.
  • A further object of the invention is to provide a clock generation circuit testing method for an electronic device, and an electronic device, to perform tests of a clock source for an interface, in the mounted state on a printed circuit board, even after being supplied to the market.
  • In order to attain these objects, a testing method of this invention is a method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, and has the steps of connecting an electronic device to be measured to an electronic device which serves as reference using the interface circuit, synchronizing the electronic device to be measured with the reference electronic device, and counting clock pulses of the clock source in use of counters in the electronic device to be measured and in the reference electronic device; halting, after a prescribed time has elapsed, the counting by the counters of the electronic device to be measured and the reference electronic device; transmitting the count value of the counter of the electronic device to be measured from the electronic device to be measured to the reference electronic device; and comparing the transmitted count value with the count value of the counter of the reference electronic device in the reference electronic device, and testing for deviations in the frequency of the clock source in the electronic device to be measured.
  • Further, another testing method of this invention is a method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, and has the steps of; receiving transferred data into which is inserted alignment data in prescribed transfer units from an electronic device connected by the interface circuit; storing the received transferred data in a FIFO buffer using a clock synchronized with the transfer and of performing output using the clock of the clock source, as well as performing insertion and deletion of the alignment data in the FIFO buffer to prevent overflow and underflow of the FIFO buffer; and modifying at least one of the alignment insertion interval of the transferred data and the conditions for detection of overflow or underflow, judging whether overflow or underflow is detected, and testing for deviations in frequency of the clock source of the electronic device.
  • Further, the other testing method of this invention is a method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, and has the steps of; starting, in use of an internal circuit which operates using a comparatively slow clock source, counting by a counter which counts clock pulses of the comparatively fast clock source and counting by an internal counter which counts the clock pulses of the comparatively slow clock source; detecting that the internal counter has reached a prescribed value, and of reading and outputting the count value of the counter; and inspecting, in use of the count value, for frequency deviation of the comparatively fast clock source of the electronic device.
  • Further, in this invention it is preferable that the counting step has a step of transmitting a measurement start message from the reference electronic device to the electronic device to be measured, a step of responding with a measurement start message from the electronic device to be measured to the reference electronic device, and a step of counting the clock pulses of the clock sources by the counters of the electronic device to be measured and of the reference electronic device.
  • Further, in this invention it is preferable that the test step has a step of comparing the FIFO pointer of the FIFO buffer with a prescribed threshold, and of judging whether overflow or underflow has been detected.
  • Further, in this invention it is preferable that the test step has a step of judging whether the count value is within a range of the specification value corresponding to a prescribed frequency deviation.
  • Further, an electronic device of this invention has a comparatively fast first clock source, an interface circuit which operates using the clock of the first clock source, a comparatively slow second clock source, and an internal circuit which is connected to the interface circuit and which operates in use of the clock of the second clock source. And the internal circuit counts in use of a counter the clock pulses of the first clock source in synchronization with an electronic device which is connected to the interface circuit and which serves as reference, transmits the count value of the counter to the reference electronic device after a prescribed amount of time has elapsed, and inspects for frequency deviation of the first clock source in the reference electronic device.
  • Further, another electronic device of this invention has a comparatively fast first clock source, an interface circuit which operates using the clock of the first clock source, a comparatively slow second clock source, and an internal circuit, connected to the interface circuit, which operates using the clock of the second clock source. And the internal circuit has a reception circuit which receives transfer data into which alignment data has been inserted in prescribed transfer units, a FIFO buffer which stores the received transfer data using the clock synchronized with the transfer, and outputs the data with the clock of the clock source, and a FIFO control circuit which performs insertion and deletion of alignment data into and from the FIFO buffer to prevent FIFO buffer overflow and underflow. Further, the internal circuit receives the transfer data with the interval of alignment data insertion changed, or changes the detection conditions of overflow or underflow, judges whether overflow or underflow has been detected, and inspects for frequency deviation of the first clock source.
  • Further, the other electronic device of this invention has a comparatively fast first clock source, an interface circuit which operates using the clock of the first clock source, and comparatively slow second clock source, and an internal circuit, connected to the interface circuit, which operates using the clock of the second clock source. And the interface circuit has a counter which counts the clock pulses of the first clock source; and the internal clock circuit starts counting by the counter and by an internal counter which counts the clock pulses of the second clock source, detects the fact that the internal counter has reached a prescribed value, reads out the count value of the counter, and uses the count values to inspect for frequency deviation of the first clock source.
  • In this invention, it is preferable that the internal circuit receives a measurement start message transmitted from the reference electronic device, respond to the reference electronic device with a measurement start message, and use the counter to count the clock pulses of the first clock source.
  • In this invention, it is preferable that the internal circuit includes a disk drive control circuit.
  • In this invention, it is preferable that the FIFO control circuit compares the FIFO pointer of the FIFO buffer and a prescribed threshold value, and detects the presence of overflow or underflow.
  • In this invention, high-speed clock pulses are counted in synchronization with a reference electronic device, and the result is checked, or, alignment of transferred data and the overflow/underflow of a FIFO buffer is utilized, or, the count values of an internal counter and the counter of a fast clock are utilized, to check for frequency deviation of the high-speed clock source; hence all clock sources can be inspected in the state of being mounted in a device.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 shows the configuration of the electronic device of one embodiment of the invention;
  • FIG. 2 shows the configuration of the hard disk controller of FIG. 1;
  • FIG. 3 explains a method of test of a clock source in a first embodiment of the invention;
  • FIG. 4 shows the configuration of an interface circuit in a second embodiment of the invention;
  • FIG. 5 explains the format of transferred data in the second embodiment of the invention;
  • FIG. 6 explains normal operation of the FIFO buffer of FIG. 4;
  • FIG. 7 explains operation during overflow of the FIFO buffer of FIG. 4;
  • FIG. 8 explains operation during underflow of the FIFO buffer of FIG. 4; and,
  • FIG. 9 is a diagram of the flow of clock source test processing in a third embodiment of the invention.
  • DESCRIPTION OF THE PREFERRED EMBODIMENTS
  • Below, embodiments of the invention are explained, in the order of an electronic device, a first embodiment of a method of clock generation circuit test, a second embodiment of a method of clock generation circuit test, a third embodiment of a method of clock generation circuit test, and other embodiments. However, this invention is not limited to these embodiments.
  • Configuration of an Electronic Device
  • FIG. 1 shows the configuration of the electronic device of one embodiment of the invention, and FIG. 2 shows the configuration of the hard disk controller in FIG. 1. FIG. 1 shows a magnetic disk device as an example of an electronic device.
  • As shown in FIG. 1, in the magnetic disk drive mechanism 10, magnetic disks 4 which are magnetic recording media are provided on a rotation axis 2 of a spindle motor 5. The spindle motor 5 rotates the magnetic disks 4. An actuator (VCM) 1 has magnetic heads 3 on suspension tips, and moves the magnetic heads 3 in the radial direction of the magnetic disks 4.
  • The actuator 1 includes a voice coil motor (VCM) which rotates about a rotation axis. In the drawing, the magnetic disk device is equipped with two magnetic disks 4, and four magnetic heads 3 are driven simultaneously by the same actuator 1.
  • The magnetic heads 3 has a read element and a write element. The magnetic heads 3 are configured by laminating, on a slider, the read element comprising a magnetoresistive (MR) element, on top of which is stacked the write element comprising a write coil.
  • On a control print board (control circuit portion) 20 of the magnetic disk drive mechanism 10 are provided a hard disk controller 6, MPU 7, clock sources 8 and 9, a buffer circuit 30, a read/write channel circuit 32, and a servo circuit 34.
  • The read/write (R/W) channel circuit 32 controls reading and writing by the magnetic heads 3, supplies write signals to the magnetic heads 3, receives read signals from the magnetic heads 3, and performs demodulation. The servo circuit 34 has a spindle motor driving circuit which drives the spindle motor 5, and a position control circuit which receives servo signals in read signals from the read/write channel circuit 32, detects the current position, and controls driving of the voice coil motor (VCM) 1 according to position errors with respect to the target position.
  • As explained in FIG. 2, the hard disk controller (HDC) 6 communicates with the host via the interface 36, and uses the sector number of the servo signal as reference to judge the position within one circumference and perform data recording and reading. The buffer random access memory (RAM) 30 temporarily stores read data and write data. The HDC 6 communicates with the host using the SATA (Serial ATA), SCSI (Small Computer System Interface), or other interface 36.
  • The microcontroller (MPU) 7 analyzes commands from the HDC 6, and performs various processing via the HDC 6. For this purpose, the MPU 7 has read-only memory (ROM) which stores various programs, and random access memory (RAM).
  • Servo signals (position signals) are positioned at equal intervals in the circumferential direction on each track of the magnetic disk 4, from the outer to the inner circumferences. Each track comprises a plurality of sectors, and position signals comprise servo marks, track numbers in Gray code, an index, and offset information (servo burst) PosA, PosB, PosC, PosD. This magnetic disk drive mechanism 10 has a plurality of magnetic disks 4; these are stacked on the single spindle motor 5 and rotated in a fixed direction.
  • As shown in FIG. 1, the first clock source 8 comprises a fast clock source, which supplies a clock to the hard disk controller 6. For example, a 75 MHz quartz oscillator may be provided, according to the interface speed. The second clock source 9 comprises a slow clock source, and supplies a clock to the MPU 7, read/write channel circuit 32, and similar. For example, a 40 MHz quartz oscillator may be provided, according to the processing speed of the MPU 7.
  • FIG. 2 is a block diagram of the hard disk controller 6 in FIG. 1. As shown in FIG. 2, the hard disk controller 6 has an interface circuit (IF core) 60 connected to the serial interface 36, a buffer controller 62 connected to the interface circuit 60, a buffer interface portion 38 connected to the buffer controller 62 and which serves as the interface to the buffer 30, a disk formatter 64 connected to the buffer controller 62, and a servo interface portion 40 connected to the disk formatter 64 and which serves as the interface to the servo circuit 34.
  • The hard disk controller 6 also has an ECC circuit 66 connected to the disk formatter 64 and which creates and performs checks of ECCs (Error Correction Codes), a read/write interface portion 42 connected to the disk formatter 64 which serves as the interface to the read/write channel circuit 32, a microprocessor core circuit 68 connected to the interface circuit 60 and which controls exchanges of commands and data with the MPU 7, in synchronization with operation of the interface circuit 60, a microprocessor interface portion 44 connected to the microprocessor core circuit 68 which serves as the interface with the MPU 7, and a counter 70 connected to the microprocessor core circuit 68 which counts clock pulses.
  • In this hard disk controller 6, the interface circuit 60 operates using the clock of the fast clock source 8, and performs synchronization of frame data from the high-speed interface 36, conversion between serial data and parallel data, and similar. The clock of the fast clock source 8 is input to the counter 68, and the counter 68 counts the clock pulses.
  • The circuits 62, 64, 66, 68, 70 other than the interface circuit 60 operate using the clock of the slow clock source 9 in FIG. 1. In this way, in the interface circuit corresponding to the fast interface (here, the hard disk controller), there exist portions which operate using the slow clock necessary for internal operation, and portions which are directly related to the fast interface and operate using the fast clock. In this embodiment, the fast clock source 8 and circuits 60 to 70 are mounted on the control print board 20, and with the print board in the completed state, the performance of the fast clock source 8 is inspected.
  • FIRST EMBODIMENT OF A METHOD OF CLOCK GENERATION CIRCUIT TEST
  • FIG. 3 explains processing to inspect an interface clock generation circuit in a first embodiment of the invention.
  • First, a normal control print board (measurement host) 20A, which serves as a reference to indicate that the clock source 8 for measurement are normal and that no abnormalities are observed in various tests, is connected the control circuit board 20B to be measured to the above-described interface. Both control print boards 20A, 20B have the same configuration as that shown in FIG. 1 and FIG. 2. Below, the reference control print board 20A is called the first print board 20A, and the control print board 20B to be inspected is called the second print board 20B.
  • A command requesting the beginning of measurement is issued from the first control print board 20A to the second control print board 20B. The second control print board 20B receives the command via the interface circuit 60 described above, and the MPU 7 analyzes this command and responds to the first control print board 20A, via the interface circuit 60, with a request received message.
  • Then, the MPU 7 of the second control print board 20B transmits a measurement start message to the first control print board 20A via the interface circuit 60. The MPU 7 of the second control print board 20B sets the counter 70 in FIG. 2 to count-enabled, and the MPU 7 of the first control print board 20A sets the counter 70 of FIG. 2 to count-enabled.
  • By this means, the counters 70 on both the print boards 20A, 20B count the clock pulses of the fast clock sources 8.
  • Upon detecting that the count value of an internal counter, not shown, which counts the clock pulses of the slow clock source 9, has reached a fixed time, the MPUs 7 of the first and second print boards 20A, 20B halt counting operations by each of the counters 70.
  • Then, the MPU 7 of the second print board 20B transmits to the first control print board 20A, via the interface circuit 60, a measurement end message and the count value measured by the counter 70.
  • Upon receiving this, the MPU 7 of the first print board 20A compares the count value of the counter 70 of the first print board 20A with the measurement count value received from the second print board 20B, and checks whether the measurement count value exceeds the specification range for the fast clock source 8. That is, a judgment is made as to whether the deviation of the measurement count value from the reference count value of the first print board 20A exceeds the specification range.
  • This judgment result is displayed on a monitor connected to the first print board 20A, so that it is possible to determine, in a testing process, whether the fast clock source 8 on the second print board 20B is within the specification range. If the result exceeds the specification range, then the print board 20B is abnormal, the fast clock source 8 is replaced with another clock source, and measurements are again performed.
  • In this way, an interface clock source can be inspected while in the mounted state on a print board without using specialized tools or equipment, so that costs increases can be prevented even when all units are inspected; moreover, because a normal print board is connected, tests can be performed under circumstances of actual use.
  • SECOND EMBODIMENT OF A METHOD OF CLOCK GENERATION CIRCUIT TEST
  • FIG. 4 is a block diagram of the interface circuit 60 of FIG. 2, FIG. 5 explains the frame format of FIG. 4, and FIG. 6 through FIG. 8 explain operation of the FIFO circuit of FIG. 4.
  • In the serial system HDC 6, a buffer (FIFO) to absorb clock skew between the data/clock from outside and the internal clock is provided. In the serial interface (Fibre Channel or SAS/SATA), two ALIGNs are inserted at every 4096 DWORDs (double words), these ALIGNs are discarded in the buffer, and skew adjustment is performed. When frequency deviation of the fast clock source 8 occurs, depending on the nature of the deviation, the FIFO buffer may overflow.
  • Utilizing this function, the magnitude of the frequency deviation is investigated; the number of ALIGNs and FIFO size are stipulated to cause overflow of the FIFO buffer during use of a fast clock source with a frequency deviation of ±200 ppm or similar, the device for measurement is connected to a host, data is transmitted and received, and a measured device which results in overflow is rejected.
  • That is, as shown in FIG. 4, the interface circuit 6 has a transmission interface circuit 6-1 and a reception interface circuit 6-2. The transmission interface circuit 6-1 is connected to the microprocessor core 68 and buffer controller 62, and has a command/data FIFO buffer 600 which stores commands/data for transmission, a scramble circuit 602 which scrambles commands/data in the FIFO buffer 600, an align insertion circuit 604 which inserts aligns, and a transmission circuit 606.
  • Further, the reception interface circuit 6-2 has a reception circuit 610 which receives serial signals from the serial interface 36, a FIFO circuit 612 which stores commands/data received by the reception circuit 610, a FIFO controller 614 which controls the FIFO circuit 612, an align deletion circuit 616 which discards aligns, a descramble circuit 618 which descrambles commands/data which has been received and discarded, and a command/data FIFO circuit 620 which stores descrambled commands/data.
  • In this embodiment, alignment is used to detect deviation of the frequency by means of discard operations in the reception FIFO buffer 612. Alignment in this reception FIFO circuit 612 is explained. As shown in FIG. 5, the transmission-side align insertion circuit 604 inserts two align data items A in units of 4096 DWORDs, and on the receiving side skew correction is possible. In FIG. 5, this is indicated as “Normal”.
  • On the other hand, as shown in FIG. 6, the reception FIFO buffer 612 is called an elastic FIFO, and is controlled by a FIFO pointer of the control circuit 614. The FIFO pointer is incremented by one for each word received from the interface 36 to the FIFO buffer 612, and is decremented by one for each word read to the later-stage FIFO buffer 620.
  • Here, the input to the FIFO buffer 612 is synchronized with the clock recovered from the data, and output from the FIFO buffer 612 operates in synchronous with the internal clock (that is, according to the fast clock of the clock source 8).
  • The FIFO control circuit 614 discards the next ALIGN detected from the reception FIFO 612 when the FIFO pointer exceeds the align discard threshold (called overflow), and when the FIFO pointer is equal to or less than the align insertion threshold (called underflow) an ALIGN is added to the FIFO buffer 612 and the FIFO pointer is incremented by one.
  • Hence when the normal 4096 DWORDs of data are transmitted as indicated by “Normal” in FIG. 5, the frequency of the recovered clock described above is the same as the frequency of the internal clock, so that as shown in FIG. 6, the FIFO pointer does not exceed the align deletion threshold and is not equal to or less than the align insertion threshold, and neither overflow nor underflow occurs.
  • Utilizing this function, the align insertion interval and threshold values are modified at the time of measurement to force overflow/underflow of the FIFO buffer 612. By this means, deviation of the frequency is detected.
  • Four ALIGNs are inserted at fixed intervals in 4096 DWORDs of data, as indicated by “Overflow” in FIG. 5, and the data is transmitted. As shown in FIG. 6, when the frequency of the above-described recovered clock is the same as the frequency of the internal clock, the FIFO pointer does not exceed the align deletion threshold, and does not become equal to or less than the align insertion threshold, so that neither overflow nor underflow occur.
  • If on the other hand the frequency of the above-described internal clock is lower than the frequency of the recovered clock, then the FIFO pointer is successively incremented as indicated in FIG. 7, the align deletion threshold is exceeded, and ALIGNs are discarded. That is, when there is a frequency deviation, overflow occurs. Overflow indicates that the frequency of the internal clock (the clock of the fast clock source) is lower than the recovered clock frequency by a greater amount than is allowed by the specifications.
  • On the other hand, no ALIGNs at all may be inserted in 4096 DWORDs of data, as indicated by “Underflow” in FIG. 5. As shown in FIG. 6, when the above-described recovered clock frequency is the same as the internal clock frequency, the FIFO pointer does not exceed the align deletion threshold and does not become equal to or less than the align insertion threshold, and neither overflow nor underflow occurs.
  • If on the other hand the frequency of the above-described internal clock is higher than the frequency of the recovered clock, then the FIFO pointer is successively decremented as indicated in FIG. 8, becoming equal to or less than the align deletion threshold, so that ALIGNs are inserted. That is, when there is a frequency deviation, underflow occurs. Underflow indicates that the frequency of the internal clock (the clock of the fast clock source) is higher than the recovered clock frequency by a greater amount than is allowed by the specifications.
  • That is, similarly to FIG. 3, the print board for measurement 20B is connected to the reference print board 20A, and overflow data and underflow data are transmitted from the reference print board 20A to the print board for measurement 20B, as shown in FIG. 5. And the control circuit 614 notifies the microprocessor core 68 of operations for align insertion and align deletion in the reception FIFO buffer 612.
  • In this way, it is possible to determine, in a testing process, whether the fast clock source 8 on the second print board 20B is within the specification range. If the result exceeds the specification range, then the print board 20B is abnormal, the fast clock source 8 is replaced with another clock source, and measurements are again performed.
  • In this way, an interface clock source can be inspected while in the mounted state on a print board without using specialized tools or equipment, so that costs increases can be prevented even when all units are inspected; moreover, because a normal print board is connected, tests can be performed under circumstances of actual use.
  • Compared with the first embodiment, special commands are not required, and it is nor necessary to require processing to accommodate commands of the measured device. Further, as explained above, overflow and underflow are detected in terms of the FIFO pointer and thresholds to perform a test ensuring that the clock source 8 is within the specification range, and so similar tests can be performed even when these thresholds are modified.
  • THIRD EMBODIMENT OF A METHOD OF CLOCK GENERATION CIRCUIT TEST
  • FIG. 9 shows the flow of processing to inspect an interface clock generation circuit in a third embodiment of the invention. In the method of this processing, a reference clock (clock of a slow clock source 9) within the device for measurement is used, so that a host is unnecessary, and the device can perform the test itself. The processing of FIG. 9 is explained referring to FIG. 1 and FIG. 2.
  • (S10) The MPU 7 starts an internal counter (not shown) which operates using the clock of the slow clock source 9 and the counter 70 within the HDC 6 which counts the clock pulses of the fast clock source 8.
  • (S12) The MPU 7 judges whether the internal counter has overflowed or not.
  • (S14) If the internal counter overflows, the MPU 7 judges that a fixed time has elapsed, stops counting by the counter 70 in the HDC 6, and reads the count value.
  • (S16) The MPU 7 checks whether the count value is within a range of ±200 ppm of the stipulated value. If the value is within this range, the MPU 7 judges operation to be normal, and if outside the range, judges operation to be abnormal.
  • In this way, the slow clock source 9 (for example, at 40 MHz) for the system clock, used by the controller in the device for measurement, is employed, and counting is started simultaneously by the counter 70 using the fast clock source 8 and the controller using the slow clock source. The frequencies are both investigated after counting has been performed for a fixed time, frequency deviation is checked, and if necessary the unit is rejected or similar.
  • This method initially requires special booting and similar, but does not require a host, and so can be realized extremely simply. Moreover, in addition to being executable in a process prior to shipment, the calibration function can be used in measurements even after shipment. That is, a SMART (Self Monitoring and Analysis Report Technology) function which can be used after shipment is added. The frequency is checked periodically, and when signs of degradation are observed, the host is notified. By this means, high product quality can be maintained even after shipment. As causes of degradation, degradation of the oscillator circuit in the quartz oscillator is conceivable.
  • OTHER EMBODIMENTS
  • In the above embodiments, the control print board of a magnetic disk device was used as an example of an electronic device; but application to the print boards or similar of electronic devices comprising other fast interfaces is also possible. The serial interface is not limited to that of the above embodiments, and application to other devices is possible. Further, in the first and second embodiments also, by providing diagnostic functions having the above-described test functions in the electronic circuitry of the print board, tests after product shipment are similarly possible.
  • In the above, embodiments of the invention have been explained; but this invention can be modified variously within the scope of the invention, and these modifications are not excluded from the scope of the invention.
  • A fast clock is counted in synchronization with an electronic device serving as reference, and the result is checked; or, alignment of transferred data and FIFO buffer overflow/underflow are utilized; or, the count values of an internal counter and of a counter of the fast clock are used, to check for frequency deviation of the fast clock source. As a result, test of the clock sources in all units is possible in the mounted state in the devices, so that cost increases incurred when the manufacturer inspects all units, and the increased costs associated with introduction of new equipment, can be prevented, and quality is enhanced.

Claims (16)

1. A method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, comprising the steps of:
connecting an electronic device to be measured to an electronic device which serves as reference using the interface circuit, synchronizing the electronic device to be measured with the reference electronic device, and counting clock pulses of the clock source in use of counters in the electronic device to be measured and in the reference electronic device;
halting, after a prescribed time has elapsed, the counting by the counters of the electronic device to be measured and of the reference electronic device;
transmitting the count value of the counter of the electronic device to be measured from the electronic device to be measured to the reference electronic device; and
comparing the transmitted count value with the count value of the counter of the reference electronic device in the reference electronic device, and inspecting for deviations in the frequency of the clock source in the electronic device to be measured.
2. The method of testing a clock generation circuit in an electronic device according to claim 1, wherein the counting step comprises:
a step of transmitting a measurement start message from the reference electronic device to the electronic device to be measured;
a step of responding from the electronic device to be measured to the reference electronic device with a measurement start message; and
a step of counting the clock pulses of the clock source in use of counters in the electronic device to be measured and in the reference electronic device.
3. A method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, comprising the steps of:
receiving transferred data into which is inserted alignment data in prescribed transfer units from an electronic device connected by the interface circuit;
storing the received transferred data in a FIFO buffer using a clock synchronized with the transfer, and performing output using the clock of the clock source, as well as performing insertion and deletion of the alignment data in the FIFO buffer to prevent overflow and underflow of the FIFO buffer;
modifying the alignment insertion interval in the transferred data or the conditions for detection of the overflow or the underflow, judging whether the overflow or the underflow is detected; and
inspecting for deviation in the frequency of the clock source of the electronic device from the judgment.
4. The method of testing a clock generation circuit in an electronic device according to claim 3, wherein the modifying step comprises:
a step of comparing the FIFO pointer of the FIFO buffer with a prescribed threshold; and
a step of judging whether the overflow or the underflow has been detected.
5. A method of testing a clock generation circuit in an electronic device having an interface circuit which operates using a clock of a comparatively fast clock source, comprising the steps of:
starting, in use of an internal circuit which operates using a comparatively slow clock source, counting by a counter which counts clock pulses of the comparatively fast clock source and counting by an internal counter which counts the clock pulses of the comparatively slow clock source;
detecting that the internal counter has reached a prescribed value, and of reading and outputting the count value of the counter; and
inspecting, in use of the count value, for frequency deviation of the comparatively fast clock source of the electronic device.
6. The method of testing a clock generation circuit in an electronic device according to claim 5, wherein the inspecting step comprises a step of judging whether the count value is within a specified range corresponding to a prescribed frequency deviation.
7. An electronic device, comprising:
a comparatively fast first clock source;
an interface circuit which operates using the clock of the first clock source;
a comparatively slow second clock source; and
an internal circuit, connected to the interface circuit, which operates using the clock of the second clock source,
wherein the internal circuit uses a counter to count the clock pulses of the first clock source in synchronization with an electronic device which is connected to the interface circuit and which serves as reference, transmits the count value of the counter to the reference electronic device after a prescribed amount of time has elapsed to inspect for frequency deviation of the first clock source in the reference electronic device.
8. The electronic device according to claim 7, wherein the internal circuit receives a measurement start message transmitted from the reference electronic device, responds with a measurement start message to the reference electronic device, and counts in use of the counter the clock pulses of the first clock source.
9. The electronic device according to claim 7, wherein the internal circuit comprises a disk drive control circuit.
10. An electronic device, comprising:
a comparatively fast first clock source;
an interface circuit which operates using the clock of the first clock source;
a comparatively slow second clock source; and
an internal circuit, connected to the interface circuit, which operates using the clock of the second clock source,
wherein the interface circuit comprises:
a reception circuit which receives transfer data into which alignment data has been inserted in prescribed transfer units;
a FIFO buffer which stores the received transfer data using the clock synchronized with the transfer and outputs the data with the clock of the clock source; and
a FIFO control circuit which performs insertion and deletion of alignment data into and from the FIFO buffer to prevent FIFO buffer overflow and underflow,
and wherein the internal circuit receives the transfer data with the interval of alignment data insertion changed, or changes the detection conditions of overflow or underflow, judges whether the overflow or the underflow has been detected, and inspects for frequency deviation of the first clock source.
11. The electronic device according to claim 10, wherein the FIFO control circuit compares a FIFO pointer of the FIFO buffer with a prescribed threshold, and outputs information indicating whether the overflow or the underflow has been detected.
12. The electronic device according to claim 10, wherein the internal circuit comprises a disk drive control circuit.
13. An electronic device, comprising:
a comparatively fast first clock source;
an interface circuit which operates using the clock of the first clock source and having a counter which counts the clock pulses of the first clock source;
a comparatively slow second clock source; and
an internal circuit which is connected to the interface circuit and which operates in use of the clock of the second clock source,
wherein the internal circuit starts counting by the counter and by an internal counter which counts the clock pulses of the second clock source, detects the fact that the internal counter has reached a prescribed value, reads the count value of the counter, and uses the count value to inspect for frequency deviation of the first clock source.
14. The electronic device according to claim 13, wherein an internal circuit judges whether the count value is within a stipulated range corresponding to a prescribed frequency deviation.
15. The electronic device according to claim 13, wherein the internal circuit comprises a disk drive control circuit.
16. The electronic device according to claim 13, wherein the internal circuit has a processor.
US11/487,504 2006-03-30 2006-07-17 Method of test of clock generation circuit in electronic device, and electronic device Expired - Fee Related US7272527B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2006092919A JP2007265327A (en) 2006-03-30 2006-03-30 Method of test of clock generation circuit in electronic device, and electronic device
JP2006-92919 2006-03-30

Publications (2)

Publication Number Publication Date
US7272527B1 US7272527B1 (en) 2007-09-18
US20070233411A1 true US20070233411A1 (en) 2007-10-04

Family

ID=38481866

Family Applications (1)

Application Number Title Priority Date Filing Date
US11/487,504 Expired - Fee Related US7272527B1 (en) 2006-03-30 2006-07-17 Method of test of clock generation circuit in electronic device, and electronic device

Country Status (2)

Country Link
US (1) US7272527B1 (en)
JP (1) JP2007265327A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288805A1 (en) * 2007-05-18 2008-11-20 Advanced Micro Devices, Inc. Synchronization device and methods thereof
KR101037851B1 (en) 2007-12-20 2011-05-31 엔비디아 코포레이션 Data transfer rate throttling for serial interface mass storage devices

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10324014A1 (en) * 2003-05-27 2005-01-13 Micronas Gmbh Address generator, method of operation therefor, and data processing system using the same
US7698481B1 (en) 2006-09-13 2010-04-13 Marvell International Ltd. Fibre channel elastic FIFO delay controller and loop delay method having a FIFO threshold transmission word adjuster for controlling data transmission rate
CN115636103B (en) * 2022-09-19 2024-03-15 成都飞机工业(集团)有限责任公司 Working condition separation method, device and equipment of PIU subsystem and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5598447A (en) * 1992-05-11 1997-01-28 Yamaha Corporation Integrated circuit device having internal fast clock source
US6380774B2 (en) * 2000-03-24 2002-04-30 Nec Corporation Clock control circuit and clock control method
US20030038659A1 (en) * 2001-05-24 2003-02-27 Nec Corporation Clock control circuit
US20040122620A1 (en) * 2001-06-13 2004-06-24 Masaru Doi Apparatus and method for testing semiconductor device
US20040155642A1 (en) * 2002-07-25 2004-08-12 Chen-Hua Hsi Method and device for verifying frequency of clock signal
US20040207436A1 (en) * 2001-11-13 2004-10-21 Masakatsu Suda Timing generating apparatus and test apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6477305A (en) 1987-09-18 1989-03-23 Nec Corp Crystal oscillator
JP2798046B2 (en) 1996-03-07 1998-09-17 日本電気株式会社 Crystal oscillator

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5598447A (en) * 1992-05-11 1997-01-28 Yamaha Corporation Integrated circuit device having internal fast clock source
US6380774B2 (en) * 2000-03-24 2002-04-30 Nec Corporation Clock control circuit and clock control method
US20030038659A1 (en) * 2001-05-24 2003-02-27 Nec Corporation Clock control circuit
US6583655B2 (en) * 2001-05-24 2003-06-24 Nec Electronics Corporation Clock control circuit
US20040122620A1 (en) * 2001-06-13 2004-06-24 Masaru Doi Apparatus and method for testing semiconductor device
US20040207436A1 (en) * 2001-11-13 2004-10-21 Masakatsu Suda Timing generating apparatus and test apparatus
US6842061B2 (en) * 2001-11-13 2005-01-11 Advantest Corporation Timing generating apparatus and test apparatus
US20040155642A1 (en) * 2002-07-25 2004-08-12 Chen-Hua Hsi Method and device for verifying frequency of clock signal
US6859026B2 (en) * 2002-07-25 2005-02-22 Via Technologies, Inc. Method and device for verifying frequency of clock signal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080288805A1 (en) * 2007-05-18 2008-11-20 Advanced Micro Devices, Inc. Synchronization device and methods thereof
US8001409B2 (en) * 2007-05-18 2011-08-16 Globalfoundries Inc. Synchronization device and methods thereof
KR101037851B1 (en) 2007-12-20 2011-05-31 엔비디아 코포레이션 Data transfer rate throttling for serial interface mass storage devices

Also Published As

Publication number Publication date
JP2007265327A (en) 2007-10-11
US7272527B1 (en) 2007-09-18

Similar Documents

Publication Publication Date Title
US4549295A (en) System for identifying defective media in magnetic tape storage systems
US4562494A (en) Disk drive alignment analyzer
US6412089B1 (en) Background read scanning with defect reallocation
US7272527B1 (en) Method of test of clock generation circuit in electronic device, and electronic device
US7369339B2 (en) Failure prediction method for magnetic disk devices, and a magnetic disk device using the same
US8332695B2 (en) Data storage device tester
US6219814B1 (en) Method and apparatus for selectively varying error correcting code (ECC) power in a direct access storage device (DASD)
US8259406B2 (en) Head/disk contact determination
US8427692B2 (en) Image processing apparatuses and systems for responding to writing errors associated with hard disk devices
CN111078492B (en) State monitoring system and method for SoC internal bus
US5895438A (en) Inline disk tester
US7593176B2 (en) Control apparatus and storage device
EP1717811A2 (en) Method and apparatus for time correlating deffects found on hard disks
US20060212777A1 (en) Medium storage device and write path diagnosis method
CN107807862A (en) Detect the method, apparatus and server of hard disk failure point
US6353315B1 (en) Method and apparatus for using the data interface of a disk drive to identify and characterize disk flaws
US20060061356A1 (en) Disk testing apparatus, disk testing method, computer product, and disk apparatus
US8089712B2 (en) Abnormality determining apparatus
US20090201602A1 (en) Long-term asymmetry tracking in magnetic recording devices
US7522363B2 (en) Medium storage device and medium rotation synchronization processing method for medium storage device
US20060203371A1 (en) Medium storage device and medium rotation synchronization processing method for medium storage device
US7134068B2 (en) Channel processing data without leading sync mark
JP2008134838A (en) Bus device
US20100157750A1 (en) Defect detecting method and system for optical disc
US6785077B2 (en) Disc drive pattern zero verification test

Legal Events

Date Code Title Description
AS Assignment

Owner name: FUJITSU LIMITED, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:SUTO, HIROYUKI;KANEGAE, MASAHIDE;KAWASHIMA, OSAMU;AND OTHERS;REEL/FRAME:018112/0344

Effective date: 20060613

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: TOSHIBA STORAGE DEVICE CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FUJITSU LIMITED;REEL/FRAME:023419/0031

Effective date: 20091014

Owner name: TOSHIBA STORAGE DEVICE CORPORATION, JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FUJITSU LIMITED;REEL/FRAME:023861/0881

Effective date: 20091014

Owner name: TOSHIBA STORAGE DEVICE CORPORATION,JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FUJITSU LIMITED;REEL/FRAME:023861/0881

Effective date: 20091014

XAS Not any more in us assignment database

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:FUJITSU LIMITED;REEL/FRAME:023419/0031

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20110918