JPH01116962A - Disk controller - Google Patents

Disk controller

Info

Publication number
JPH01116962A
JPH01116962A JP27177287A JP27177287A JPH01116962A JP H01116962 A JPH01116962 A JP H01116962A JP 27177287 A JP27177287 A JP 27177287A JP 27177287 A JP27177287 A JP 27177287A JP H01116962 A JPH01116962 A JP H01116962A
Authority
JP
Japan
Prior art keywords
data
read
disk
buffer memory
counter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27177287A
Other languages
Japanese (ja)
Inventor
Akio Takahashi
高橋 明夫
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP27177287A priority Critical patent/JPH01116962A/en
Publication of JPH01116962A publication Critical patent/JPH01116962A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To vary a data format at a high speed by enabling data stored in a buffer memory to be read and written selectively while putting a counter in counting operation. CONSTITUTION:When data transferred from a host computer is stored in the buffer memory 5, necessary control information is generated or read out of the buffer memory 5 according to the counted value of the counter 9, and transferred to and written on a disk 1 in prescribed format order. Actual data are also read out of the buffer memory 5 at prescribed timing and transferred to the disk 1 simultaneously. Further, when the data and control information are read out of the disk 1 and written in the buffer memory 5, their write addresses are selected and both of them are written in prescribed areas properly distinctively. Consequently, format conversion is speeded up.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ディスクから読み出されあるいは書き込まれ
るデータのフォーマットを、変換しあるいは逆変換する
ディスク制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a disk control device that converts or inversely converts the format of data read from or written to a disk.

