JPH06266506A - Disk storage system - Google Patents

Disk storage system

Info

Publication number
JPH06266506A
JPH06266506A JP5050296A JP5029693A JPH06266506A JP H06266506 A JPH06266506 A JP H06266506A JP 5050296 A JP5050296 A JP 5050296A JP 5029693 A JP5029693 A JP 5029693A JP H06266506 A JPH06266506 A JP H06266506A
Authority
JP
Japan
Prior art keywords
address
disk
register
logical
lba
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.)
Pending
Application number
JP5050296A
Other languages
Japanese (ja)
Inventor
Chikashi Igari
史 猪狩
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 Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP5050296A priority Critical patent/JPH06266506A/en
Publication of JPH06266506A publication Critical patent/JPH06266506A/en
Pending legal-status Critical Current

Links

Landscapes

  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

PURPOSE:To reduce the burden to a control CPU of an HDD to increase the address conversion processing speed by providing an HDC with an operation function which converts the logical address designated by a host CPU to address information required for access. CONSTITUTION:An HDC 14 is provided with an address conversion and calculation part which converts the logical CHS address designated by a host CPU 15 to LBA based on preliminarily determined parameter information in accordance with prescribed interface standards. A control CPU 11 of the HDD generates actual address information required for access to a disk 1 based on the calculated LBA.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、特にハードディスク装
置であるディスクドライブ、ディスクコントローラおよ
びホストコンピュータからなり、ホストコンピュータの
アクセス要求に応じた論理アドレスをディスクをアクセ
スするために必要なアドレス情報に変換するアドレス変
換機能を備えたシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention comprises a disk drive which is a hard disk device, a disk controller and a host computer, and converts a logical address according to an access request from the host computer into address information necessary for accessing the disk. The present invention relates to a system provided with an address translation function.

【0002】[0002]

【従来の技術】従来、ハードディスク装置(HDD)と
ホストコンピュータ(ホストCPU)とのインターフェ
ース規格には、SCSI,IDE,PCMCIA等が周
知である。このようなインターフェースを利用して、ホ
ストCPUはHDDをアクセスする。
2. Description of the Related Art Conventionally, SCSI, IDE, PCMCIA, etc. are well known as interface standards between a hard disk device (HDD) and a host computer (host CPU). The host CPU accesses the HDD using such an interface.

【0003】HDDは、記録媒体であるディスクを駆動
するディスクドライブとホストCPUとのインターフェ
ースを構成するディスクコントローラ(HDC)からな
る。HDCは、ホストCPUからのコマンドおよびアク
セス対象のアドレス情報を受信し、またディスクドライ
ブとホストCPU間のリード/ライトデータの転送を行
なう。ディスクドライブには、ディスク駆動制御を行な
う制御用CPUが設けられている。制御用CPUは、H
DCを通じてホストCPUからのコマンドに応じた制御
動作を実行し、ホストCPUからのアドレス情報に対応
するディスクのセクタに対してデータのリード/ライト
を実行させる。
The HDD comprises a disk drive that drives a disk as a recording medium and a disk controller (HDC) that forms an interface with the host CPU. The HDC receives commands from the host CPU and address information to be accessed, and also transfers read / write data between the disk drive and the host CPU. The disk drive is provided with a control CPU for performing disk drive control. The control CPU is H
A control operation according to a command from the host CPU is executed through DC, and data read / write is executed with respect to a sector of the disk corresponding to the address information from the host CPU.

【0004】ホストCPUは、前記のような周知のイン
ターフェース規格により、HDDをアクセスする場合
に、アクセス対象である目標セクタのアドレスを、シリ
ンダ番号,ヘッド番号,セクタ番号からなる論理アドレ
ス(以下CHSアドレスと称する)により指定する。ホ
ストCPUは、OSが予めHDDの構成を把握し、アク
セスに必要なトラック当たりのセクタ数,ヘッド数,シ
リンダ数等のパラメータ情報を記憶している。
According to the well-known interface standard as described above, when the host CPU accesses the HDD, the address of the target sector to be accessed is a logical address composed of a cylinder number, a head number, and a sector number (hereinafter referred to as CHS address). )). The host CPU stores the parameter information such as the number of sectors per track, the number of heads, and the number of cylinders required for access by the OS to grasp the HDD configuration in advance.

