1. Field of the Invention
The present invention relates generally to storage device controllers, and more particularly, to controlling read gate timing for hard disk controllers.
2. Background
Conventional computer systems typically include several functional components. These components may include a central processing unit (CPU), main memory, input/output (“I/O”) devices, and storage devices (for example, disk driver, tape drives) (referred to herein as “storage device”).
In conventional systems, the main memory is coupled to the CPU via a system bus or a local memory bus. The main memory is used to provide the CPU access to data and/or program information that is stored in main memory at execution time. Typically, the main memory is composed of random access memory (RAM) circuits. A computer system with the CPU and main memory is often referred to as a host system.
A storage device is typically coupled to the host system via a controller that handles complex details of interfacing the storage device to the host system. The controller performs numerous functions, for example, converting digital to analog data signals, disk formatting, error checking and fixing, logical to physical address mapping and data buffering. Communications between the host system and the controller is usually provided using one of a variety of standard I/O bus interfaces.
Typically, when data is read from a storage device, a host system sends a read command to the controller, which stores the read command into the buffer memory. Data is read from the device and stored in the buffer memory. Buffer memory may be a Synchronous Dynamic Random access Memory (“SDRAM”), or Double Data Rate-Synchronous Dynamic Random Access Memory (referred to as “DDR”).
Typically, a disk drive (or storage device, used interchangeably) includes one or more magnetic disks. Each disk (or platter) typically has a number of concentric rings or tracks (platter) on which data is stored. The tracks themselves may be divided into sectors, which are the smallest accessible data units. A positioning head above the appropriate track accesses a sector. An index pulse typically identifies the first sector of a track. The start of each sector is identified with a sector pulse. Typically, the disk drive waits until a desired sector rotates beneath the head before proceeding with a read or write operation. Data is accessed serially; one bit at a time and typically, each disk has its own read/write head.
To access data from a disk drive (or to write data), the host system must know where to read (or write data to) the data from the disk drive. A driver typically performs this task. Once the disk drive address is known, the address is translated to cylinder, head and sector, based on platter geometry and sent to the disk controller. Logic on the hard disk looks at the number of cylinders requested. Servo controller firmware instructs motor control hardware to move read/write heads to the appropriate track. When the head is in the correct position, it reads the data from the correct track.
Typically, a read and write head has a write core for writing data in a data region, and a read core for magnetically detecting the data written in the data region of a track and a servo pattern recorded on a servo region. A servo system detects the position of the head on a platter according to the phase of a servo pattern detected by the read core of the head. The servo system then moves the head to the target position.
A servo controller in the servo system communicates with a data recovery device. One such device is the “read channel device”. An example of such a product is “88C7500 Integrated Read channel” device sold by Marvell Semiconductor Inc ®. The read channel device is coupled to the controller and the disk drive.
A read gate (“RG”) signal is sent to the read channel device to control data read operations. The RG signal is asserted and de-asserted at a certain time, based on the code word encoding method used by the Read Channel device. In a conventional system, the RG signal is asserted/de-asserted on a specific code word boundary (for example, “mod 6” boundary i.e. at multiples of six symbols) of the write clock. However sector sizes continue to change and conventional systems, instead of precisely controlling the assertion/de-assertion of the RG signal to allow partial code word operations, sacrifice storage media utilization by padding the data stream with additional symbols of zero to reach a full code word boundary where RG is de-asserted.
Therefore, there is a need for a system and method for efficiently controlling the assertion/de-assertion of RG signals, which improves storage media utilization.
In one aspect of the present invention, a disk controller that controls data transfer between a storage device and a host system is provided. The disk controller includes logic having a state machine that controls de-assertion of a read gate signal based on sector size and/or whether a data segment is split or non-split. The read gate signal is de-asserted at programmable times, based on data sector size.
The state machine interfaces with a register whose settings indicate to the state machine that next time when the state machine starts executing from an idle state it should process a second half of a split sector. The state machine also uses a register that to extend assertion of the read gate signal. It is noteworthy that the read gate signal is controlled on a positive and negative edge of a write clock signal.
In another aspect of the present invention, a method for controlling the de-assertion of a read gate signal in disk controllers is provided. The method includes, operating a state machine in an idle state; examining a register value to determine if a data segment is split or non-split; and using a delay configuration if a data segment is split.
This brief summary has been provided so that the nature of the invention may be understood quickly. A more complete understanding of the invention can be obtained by reference to the following detailed description of the preferred embodiments thereof concerning the attached drawings.
The foregoing features and other features of the present invention will now be described with reference to the drawings of a preferred embodiment. In the drawings, the same components have the same reference numerals. The illustrated embodiment is intended to illustrate, but not to limit the invention. The drawings include the following Figures:
To facilitate an understanding of the preferred embodiment, the general architecture and operation of a controller will initially be described. The specific architecture and operation of the preferred embodiment will then be described with reference to the general architecture.
The system of
As shown in
A read only memory (“ROM”) omitted from the drawing is used to store firmware code executed by microprocessor 100. Fibre Channel interface 103 interfaces with host interface 104A and processes Fibre Channel frames.
Controller 101 can be an integrated circuit (IC) that comprises of various functional modules, which provide for the writing and reading of data stored on storage device 110. Microprocessor 100 is coupled to controller 101 via interface 109 to facilitate transfer of data, address, timing and control information.
Buffer memory 111 is coupled to controller 101 via ports to facilitate transfer of data, timing and address information. Buffer memory 111 may be a double data rate synchronous dynamic random access memory (“DDR-SDRAM”) or synchronous dynamic random access memory (“SDRAM”), or any other type of memory.
Disk formatter 104 is connected to microprocessor bus 107 and to buffer controller 108. A direct memory access (“DMA”) DMA interface (not shown) is connected to microprocessor bus 107 and to data and control port (not shown).
Buffer controller (also referred to as “BC”) 108 connects buffer memory 111, channel one (CH1) 105, error correction code (“ECC”) module 106 and to bus 107. Buffer controller 108 regulates data movement into and out of buffer memory 111.
Data flow between a host and disk passes through buffer memory 111. ECC module 106 generates the ECC that is saved on disk 110 writes and provides correction mask to BC 108 for disk 110 read operation.
Plural channels may be used to allow data flow. Channels (for example, channel 0 (“CH0”) (not shown), CH1105 and channel 2 (“CH2”) (not shown)) are granted arbitration turns when they are allowed access to buffer memory 111 in high speed burst write or read for a certain number of clocks. The plural channels use first-in-first out (“FIFO”) type memories to store data that is in transit.
RG_Delay logic 200 (may also be referred to as logic 200) is used to generate a signal RG_Out 201 (may also be referred to as signal 201 that is sent to read channel device 110A. Signal 201 may be de-asserted on the falling and rising edge of the WR_CLK, shown as 211 in
In conventional systems, signal 208 is de-asserted on the rising edge of signal 210, re-clocked at the next RCI 203 cycle and then sent out to a read channel device.
Logic 200, described below with respect to
Logic 200 includes a state machine 204 that controls when signal 201 should be de-asserted based on the sector size. Edge detection logic 202 that operates on clock 203 detects the falling edge of signal 209. The detected falling edge is monitored by state machine 204, which also receives signal 209. Outputs from registers 204A, 205 and 206 via logic 207 control the four de-assertion points shown in
State machine 204 also interfaces with an extend register 213 (may be referred to as register 213) and a data2expect register 214 (may be referred to as register 214). Register 214 is used to indicate to state machine 204 that the next time it starts executing from IDLE (
In state 302 (i.e. the WT_SYNC state), state machine 204 waits for the assertion of a SYNCFOUND signal (or command, used interchangeably throughout this specification), which indicates that data is being returned from disk 110. State machine 204 examines register 214 value and the programmable control bits from data wedge format table (not shown) Register 214 indicates to state machine 204 that the next time it starts executing from IDLE (State 300), it should load the RGDelayData[1:0] value from a Data Wedge Format Table (not shown) when it is processing the second half of a split sector. The loaded bits are: extend=RGDelaydata[1] and neg_rg=RGDelayData[0].
If register 214 is set to a certain value, for example 1, this indicates to state machine 204 that on a previous run, state machine 204 was processing data segment 1 (
State machine 204 sets the extend register 213 and register 205 signals depending on the data2_expect case (i.e. data segment 1 or data segment 2). Register 213 causes the state machine 204 to extend the assertion of signal 209 by one more clock to accommodate situations 3 and 4 of
When the SYNC Found (or SYNC DET) signal is asserted by DF 104, state machine 204 transitions to the WT_END state (shown as 304). During this state, state machine 204 waits for the assertion of a “Servo skip count End” signal from DF 104, which indicates that a sector will be split (as shown in
In the DATA1 state, state machine 204 uses the “RG Delay Data 1” configuration. This configuration is used when it has been determined that the data is a split sector, and these 2 bits are used to determine the amount of delay at the end of the DATA1 portion. Register 214 is also set so that the next time (i.e. for the second or subsequent data segment) the “RG Delay Data2 Configuration” is used. Register 213 and register 205 are set based on the RG Delay Data 1 configuration.
If the falling edge of 209 is seen, then the state of the extend register 213 is evaluated during state 304. If the extend register 213 value is false, then the state machine 204 goes to the IDLE state. If the extend register 213 value is true, then the state machine 204 transitions to the EXT state (shown as 308).
During the EXT state, state machine 204 turns off registers 204A, 205, 206 and extend signals, and then transitions to the IDLE state.
In one aspect of the present invention, read gate de-assertion varies based on sector size and whether a data segment is split. This allows data to be stored more compactly without sacrificing any ECC bits.
Although the present invention has been described with reference to specific embodiments, these embodiments are illustrative only and not limiting. Many other applications and embodiments of the present invention will be apparent in light of this disclosure.
Number | Name | Date | Kind |
---|---|---|---|
3800281 | Devore et al. | Mar 1974 | A |
3988716 | Fletcher et al. | Oct 1976 | A |
4001883 | Strout et al. | Jan 1977 | A |
4016368 | Apple, Jr. | Apr 1977 | A |
4050097 | Miu et al. | Sep 1977 | A |
4080649 | Calle et al. | Mar 1978 | A |
4156867 | Bench et al. | May 1979 | A |
4225960 | Masters | Sep 1980 | A |
4275457 | Leighou et al. | Jun 1981 | A |
4390969 | Hayes | Jun 1983 | A |
4451898 | Palermo et al. | May 1984 | A |
4486750 | Aoki | Dec 1984 | A |
4500926 | Yoshimaru | Feb 1985 | A |
4587609 | Boudreau et al. | May 1986 | A |
4603382 | Cole et al. | Jul 1986 | A |
4625321 | Pechar et al. | Nov 1986 | A |
4667286 | Young et al. | May 1987 | A |
4777635 | Glover | Oct 1988 | A |
4805046 | Kuroki et al. | Feb 1989 | A |
4807116 | Katzman et al. | Feb 1989 | A |
4807253 | Hagenauer et al. | Feb 1989 | A |
4809091 | Miyazawa et al. | Feb 1989 | A |
4811282 | Masina | Mar 1989 | A |
4812769 | Agoston | Mar 1989 | A |
4860333 | Bitzinger et al. | Aug 1989 | A |
4866606 | Kopetz | Sep 1989 | A |
4881232 | Sako et al. | Nov 1989 | A |
4920535 | Watanabe et al. | Apr 1990 | A |
4949342 | Shimbo et al. | Aug 1990 | A |
4970418 | Masterson | Nov 1990 | A |
4972417 | Sako et al. | Nov 1990 | A |
4975915 | Sako et al. | Dec 1990 | A |
4989190 | Kuroe et al. | Jan 1991 | A |
5014186 | Chisholm | May 1991 | A |
5023612 | Liu | Jun 1991 | A |
5027357 | Yu et al. | Jun 1991 | A |
5050013 | Holsinger | Sep 1991 | A |
5051998 | Murai et al. | Sep 1991 | A |
5068755 | Hamilton et al. | Nov 1991 | A |
5068857 | Yoshida | Nov 1991 | A |
5072420 | Conley et al. | Dec 1991 | A |
5088093 | Storch et al. | Feb 1992 | A |
5109500 | Iseki et al. | Apr 1992 | A |
5117442 | Hall | May 1992 | A |
5127098 | Rosenthal et al. | Jun 1992 | A |
5133062 | Joshi et al. | Jul 1992 | A |
5136592 | Weng | Aug 1992 | A |
5146585 | Smith, III | Sep 1992 | A |
5157669 | Yu et al. | Oct 1992 | A |
5162954 | Miller et al. | Nov 1992 | A |
5193197 | Thacker | Mar 1993 | A |
5204859 | Paesler et al. | Apr 1993 | A |
5218564 | Haines et al. | Jun 1993 | A |
5220569 | Hartness | Jun 1993 | A |
5237593 | Fisher et al. | Aug 1993 | A |
5243471 | Shinn | Sep 1993 | A |
5249271 | Hopkinson et al. | Sep 1993 | A |
5257143 | Zangenehpour | Oct 1993 | A |
5261081 | White et al. | Nov 1993 | A |
5271018 | Chan | Dec 1993 | A |
5274509 | Buch | Dec 1993 | A |
5276564 | Hessing et al. | Jan 1994 | A |
5276662 | Shaver, Jr. et al. | Jan 1994 | A |
5276807 | Kodama et al. | Jan 1994 | A |
5280488 | Glover et al. | Jan 1994 | A |
5285327 | Hetzler | Feb 1994 | A |
5285451 | Henson et al. | Feb 1994 | A |
5301333 | Lee | Apr 1994 | A |
5307216 | Cook et al. | Apr 1994 | A |
5315708 | Eidler et al. | May 1994 | A |
5339443 | Lockwood | Aug 1994 | A |
5361266 | Kodama et al. | Nov 1994 | A |
5361267 | Godiwala et al. | Nov 1994 | A |
5408644 | Schneider et al. | Apr 1995 | A |
5420984 | Good et al. | May 1995 | A |
5428627 | Gupta | Jun 1995 | A |
5440751 | Santeler et al. | Aug 1995 | A |
5465343 | Henson et al. | Nov 1995 | A |
5487170 | Bass et al. | Jan 1996 | A |
5488688 | Gonzales et al. | Jan 1996 | A |
5491701 | Zook | Feb 1996 | A |
5500848 | Best et al. | Mar 1996 | A |
5506989 | Boldt et al. | Apr 1996 | A |
5507005 | Kojima et al. | Apr 1996 | A |
5519837 | Tran | May 1996 | A |
5523903 | Hetzler et al. | Jun 1996 | A |
5544180 | Gupta | Aug 1996 | A |
5544346 | Amini | Aug 1996 | A |
5546545 | Rich | Aug 1996 | A |
5546548 | Chen et al. | Aug 1996 | A |
5563896 | Nakaguchi | Oct 1996 | A |
5572148 | Lytle et al. | Nov 1996 | A |
5574867 | Khaira | Nov 1996 | A |
5581715 | Verinsky et al. | Dec 1996 | A |
5583999 | Sato et al. | Dec 1996 | A |
5592404 | Zook | Jan 1997 | A |
5600662 | Zook | Feb 1997 | A |
5602857 | Zook et al. | Feb 1997 | A |
5615190 | Best et al. | Mar 1997 | A |
5623672 | Popat | Apr 1997 | A |
5626949 | Blauer et al. | May 1997 | A |
5627695 | Prins et al. | May 1997 | A |
5640602 | Takase | Jun 1997 | A |
5649230 | Lentz | Jul 1997 | A |
5664121 | Cerauskis | Sep 1997 | A |
5689656 | Baden et al. | Nov 1997 | A |
5691994 | Acosta et al. | Nov 1997 | A |
5692135 | Alvarez, II et al. | Nov 1997 | A |
5692165 | Jeddeloh et al. | Nov 1997 | A |
5719516 | Sharpe-Geisler | Feb 1998 | A |
5729718 | Au | Mar 1998 | A |
5740466 | Geldman et al. | Apr 1998 | A |
5745793 | Atsatt et al. | Apr 1998 | A |
5754759 | Clarke et al. | May 1998 | A |
5758188 | Appelbaum et al. | May 1998 | A |
5784569 | Miller et al. | Jul 1998 | A |
5794073 | Ramakrishnan et al. | Aug 1998 | A |
5801998 | Choi | Sep 1998 | A |
5818886 | Castle | Oct 1998 | A |
5822142 | Hicken | Oct 1998 | A |
5831922 | Choi | Nov 1998 | A |
5835930 | Dobbek | Nov 1998 | A |
5841722 | Willenz | Nov 1998 | A |
5844844 | Bauer et al. | Dec 1998 | A |
5850422 | Chen | Dec 1998 | A |
5854918 | Baxter | Dec 1998 | A |
5890207 | Sne et al. | Mar 1999 | A |
5890210 | Ishii et al. | Mar 1999 | A |
5907717 | Ellis | May 1999 | A |
5912906 | Wu et al. | Jun 1999 | A |
5925135 | Trieu et al. | Jul 1999 | A |
5937435 | Dobbek et al. | Aug 1999 | A |
5950223 | Chiang et al. | Sep 1999 | A |
5968180 | Baco | Oct 1999 | A |
5983293 | Murakami | Nov 1999 | A |
5991911 | Zook | Nov 1999 | A |
6029226 | Ellis et al. | Feb 2000 | A |
6029250 | Keeth | Feb 2000 | A |
6041417 | Hammond et al. | Mar 2000 | A |
6065053 | Nouri et al. | May 2000 | A |
6067206 | Hull et al. | May 2000 | A |
6070200 | Gates et al. | May 2000 | A |
6078447 | Sim | Jun 2000 | A |
6081849 | Born et al. | Jun 2000 | A |
6092231 | Sze | Jul 2000 | A |
6094320 | Ahn | Jul 2000 | A |
6124994 | Malone, Sr. | Sep 2000 | A |
6134063 | Weston-Lewis et al. | Oct 2000 | A |
6157984 | Fisher et al. | Dec 2000 | A |
6178486 | Gill et al. | Jan 2001 | B1 |
6192499 | Yang | Feb 2001 | B1 |
6201655 | Watanabe et al. | Mar 2001 | B1 |
6223303 | Billings et al. | Apr 2001 | B1 |
6279089 | Schibilla et al. | Aug 2001 | B1 |
6297926 | Ahn | Oct 2001 | B1 |
6330626 | Dennin et al. | Dec 2001 | B1 |
6381659 | Proch et al. | Apr 2002 | B2 |
6401149 | Dennin et al. | Jun 2002 | B1 |
6470461 | Pinvidic et al. | Oct 2002 | B1 |
6487631 | Dickinson et al. | Nov 2002 | B2 |
6490635 | Holmes | Dec 2002 | B1 |
6530000 | Krantz et al. | Mar 2003 | B1 |
6574676 | Megiddo | Jun 2003 | B1 |
6662334 | Stenfort | Dec 2003 | B1 |
6717763 | Ottesen et al. | Apr 2004 | B2 |
6826650 | Krantz et al. | Nov 2004 | B1 |
7199954 | Lee et al. | Apr 2007 | B2 |
20010044873 | Wilson et al. | Nov 2001 | A1 |
20030037225 | Deng et al. | Feb 2003 | A1 |
Number | Date | Country |
---|---|---|
0528273 | Feb 1993 | EP |
0622726 | Nov 1994 | EP |
0718827 | Jun 1996 | EP |
2285166 | Jun 1995 | GB |
63-292462 | Nov 1988 | JP |
01-315071 | Dec 1989 | JP |
03183067 | Aug 1991 | JP |
9814861 | Apr 1998 | WO |
Number | Date | Country | |
---|---|---|---|
20060227447 A1 | Oct 2006 | US |