System and method for reading and writing data using storage controllers

Information

  • Patent Grant
  • 8166217
  • Patent Number
    8,166,217
  • Date Filed
    Monday, June 28, 2004
    20 years ago
  • Date Issued
    Tuesday, April 24, 2012
    12 years ago
Abstract
A controller for interfacing a host and storage device is provided. The controller includes a channel that can receive data from the storage device in a first format and store the data in an intermediate buffer memory in a second format. The channel includes conversion logic that converts data from the first format to the second format and from the second format to the first format depending upon whether data is being read or written from the buffer memory. The conversion logic uses a shuttle register and shuttle counter for aligning data that is being transferred between the storage device and the buffer memory by appropriately concatenating data to meet the first and second format requirements. The first format is based on 10-bit symbols and the second format is based on 8-bits.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention


The present invention relates generally to storage device controllers, and more particularly, to reading and writing data using a buffer controller.


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 streaming storage devices (for example, 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.


The storage device is coupled to the host system via a controller that handles complex details of interfacing the storage devices to the host system. 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.


Previously data from a storage device was sent to the controller in 8-bit sizes (i.e. byte oriented where 1 byte is equal to 8 bits) and the controllers were designed to operate with 8-bit format. However, changes by some storage device manufacturers, for example, hard disk manufacturers, will now provide data in 10-bit format (i.e., symbol oriented where one symbol is equal to 10 bits). Other storage device manufacturers, for example, tape drives manufacturers, will continue to provide data in 8-bit format. Due to the disparity in data formats, conventional controllers fail to efficiently handle 8-bit to 10 bits and 10 bit to 8 bit conversion.


Therefore, there is a need for a controller that can efficiently handle data transfer where data may enter the controller in more than one format.


SUMMARY OF THE INVENTION

A controller for interfacing between a host and storage device is provided, according to one aspect of the present invention. The controller includes a channel that can receive data from the storage device in a first format and store the data in an intermediate buffer memory in a second format. The channel includes conversion logic that converts data from the first format to the second format and from the second format to the first format depending upon whether data is being read or written from the buffer memory.


The conversion logic uses a shuttle register and shuttle counter for aligning data that is being transferred between the storage device and the buffer memory by appropriately concatenating data to meet the first and second format requirements. The first format is based on 10-bit symbols and the second format is based on 8-bits.


In yet another aspect, a system for transferring data between a host system and a storage device is provided. The system includes, a controller that is coupled to a buffer memory and includes a channel that can receive data from the storage device in a first format and store the data in the buffer memory in a second format and the channel includes the conversion logic that converts data from the first format to the second format and from the second format to the first format depending upon whether data is being read or written from the buffer memory.


In yet another aspect of the present invention, a method for transferring data between a storage device and a host system via a controller that is coupled to a buffer memory is provided. The method includes determining if any conversion is required based on whether a storage device and the buffer memory support different data format; enabling data format conversion, if required; and converting data format conversion based on whether data is being read or written to the buffer memory.


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.





BRIEF DESCRIPTION OF THE 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:



FIG. 1A shows a block diagram of a storage system used according to one aspect of the present invention;



FIG. 1B is a block diagram of a buffer controller, used according to one aspect of the present invention;



FIG. 2A shows the data path between a disk formatter and a buffer memory, according to one aspect of the present invention;



FIG. 2B shows the data path for Read-Long data, according to one aspect of the present invention;



FIG. 3A shows a block diagram of conversion logic, according to one aspect of the present invention;


FIGS. 3B(i)-(iv) (referred to as FIG. 3B) shows a table that aligns data into a shuttle register, according to one aspect of the present invention;



FIG. 3C shows a schematic of a MUX producing an output, according to one aspect of the present invention;



FIG. 4 shows the read path during a buffer read operation, according to one aspect of the present invention;



FIG. 5 shows the write path during a buffer read operation, according to one aspect of the present invention;



FIG. 6 shows a block diagram for a channel (CH0) that facilitates buffer read and write operations, according to one aspect of the present invention;



FIG. 7 shows a schematic of CH0 control logic with a state machine that interfaces with conversion logic, according to one aspect of the present invention;



FIGS. 8 and 9 show the timing diagrams for the various signal for buffer write and read operations, according to one aspect of the present invention; and



FIG. 10 shows a process flow diagram for data conversion and alignment, according to one aspect of the present invention.





DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Controller Overview:


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 FIG. 1A is an example of a storage drive system (with an optical disk or tape drive), included in (or coupled to) a computer system. The host computer (not shown) and the storage device 110 (also referred to herein as disk 110) communicate via a port using a disk formatter “DF” 104. In an alternate embodiment (not shown), the storage device 110 is an external storage device, which is connected to the host computer via a data bus. The data bus, for example, is a bus in accordance with a Small Computer System Interface (SCSI) specification. Those skilled in the art will appreciate that other communication buses known in the art can be used to transfer data between the drive and the host system.


As shown in FIG. 1A, the system includes controller 101, which is coupled to buffer memory 111 and microprocessor 100. Interface 109 serves to couple microprocessor bus 107 to microprocessor 100 and a micro-controller 102. A read only memory (“ROM”) omitted from the drawing is used to store firmware code executed by microprocessor 100. Host interface 103 in controller 101 interfaces with interface 104A to communicate with a host system (not shown).


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 microprocessor 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”), channel 1 (“CH1”) and channel 2 (“CH2”)) 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. CH1105 may be inside BC 108 or outside BC 108, as shown in FIG. 1. Another channel (CH2) may also be provided so that controller 101 can be used with different systems. Firmware running on microprocessor 100 can access the channels based on bandwidth and other requirements. CH0108D within BC 108, can process new symbol based (i.e. 10-bit) data format, according to one aspect of the present invention, as described below.