(従来の技術) 磁気や光を用いてディスクに情報を書き込む場合、その
データの書き込みアドレスやデータ長等を示す制御情報
が、実際のデータと共に所定のフォーマットで格納され
る。又、ディスクには、書き込みあるいは読み出しデー
タの誤り検出等に使用する誤り検出情報(一般に、EC
Cコード。
(Prior Art) When information is written on a disk using magnetism or light, control information indicating the write address, data length, etc. of the data is stored in a predetermined format along with the actual data. The disk also contains error detection information (generally EC
C code.

CRCコードと呼ばれている)等の制御情報もあわせて
格納される。
Control information such as a CRC code (CRC code) is also stored.

これに対して、ホストコンピュータ等からディスク制御
装置に対して転送されてくるのは、実際の書き込みデー
タのみである。又、ディスクから読み出される場合につ
いても、ホストコンピュータ等に転送されるのは実際の
データ部分のみである。
In contrast, only the actual write data is transferred from the host computer or the like to the disk control device. Furthermore, even when data is read from a disk, only the actual data portion is transferred to a host computer or the like.

従って、従来ホストインタフェースを介してデータを受
け入れてこれをディスクに書き込む場合、所定の制御情
報を生成しデータと組み合わせ、フォーマット変換をし
てディスクに書き込むようにしていた。
Therefore, conventionally, when data is accepted via a host interface and written to a disk, predetermined control information is generated, combined with the data, format converted, and written to the disk.

又、ディスクからの読み出しの場合には、同時に読み出
される各種の制御情報を切り放して、実際のデータのみ
をホストコンピュータに送るよう、フォーマット変換を
行なうようにしていた。
Furthermore, when reading from a disk, format conversion is performed so that various control information read at the same time is cut off and only the actual data is sent to the host computer.

(発明が解決しようとする問題点) ところで、このような方法でデータの書き込みや読み出
しを行なう場合、従来そのフォーマット変換は、所定の
バッファメモリにデータ等を格納し、これをプログラム
により並べ換えるといった方法が採用されてきた。
(Problem to be Solved by the Invention) By the way, when writing or reading data using such a method, the format conversion conventionally involves storing the data in a predetermined buffer memory and rearranging it using a program. method has been adopted.

ところがこのような方法では、通常、フォーマット変換
処理に多くの時間を要し、データの読み出しあるいは書
き込み処理の高速化を妨げる原因となっていた。
However, in such a method, format conversion processing usually requires a lot of time, which hinders speeding up of data reading or writing processing.

本発明は以上の点に着目してなされたもので、フォーマ
ット変換処理を高速化し、ディスク書き込み読み出し時
間を短縮したディスク制御装置を提供することを目的と
するものである。
The present invention has been made with attention to the above points, and an object of the present invention is to provide a disk control device that speeds up format conversion processing and shortens disk write/read time.

(問題点を解決するための手段) 本発明のディスク制御装置は、データ及びその制御情報
が書き込まれるディスクと、このディスクから読み出さ
れあるいは書き込まれる前記データ及び制御情報を格納
するバッファメモリと、このバッファメモリに対する1
単位のデータもしくは制御情報の読み出しあるいは書き
込みのタイミングでカウント動作を行なうカウンタと、
このカウンタの出力するカウント値を受け入れて前記バ
ッファメモリに格納されたデータもしくは制御情報を所
定のタイミングで選択的に読み出し制御する読み出し/
書き込み制御回路とを有することを特徴とするものであ
る。
(Means for Solving the Problems) A disk control device of the present invention includes: a disk into which data and its control information are written; a buffer memory which stores the data and control information read from or written to the disk; 1 for this buffer memory
a counter that performs a counting operation at the timing of reading or writing unit data or control information;
Reading/controlling the data or control information stored in the buffer memory selectively at a predetermined timing by accepting the count value output from the counter.
The device is characterized in that it has a write control circuit.

(作用) 以上の装置は、ホストコンピュータから転送されてきた
データがバッファメモリに格納されると、カウンタのカ
ウント値に応じて、必要な制御情報を生成しあるいはバ
ッファメモリから読み出して、所定のフォーマット順に
ディスクへ転送しその書き込みを行なう。実際のデータ
も、その間に所定のタイミングでバッファメモリから読
み出されディスクへ転送される。又、ディスクからデー
タ及び制御情報を読み出した場合には、これらをバッフ
ァメモリに書き込む場合に、その書き込みアドレスを選
択して両者を適当に区別して所定の領域へ書き込むよう
にする。
(Function) When the data transferred from the host computer is stored in the buffer memory, the above device generates necessary control information or reads it from the buffer memory according to the count value of the counter and formats it in a predetermined format. The data is sequentially transferred to the disk and written. During this time, actual data is also read from the buffer memory and transferred to the disk at a predetermined timing. Furthermore, when data and control information are read from the disk and written to the buffer memory, the write address is selected and the two are appropriately distinguished and written to a predetermined area.

その結果、ホストコンピュータはバッファメモリからデ
ータを直接容易に読み出すことができる。
As a result, the host computer can easily read data directly from the buffer memory.

(実施例) く装置のブロック構成〉 第1図は、本発明のディスク制御装置の実施例を示すブ
ロック図である。
(Embodiment) Block Configuration of Device> FIG. 1 is a block diagram showing an embodiment of a disk control device of the present invention.

図において、ディスク1はシリアル伝送ライン2を介し
て、ディスク間データ転送制御部3と接続されている。
In the figure, a disk 1 is connected to an inter-disk data transfer control section 3 via a serial transmission line 2.

このディスク間データ転送制御部3は、パラレルデータ
を伝送するパスライン4に接続されている。又、このパ
スライン4には、バッファメモリ5と、中央処理装置(
CPU)6と、ホストデータ転送制御部7とが接続され
ている。ホストデータ転送制御部7には、ホストインタ
フェース8を介して図示しないホストコンピュータが接
続されている。
This inter-disk data transfer control section 3 is connected to a path line 4 that transmits parallel data. The pass line 4 also includes a buffer memory 5 and a central processing unit (
CPU) 6 and a host data transfer control unit 7 are connected. A host computer (not shown) is connected to the host data transfer control unit 7 via a host interface 8 .

更に、この回路にはカウンタ9が設けられ、このカウン
タ9の出力が読み出し/書き込み制御回路10に入力す
るよう結線されている。
Further, this circuit is provided with a counter 9, and the output of this counter 9 is connected to be input to a read/write control circuit 10.

読み出し/書き込み制御回路10は°、リード・オンリ
・メモリ(ROM)11と、2つのカウンタ12,13
と、セレクタ14と、インパーク15と、誤り検出訂正
回路16とから構成されている。
The read/write control circuit 10 includes a read-only memory (ROM) 11 and two counters 12 and 13.
, a selector 14 , an impark 15 , and an error detection and correction circuit 16 .

この回路において、ディスク間データ転送制御部3は、
ディスク1からデータや制御情報を読み出す場合に、そ
のデータ等をシリアルに受け入れパラレル信号に変換し
て、パスライン4に出力する回路である。又、この回路
は、カウンタ9゜12.13に対し制御クロック21を
出力する回路である。更にこの回路は、読み出し/書き
込み制御回路10の中に組み込まれた誤り検出訂正回路
16に対し、誤り訂正コード出力のタイミングを図る制
御信号22を出力する。又、バッファメモリ5に対し、
データ出力のタイミングを図る制御信号23を出力する
回路である。
In this circuit, the inter-disk data transfer control unit 3:
When reading data or control information from the disk 1, this circuit receives the data serially, converts it into a parallel signal, and outputs it to the pass line 4. Further, this circuit is a circuit that outputs the control clock 21 to the counter 9°12.13. Furthermore, this circuit outputs a control signal 22 to the error detection and correction circuit 16 incorporated in the read/write control circuit 10 to control the timing of outputting the error correction code. Also, for the buffer memory 5,
This circuit outputs a control signal 23 that controls the timing of data output.

バッファメモリ5は、半導体記憶装置等からなるランダ
ム・アクセス・メモリから構成される。
The buffer memory 5 is composed of a random access memory made of a semiconductor memory device or the like.

中央処理装置6は、主としてこのディスク制御装置とホ
ストコンピュータとの間の通信を制御するための回路で
ある。またこの装置は、ディスクへデータ等を書き込む
モードの場合と、ディスクからデータ等を読み出すモー
ドの場合とを識別するモード切り換え信号25を、リー
ド・オンリ・メモリ11に対して出力するよう動作する
回路である。更にこの中央処理装置6はカウンタ9゜1
2.13に対し、書き込みあるいは読み出し処理の開始
時にこれらを初期値に戻すためのリセット信号を出力す
るものとする。尚、このリセット制御線は図示を省略し
た。
The central processing unit 6 is a circuit mainly for controlling communication between the disk control device and the host computer. This device also includes a circuit that operates to output a mode switching signal 25 to the read-only memory 11 for identifying a mode for writing data etc. to the disk and a mode for reading data etc. from the disk. It is. Furthermore, this central processing unit 6 has a counter 9゜1.
2.13, a reset signal is output to return these to their initial values at the start of a write or read process. Note that illustration of this reset control line is omitted.

ホストデータ転送制御部7及びホストインタフェース8
は、既知のデータ入出力用インタフェース回路を構成し
ており、図示しないホストコンピュータ等の外部回路と
のデータの授受を制御する回路である。
Host data transfer control unit 7 and host interface 8
constitutes a known data input/output interface circuit, and is a circuit that controls data exchange with an external circuit such as a host computer (not shown).

カウンタ9は、ディスク間データ転送制御部3から出力
される制御クロック21をカウントして、カウント値2
4を出力する回路である。
The counter 9 counts the control clock 21 output from the inter-disk data transfer control unit 3 and has a count value of 2.
This is a circuit that outputs 4.

リード・オンリ・メモリ11は、そのアドレスにモード
切り換え信号25、及びカウンタ9の出力するカウント
値24を受け入れて、後で説明するような各種の制御信
号を出力する回路である。
The read-only memory 11 is a circuit that receives a mode switching signal 25 and a count value 24 output from the counter 9 at its address, and outputs various control signals as described later.

このリード・オンリ・メモリ11は、カウンタ9から同
一のカウント値24を受け入れても、読み出しモードと
書き込みモードとで別々の制御信号を出力する。
Even if the read-only memory 11 receives the same count value 24 from the counter 9, it outputs different control signals in read mode and write mode.

く読み出し/書き込み制御回路の構成〉次に読み出し/
書き込み制御回路1oの各ブロックの構成を説明する。
Configuration of read/write control circuit> Next, read/write control circuit configuration
The configuration of each block of the write control circuit 1o will be explained.

リード・オンリ・メモリ11には、そのアドレス順に、
書き込みモード、読み出しモードにおける装置各部の回
路動作を制御する制御信号が書き込まれている。
In the read-only memory 11, in the order of their addresses,
Control signals are written to control circuit operations of various parts of the device in write mode and read mode.

即ち先ず、このリード・オンリ・メモリ11の出力のう
ちの一部は、カウンタ選択信号29とされる。このカウ
ンタ選択信号29は、制御情報読み出しカウンタ12と
データ読み出し゛カウンタ13とに入力するよう結線さ
れている。いずれのカウンタも、制御クロック21を受
け入れてカウントアツプするが、カウンタ選択信号29
が例えばハイレベルのときのみカウントアツプするもの
とする。即ち、制御情報読み出しカウンタ13には、こ
のカウンタ選択信号29がインバータ15を介して入力
するため、カウンタ選択信号29がハイレベルの場合、
制御情報読み出しカウンタ12のみがカウントアツプし
、カウンタ選択信号29がロウレベルの場合、データ読
み出しカウンタ13のみがカウントアツプする。
That is, first, a part of the output of this read-only memory 11 is used as the counter selection signal 29. This counter selection signal 29 is connected to be input to the control information read counter 12 and the data read counter 13. Both counters accept the control clock 21 and count up, but the counter selection signal 29
For example, assume that the count is increased only when is at a high level. That is, since this counter selection signal 29 is input to the control information read counter 13 via the inverter 15, when the counter selection signal 29 is at a high level,
Only the control information read counter 12 counts up, and when the counter selection signal 29 is at a low level, only the data read counter 13 counts up.

又、セレクタ14にも、カウンタ選択信号29が選択制
御用として入力している。セレクタ14は、カウンタ選
択信号29がハイレベルのとき、制御情報読み出しカウ
ンタ12の出力をアドレス信号31としてバッファメモ
リ5に出力し、カウンタ選択信号29がロウレベルのと
き、データ読み出しカウンタ13の出力信号をアドレス
信号31としてバッファメモリ5に出力する回路である
A counter selection signal 29 is also input to the selector 14 for selection control. The selector 14 outputs the output of the control information read counter 12 as an address signal 31 to the buffer memory 5 when the counter selection signal 29 is at a high level, and outputs the output signal of the data read counter 13 when the counter selection signal 29 is at a low level. This circuit outputs the address signal 31 to the buffer memory 5.

又、読み出し/書き込み制御回路10には、この他に、
誤り検出訂正回路16が設けられている。誤り検出訂正
回路16は、読み出しモードにおいては、制御情報に含
まれる誤り検出コード(ECCコード、’CRCコード
)に基づいてデータの誤り検出の演算を実行し、必要に
応じてデータの訂正をする回路である。又、書き込みモ
ードにおいては、バッファメモリ5に格納されるデータ
に基づいて、誤り検出コードを生成する動作も行なう。
In addition, the read/write control circuit 10 includes:
An error detection and correction circuit 16 is provided. In the read mode, the error detection and correction circuit 16 executes a data error detection operation based on an error detection code (ECC code, 'CRC code) included in the control information, and corrects the data as necessary. It is a circuit. Furthermore, in the write mode, an operation of generating an error detection code based on the data stored in the buffer memory 5 is also performed.

尚、この誤り検出訂正回路16には、リード・オンリ・
メモリ11から読み出しモードにおいては誤り検出訂正
演算実行信号26とが入力し、書き込みモードにおいて
は演算結果出力信号27とが入力する。又、この演算結
果出力信号27は、バッファメモリ5に対しても入力し
、これがバッファメモリ5の読み出しイネーブル信号と
なる。
Note that this error detection and correction circuit 16 has a read-only type.
In the read mode from the memory 11, the error detection and correction calculation execution signal 26 is input, and in the write mode, the calculation result output signal 27 is input. This calculation result output signal 27 is also input to the buffer memory 5, and becomes a read enable signal for the buffer memory 5.

尚、この信号26は、バッファメモリ5からのデータ等
の読み出しと、誤り検出訂正回路16からの演算結果(
誤り検出コード)の出力とを排他的に実行させる。
Note that this signal 26 is generated by reading data etc. from the buffer memory 5 and calculating results from the error detection and correction circuit 16 (
The output of error detection code) is executed exclusively.

又、リード・オンリ・メモリ11からは、この他に、■
ブロック分のデータの書き込みあるいは読み出し終了毎
に、終了信号28がディスク間データ転送制御部3に出
力される。
In addition, from the read-only memory 11, ■
A completion signal 28 is output to the inter-disk data transfer control section 3 every time writing or reading of data for a block is completed.

〈バッファメモリの格納内容〉 ここで、バッファメモリ5に書き込まれるデータ及び制
御情報の説明を行なう。
<Contents stored in buffer memory> Here, data and control information written to the buffer memory 5 will be explained.

この実施例においては、バッファメモリにそのメモリア
ドレスなO−ρ、m”−m+nまで設定したとき、その
メモリアドレスO−βまでにβ個のデータH(0)〜H
(I2)を格納する。又、メモリアドレスm−”m+n
までにn個の制御情報C(O)〜C(n)を格納する。
In this embodiment, when the memory address O-ρ,m''-m+n is set in the buffer memory, β pieces of data H(0) to H
(I2) is stored. Also, memory address m-”m+n
Until now, n pieces of control information C(O) to C(n) are stored.

くディスクデータ等のフォーマット〉 一方、一般にディスクには第3図に示すようなフォーマ
ットでデータ及び制御情報が書き込まれている。
Format of Disk Data, etc. On the other hand, data and control information are generally written on a disk in a format as shown in FIG.

図には、例えば1つの四角を1バイトの情報として図示
した。図中、データ等は、上から下へ、左から右へ順に
書き込まれるものとする。そして、四角の中に*印が書
き込まれているものが制御情報、それ以外のものがデー
タである。
In the figure, for example, one square is shown as one byte of information. In the figure, data etc. are written sequentially from top to bottom and from left to right. The information marked with an asterisk (*) in the square is control information, and the other information is data.

ディスクには、先ず、先頭にデータマークと呼ばれるC
(0)〜C(3)までの4バイト分の情報が書き込まれ
る。そしてその次に、例えばH(○)、H(1,)・・
・というようにデータが1バイトずつ書き込まれるが、
このデータが20バイト書き込まれる毎に、同期をとる
ためのリシンクと呼ばれる制御情報が書き込まれる。こ
の情報は各1バイトで、図中、C(4) 、 C(5)
というように表示した。こうして20バイトのデータ毎
に1バイトの制御情報が書き込まれ、最後のデータH(
lまでデータが書き込まれると、その後に連続して20
0バイト程度の制御情報が書き込まれる。この制御情報
には、データのアドレスを示す情報、誤り検出コード(
CRC,ECCコード)等が含まれる。
First, there is a C mark called a data mark at the beginning of the disc.
Four bytes of information from (0) to C(3) are written. Then, for example, H(○), H(1,)...
・Data is written one byte at a time,
Every time 20 bytes of this data are written, control information called resync for synchronization is written. This information is 1 byte each, and in the figure, C(4) and C(5)
It was displayed as follows. In this way, 1 byte of control information is written for every 20 bytes of data, and the last data H (
When data is written up to l, 20
Approximately 0 bytes of control information is written. This control information includes information indicating the data address, error detection code (
CRC, ECC code), etc.

く書き込みモードの動作〉 第4図には、本発明の装置のバッファメモリの読み出し
制御動作を示すタイミングチャートを示した。
Operation in Write Mode> FIG. 4 is a timing chart showing the read control operation of the buffer memory of the device of the present invention.

この図を使用して、第1図に示したディスク1に対して
、データ及び制御情報を書き込む場合の動作を説明する
Using this diagram, the operation when writing data and control information to the disk 1 shown in FIG. 1 will be explained.

先ず、ホストコンピュータからホストインタフェース8
及びホストデータ転送制御部7を介して、バッファメモ
リ5にデータが入力し格納される。これは第2図に示し
たように、メモリアドレスOからβまでの間に格納され
る。
First, connect the host interface 8 from the host computer.
Data is input to the buffer memory 5 via the host data transfer control unit 7 and stored therein. This is stored between memory addresses O and β, as shown in FIG.

中央処理装置6は、その際のホストコンピュータとの通
信を制御する一方、バッファメモリ5のメモリアドレス
m−m+nまでの間に、ディスク1に書き込むべき制御
情報を生成して格納する。
The central processing unit 6 controls communication with the host computer at that time, and generates and stores control information to be written on the disk 1 up to memory address m−m+n of the buffer memory 5.

尚、誤り検出訂正回路16で生成されるべき誤り検出コ
ードについては、バッファメモリ5に対し、その制御情
報を格納すべき領域にダミーデータを格納しておくもの
とする。このようにしたのは、この実施例では、この誤
り検出コードは誤り検出訂正回路16が生成してその内
部に保持しており、それを直接ディスク1へ転送するか
らである。
As for the error detection code to be generated by the error detection and correction circuit 16, dummy data is stored in the area of the buffer memory 5 where the control information is to be stored. This is because, in this embodiment, the error detection code is generated by the error detection and correction circuit 16, is held therein, and is directly transferred to the disk 1.

次に中央処理装置6は、バッファメモリ5に格納された
データのディスク1への転送開始を指令するが、先ず、
モード切り換え信号25を書き込みモードにして、リー
ド・オンリ・メモリ11に向けて出力する。更に、カウ
ンタ9を初期値、即ち0にリセットする。又、制御情報
読み出しカウンタ12の初期値をmにリセットする。そ
して、データ読み出しカウンタ13の初期値を0にリセ
ットする。その後、ディスク間データ転送制御部3に対
して、書き込み動作の開始を指示する。
Next, the central processing unit 6 instructs to start transferring the data stored in the buffer memory 5 to the disk 1.
The mode switching signal 25 is set to write mode and output to the read-only memory 11. Further, the counter 9 is reset to the initial value, that is, 0. Also, the initial value of the control information read counter 12 is reset to m. Then, the initial value of the data read counter 13 is reset to zero. Thereafter, the inter-disk data transfer control unit 3 is instructed to start a write operation.

その後は、書き込み終了までディスク間データ転送制御
部3が書き込み動作の全てを制御する。
Thereafter, the inter-disk data transfer control unit 3 controls all write operations until the write is completed.

カウンタ9が初期値Oを示している場合、リード・オン
リ・メモリ11から第4図に示すように、ハイレベルの
内容のカウンタ選択信号29が出力される。これによっ
て、制御情報読み出しカウンタ12の出力する信号5が
、セレクタ14により、バッファメモリ5のアドレス信
号31として選択される。その内容はmであるから、バ
ッファメモリ5から第2図に示すように制御情報C(0
)が読み出される。ディスク間データ転送制御部3は、
このデータをパスライン4からパラレルに受け入れシリ
アルに変換して、ディスク1に転送し書き込みを行なう
。この1バイトの制御信号の書き込みと同時に、ディス
ク間データ転送制御部3は制御クロック21を出力し、
カウンタ9と12又は13をカウントアツプする。
When the counter 9 indicates the initial value O, the read-only memory 11 outputs a counter selection signal 29 having a high level content, as shown in FIG. As a result, the signal 5 output from the control information read counter 12 is selected by the selector 14 as the address signal 31 of the buffer memory 5. Since the content is m, the control information C (0
) is read out. The inter-disk data transfer control unit 3
This data is received in parallel from the pass line 4, converted into serial data, transferred to the disk 1, and written. At the same time as writing this 1-byte control signal, the inter-disk data transfer control unit 3 outputs the control clock 21,
Counters 9 and 12 or 13 are counted up.

リード・オンリ・メモリ11は、カウンタ9の出力する
カウント値24が0.1,2.3となるまでは、第4図
に示すように、カウンタ選択信号29をハイレベルにし
、制御情報読み出しカウンタ12の出力信号が、バッフ
ァメモリ5のアドレス信号31となるよう制御する。そ
して、その次のタイミングで、リード・オンリ・メモリ
11は、カウンタ選択信号29をロウレベルにし、セレ
クタ14は、データ読み出しカウンタ13の出力をバッ
ファメモリ5のアドレス信号31として選択する。
As shown in FIG. 4, the read-only memory 11 keeps the counter selection signal 29 at a high level until the count value 24 output from the counter 9 reaches 0.1 or 2.3, and the control information readout counter Control is performed so that the output signal of 12 becomes the address signal 31 of the buffer memory 5. Then, at the next timing, the read-only memory 11 sets the counter selection signal 29 to a low level, and the selector 14 selects the output of the data read counter 13 as the address signal 31 of the buffer memory 5.

これによって、第2図に示した内容のデータH(0)が
、バッファメモリ5から読み出される。
As a result, data H(0) having the contents shown in FIG. 2 is read from the buffer memory 5.

これがディスク間データ転送制御部3によってディスク
1に書き込まれると、同様にしてH(19)まで20個
のデータの書き込みが続行される。そして、第4図に示
すように、その次のカウント値でリード・オンリ・メモ
リ11の出力が再びハイレベルに変わる。
When this is written to the disk 1 by the inter-disk data transfer control unit 3, writing of 20 pieces of data continues in the same way up to H(19). Then, as shown in FIG. 4, the output of the read-only memory 11 changes to high level again at the next count value.

そして再び制御情報読み出しカウンタ12の出力が、バ
ッファメモリ5のアドレス信号31として使用され、メ
モリアドレスm+4に格納された制御情報C(4)が読
み出される。その次のタイミングでは、再びリード・オ
ンリ・メモリ11の出力するカウンタ選択信号29がロ
ウレベルに切り替わり、第4図に示すように、20バイ
ト分のデータH(20)〜H(38)が読み出される。
Then, the output of the control information read counter 12 is used again as the address signal 31 of the buffer memory 5, and the control information C(4) stored at the memory address m+4 is read out. At the next timing, the counter selection signal 29 output from the read-only memory 11 switches to low level again, and as shown in FIG. 4, 20 bytes of data H(20) to H(38) are read out. .

この動作を繰り返し、バッファメモリ5のメモリアドレ
スβまでの全てのデータが読み出されると、リード・オ
ンリ・メモリ11の出力するカウンタ選択信号29がハ
イレベルになり、その後は1ブロック分のデータ書き込
み終了まで、制御読み出しカウンタ12の出力がバッフ
ァメモリ5のアドレス信号31として出力される。これ
により、バッファメモリ5に格納された第2図に示した
C (n)までの残りの制御情報がディスク1に書き込
まれる。
When this operation is repeated and all the data up to the memory address β of the buffer memory 5 is read out, the counter selection signal 29 output from the read-only memory 11 becomes high level, and after that, data writing for one block is completed. Until then, the output of the control read counter 12 is output as the address signal 31 of the buffer memory 5. As a result, the remaining control information up to C (n) shown in FIG. 2 stored in the buffer memory 5 is written to the disk 1.

尚、上記各データの書き込み毎に、リード・オンリ・メ
モリ11からは誤り検出訂正回路16に対し、誤り検出
訂正演算実行信号26が出力される。これにより、誤り
検出訂正回路によって誤り検出コードが生成され、誤り
検出訂正回路16内の図示しないメモリに一時格納され
る。更に、データ転送終了後の制御情報書き込み段階に
おいて、所定のタイミングで演算結果出力信号27が出
力され、誤り検出訂正回路の生成した誤り検出コードが
、制御情報としてディスク1に書き込まれる。この誤り
検出訂正コードは、例えば通常、200バイト程度のデ
ータ量となる。その誤り検出コード出力中は、バッファ
メモリの読み出し動作が禁止されることは先に説明した
とうりである。
Incidentally, each time the above data is written, an error detection and correction operation execution signal 26 is outputted from the read-only memory 11 to the error detection and correction circuit 16. As a result, an error detection code is generated by the error detection and correction circuit, and is temporarily stored in a memory (not shown) in the error detection and correction circuit 16. Further, in the control information writing stage after the data transfer is completed, the calculation result output signal 27 is output at a predetermined timing, and the error detection code generated by the error detection and correction circuit is written to the disk 1 as control information. This error detection and correction code typically has a data amount of about 200 bytes, for example. As described above, the read operation of the buffer memory is prohibited while the error detection code is being output.

これらの制御情報が、全てディスクlに書き込まれると
、リード・オンリ・メモリ11から終了信号28がディ
スク間データ転送制御部3に出力され、ディスク間デー
タ転送制御部3の動作が終了する。
When all of this control information is written to the disk 1, a termination signal 28 is output from the read-only memory 11 to the inter-disk data transfer control section 3, and the operation of the inter-disk data transfer control section 3 is completed.

く読み出しモードの動作〉 次に、ディスク1からのデータ及び制御情報の読み出し
動作を説明する。
Operation in Readout Mode> Next, the operation of reading data and control information from the disk 1 will be described.

先ず、中央処理装置6が読み出し動作のための準備処理
を行なう。カウンタ9と12又は13のリセット処理は
書き込み動作のための準備動作とほぼ同様であるが、リ
ード・オンリ・メモリ11に対して出力するモード切り
換え信号25を、読み出し動作を指示する内容のものと
する。この場合も、ディスク間データ転送制御部3が、
ディスり1から1バイト分のデータや制御情報を読み出
す毎に、制御クロック21によってカウンタ9゜12.
13がカウントアツプし、バッファメモリ5に対しその
書き込みアドレス信号31を入力する。この書き込みア
ドレス信号31は、第2図に示すように、データがメモ
リアドレスO−βまで、制御情報がメモリアドレスm”
−m+nまでに書き込まれるように、カウンタ12及び
カウンタ13の出力が選択される。
First, the central processing unit 6 performs preparation processing for a read operation. The reset process of the counters 9 and 12 or 13 is almost the same as the preparation operation for the write operation, but the mode switching signal 25 output to the read-only memory 11 is changed to one that instructs the read operation. do. In this case as well, the inter-disk data transfer control unit 3
Every time one byte of data or control information is read from the disk 1, the control clock 21 causes the counter 9.12.
13 counts up and inputs the write address signal 31 to the buffer memory 5. As shown in FIG. 2, this write address signal 31 has data up to memory address O-β and control information up to memory address m''.
The outputs of the counters 12 and 13 are selected so that they are written by -m+n.

一方、リード・オンリ・メモリ11から誤り検出訂正回
路16に対して誤り検出訂正演算実行信号26が出力さ
れ、ディスク1から読み出された信号の誤り検出訂正動
作が指示される。又、その読み出しデータに誤りがあっ
た場合、誤り検出訂正回路16から正しいデータが出力
されて、バッファメモリ5に格納される。
On the other hand, an error detection and correction operation execution signal 26 is output from the read-only memory 11 to the error detection and correction circuit 16, instructing the error detection and correction operation of the signal read from the disk 1. If there is an error in the read data, correct data is output from the error detection and correction circuit 16 and stored in the buffer memory 5.

このようにして、第2図に示すような順番でバッファメ
モリ5にデータ及び制御情報が格納されると、ディスク
制御装置におけるディスク1からのデータの読み出しが
終了する。その後、中央処理装置6は、ホストデータ転
送制御部7及びホストインタフェース8を介して、ホス
トコンピュータに対しデータ転送準備完了の旨を通知す
る。ホストコンピュータはこの通知を受けると、バッフ
ァメモリ5のメモリアドレスOから順番に4個のデータ
を読み出す。この動作は、既知のDMAC(ダイレクト
・メモリ・アクセス・コントローラ)を使用して実行さ
れる。これは、バッファメモリにデータがシーケンシャ
ルに格納されているため容易に実施できる。
In this way, when the data and control information are stored in the buffer memory 5 in the order shown in FIG. 2, reading of data from the disk 1 in the disk control device is completed. Thereafter, the central processing unit 6 notifies the host computer via the host data transfer control unit 7 and the host interface 8 that preparations for data transfer are complete. When the host computer receives this notification, it sequentially reads four pieces of data from memory address O of the buffer memory 5. This operation is performed using the known DMAC (Direct Memory Access Controller). This can be easily implemented because the data is stored sequentially in the buffer memory.

尚、ディスク間転送、即ち図示しない他の同種のディス
ク制御装置へのデータの転送の場合には、このバッファ
メモリ5に格納されたデータ及び制御情報がそっくりそ
のまま転送される。
In the case of inter-disk transfer, that is, data transfer to another disk control device of the same type (not shown), the data and control information stored in this buffer memory 5 are transferred in their entirety.

本発明は、以上の実施例に限定されない。The present invention is not limited to the above embodiments.

読み出し/書き込み制御回路10に設けたリード・オン
リ・メモリ11は、その内容の書き換えが可能なランダ
ム・アクセス・メモリ等により構成してもよい。これに
よって、一連の動作により書き込み読み出しされるデー
タ量やフォーマットを自由に設定できる。又、バッファ
メモリ5は、必ずしも一体に構成されたメモリでなく、
幾つかに分割されたものでもよい。又その一部がリード
・オンリ・メモリにより構成されていても差し支えない
The read-only memory 11 provided in the read/write control circuit 10 may be constituted by a random access memory or the like whose contents can be rewritten. This allows the amount and format of data to be written and read by a series of operations to be freely set. Further, the buffer memory 5 is not necessarily a memory configured in one piece,
It may be divided into several parts. Also, a part of it may be configured by read-only memory.

更に、上記実施例においては1.各カウンタは1バイト
のデータ等の書き込みあるいは読み出し毎にカウントア
ツプするものとしたが、適当な単位を定めておき、1単
位毎にカウントアツプするものであればよい。又、各カ
ウンタは、必ずしもそのカウント値を増加させていくよ
うカウントアツプするものでなくてもよい。即ち、カウ
ントダウンするようなものであっても差し支えない。
Furthermore, in the above embodiment, 1. Although each counter is assumed to count up each time 1 byte of data is written or read, it is sufficient if an appropriate unit is determined and the counter is counted up every 1 unit. Further, each counter does not necessarily have to count up to increase its count value. In other words, it may be something like a countdown.

又、読み出し/書き込み制御回路の内部に、リード・オ
ンリ・メモリ11の出力信号に基づいて、所定の制御情
報を生成する種々の回路を設け、バッファメモリの代わ
りに制御情報を所定のタイミングで出力するように構成
しても差し支えない。
Furthermore, various circuits that generate predetermined control information based on the output signal of the read-only memory 11 are provided inside the read/write control circuit, and the control information is output at a predetermined timing instead of the buffer memory. There is no problem in configuring it to do so.

(発明の効果) 以上説明した本発明のディスク制御装置によれば、ディ
スクにデータ等を書き込みあるいは読み出しする場合に
、カウンタをカウント動作させながら、バッファメモリ
に格納されたデータ等を選択的に読み出し/書き込みが
できるので、いわゆるデータフォーマットの変更処理の
ための処理速度が高速化される。
(Effects of the Invention) According to the disk control device of the present invention described above, when writing or reading data etc. to the disk, data etc. stored in the buffer memory can be selectively read out while the counter is performing a counting operation. / writing, the processing speed for so-called data format change processing is increased.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のディスク制御装置の実施例を示すブロ
ック図、第2図はそのバッファメモリの格納内容を示す
説明図、第3図はそのディスクに書き込まれたデータと
制御情報を示す説明図、第4図は本発明の装置における
バッファメモリの読み出し制御説明図である。 1・・・ディスク、2・・・シリアル伝送ライン、3・
・・ディスク間データ転送制御部、4・・・パスライン
、5・・・バッファメモリ、6・・・中央処理装置、 7・・・ホストデータ転送制御部、 8・・・ホストインタフェース、 9.12.13・・・カウンタ、 10・・・読み出し/書き込み制御回路、11・・・リ
ード・オンリ・メモリ、 14・・・セレクタ、15−・・インバータ、16・・
・誤り検出訂正回路、 21・・・制御クロック、23・・・イネーブル信号、
24・・・カウント値、25・・・モード切り換え信号
、28・・・終了信号、29・・・カウンタ選択信号、
31・・・アドレス信号。 特許出願人 沖電気工業株式会社 /141男のvr置のブロック図 第1図 メモリアドレス パンツアメモリの杯輩内内容 第2図 (a)カウンタ9 0123456  ・・ 25 ・
 ・・・ 45   ・  ・  ・第4図
FIG. 1 is a block diagram showing an embodiment of the disk control device of the present invention, FIG. 2 is an explanatory diagram showing the contents stored in the buffer memory, and FIG. 3 is an explanatory diagram showing the data and control information written to the disk. FIG. 4 is an explanatory diagram of read control of the buffer memory in the apparatus of the present invention. 1...Disk, 2...Serial transmission line, 3.
... Inter-disk data transfer control unit, 4... Pass line, 5... Buffer memory, 6... Central processing unit, 7... Host data transfer control unit, 8... Host interface, 9. 12.13... Counter, 10... Read/write control circuit, 11... Read only memory, 14... Selector, 15-... Inverter, 16...
・Error detection and correction circuit, 21... control clock, 23... enable signal,
24...Count value, 25...Mode switching signal, 28...End signal, 29...Counter selection signal,
31...Address signal. Patent Applicant: Oki Electric Industry Co., Ltd./141 Block diagram of VR installation Figure 1: Memory address Panzer Memory contents Figure 2: (a) Counter 9 0123456 25 ・
・・・ 45 ・ ・ ・Figure 4

Claims (1)

【特許請求の範囲】 データ及びその制御情報が書き込まれるディスクと、 このディスクから読み出されあるいは書き込まれる前記
データ及び制御情報を格納するバッファメモリと、 このバッファメモリに対する1単位のデータもしくは制
御情報の読み出しあるいは書き込みのタイミングでカウ
ント動作を行なうカウンタと、このカウンタの出力する
カウント値を受け入れて前記バッファメモリに格納され
たデータもしくは制御情報を所定のタイミングで選択的
に読み出し制御する読み出し/書き込み制御回路とを有
することを特徴とするディスク制御装置。
[Scope of Claims] A disk into which data and its control information are written; a buffer memory which stores the data and control information read from or written to this disk; and one unit of data or control information for this buffer memory. A counter that performs a counting operation at read or write timing, and a read/write control circuit that accepts the count value output from this counter and selectively controls reading of data or control information stored in the buffer memory at a predetermined timing. A disk control device comprising:
JP27177287A 1987-10-29 1987-10-29 Disk controller Pending JPH01116962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27177287A JPH01116962A (en) 1987-10-29 1987-10-29 Disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27177287A JPH01116962A (en) 1987-10-29 1987-10-29 Disk controller

Publications (1)

Publication Number Publication Date
JPH01116962A true JPH01116962A (en) 1989-05-09

Family

ID=17504633

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27177287A Pending JPH01116962A (en) 1987-10-29 1987-10-29 Disk controller

Country Status (1)

Country Link
JP (1) JPH01116962A (en)

Similar Documents

Publication Publication Date Title
JP3527873B2 (en) Error correction device
JPS6035373A (en) Data compression and restoration system
JPS5987569A (en) Automatic continuous processing circuit of data
JPS6041769B2 (en) Addressing method
JPH01116962A (en) Disk controller
EP0316895A2 (en) Integrated circuit for CD player
JP3887059B2 (en) Data writing method, data reading method, and memory circuit
JP2600376B2 (en) Memory controller
JPS63228856A (en) Communication controller
JPS59111533A (en) Digital data arithmetic circuit
JPS5919376B2 (en) Buffer memory control method
JPH03222166A (en) Optical disk control device
JPS5841525B2 (en) Direct memory access system
JPS5854414B2 (en) Data conversion control method in data processing equipment
SU1541620A1 (en) Device for extension of directly addressed memory of microprocessor
JPH02212786A (en) Actual element simulating method
JPH02254680A (en) Information recording and reproducing device
JPH0410300A (en) Register read circuit
JPS59226957A (en) Data control system
JPS6155137B2 (en)
JPH04326151A (en) Buffer control circuit
JPH01162966A (en) Control system for channel data buffer
JPH01290049A (en) Memory access control system
JPH0652498B2 (en) Disk controller
JPS602700B2 (en) Program sequence detection device