【0005】ところで、インターフェース規格により、
パラメータ情報のセクタ数,ヘッド数,シリンダ数には
上限がある。例えばIDE,PCMCIAでは、ヘッド
数は16まで、シリンダ数は1024まで、セクタ数は
255までとなっている。しかしながら、HDDの実際
上の構成として、例えばディスクの枚数を少なくして大
容量化を図るために、シリンダ数を1024までにでき
るとは限らない。このような場合に、ホストCPU側に
示すパラメータ情報を、インターフェース規格の制限の
範囲内になるように論理的な調整を行なう。
By the way, according to the interface standard,
There is an upper limit to the number of sectors, heads, and cylinders in the parameter information. For example, in IDE and PCMCIA, the number of heads is up to 16, the number of cylinders is up to 1024, and the number of sectors is up to 255. However, as the actual configuration of the HDD, the number of cylinders cannot always be set to 1024 in order to reduce the number of disks and increase the capacity. In such a case, the parameter information shown on the host CPU side is logically adjusted so as to be within the limit of the interface standard.

【0006】また、記憶容量が同一でも、パラメータ情
報はHDDの機種毎に異なるのが一般的である。この場
合、ホストCPU側では、同一容量のHDDを統一した
シリンダ数,ヘッド数,セクタ数で扱う方が管理しやす
い。したがって、HDDの物理的パラメータの仕様が異
なる場合でも、ホストCPUは予め決定された論理的構
成によりHDDをアクセスできるようになっている。
Further, even if the storage capacity is the same, the parameter information is generally different for each HDD model. In this case, on the host CPU side, it is easier to manage HDDs having the same capacity with the same number of cylinders, heads, and sectors. Therefore, even if the specifications of the physical parameters of the HDD are different, the host CPU can access the HDD with a predetermined logical configuration.

【0007】このようなアクセス動作を実現するため
に、以下のような物理的パラメータと論理的パラメータ
の変換処理を実行する。まず、ホストCPUから指定さ
れたCHSアドレスと、予め決定されているヘッド数,
トラック当たりのセクタ数,シリンダ数のパラメータ情
報とから論理ブロックアドレス(LBA)を算出する。
そして、算出したLBAから実際のHDDのアドレスに
変換する。
In order to realize such an access operation, the following conversion processing of physical parameters and logical parameters is executed. First, the CHS address specified by the host CPU, the number of heads determined in advance,
The logical block address (LBA) is calculated from the parameter information of the number of sectors and the number of cylinders per track.
Then, the calculated LBA is converted into the actual HDD address.

【0008】ここで、LBAは、ディスク上のセクタ番
号に一連の番号を付けて扱う論理アドレス情報である。
例えばホストCPUが管理しているパラメータがトラッ
ク当たりのセクタ数が10,ヘッド数が2の場合には、
シリンダ番号0,ヘッド番号0,セクタ番号0に対応す
るセクタのLBAは0となる。また、シリンダ番号0,
ヘッド番号1,セクタ番号0に対応するセクタのLBA
は10となる。また、IDE,PCMCIAのインター
フェース仕様では、1トラック上の最終セクタ番号の次
に続くアドレスは、同一シリンダ内のヘッド番号を+1
した場所にある最小セクタ番号となる。ヘッド番号の上
限に達した場合には、シリンダ番号が+1されて、かつ
ヘッドも最小ヘッド番号のものが選択されることにな
る。
Here, the LBA is logical address information that is handled by adding a series of numbers to the sector numbers on the disk.
For example, when the parameters managed by the host CPU are 10 sectors per track and 2 heads,
The LBA of the sector corresponding to cylinder number 0, head number 0, and sector number 0 is 0. Also, cylinder number 0,
LBA of the sector corresponding to head number 1 and sector number 0
Is 10. Also, in the IDE and PCMCIA interface specifications, the address following the last sector number on one track is the head number in the same cylinder + 1.
It becomes the minimum sector number in the specified location. When the upper limit of the head number is reached, the cylinder number is incremented by 1 and the head with the smallest head number is selected.

【0009】[0009]

【発明が解決しようとする課題】従来では、HDDの物
理的パラメータの仕様が異なる場合でも、インターフェ
ース規格によるCHSアドレスと予め決定されたパラメ
ータ情報とから、ホストCPUにより指定されたアクセ
ス対象を論理ブロックアドレス(LBA)に変換するア
ドレス変換処理が行なわれることにより、アクセスが可
能となる。このようなアドレス変換処理は、通常ではH
DCの制御用CPUにより実行されている。
Conventionally, even when the specifications of the physical parameters of the HDD are different, the access target specified by the host CPU is determined as a logical block from the CHS address according to the interface standard and the predetermined parameter information. By performing the address conversion process for converting the address (LBA), access becomes possible. Such address conversion processing is normally H
It is executed by the control CPU of the DC.

【0010】しかしながら、制御用CPUは例えば8ビ
ット幅のデータ演算機能を有するマイクロプロセッサで
あり、LBAを算出するようなデータ量の大きい演算処
理には多大な処理時間を要する。具体的には、例えばデ
ィスクの1セクタ当たりの記憶容量が512バイトとし
た場合に、200メガバイトの記憶容量を有するHDD
のLBAの最大値は390625となる。これは16進
数で表すと、05F5E1hとなり、19ビットのデー
タ量となる。
However, the control CPU is, for example, a microprocessor having an 8-bit width data calculation function, and a large amount of data is required for calculation processing such as LBA calculation. Specifically, for example, when the storage capacity per sector of the disk is 512 bytes, an HDD having a storage capacity of 200 megabytes
The maximum value of the LBA of is 390625. When expressed in hexadecimal, this is 05F5E1h, which is a 19-bit data amount.