To read data from storage device 110, a host system sends a read command to controller 101, which stores the read commands in buffer memory 111. Microprocessor 100 then reads the command out of buffer memory 111 and initializes the various functional blocks of controller 101. Data is read from storage device 110 and is passed to buffer controller 108.


To write data, a host system sends a write command to controller 101 and is stored in buffer memory 111. Microprocessor 100 reads the command out of buffer memory 111 and sets up the appropriate registers. Data is transferred from the host and is first stored in buffer memory 111, before being written to disk 110. CRC values are calculated based on the logical block address (“LBA”) for the sector being written. Data is read out of buffer memory 111, appended with ECC code and written to disk 110.


Buffer Controller 108:



FIG. 1B shows a block diagram of BC 108 with CH0108D that interfaces with DF 104 for moving data to and from buffer memory 111. BC 108 includes register(s) 108E and an Arbiter 108C. Arbiter 108C arbitrates between plural channels in BC 108, for example, CH0108D, and CH1105 and CH2 (not shown). CH0108D interfaces with DF 104, ECC module 106 and a DMA module (not shown).


Register 108E is coupled to interface 109 via bus 107 that allows microprocessor 100 and BC 108 to communicate. Data 108G and status 108F is moved in and out of register 108E. Interface 108K and 108L allow BC 108 to interface with CH1105 and CH2.


BC 108 uses a data wedge format table “DWFT” 108H to process a data wedge for disk operations.


BC 108 also includes a memory controller 108B that interfaces with buffer memory 111 through a synchronous dynamic random access memory (“SDRAM”) interface 108J or DDR-SDRAM interface 108A (referred to as DDR-EXT I/F in FIG. 1B). Interrupts 1081 are sent from buffer controller 108 to microprocessor 100.


Data Format:


Before describing CH0108D, the following provides a description of the data format as used by disk 110. As stated earlier data to and from disk 110 is now preferably moved in a 10-bit format. Table 1 below shows a mapping between four symbols into five bytes. Symbol based data comes from DF 104 (i.e. disk 110). Symbol pairs are grouped and stored as sectors on disk 110, i.e., the size of the sectors is an integer of the number of symbol pairs.










TABLE I







Symbol
Bit Number

















No.
9
8
7
6
5
4
3
2
1
0





0
B1-1
B1-0
B0-7
B0-6
B0-5
B0-4
B0-3
B0-2
B0-1
B0-0


1
B2-3
B2-2
B2-1
B2-0
B1-7
B1-6
B1-5
B1-4
B1-3
B1-2


2
B3-5
B3-4
B3-3
B3-2
B3-1
B3-0
B2-7
B2-6
B2-5
B2-4


3
B4-7
B4-6
B4-5
B4-4
B4-3
B4-2
B4-1
B4-0
B3-7
B3-6









The format of the data in buffer memory 111 is still in 8-bit sizes, i.e., byte oriented. Table II below shows the format of the data that is stored in buffer memory 111. Data is aligned on a Mod 4 buffer address with a Mod 4 byte size. Data includes 4 bytes of cyclic redundancy code (“CRC”), if CRC is enabled.


Table II below assumes a starting address of 0, however, the starting address could be any even multiple of 4.


n=number of DWORDS in sector—a 516 byte sector has 129 (516/4=129) or 0-128.


DWn=last DWORD in a sector


Bn=last byte of data in the sector not including CRC


Data represented in buffer memory 111 is typically the host data block. This data is written and read from disk 110. The host data is in bytes and is written to and read from the disk 110 across a symbol based interface.











TABLE II







Dword
Bit
Buffer












Number
BD[31:24]
BD{23:16]
BD[15:8]
BD[7:0]
Address





0
B3
B2
B1
B0
0


1
B7
B6
B5
B4
3


.
.
.
.
.
.


.
.
.
.
.
.


.
.
.
.
.
.


DWn-1
Bn
Bn-1
Bn-2
Bn-3
(DWn-1 ×







4) − 1


