JP2838912B2 - Semiconductor storage device - Google Patents

Semiconductor storage device

Info

Publication number
JP2838912B2
JP2838912B2 JP3025885A JP2588591A JP2838912B2 JP 2838912 B2 JP2838912 B2 JP 2838912B2 JP 3025885 A JP3025885 A JP 3025885A JP 2588591 A JP2588591 A JP 2588591A JP 2838912 B2 JP2838912 B2 JP 2838912B2
Authority
JP
Japan
Prior art keywords
record
data
stored
heading
address
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.)
Expired - Lifetime
Application number
JP3025885A
Other languages
Japanese (ja)
Other versions
JPH04264912A (en
Inventor
哲郎 藤武
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP3025885A priority Critical patent/JP2838912B2/en
Publication of JPH04264912A publication Critical patent/JPH04264912A/en
Application granted granted Critical
Publication of JP2838912B2 publication Critical patent/JP2838912B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は半導体記憶装置に関し、
特に1トラック中に記憶するレコード記憶形式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor memory device,
In particular, it relates to a record storage format for storing in one track.

【0002】[0002]

【従来の技術】従来の半導体記憶装置では、固定長の見
出し部を記憶するエリアとデータを記憶するエリアとを
分割し記憶している。
2. Description of the Related Art In a conventional semiconductor memory device, an area for storing a fixed-length heading portion and an area for storing data are divided and stored.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の半導体
記憶装置では、固定長の見出し部を記憶するエリアと可
変長のデータを記憶するエリアとを分割し記憶している
ので、1トラック中に論理的に作成可能なレコードの数
だけ、見出し部のエリアを必要としているが、実際に使
用されるときにはデータを記憶するエリアの制限によ
り、見出し部のエリアはすべて使用されているとはいえ
ず、必ずしも半導体記憶装置の有しているメモリがすべ
て有効に使用されているとはいえないという欠点を有し
ている。
In the conventional semiconductor memory device described above, an area for storing a fixed-length heading and an area for storing variable-length data are divided and stored. The heading area is required by the number of records that can be logically created, but when it is actually used, the heading area is not completely used due to the limitation of the data storage area. However, there is a disadvantage that not all the memories of the semiconductor memory device are used effectively.

【0004】本発明の目的は、記憶部のメモリを有効に
使用することができる半導体記憶装置を提供することに
ある。
An object of the present invention is to provide a semiconductor memory device that can effectively use a memory of a storage unit.

【0005】[0005]

【課題を解決するための手段】本発明の半導体記憶装置
は、データを記憶する記憶部と、中央処理装置からの命
令に従い、前記記憶部を制御する制御部から構成されて
いる半導体記憶装置において、前記記憶部が、固定長の
見出し部と可変長のデータ部とから構成されるレコード
を複数個記憶可能なトラックを有し、前記可変長のデー
タ部は、レコード番号に従いトラックの先端から順次エ
リアを確保し、前記固定長の見出し部は前記トラックの
終端からレコード番号に従い逆にトラックの先端方向に
向けてエリアを確保する記憶形式を有し、前記制御部
が、前記記憶部にn(nは正の整数)個のレコードが記
憶されている場合に、前記中央処理装置から新たなn+
1番目のレコードの書き込み命令を受けたとき、前記中
央処理装置からn+1番目のレコードの見出し部のデー
タを受け取り、既に記憶されているn番目のレコードの
見出し部の記憶されているメモリアドレスと、n番目の
レコードの見出し部内のデータ部アドレスとで引算を行
って両アドレスの間のエリアを演算し、前記エリアの大
きさから前記新たなn+1番目のレコードの見出し部と
データ部とが書き込み可能か否かを判定し、書き込み可
能らば、前記n+1番目のレコードの見出し部のデータ
に前記n+1番目のレコードのデータ部アドレスを作成
後付加し、前記記憶部に記憶させるように構成されてい
る。
According to the present invention, there is provided a semiconductor memory device comprising: a memory unit for storing data; and a control unit for controlling the memory unit in accordance with an instruction from a central processing unit. The storage section has a track capable of storing a plurality of records each including a fixed-length heading section and a variable-length data section, and the variable-length data section sequentially starts from the top of the track according to the record number. An area is secured, and the fixed-length heading section has a storage format for securing an area in the reverse direction according to the record number from the end of the track toward the leading end of the track, and the control section stores n ( (n is a positive integer) records, a new n +
When receiving the write command for the first record, the data of the header part of the (n + 1) th record is received from the central processing unit, and the memory address where the header part of the nth record already stored is stored, The area between the two addresses is calculated by subtracting the data with the data part address in the head part of the n-th record, and the head part and data part of the new (n + 1) -th record are written from the size of the area. It is configured to determine whether it is possible or not, and if writable, add the data part address of the (n + 1) th record to the data of the header part of the (n + 1) th record after creating it and store the data in the storage part. I have.

【0006】[0006]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0007】図1は本発明の半導体記憶装置の一実施例
を示すブロック図であり、図2は本発明の半導体記憶装
置に記憶されるレコードの記憶形式を示す図である。
FIG. 1 is a block diagram showing one embodiment of the semiconductor memory device of the present invention, and FIG. 2 is a diagram showing a storage format of a record stored in the semiconductor memory device of the present invention.

【0008】本実施例の半導体記憶装置は、図1に示す
ように、固定長の見出し部と可変長のデータ部とから構
成されるレコードを複数個記憶可能なトラックを有した
記憶部2、中央処理装置3から新たなレコードの書き込
み命令を受けたとき、中央処理装置3からそのレコード
の見出し部のデータを受け取り、既に記憶されているn
(nは正の整数)番目のレコードの見出し部の記憶され
ているメモリアドレスと、n番目のレコードの見出し部
内のデータ部アドレスとで引算を行って両アドレスの間
のエリアを演算し、このエリアの大きさから新たなレコ
ードの見出し部とデータ部とが書き込み可能か否かを判
定し、記憶部2に記憶させる制御部1から構成されてい
る。
As shown in FIG. 1, the semiconductor storage device of this embodiment has a storage unit 2 having a track capable of storing a plurality of records each including a fixed-length heading portion and a variable-length data portion. When a new record write command is received from the central processing unit 3, the data of the heading portion of the record is received from the central processing unit 3 and the already stored n
(N is a positive integer) subtracting the memory address stored in the heading part of the n-th record from the data part address in the heading part of the n-th record to calculate an area between both addresses; The control unit 1 is configured to determine whether or not the heading part and the data part of a new record are writable based on the size of this area, and to store the result in the storage unit 2.

【0009】また、図2に示すように、n個のレコード
1 〜Rnは、それぞれ固定長の見出し部(ID部)と
可変長のデータ部とから構成され、見出し部には図3に
示されるデータが記憶される。
As shown in FIG. 2, each of the n records R 1 to Rn is composed of a fixed-length head section (ID section) and a variable-length data section. The indicated data is stored.

【0010】次に、動作を説明する。Next, the operation will be described.

【0011】図1において、中央処理装置からレコード
Rnの見出し部のサーチ命令が発行されたとき、制御部
1は、このサーチ命令を受けると、サーチを行って終端
のアドレスを求め、終端のアドレスからn個の見出し部
の長さ分だけアドレスを減算し、レコードRnの見出し
部のアドレスを求め、記憶部2にこのアドレスを送出す
る。そして、制御部1は記憶部2に読み出し命令を発行
してレコードRnの見出し部の内容を読み出し、レコー
ドRnの見出し部のサーチ動作を終了する。
In FIG. 1, when the central processing unit issues a search command for a heading portion of a record Rn, the control unit 1, upon receiving the search command, performs a search to obtain a terminal address, and obtains a terminal address. Then, the address is subtracted by the length of the n headers from, the address of the header of the record Rn is obtained, and this address is sent to the storage unit 2. Then, the control unit 1 issues a read command to the storage unit 2 to read the contents of the heading part of the record Rn, and ends the search operation of the heading part of the record Rn.

【0012】次に、上記サーチ命令に引き続き、中央処
理装置からレコードの書き込み命令が発行されたとき
は、制御部1は、次の動作を行う。
Next, when the central processing unit issues a record write instruction following the search instruction, the control unit 1 performs the following operation.

【0013】まず、レコードRn+1の見出し部の情報
を中央処理装置から受け取り、さらに前述のサーチ命令
実行時に記憶部2から読み取ったレコードRnの見出し
部に含まれるデータ部アドレスと、レコードRnの見出
し部のアドレスとで引き算を行い、得られたエリアに新
たに書き込むべきレコードRn+1の見出し部とデータ
部とが記憶可能か否かを判定する。そして、レコードR
n+1の見出し部とデータ部とが記憶可能ならば、レコ
ードRnの見出し部に含まれるデータ部アドレスとデー
タ長とからレコードRn+1のデータ部アドレスを作成
し、中央処理装置から受け取ったレコードRn+1の見
出し部の情報にデータ部アドレスを付加し、記憶部2に
記憶させる。もし、レコードRn+1の見出し部とデー
タ部との記憶が不可能ならば、その旨を中央処理装置に
通知する。
First, the information of the heading part of the record Rn + 1 is received from the central processing unit, and further, the data part address included in the heading part of the record Rn read from the storage part 2 at the time of executing the above-mentioned search command, and the heading part of the record Rn Then, it is determined whether or not the heading part and the data part of the record Rn + 1 to be newly written in the obtained area can be stored. And record R
If the header part and the data part of n + 1 can be stored, the data part address of record Rn + 1 is created from the data part address and the data length included in the header part of record Rn, and the header of record Rn + 1 received from the central processing unit is created. The data section address is added to the information of the section and stored in the storage section 2. If the heading part and the data part of the record Rn + 1 cannot be stored, the central processing unit is notified of the fact.

【0014】また、サーチ命令に引き続きレコードRn
のデータ部の読み出し命令が発行されたときは、制御部
1はサーチ命令実行時に記憶部2から読み取ったレコー
ドRnの見出し部に含まれるデータ部アドレスで示され
るアドレスに基づいて、記憶部2にリード動作を行わせ
る。
Further, following the search instruction, record Rn
Is issued, the control unit 1 stores the data in the storage unit 2 based on the address indicated by the data part address included in the heading part of the record Rn read from the storage unit 2 at the time of executing the search instruction. A read operation is performed.

【0015】このように、データ部をトラックの先端か
ら順次並べて記憶させ、また固定長の見出し部をトラッ
クの後端から先端の方に向けて逆に順次並べて記憶さ
せ、レコードの書き込み時には、データ部の後端のアド
レスと見出し部の先端のアドレスとで引算を行い、両ア
ドレスの間のエリアの大きさを算出して書き込み可能か
否かを判定するようにしてレコードの記憶を行うことに
より、記憶部のメモリを有効に使用することができる。
As described above, the data portion is sequentially arranged and stored from the leading end of the track, and the fixed-length heading portion is arranged and stored in reverse order from the trailing end to the leading end of the track. The record is stored by subtracting the address at the end of the section and the address at the end of the heading, calculating the size of the area between the two addresses, and determining whether or not it is writable. Thereby, the memory of the storage unit can be used effectively.

【0016】[0016]

【発明の効果】以上説明したように、本発明の半導体記
憶装置は、データ部をトラックの先端から順次並べて記
憶させ、また固定長の見出し部をトラックの後端から先
端の方に向けて逆に順次並べて記憶させ、レコードの書
き込み時には、データ部の後端のアドレスと見出し部の
先端のアドレスとで引算を行い、両アドレスの間のエリ
アの大きさを算出して書き込み可能か否かを判定するよ
うにしてレコードの記憶を行うことにより、記憶部のメ
モリを有効に使用することができるという効果を有して
いる。
As described above, according to the semiconductor memory device of the present invention, the data portion is sequentially arranged and stored from the front end of the track, and the fixed-length heading portion is reversed from the rear end of the track toward the front end. When writing a record, subtract the address at the rear end of the data section from the address at the front end of the heading section, calculate the size of the area between both addresses, and determine whether or not writing is possible. By storing the records in such a manner as to judge, the memory of the storage unit can be used effectively.

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

【図1】本発明の半導体記憶装置の一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing one embodiment of a semiconductor memory device of the present invention.

【図2】本発明の半導体記憶装置に記憶されるレコード
の記憶形式を示す図である。
FIG. 2 is a diagram showing a storage format of a record stored in a semiconductor storage device of the present invention.

【図3】本発明の半導体記憶装置に記憶される見出し部
のデータ構成を示す図である。
FIG. 3 is a diagram showing a data structure of a heading portion stored in the semiconductor memory device of the present invention.

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

1 制御部 2 記憶部 3 中央処理装置 DESCRIPTION OF SYMBOLS 1 Control part 2 Storage part 3 Central processing unit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データを記憶する記憶部と、中央処理装
置からの命令に従い、前記記憶部を制御する制御部から
構成されている半導体記憶装置において、前記記憶部
が、固定長の見出し部と可変長のデータ部とから構成さ
れるレコードを複数個記憶可能なトラックを有し、前記
可変長のデータ部は、レコード番号に従いトラックの先
端から順次エリアを確保し、前記固定長の見出し部は前
記トラックの終端からレコード番号に従い逆にトラック
の先端方向に向けてエリアを確保する記憶形式を有し、
前記制御部が、前記記憶部にn(nは正の整数)個のレ
コードが記憶されている場合に、前記中央処理装置から
新たなn+1番目のレコードの書き込み命令を受けたと
き、前記中央処理装置からn+1番目のレコードの見出
し部のデータを受け取り、既に記憶されているn番目の
レコードの見出し部の記憶されているメモリアドレス
と、n番目のレコードの見出し部内のデータ部アドレス
とで引算を行って両アドレスの間のエリアを演算し、前
記エリアの大きさから前記新たなn+1番目のレコード
の見出し部とデータ部とが書き込み可能か否かを判定
し、書き込み可能らば、前記n+1番目のレコードの見
出し部のデータに前記n+1番目のレコードのデータ部
アドレスを作成後付加し、前記記憶部に記憶させること
を特徴とする半導体記憶装置。
1. A semiconductor memory device comprising: a storage unit for storing data; and a control unit for controlling the storage unit in accordance with an instruction from a central processing unit, wherein the storage unit has a fixed-length heading unit. A variable-length data section having a track capable of storing a plurality of records, the variable-length data section sequentially secures an area from the beginning of the track in accordance with a record number, and the fixed-length heading section includes: A storage format that secures an area in the reverse direction toward the tip of the track according to the record number from the end of the track,
When the control unit receives a write command for a new (n + 1) th record from the central processing unit when n (n is a positive integer) records are stored in the storage unit, Receiving the data of the head part of the (n + 1) th record from the device, and subtracting the memory address stored in the head part of the already stored n-th record from the data part address in the head part of the n-th record To calculate the area between the two addresses, and determine from the size of the area whether or not the heading portion and the data portion of the new (n + 1) th record are writable. A data part address of the (n + 1) -th record, which is added to the data of the head part of the n-th record after being created, and stored in the storage part. Apparatus.
【請求項2】 請求項1記載の半導体記憶装置におい
て、前記固定長の見出し部は、トラック番号とレコード
番号とデータ部の記憶されているメモリアドレスを示す
データ部アドレスとから成ることを特徴とする半導体記
憶装置。
2. The semiconductor memory device according to claim 1, wherein said fixed-length heading comprises a track number, a record number, and a data part address indicating a memory address where a data part is stored. Semiconductor storage device.
JP3025885A 1991-02-20 1991-02-20 Semiconductor storage device Expired - Lifetime JP2838912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3025885A JP2838912B2 (en) 1991-02-20 1991-02-20 Semiconductor storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3025885A JP2838912B2 (en) 1991-02-20 1991-02-20 Semiconductor storage device

Publications (2)

Publication Number Publication Date
JPH04264912A JPH04264912A (en) 1992-09-21
JP2838912B2 true JP2838912B2 (en) 1998-12-16

Family

ID=12178242

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3025885A Expired - Lifetime JP2838912B2 (en) 1991-02-20 1991-02-20 Semiconductor storage device

Country Status (1)

Country Link
JP (1) JP2838912B2 (en)

Also Published As

Publication number Publication date
JPH04264912A (en) 1992-09-21

Similar Documents

Publication Publication Date Title
JPH0378649B2 (en)
JPH04263386A (en) Ic memory card
US3348213A (en) Record retrieval control unit
JPS5833767A (en) Disc controller
JPS5843777B2 (en) Rotating magnetic storage device
JP2838912B2 (en) Semiconductor storage device
JPS5931742B2 (en) Magnetic tape recording and reproducing method
JP3117244B2 (en) EEPROM control device
JPH0418388B2 (en)
JPS592111B2 (en) Magnetic bubble memory control method
JPH0547189A (en) Memory card device
JPS60150128A (en) Buffer memory controller of rotary magnetic memory controller
JPH054693B2 (en)
JPH05151068A (en) Memory card device
JPS59221810A (en) Alternate sector device in magnetic storage device
JPS6275856A (en) Nonvolatile memory device
JPH0711510B2 (en) Ultrasonic diagnostic equipment
JPH0341324Y2 (en)
JPH01303520A (en) Semiconductor memory
JP2000010759A (en) Method and device for data transfer control and rotating storage device
JP2784650B2 (en) Optical disk storage management method
JPH0546468A (en) Memory card
JPS6319858Y2 (en)
JP3264985B2 (en) Disk controller
JPS5846160U (en) Magnetic disk inspection device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980916