【0011】本発明の目的は、アドレス変換機能を有す
るディスク記憶システムにおいて、ホストCPUにより
指定された論理アドレスをアクセスに必要なアドレス情
報に変換するための演算機能をHDCに設けることによ
り、HDDの制御用CPUの負担を軽減して、アドレス
変換処理の高速化を図ることにある。
An object of the present invention is to provide a disk storage system having an address conversion function, by providing the HDC with a calculation function for converting a logical address designated by the host CPU into address information necessary for access, and The purpose is to reduce the load on the control CPU and speed up the address conversion process.

【0012】[0012]

【課題を解決するための手段】本発明は、ホストコンピ
ュータ、ディスクコントローラおよびディスクドライブ
からなるディスク記憶システムにおいて、所定のインタ
ーフェース規格に従って、ホストコンピュータにより指
定された論理アドレスをディスクのアクセスを実行する
ために必要なアドレス情報に変換するアドレス変換処理
手段をディスクコントローラに設けたシステムである。
According to the present invention, in a disk storage system comprising a host computer, a disk controller and a disk drive, a logical address designated by the host computer is accessed in accordance with a predetermined interface standard. In this system, the disk controller is provided with address conversion processing means for converting the address information necessary for the above.

【0013】[0013]

【作用】本発明では、ディスクコントローラは、所定の
インターフェース規格に従って、ホストコンピュータに
より指定された論理CHSアドレスを、予め決定された
パラメータ情報に基づいてLBAであるアドレス情報に
変換するアドレス変換処理手段を備えている。したがっ
て、ディスクドライブの制御用CPUは、アドレス変換
処理に伴う負担を軽減されることになる。
In the present invention, the disk controller has address conversion processing means for converting the logical CHS address designated by the host computer into the address information which is the LBA based on the predetermined parameter information according to the predetermined interface standard. I have it. Therefore, the control CPU of the disk drive can reduce the load associated with the address conversion processing.

【0014】[0014]

【実施例】以下図面を参照して本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1は本発明のアドレス変換装置(アドレ
ス変換処理手段)の構成を説明するためのブロック図、
図2は同実施例に係わるディスク記憶システムの要部を
示すブロック図、図3および図4は同実施例の動作を説
明するためのフローチャートである。
FIG. 1 is a block diagram for explaining the configuration of the address translation device (address translation processing means) of the present invention,
2 is a block diagram showing a main part of the disk storage system according to the embodiment, and FIGS. 3 and 4 are flow charts for explaining the operation of the embodiment.

【0016】本システムは、図2に示すように、大別し
てディスクドライブ(HDD)、ディスクコントローラ
(HDC)14およびホストCPU15からなる。HD
Dは、記録媒体であるディスク1を回転駆動するための
ディスク回転機構、ディスク上の目標トラックにヘッド
2を位置決めするためのサーボ機構およびデータの記録
再生を行なうためのリード/ライト回路3を有する。
As shown in FIG. 2, this system is roughly divided into a disk drive (HDD), a disk controller (HDC) 14 and a host CPU 15. HD
D has a disk rotating mechanism for rotating the disk 1 as a recording medium, a servo mechanism for positioning the head 2 on a target track on the disk, and a read / write circuit 3 for recording / reproducing data. .

【0017】ディスク回転機構は、ディスク1を回転駆
動させるスピンドルモータ4およびスピンドルモータ
(SPM)ドライバ5を有する。サーボ機構は、ヘッド
2を保持するキャリッジ機構6、キャリッジ機構6を駆
動するためのボイスコイルモータ(VCM)7、VCM
7を駆動するためのVCMドライバ8およびサーボ回路
9を有する。サーボ回路9は、ゲートアレイからなるロ
ジック回路10を通じて制御用CPU11からの指令に
基づいて、VCMドライバ8を制御してヘッド2をディ
スク1上の目標トラックに位置決めするためのサーボ処
理を実行する。このとき、サーボ回路9は、リード/ラ
イト回路3から出力されるサーボ信号(位置誤差信号
等)Sを利用して位置決め制御を行なう。ロジック回路
10は、PLD(Programmable Logi
c Dvice)やFPGA(Field Progr
ammable Gate Array)等のプログラ
マブル・ロジック集積回路である。
The disk rotating mechanism has a spindle motor 4 and a spindle motor (SPM) driver 5 for rotating the disk 1. The servo mechanism includes a carriage mechanism 6 that holds the head 2, a voice coil motor (VCM) 7 that drives the carriage mechanism 6, and a VCM.
It has a VCM driver 8 and a servo circuit 9 for driving 7. The servo circuit 9 controls the VCM driver 8 based on a command from the control CPU 11 through a logic circuit 10 including a gate array to execute servo processing for positioning the head 2 on a target track on the disk 1. At this time, the servo circuit 9 uses the servo signal (position error signal or the like) S output from the read / write circuit 3 to perform positioning control. The logic circuit 10 includes a PLD (Programmable Logi).
c Device or FPGA (Field Progr)
It is a programmable logic integrated circuit such as an Amable Gate Array).