DWn
CRC-B3
CRC-B2
CRC-B1
CRC-B0
(DWn ×







4) − 1









CH0108D logic provides access to buffer memory 111 with the byte based data format, and access the DF 104 symbol based format, and translates between the two formats, according to one aspect of the present invention, as described below.


Channel 0108D:


It is noteworthy that although the description below is based on a data format size of 10 bit and 8 bit, the adaptive aspects of the present invention are not limited to these two sizes. For example, data from disk 110 can be in X-bit format and stored in buffer memory 111 in Y-bit format, and CH0108D architecture allows translation between the two formats (i.e. X and Y bit formats).



FIG. 2A shows a block diagram with the data path between DF 104 and buffer memory 111. Data 200 as 10-bit symbols is sent or read from DF 104 via bus 200A. CH0 FIFO 201 is used to store data when it is being transferred between buffer memory 111 and DF 104. Logic 202 converts the data format from 10-bit to 8-bit and 8-bit to 10-bit. Logic 203 receives data to and from buffer 111 and logic 202. Data 204 is 8-bit bytes that is received from or sent to buffer memory 111 via bus 204A. Bus 202A is 80-bit wide and 202B is 64-bit wide.


Buffer Memory 111 Read Operations:


When data is read from buffer memory 111 and sent to DF 104, it can start at any memory address. CH0 logic 203 reads data from interface 108J or 108A (may be referenced interchangeably as interface 108J) and passes the data to logic 202. Logic 202 assembles 80-bit words to write into CH0 FIFO 201. The last symbol that is written into CH0 FIFO 201 includes pad bits if the transfer size length in bits (plus CRC bits) is not MOD10. Filler bits may also be used to achieve MOD8 symbol size on a last FIFO write, as described below. “MOD” in this context, as used throughout this specification, means the data alignment.


Buffer Memory 111 Write Operations:


Buffer write operation involves moving data from DF 104 (as shown in FIG. 2A) to buffer memory 111. Data is first written into CH0 FIFO 201 beginning at the even MOD-4 boundary (i.e. the start of a CH0 FIFO word). CH0108D aligns data from DF 104 so that the first data block is written into CH0 FIFO 201 with even MOD4 boundary. Logic 202 then reads 8 symbols at a time and assembles data into an 8-bit MOD-4 format. This conversion removes even symbol boundary (“ESB”) pad bits, if any, that were appended to the last data symbol (FIG. 2B).


During Read-Long commands, CH0108D does not remove ESB pad bits, since all data from disk 110 is sent to buffer memory 111. During a normal read operation, only data moves from disk 110 to buffer memory 111, however, during a read-long operation, data with ECC bytes and CRC bytes are sent to buffer memory 111 as well. FIG. 2B shows the data path for Read-Long data. ESB pad bits 208 and MOD-4 pad bits 207 are sent with the data to CH0 FIFO 201. Data that is sent into buffer memory 111 is shown as 205 and 206. Block 205 includes data and CRC, while block 206 includes ESB pad bits and the ECC.


Conversion Logic 202:



FIG. 3A shows a block diagram of logic 202, according to one aspect of the present invention. Logic 202 interfaces to a 64-bit bus 204A on one side and 80-bit bus 202A on another side. Logic 202 uses DATAIN register 303, shuttle register 305 and DATAOUT register 309 to perform bus width conversions.


Data that is read from buffer memory 111 is shown as 300. Data that is written to buffer memory 111 is shown as 301 that is stored in CH0 FIFO 201 before being written.


“DATAIN register” 303 receives data 300 from buffer memory 111 or CH0 FIFO data 301 through a multiplexer (“Mux”) 307. Thereafter, register 303 provides data to conversion logic. In one aspect of the present invention, DATAIN register 303 is 10 bytes wide during a read operation. It is noteworthy that the present invention is not limited to any particular size of any of the registers that are described herein.


Buffer write signal 302 provides a control input to Mux 307 so that data can be written to buffer memory 111.


Shuttle register 305 holds data temporarily before it is sent out to DATAOUT register 309. Shuttle register 305 uses shuttle Mux 304 to concatenate data that is received from “DATAIN register” 303 with data that is being held in shuttle register 305. A counter 306 counts the number of valid data bytes in shuttle register 305.



FIG. 3B shows a table that illustrates how Mux 304 aligns data into the shuttle register 305. The table is divided in two parts, one for a write operation and another for a read operation. The following describes the various column headings that are used in FIG. 3B table:


“In_Datain”: This column shows the number of bytes in DATAIN register 303;


“In_Shuttle”: This column shows the number of bytes in shuttle register 305 at any given time;


“Word_Sel”: This column shows the word lane within DATAIN register 303 where the data starts;


“B_Wr”: This column indicates buffer write operation;


“sh7 to sh0”: This column shows the output of shuttle Mux 304; and