【0018】リード/ライト回路3は、ディスク1に書
き込むためのライトデータに従った書き込み電流を発生
したり、ヘッド2からの読出し信号からリードデータを
再生する回路である。ヘッド2はリード/ライト回路3
からの書き込み電流により、ライトデータに対応する記
録磁界を発生する。リード/ライト回路3は、ヘッド2
からの読出し信号を増幅するヘッドアンプ3aおよび読
出し信号からリードデータRDや同期パルスPを弁別す
るためのパルスピークディテクタ(PPD)3bを有す
る。サーボ信号SはPPD3bにより抽出される。
The read / write circuit 3 is a circuit for generating a write current according to write data for writing to the disk 1 and reproducing read data from a read signal from the head 2. Head 2 is read / write circuit 3
A write magnetic field from the magnetic field generates a recording magnetic field corresponding to the write data. The read / write circuit 3 is the head 2
It has a head amplifier 3a that amplifies a read signal from the device and a pulse peak detector (PPD) 3b for discriminating the read data RD and the sync pulse P from the read signal. The servo signal S is extracted by the PPD 3b.

【0019】ロジック回路10および制御用CPU11
は、HDDのディスク制御装置を構成する要素である。
ロジック回路10は制御用CPU11により設定された
ロジックデータに基づいてロジック回路構成がなされ
る。制御用CPU11は、ROM12に格納されたプロ
グラムに従ってHDDのディスク制御動作を決定するマ
イクロプロセッサである。ROM12は制御用CPU1
1のプログラムと共に、ロジック回路10のロジックデ
ータを格納している。制御用CPU11は、ROM12
から読出したロジックデータをロジック回路10に設定
する。
Logic circuit 10 and control CPU 11
Is an element constituting a disk control device of the HDD.
The logic circuit 10 has a logic circuit configuration based on the logic data set by the control CPU 11. The control CPU 11 is a microprocessor that determines the disk control operation of the HDD according to a program stored in the ROM 12. ROM 12 is a control CPU 1
The logic data of the logic circuit 10 is stored together with the program of 1. The control CPU 11 is a ROM 12
The logic data read from is set in the logic circuit 10.

【0020】HDC14は、HDDとホストCPU15
とのインターフェースを構成し、制御用CPU11およ
びロジック回路10との間で各種インターフェース信号
やデータの交換を行なう。HDC14は、ディスク2か
ら読出されたセクタ単位のリードデータおよびディスク
2に書き込むためのライトデータを、セクタバッファメ
モリであるRAM16に一時的に格納する。ホストCP
U15は、HDDをアクセスするコンピュータ本体のC
PUである。HDC14は、本発明の要旨に係わる図1
に示すアドレス変換装置を有する。
The HDC 14 includes an HDD and a host CPU 15
And interfaces with the control CPU 11 and the logic circuit 10 to exchange various interface signals and data. The HDC 14 temporarily stores read data in sector units read from the disk 2 and write data to be written in the disk 2 in a RAM 16 which is a sector buffer memory. Host CP
U15 is C of the computer body that accesses the HDD
It is PU. The HDC 14 is shown in FIG.
The address translation device shown in FIG.

【0021】アドレス変換装置は、図1に示すように、
アドレス変換計算部20、ホストヘッドレジスタ21、
ホストセクタレジスタ22、開始ビットレジスタ23、
終了ビットレジスタ24、出力レジスタ25、入力レジ
スタ26、目標アドレスレジスタ27およびCHSアド
レスレジスタ28を備えている。アドレス変換計算部2
0は装置の主要構成要素であり、ホストCPU15によ
り指定されるCHSアドレスを論理ブロックアドレス
(LBA)に変換し、または逆にLBAをCHSアドレ
スに変換するためのアドレス変換処理を実行する。
The address translation device, as shown in FIG.
Address conversion calculation unit 20, host head register 21,
Host sector register 22, start bit register 23,
An end bit register 24, an output register 25, an input register 26, a target address register 27 and a CHS address register 28 are provided. Address conversion calculator 2
Reference numeral 0 is a main constituent element of the device, which executes an address conversion process for converting a CHS address designated by the host CPU 15 into a logical block address (LBA), or conversely, converting an LBA into a CHS address.

【0022】ホストヘッドレジスタ21は、ホストCP
U15が認識しているHDDの論理ヘッド数を保持する
パラメータレジスタである。ホストセクタレジスタ22
は、ホストCPU15が認識しているHDDの1トラッ
ク当たりの論理セクタ数を保持するパラメータレジスタ
である。開始ビットレジスタ23は、変換処理の計算動
作の開始を指示するための開始ビットを保持する。終了
ビットレジスタ24は、計算動作の終了を指示するため
の終了ビットを保持する。
The host head register 21 is a host CP.
This is a parameter register that holds the number of HDD logical heads recognized by U15. Host sector register 22
Is a parameter register that holds the number of logical sectors per track of the HDD recognized by the host CPU 15. The start bit register 23 holds a start bit for instructing the start of the calculation operation of the conversion process. The end bit register 24 holds an end bit for instructing the end of the calculation operation.

【0023】出力レジスタ25は、アドレス変換計算部
20の計算結果であるLBAを保持するレジスタであ
る。LBAは例えば32ビットのデータ幅を有し、最上
位ビット列BIT31−24(H),中間上位ビット列
BIT23−16(UH),中間下位ビット列BIT1
5−8(LH),最下位ビット列BIT7−0(L)か
らなる。入力レジスタ26は、アドレス変換計算部20
がCHSアドレスに変換するときのLBAを格納するた
めのレジスタである。
The output register 25 is a register for holding the LBA which is the calculation result of the address conversion calculation unit 20. The LBA has a data width of 32 bits, for example, and the most significant bit string BIT31-24 (H), the intermediate upper bit string BIT23-16 (UH), and the intermediate lower bit string BIT1.
5-8 (LH) and the least significant bit string BIT7-0 (L). The input register 26 is used by the address translation calculator 20.
Is a register for storing the LBA when converting to a CHS address.

【0024】目標アドレスレジスタ27は、ホストCP
U15によりセットされるCHSアドレスを保持するた
めのレジスタである。CHSアドレスは、シリンダ番号
CYLの下位8ビット(L),上位8ビット(H)、ヘ
ッド番号HEおよびセクタ番号SECからなる。CHS
アドレスレジスタ28は、アドレス変換計算部20によ
り変換されたCHSアドレスレジスタを格納するための
レジスタである。次に、同実施例の動作を図3と図4の
フローチャートを参照して説明する。
The target address register 27 is used by the host CP.
This is a register for holding the CHS address set by U15. The CHS address is composed of the lower 8 bits (L), the upper 8 bits (H) of the cylinder number CYL, the head number HE and the sector number SEC. CHS
The address register 28 is a register for storing the CHS address register converted by the address conversion calculation unit 20. Next, the operation of the embodiment will be described with reference to the flowcharts of FIGS.

【0025】図3のステップS1に示すように、HDC
14はホストCPU15により指定されたアドレス対象
のCHSアドレスをリードする。HDC14は、リード
したCHSアドレスを目標アドレスレジスタ27にセッ
トする(ステップS2)。さらに、HDC14は、ホス
トCPU15により認識されているHDDの論理ヘッド
数をホストヘッドレジスタ21にセットし、1トラック
当たりの論理セクタ数をホストセクタレジスタ22にセ
ットする(ステップS3)。
As shown in step S1 of FIG.
14 reads the CHS address of the address target designated by the host CPU 15. The HDC 14 sets the read CHS address in the target address register 27 (step S2). Further, the HDC 14 sets the number of HDD logical heads recognized by the host CPU 15 in the host head register 21, and sets the number of logical sectors per track in the host sector register 22 (step S3).

【0026】HDC14は、ホストCPU15からの指
示により、計算動作の開始を指示するための開始ビット
を開始ビットレジスタ23にセットする(ステップS
4)。アドレス変換計算部20は、開始ビットのセット
に応じて、パラメータレジスタ21,22に保持された
パラメータ情報(HDDの論理ヘッド数と論理セクタ
数)を参照して、目標アドレスレジスタ27にセットさ
れたCHSアドレスをLBAに変換する計算動作を実行
する(ステップS5)。アドレス変換計算部20は,具
体的には下記式(1)により、LBAを算出する。 LBA=(HSEC×HHE×CYL)+(HE×HSEC)+(SEC−1) …(1)
In response to an instruction from the host CPU 15, the HDC 14 sets a start bit for instructing the start of the calculation operation in the start bit register 23 (step S).
4). The address conversion calculation unit 20 refers to the parameter information (the number of logical heads and the number of logical sectors of the HDD) held in the parameter registers 21 and 22 in accordance with the setting of the start bit and is set in the target address register 27. A calculation operation for converting the CHS address into the LBA is executed (step S5). The address translation calculator 20 specifically calculates the LBA by the following equation (1). LBA = (HSEC × HHE × CYL) + (HE × HSEC) + (SEC-1) (1)