“d09-d00”: This column represents the data that is going into DATAOUT register 309 and shows how data is concatenated.


Buffer memory 111 write operations start from low word. In one aspect for buffer memory write 111, only 8 bytes are used and hence d08 and d09 columns are not used, as shown in FIG. 3B table. For write operations FIFO data 301 is in 10 bytes and data from DATAOUT register 309 is 8 bytes. Hence, each time FIFO data 301 is read, there is a remainder of 2 bytes. This remainder of 2 bytes is stored and accumulated in shuttle register 305. Once the number of accumulated bytes in shuttle register 305 reaches 8, then shuttle register 305 data is written into DATAOUT register 309 without reading FIFO data 301. This is shown as overflow entry 312 in FIG. 3B.


In buffer memory 111 read operation, logic 202 using the shuttle mechanism can start or end in either D-word of the 64 bit bus 204A. Since sector size is MOD4, only 4 or 8 bytes are used.



FIG. 3C shows a schematic of MUX 304, with inputs 304A and 304B producing output 304C. Signals In_Datain, In_Shuttle, Word_Select and Buffer_Write have been described above with respect to FIG. 3B.


Tables III-V below show the byte count present at three stages and the progress of the residue (i.e., last byte in shuttle register 305) left in shuttle register 305. The illustration is based on when the read operation starts at an odd D_word boundary and ends in an Odd D_word boundary (Table III), starts on an odd boundary but ends in an even boundary (Table IV), and then starts on an even boundary and ends in an odd boundary (Table V).


Tables III and IV show the first cycle with 4 bytes where a transfer of data from buffer 111 starts on the odd D-Word boundary. Tables III and IV also show 4 bytes on the last cycle where BC interface 108J is able to end on a single D-Word transfer. The highest byte count in shuttle register 305 is still 8 bytes.









TABLE III







BC Odd-Start, Odd-End









BYTES_IN_DataIn
BYTES_IN_SHUTTLE
BYTES_IN_DataOut












4
0
0


8
4
0


8
2
10


8
0
10


8
8
0


8
6
10


8
4
10


4
2
10


0
6
0
















TABLE IV







BC Odd-Start, Even-End









BYTES_IN_DataIn
BYTES_IN_SHUTTLE
BYTES_IN_DataOut












4
0
0


8
4
0


8
2
10


8
0
10


8
8
0


8
6
10


8
4
10


0
2
10
















TABLE V







BC Even-Start, Odd-End









BYTES_IN_DataIn
BYTES_IN_SHUTTLE
BYTES_IN_DataOut












8
0
0


8
8
0


8
6
10


8
4
10


8
2
10


4
0
10


0
4
0









As discussed above, “DATAOUT register” 309 holds data before it is moved out. In one aspect “DATAOUT register” 309 is 10 bytes wide and only 8 bytes are used for buffer memory 111 write operations. “DATAOUT register” 309 is written when shuttle register 305 and the number of bytes in DATAIN register 303 is equal to the bus width needed for the operation (i.e., 10 bytes during buffer memory 111 read and 8 bytes during buffer memory 111 write). Mux 308 is used to align data into the proper bus width. (See FIG. 3B table).


Padding: If the length of a data block is not MOD10, then padding may be used on the last symbol so that it can be written in CH0 FIFO 201. During buffer memory 111 read operations, the pad bits allow ECC insertion at ESB. Logic 202 removes the ESB pad bits during buffer memory 111 write operations. ESB pad bits are not removed during Read-Long commands as raw data from DF 104 is sent to buffer memory 111 (see FIG. 2B).


Filler Bits: Filler bits are bits that are added at the end of a FIFO word, but are not sent to disk 110. Logic 202 accesses CH0 FIFO 201 8 symbols at a time. This allows writing the first symbol of a transfer into even MOD4 boundary of CH0 FIFO 201 (at the beginning of a FIFO word). If data transfer length is not MOD8 symbols, the last CH0 FIFO 201 write is accompanied by filler strobes to CH0 FIFO 201, if needed, at the end of disk reads.


Sector Count: Logic 202 uses a counter 201G (FIG. 6) to stop data conversion at a sector boundary. Counter 201G loads the sector size in bytes from a transfer counter register (not shown) and logic 202 accesses data 301. Counter 201G is decremented by 10 for each access (10 byte access) and when FIFO sector count is zero, the conversion by logic 202 stops. Conversion resumes when state machine 203A sends a signal.


Packing Symbols During Read Operations:


To create symbols from bytes, logic 202 packs data from a 64-bit bus 204A into an 80-bit bus 202A. Shuttle register 305 is used to store data temporarily. Data 300 from buffer memory 111 comes into “DATAIN register” 303 and then shuttle register 305 data and “DATAIN register” 303 data is concatenated and assembled into an 80-bit bus 202A. FIG. 4 shows the read path 400 during buffer memory 111 read operation. Data moves from buffer memory 111 to register 311.