【0027】ここで、HSECはホストセクタレジスタ
22にセットされた論理セクタ数である。HHEはホス
トヘッドレジスタ21にセットされた論理ヘッド数であ
る。CYLは目標アドレスレジスタ27にセットされた
シリンダ番号である。HEは目標アドレスレジスタ27
にセットされたヘッド番号である。SECは目標アドレ
スレジスタ27にセットされたセクタ番号である。
Here, HSEC is the number of logical sectors set in the host sector register 22. HHE is the number of logical heads set in the host head register 21. CYL is a cylinder number set in the target address register 27. HE is the target address register 27
Is the head number set in. SEC is a sector number set in the target address register 27.

【0028】アドレス変換計算部20は計算動作を終了
すると、計算動作の終了を指示するための終了ビットを
終了ビットレジスタ24にセットする(ステップS6の
YES,S7)。アドレス変換計算部20は計算結果で
あるLBAを出力レジスタ25にセットする。HDC1
4は、終了ビットレジスタ24にセットされた終了ビッ
トにより、アドレス変換計算部20の計算動作の終了を
認識する(ステップS8)。HDC14は、出力レジス
タ25から計算結果であるLBAをリードし、HDDの
制御用CPU11に出力する(ステップS9)。
Upon completion of the calculation operation, the address translation calculator 20 sets an end bit for instructing the end of the calculation operation in the end bit register 24 (YES in step S6, S7). The address translation calculator 20 sets the calculation result LBA in the output register 25. HDC1
4 recognizes the end of the calculation operation of the address translation calculator 20 by the end bit set in the end bit register 24 (step S8). The HDC 14 reads the calculation result LBA from the output register 25 and outputs it to the control CPU 11 of the HDD (step S9).

【0029】制御用CPU11は、算出されたLBAか
ら、ディスク1のアクセス対象である実際上のアドレス
情報を生成する。アドレス情報は、ヘッド番号PHE,
シリンダ番号PCYL,セクタ番号PSECからなる。
制御用CPU11は、下記式(2)〜(4)により、ア
ドレス情報を算出する。 PSEC=LBA mod DSEC…(2) 但し、DSECはディスク1の1トラック当たりのセク
タ数であり、modは割余を意味する。 PCYL=int (LBA/(DHE×DSEC×DCYL))…(3) 但し、DHEはHDDのヘッド数であり、DCYLはデ
ィスク1の1面当たりのシリンダ数であり、intは少
数点以下切り捨てを意味する。 PHE=(int(LBA/(DHE×DSEC)))mod DHE…(4)
The control CPU 11 generates, from the calculated LBA, actual address information which is an access target of the disk 1. The address information is the head number PHE,
It consists of a cylinder number PCYL and a sector number PSEC.
The control CPU 11 calculates the address information by the following equations (2) to (4). PSEC = LBA mod DSEC (2) However, DSEC is the number of sectors per track of the disk 1, and mod means a remainder. PCYL = int (LBA / (DHE × DSEC × DCYL)) (3) where DHE is the number of heads of the HDD, DCYL is the number of cylinders per surface of the disk 1, and int is rounded down to the nearest whole number. means. PHE = (int (LBA / (DHE × DSEC))) mod DHE ... (4)

【0030】次に、アドレス変換計算部20は、前記の
アドレス変換処理とは逆に、LBAからホストCPU1
5が認識するCHSアドレスに変換する計算も実行す
る。即ち、図4のステップS10に示すように、HDC
14は、指定されたLBAを入力レジスタ26にセット
する。さらに、HDC14は、ホストCPU15により
認識されているHDDの論理ヘッド数をホストヘッドレ
ジスタ21にセットし、1トラック当たりの論理セクタ
数をホストセクタレジスタ22にセットする(ステップ
S11)。
Next, the address conversion calculation unit 20 reverses the address conversion processing from the LBA to the host CPU 1
It also performs a calculation to convert to a CHS address recognized by 5. That is, as shown in step S10 of FIG.
14 sets the designated LBA in the input register 26. Further, the HDC 14 sets the number of HDD logical heads recognized by the host CPU 15 in the host head register 21, and sets the number of logical sectors per track in the host sector register 22 (step S11).

【0031】HDC14は、ホストCPU15からの指
示により、計算動作の開始を指示するための開始ビット
を開始ビットレジスタ23にセットする(ステップS1
2)。アドレス変換計算部20は、開始ビットのセット
に応じて、パラメータレジスタ21,22に保持された
パラメータ情報(HDDの論理ヘッド数と論理セクタ
数)を参照して、入力レジスタ26にセットされたLB
AをCHSアドレスに変換する計算動作を実行する(ス
テップS13)。
In response to an instruction from the host CPU 15, the HDC 14 sets a start bit for instructing the start of the calculation operation in the start bit register 23 (step S1).
2). The address translation calculation unit 20 refers to the parameter information (the number of logical heads and the number of logical sectors of the HDD) held in the parameter registers 21 and 22 according to the setting of the start bit, and sets the LB set in the input register 26.
A calculation operation for converting A into a CHS address is executed (step S13).

【0032】アドレス変換計算部20は計算動作を終了
すると、計算動作の終了を指示するための終了ビットを
終了ビットレジスタ24にセットする(ステップS14
のYES,S15)。アドレス変換計算部20は計算結
果であるCHSアドレスを、CHSアドレスレジスタ2
8にセットする。HDC14は、終了ビットレジスタ2
4にセットされた終了ビットにより、アドレス変換計算
部20の計算動作の終了を認識する(ステップS1
6)。HDC14は、CHSアドレスレジスタ28から
計算結果であるCHSアドレスをリードし、ホストCP
U15に転送する(ステップS17)。
When the address translation calculator 20 completes the calculation operation, it sets an end bit for instructing the end of the calculation operation in the end bit register 24 (step S14).
YES, S15). The address conversion calculation unit 20 stores the CHS address, which is the calculation result, in the CHS address register 2
Set to 8. HDC 14 uses end bit register 2
The end bit set to 4 recognizes the end of the calculation operation of the address translation calculator 20 (step S1).
6). The HDC 14 reads the CHS address, which is the calculation result, from the CHS address register 28, and the host CP
Transfer to U15 (step S17).

【0033】このようにして、HDC14は、ホストC
PU15により指定されたアクセス対象の論理アドレス
(CHSアドレス)を、インターフェース規格に従っ
て、論理ブロックアドレス(LBA)に変換するアドレ
ス変換処理を実行する。HDDの制御用CPU11は、
HDC14のアドレス変換計算部20の計算動作が終了
すると、算出されたLBAに基づいてディスク1をアク
セスするために必要な実際上のアドレス情報を生成す
る。これにより、ホストCPU15により指定された論
理アドレスのセクタをアクセスすることになる。
In this way, the HDC 14 is connected to the host C.
An address conversion process for converting a logical address (CHS address) to be accessed specified by the PU 15 into a logical block address (LBA) according to the interface standard is executed. The control CPU 11 of the HDD is
When the calculation operation of the address conversion calculation unit 20 of the HDC 14 is completed, the actual address information necessary for accessing the disk 1 is generated based on the calculated LBA. As a result, the sector of the logical address designated by the host CPU 15 is accessed.

【0034】本発明では、CHSアドレスをLBAに変
換するためのデータ量の大きいアドレス変換処理を、H
DC14に設けられたアドレス変換計算部20により実
行する。したがって、HDDの制御用CPU11は、算
出されたLBAに基づいて実際上のアドレス情報を生成
する処理だけとなるため、負担を大幅に軽減されること
になる。
According to the present invention, an address conversion process for converting a CHS address into an LBA, which requires a large amount of data, is performed by H
It is executed by the address conversion calculation unit 20 provided in the DC 14. Therefore, the control CPU 11 of the HDD is only required to generate the actual address information based on the calculated LBA, which significantly reduces the load.

【0035】[0035]

【発明の効果】以上詳述したように本発明によれば、ホ
ストCPUにより指定された論理アドレスをインターフ
ェース規格に従ったアドレス情報に変換するアドレス変
換処理をHDC側で実行することにより、HDDの制御
用CPUの負担の軽減化を図ることができる。したがっ
て、アドレス変換処理に必要な処理時間の短縮化を図
り、結果的にHDDのアクセスの高速化を実現すること
が可能となる。
As described above in detail, according to the present invention, the HDC side executes the address conversion process for converting the logical address designated by the host CPU into the address information in accordance with the interface standard. The burden on the control CPU can be reduced. Therefore, the processing time required for the address conversion processing can be shortened, and as a result, the access to the HDD can be speeded up.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係わるアドレス変換装置の構成を説明
するためのブロック図。
FIG. 1 is a block diagram for explaining a configuration of an address translation device according to the present invention.

【図2】同実施例に係わるディスク記憶システムの要部
を示すブロック図。
FIG. 2 is a block diagram showing a main part of the disk storage system according to the embodiment.

【図3】同実施例の動作を説明するためのフローチャー
ト。
FIG. 3 is a flowchart for explaining the operation of the embodiment.

【図4】同実施例の動作を説明するためのフローチャー
ト。
FIG. 4 is a flowchart for explaining the operation of the embodiment.

【符号の説明】[Explanation of symbols]