Table VI below shows the byte count present during the operation. “DATAOUT register” 309 is written when Bytes_IN_Dataln (register 303 bytes) and BYTES_IN_Shuttle (data in shuttle register 305) reach a count of 10 or more. The last row in Table VI shows that 6 bytes are left in shuttle register 305. Logic 202 uses FIFO sector counter 201G to detect the end of the sector and force the residual shuttle bytes into CH0 FIFO 201. Firmware can also force the residue into CH0 FIFO 201.









TABLE VI







Even_Start, Even End









BYTES_IN_DataIn
BYTES_IN_SHUTTLE
BYTES_IN_DataOut












8
0
0


8
8
0


8
6
10


8
4
10


8
2
10


8
0
10


8
8
0


8
6
10


8
4
10


8
2
10


8
0
10


8
8
0


0
6
10









Unpacking Symbols During Write Operation:


To create bytes from symbols, logic 202 unpacks 80-bit bus 202A data into 64-bit bus 204A data. FIFO data 301 enters “DATAIN register” 303. Data from shuttle register 305 and “DATAIN register” 303 are concatenated and assembled into 64-bit bus 204 data. “DATAOUT register” 309 writes into register 310, 8 bytes at a time. FIG. 5 shows the data path 500 for the write operation. Table VII below shows the byte count during the write operation. Register 310 is provided 8 bytes of data continuously to avoid delay. FIFO data 301 is not read when shuttle register 305 count reaches 8, as discussed above. Table VII shows a byte count table for data 301 movement to register 310.











TABLE VII





BYTES_IN_DataIn
BYTES_IN_SHUTTLE
BYTES_IN_DataOut

















10
0
0


10
2
8


10
4
8


10
6
8


0
8
8


10
0
8


10
2
8


10
4
8


10
6
8


0
8
8


10
0
8


10
2
8


10
4
8


10
6
8


0
8
8


10
0
8


10
2
8


10
4
8









CH0 Logic 203:



FIG. 6 shows another block diagram for CH0108D that facilitates buffer memory 111 read and write operations. Control logic 203 interacts with buffer memory 111 and DF 104 through interfaces 602, 108J and 601. Control information 607, 608 and 609 is passed between logic 203, DF 104, buffer memory 111 and ECC module 106.