1…ディスク、11…制御用CPU、14…HDC、1
5…ホストCPU、20…アドレス変換計算部。
1 ... Disk, 11 ... Control CPU, 14 ... HDC, 1
5 ... Host CPU, 20 ... Address translation calculator.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータ、ディスクコントロ
ーラおよびディスクドライブからなるディスク記憶シス
テムにおいて、 前記ディスクコントローラに設けられて、所定のインタ
ーフェース規格に従って、ホストコンピュータにより指
定された論理アドレスを、前記ディスクドライブのディ
スクのアクセスを実行するために必要なアドレス情報に
変換するアドレス変換処理手段を具備したことを特徴と
するディスク記憶システム。
1. A disk storage system comprising a host computer, a disk controller and a disk drive, wherein a logical address, which is provided in the disk controller and designated by the host computer according to a predetermined interface standard, is stored in the disk of the disk drive. A disk storage system comprising address conversion processing means for converting address information necessary for executing access.
【請求項2】 ホストコンピュータ、ディスクコントロ
ーラおよびディスクドライブからなるディスク記憶シス
テムにおいて、 前記ディスクコントローラに設けられて、所定のインタ
ーフェース規格に従って、ホストコンピュータにより指
定された論理アドレスを、予め決定されたディスクドラ
イブのパラメータ情報に基づいて論理ブロックアドレス
に変換するアドレス変換処理手段と、 前記ディスクドライブに設けられて、前記アドレス変換
処理手段により算出された前記論理ブロックアドレスを
前記ディスクドライブのディスクのアクセスを実行する
ために必要な実際上のアドレス情報に変換するアドレス
生成手段とを具備したことを特徴とするディスク記憶シ
ステム。
2. A disk storage system comprising a host computer, a disk controller and a disk drive, wherein the disk drive is provided in the disk controller and a logical address specified by the host computer is predetermined according to a predetermined interface standard. Address conversion processing means for converting into a logical block address on the basis of the parameter information of the above, and the logical block address calculated by the address conversion processing means, which is provided in the disk drive, executes the disk access of the disk drive. A disk storage system, comprising: an address generation means for converting into actual address information necessary for that purpose.
JP5050296A 1993-03-11 1993-03-11 Disk storage system Pending JPH06266506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5050296A JPH06266506A (en) 1993-03-11 1993-03-11 Disk storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5050296A JPH06266506A (en) 1993-03-11 1993-03-11 Disk storage system

Publications (1)

Publication Number Publication Date
JPH06266506A true JPH06266506A (en) 1994-09-22

Family

ID=12854940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5050296A Pending JPH06266506A (en) 1993-03-11 1993-03-11 Disk storage system

Country Status (1)

Country Link
JP (1) JPH06266506A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001337786A (en) * 2000-05-26 2001-12-07 Matsushita Electric Ind Co Ltd Adapter for storage unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001337786A (en) * 2000-05-26 2001-12-07 Matsushita Electric Ind Co Ltd Adapter for storage unit

Similar Documents

Publication Publication Date Title
US5603002A (en) Hard disk drive having buffer memory employing directory based cache controller with data replacement scheme
JP2002268924A (en) Disk storage system with defragmentation function and defragmentation method in the same system
KR20100007258A (en) Method for controlling cache flush and data storage system using the same
US10366726B1 (en) Interlaced magnetic recording in with multiple independent-actuators having respective independent heads
JP2007200537A (en) Hybrid disk drive and method of controlling data of hybrid disk drive
JP4401693B2 (en) Data storage system control method based on temperature, data storage system control device based on temperature, and warming light current determination method in data storage system
EP0738954B1 (en) Data transfer control method and apparatus for external storage subsystem
KR100594301B1 (en) Method for varying the recording density of data storage medium and disc drive using the same
JPH1097385A (en) Disk recording and reproducing device and interface controller applied to the recording and reproducing device
JPH1091361A (en) Initialization calibration routine execution method for hard disk drive
JPH04325923A (en) Access control system for optical disk device
JPH08152975A (en) Disk device and data write-read method
JP2837155B2 (en) How to copy hard disk drive
JPH06266506A (en) Disk storage system
JP2931749B2 (en) Data recording / reproducing device and servo processing method
JP2003199014A (en) Disk storage device and command processing method
JPH07320410A (en) Method for recording optical disk and its device
JP2834081B2 (en) Magnetic disk controller
JP2590722B2 (en) Optical disk controller
JPH07161137A (en) Data recording/reproducing apparatus and parameter setting method
JP2000222137A (en) Disk storage device and buffer control method in the device
KR100189927B1 (en) Hard disk drive control device and method
JPH04245320A (en) Magnetic disk device
KR100640619B1 (en) Method for setting operation parameters of harddisk drive and recording media therefor
KR0176611B1 (en) Hard disk drive control and method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20090314

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100314

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20100314

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20120314

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130314

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140314

Year of fee payment: 11