Logic 203 handles protocols for DF 104, buffer memory 111, ECC 106 and the FIFO interfaces. Data is moved via CH0 FIFO 201 that in one aspect has a dual port random access memory ('RAM″) address pointers 201C and 201F, FIFO counter 201A and interface logic 201B to interface with DF 104. CH0 FIFO 201 includes memory (“RAM”) 201D that is used to store data blocks. The term FIFO as used throughout this specification means “first-in-first out”. Data 201E (on 80 bit bus 202A) is passed to logic 202 as discussed above. Data 604 from logic 202 leaves on a 64-bit bus 203B (see FIG. 2A). CRC module 603 provides CRC data when needed. It is noteworthy that CH0 FIFO 201 throughout this specification means the entire module that includes memory 201D.



FIG. 7 shows a detailed schematic of CH0 control logic 203 with a state machine 203A that interfaces with logic 202. Data path 700 has been described above. The following provides a description of various signals that are used in FIG. 7 to accomplish the adaptive aspects of the present invention:


Signal 701 (CH0_SHUT_EN) enables the shuttle function in CH0108H and allows byte to symbol translation, as described above. Upon reset, logic 202 is disabled and logic 203 accesses CH0 FIFO 201 as a 64 bit wide FIFO.


Signal 702 (SM_SHUT_GO) is generated by state machine 203A and when active indicates that logic 202 should start processing data. This signal is set active when state machine 203A is ready to process a next sector and set inactive once data transfer begins between logic 202 and interface 108J.


Signal 703 (CH0_BUFFER_WR): This signal is generated from state machine 203A and indicates the transfer direction for data movement (i.e. from to buffer memory 111 or from buffer memory 111). When signal 701 is high it indicates that data moves from DF 104 to buffer memory 111.


Signal 704 (SM_DATA_EN) is driven by state machine 203A and is the data transfer strobe for accessing logic 202 / CH0 FIFO 201. Data is transferred each clock this signal is active (high).


Signal 705 (SM_FIFO_WR) is used by state machine 203A during logic 202 bypass mode to write to FIFO RAM 201D.


Signal 706 (SHUT_EMPTY) originates from logic 202 and is sent to state machine 203A. Signal 706 is used to hold off state machine 203A from starting buffer memory 111 data bursts until logic 202 is ready to start executing data transfers. When signal 706 is high during disk 110 read, it indicates that shuttle register 305 is empty and state machine 203A may not start a current sector since no data is available for buffer memory 111. During disk 110 write operation, signal 706 indicates that logic 202 is still busy on a current sector and the state 203A may not start the protocol for the next sector.


Signal 707 (SHUT_DATEN) is also driven by logic 202 to access CH0 FIFO 201. When active, signal 707 indicates an access to 201D. FIFO counter 201A increments by one on disk 110 write decrement on disk reads.


Signal 708 (CH0—FIFO_DOUT) is driven from logic 202 when enabled to provide byte alignment, as described above.


Signal 709 (CH0—FIFO_DIN) is the data driven from data path logic 700 (located at interface 108J) and is sent to logic 202 for conversion, as described above.


Signal 710 (SHUT_FIFO_WR) is generated by logic 202 for FIFO 201 write.


Signal 711 is generated from Mux 711A and sent to FIFO RAM 201D.


Signal (RAMDIN) 712 is data in to FIFO RAM 201D and signal (RAMDOUT) 713 is data out from FIFO RAM 201D to the data path logic 700.


Signal (SHUT DOUT) 714 is the data out from logic 202.


Signal (RAMADR) 715 is the RAM address from counters 201A. Signals 716 are various error correction signals that are received by state machine 203A and logic 202.


Counter(s) 201A counts CH0 FIFO 201 entries. The value in counter 201A represents CH0 FIFO 201 half words that have been written and not yet read.



FIGS. 8 and 9 show the timing diagrams for the various signals (that are described above with respect to FIG. 7) for buffer memory 111 write and read operations, respectively. Signal TSC_TERM defines the time when FIFO sector count is zero.



FIG. 10 shows a process flow diagram of executable process steps, according to one aspect of the present invention. In step S1000, the process receives data. If data is being written to buffer memory 111, then data is received from DF 104 to CH0 FIFO 201, otherwise data is received by CH0 FIFO 201 from buffer memory 111.


In step S1001, the process determines if any format conversion is required. This is based on the data format supported by the storage device 110. For example, if data is coming from a tape drive (110), then no conversion is required and data is processed as 8-bit data in step S1004. If data is coming from a hard disk (110) that operates in a 10-bit format (or a format different from buffer memory 111), then conversion is required and logic 202 is enabled. This is achieved by signal 701 that is generated by state machine 203a (FIG. 7).


In step S1003, data is aligned by logic 202. In this case if data is being written from DF 104, then data is received in 10-bit format. Data from CH0 FIFO 201 is stored in shuttle register 305 and sent over bus 204A. Shuttle register 305 paces data transfer from CH0 FIFO 201 to avoid an overflow condition (FIG. 3B).


If data is being read from buffer 111, then logic 202, as described above moves the 8-bit data to a 10-bit format. Logic 202 is capable of moving data through buses with varying widths (bus 202A and 203A).


In step S1003, data is transferred after the conversion logic 202 has aligned the data based on storage device 110 and buffer memory 111 format requirements.


In one aspect of the present invention, same piece of logic is used to move data to and from buffer 111 in two different formats. This saves overall chip cost and improves data transfer performance.


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.

Claims
  • 1. A storage controller for interfacing between a host and a disk drive, the storage controller comprising: a buffer memory that stores data that is transferred between the host and the disk drive; anda channel located on the storage controller that receives the data from the disk drive in one of a first format and a second format, and determines whether data conversion is required based on whether the data is in the first format or the second format, wherein the channel includes:conversion logic that converts the data from the first format to the second format when the data conversion is required, maintains the data in the second format when the data conversion is not required, and stores the data in the buffer memory in the second format, and when the channel receives the data from the buffer memory in the second format, the conversion logic selectively converts the data from the second format to the first format and transfers the data to the disk drive in the first format,wherein the conversion logic includes a shuttle register and a shuttle counter, the shuttle counter counts a number of valid data bytes stored in the shuttle register, and the conversion logic uses the same shuttle register and the same shuttle counter for both conversion from the second format to the first format and conversion from the first format to the second format, wherein the conversion logic is hardware.
  • 2. The storage controller of claim 1, wherein the first format includes symbol oriented data.
  • 3. The storage controller of claim 1 , wherein the second format includes byte oriented data.
  • 4. The storage controller of claim 1, wherein at least one of the shuttle register and the shuttle counter concatenate the data based on first and second format requirements.
  • 5. The storage controller of claim 1, wherein the first format is based on 10-bit symbol data and the second format is based on 8-bit byte data.
  • 6. The storage controller of claim 4, further comprising a first register that receives the data from the disk drive before the shuttle register receives the data from the disk drive.
  • 7. The storage controller of claim 4, further comprising a second register that stores the data after the data is converted.
  • 8. The storage controller of claim 1, further comprising a first in first out (“FIFO”) memory that stores the data.
  • 9. The storage controller of claim 8, further comprising a counter that maintains a sector count in the FIFO memory.
  • 10. The storage controller of claim 8, wherein when the data is written to the FIFO memory, the data is stored in the shuttle register and transferred to the FIFO memory based on a memory format.
  • 11. A storage controller for interfacing between a host and a disk drive, the storage controller comprising: buffer memory means for storing data that is transferred between the host and the disk drive; andchannel means located on the storage controller for receiving the data from the disk drive in one of a first format and a second format, and for determining whether data conversion is required based on whether the data is in the first format or the second format, wherein the channel means includes:conversion logic meansfor converting the data from the first format to the second format when the data conversion is required,for storing the data in the buffer memory means in the second format, and for receiving the data from the buffer memory means in the second format, andwhen the channel means receives the data from the buffer memory means in the second format, for selectively converting the data from the second format to the first format and transferring the data to the disk drive in the first format,wherein the conversion logic means includes shuttle register means and shuttle counter means, the shuttle counter means counts a number of valid data bytes stored in the shuttle register means, and the conversion logic means uses the same shuttle register means and the same shuttle counter means for both conversion from the second format to the first format and conversion from the first format to the second format, wherein the conversion logic is hardware.
  • 12. The storage controller of claim 11, wherein the first format includes symbol oriented data.
  • 13. The storage controller of claim 11, wherein the second format includes byte oriented data.
  • 14. The storage controller of claim 11, wherein at least one of the shuttle register means and the shuttle counter means is for concatenating the data based on first and second format requirements.
  • 15. The storage controller of claim 11, wherein the first format is based on 10-bit symbol data and the second format is based on 8-bit byte data.
  • 16. The storage controller of claim 14, further comprising first register means for receiving the data from the disk drive before the shuttle register means receives the data from the disk drive.
  • 17. The storage controller of claim 14, further comprising second register means for storing the data after the data is converted.
  • 18. The storage controller of claim 11, further comprising first in first out (“FIFO”) memory means for storing the data.
  • 19. The storage controller of claim 18, further comprising counter means for maintaining a sector count in the FIFO memory means.
  • 20. The storage controller of claim 18, wherein when the data is written to the FIFO memory means, the data is stored in the shuttle register means and transferred to the FIFO memory means based on a memory format.
US Referenced Citations (198)
Number Name Date Kind
3800281 Devore et al. Mar 1974 A
3988716 Fletcher Oct 1976 A
4001883 Strout et al. Jan 1977 A
4016368 Apple, Jr. Apr 1977 A
4050097 Miu Sep 1977 A
4080649 Calle Mar 1978 A
4156867 Bench et al. May 1979 A
4225960 Masters Sep 1980 A
4275457 Leighou Jun 1981 A
4390969 Hayes Jun 1983 A
4451898 Palermo May 1984 A
4486750 Aoki Dec 1984 A
4500926 Yoshimaru et al. Feb 1985 A
4517552 Shirota et al. May 1985 A
4587609 Boudreau et al. May 1986 A
4603382 Cole Jul 1986 A
4625321 Pechar Nov 1986 A
4667286 Young May 1987 A
4719523 Kutaragi Jan 1988 A
4750149 Miller Jun 1988 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
4866601 DuLac et al. Sep 1989 A
4866606 Kopetz Sep 1989 A
4881232 Sako et al. Nov 1989 A
4920535 Watanabe et al. Apr 1990 A
4947410 Lippmann et al. Aug 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 Dec 1991 A
5088093 Storch et al. Feb 1992 A
5109500 Iseki Apr 1992 A
5117442 Hall May 1992 A
5127098 Rosenthal 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 Covey Jun 1993 A
5220569 Hartness Jun 1993 A
5237593 Fisher et al. Aug 1993 A
5243471 Shinn Sep 1993 A
5249271 Hopkinson Sep 1993 A
5257143 Zangenehpur Oct 1993 A
5261081 White 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 Jan 1994 A
5280488 Glover et al. Jan 1994 A
5285327 Hetzler Feb 1994 A
5285451 Henson Feb 1994 A
5301333 Lee Apr 1994 A
5307216 Cook et al. Apr 1994 A
5315708 Eidler May 1994 A
5339443 Lockwood Aug 1994 A
5361266 Kodama et al. Nov 1994 A
5361267 Godiwala Nov 1994 A
5408644 Schneider Apr 1995 A
5420984 Good et al. May 1995 A
5428627 Gupta Jun 1995 A
5440751 Santeler Aug 1995 A
5465343 Henson Nov 1995 A
5487170 Bass Jan 1996 A
5488688 Gonzales Jan 1996 A
5491701 Zook Feb 1996 A
5500848 Best Mar 1996 A
5506989 Boldt Apr 1996 A
5507005 Kojima et al. Apr 1996 A
5519837 Tran May 1996 A
5523903 Hetzler Jun 1996 A
5541908 Hsu et al. Jul 1996 A
5544180 Gupta Aug 1996 A
5544346 Amini Aug 1996 A
5546545 Rich Aug 1996 A
5546548 Chen Aug 1996 A
5563896 Nakagushi Oct 1996 A
5572148 Lytle Nov 1996 A
5574867 Khaira Nov 1996 A
5581715 Verinsky et al. Dec 1996 A
5583999 Sato Dec 1996 A
5592404 Zook Jan 1997 A
5600662 Zook Feb 1997 A
5602857 Zook Feb 1997 A
5615190 Best Mar 1997 A
5623672 Popat Apr 1997 A
5627695 Prinis May 1997 A
5629949 Zook May 1997 A
5640602 Takase Jun 1997 A
5649230 Lentz Jul 1997 A
5664121 Cerauskis Sep 1997 A
5689656 Baden Nov 1997 A
5691994 Acosta Nov 1997 A
5692135 Alvarez Nov 1997 A
5692165 Jeddeloh Nov 1997 A
5719516 Sharpe-Geisler Feb 1998 A
5729718 Au Mar 1998 A
5740466 Geldman Apr 1998 A
5745793 Atsatt Apr 1998 A
5754759 Clarke May 1998 A
5758188 Appelbaum May 1998 A
5784569 Miller Jul 1998 A
5794073 Ramakrishnan 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 Dec 1998 A
5850422 Chen Dec 1998 A
5854918 Baxter Dec 1998 A
5864309 Hung Jan 1999 A
5887199 Ofer et al. Mar 1999 A
5890207 Sne Mar 1999 A
5890210 Ishii Mar 1999 A
5907717 Ellis May 1999 A
5912906 Wu et al. Jun 1999 A
5922062 Evoy Jul 1999 A
5925135 Trieu Jul 1999 A
5937435 Dobbek Aug 1999 A
5950223 Chiang Sep 1999 A
5968180 Baco Oct 1999 A
5983293 Murakami Nov 1999 A
5991911 Zook Nov 1999 A
6029226 Ellis Feb 2000 A
6029250 Keeth Feb 2000 A
6041417 Hammond Mar 2000 A
6065053 Nouri May 2000 A
6067206 Hull et al. May 2000 A
6070200 Gates May 2000 A
6076120 Hatayama Jun 2000 A
6078447 Sim Jun 2000 A
6081849 Born Jun 2000 A
6092231 Sze Jul 2000 A
6094320 Ahn Jul 2000 A
6124994 Malone, Sr. Sep 2000 A
6127948 Hillis et al. Oct 2000 A
6134063 Weston Lewis Oct 2000 A
6157984 Fisher Dec 2000 A
6169501 Ryan Jan 2001 B1
6178486 Gill Jan 2001 B1
6184808 Nakamura Feb 2001 B1
6192499 Yang Feb 2001 B1
6201655 Watanabe Mar 2001 B1
6223303 Billings Apr 2001 B1
6237053 Herrod et al. May 2001 B1
6279089 Schibilla Aug 2001 B1
6297926 Ahn Oct 2001 B1
6311239 Matthews Oct 2001 B1
6330626 Dennin et al. Dec 2001 B1
6381659 Proch Apr 2002 B2
6401149 Dennin Jun 2002 B1
6421795 Yamashita Jul 2002 B2
6470461 Pinvidic Oct 2002 B1
6487631 Dickinson Nov 2002 B2
6490635 Holmes Dec 2002 B1
6516385 Satoyama et al. Feb 2003 B1
6529971 Thiesfeld Mar 2003 B1
6530000 Krantz et al. Mar 2003 B1
6574676 Megiddo Jun 2003 B1
6631131 Sonnier et al. Oct 2003 B1
6662334 Stenfort Dec 2003 B1
6826650 Krantz Nov 2004 B1
6961832 Satoyama et al. Nov 2005 B2
7007114 White et al. Feb 2006 B1
7047388 Kaneko May 2006 B2
7191431 Brown et al. Mar 2007 B2
7581041 Whitby-Strevens et al. Aug 2009 B1
7752202 Kobori et al. Jul 2010 B2
20010044873 Wilson Nov 2001 A1
20020087746 Ludtke et al. Jul 2002 A1
20020110157 Jorgenson et al. Aug 2002 A1
20030037225 Deng et al. Feb 2003 A1
20040024930 Nakayama et al. Feb 2004 A1
20040088456 Zhang May 2004 A1
20050007811 Hyoudou Jan 2005 A1
20060167936 Okauchi et al. Jul 2006 A1
Foreign Referenced Citations (9)
Number Date Country
0 0383 437 Feb 1990 EP
0528273 Feb 1993 EP
0622726 Nov 1994 EP
0718827 Dec 1995 EP
2285166 Jun 1995 GB
62-125965 May 1987 JP
63-146198 Jun 1988 JP
03183067 Nov 1989 JP
9814861 Apr 1998 WO
Related Publications (1)
Number Date Country
20050289261 A1 Dec 2005 US