JPS6290723A - Encoding and decoding devices for postscript type memory - Google Patents

Encoding and decoding devices for postscript type memory

Info

Publication number
JPS6290723A
JPS6290723A JP60230136A JP23013685A JPS6290723A JP S6290723 A JPS6290723 A JP S6290723A JP 60230136 A JP60230136 A JP 60230136A JP 23013685 A JP23013685 A JP 23013685A JP S6290723 A JPS6290723 A JP S6290723A
Authority
JP
Japan
Prior art keywords
block
codeword
write
code word
written
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
JP60230136A
Other languages
Japanese (ja)
Inventor
Makoto Tatebayashi
誠 館林
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP60230136A priority Critical patent/JPS6290723A/en
Publication of JPS6290723A publication Critical patent/JPS6290723A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain an encoding and decoding devices for postscript type memory which is large in total writing information quantity per one storage unit as compared with conventional ones, by specifying effective code words selected against information symbols. CONSTITUTION:The code words against information symbols (x) of the (T+1)-th generation (T-0, 1,...) to be written in a block form a binary sequence of N bits in length and are not the continuous sequence of '1' of the length N. Moreover, the code words can be transformed from the code words written in the block at the T-th generation and set under a condition where the information symbols can clearly be decoded from the code words of the (T+1)-th generation. The code words read by a block reading section 6 are inspected whether they are effective code words or noneffective ones and, when they are effective code words, decoded symbols corresponding to the effective code words are stored in a decoded symbol buffer. When they are noneffective code words, a decoded block counter 10 is recurrently actuated after the content of the counter 10 is increased by one.

Description

【発明の詳細な説明】 産業上の利用分野 この発8Aはパンチカード、紙テープ、追記型光ディス
クなど情報が一度書き込まれると消去できない非可逆的
な性質を持つ追記型メモリに情報を再書き込みし、再書
き込みされた情報を読み出すことを可能とする情報の符
号化・復号化装置に関する。
[Detailed Description of the Invention] Industrial Application Field This device 8A rewrites information on a write-once memory such as a punched card, paper tape, or write-once optical disk, which has an irreversible property that it cannot be erased once information is written. The present invention relates to an information encoding/decoding device that makes it possible to read rewritten information.

従来の技術 光ディスクなどの追記型メモリは記録媒体を部分的に溶
かしたシ穴を開けるなどしてその表面の物理的な性質を
非可逆的て変化させて2値情報を記憶するため、一度情
報の書き込みを行った記憶媒体に再び新たな情報を書き
込むことは通常は考えられていない。しかしながら、記
憶媒体の効率的、経済的な利用のためには情報の再書き
込みができるもののほうが望ましい。この目的のために
追記型メモリに何度か情報の再書き込みができる符号が
考案されている。以下ではこの符号をWOM(ライト 
ワンス メモリ)符号と呼ぶ。またWOM符号の符号長
をNとしたとき追記型メモリの記憶領域をNビットずつ
に分割したものをブロックと呼ぶことにする。以下に示
すのはインフォメーション  アンド コント0−/l
/ (Informationand control
)、 Vol、55.p、1〜19 、1982にリベ
ストとシャミアによって提案された符号化・復号化方式
である。
Conventional technology Write-once memory such as optical disks stores binary information by irreversibly changing the physical properties of the surface, such as by drilling holes in which the recording medium is partially melted. Normally, it is not considered to write new information again to a storage medium that has been previously written. However, for efficient and economical use of storage media, it is desirable to have a storage medium that allows information to be rewritten. For this purpose, codes have been devised that allow information to be rewritten several times in write-once memory. In the following, we will refer to this code as WOM (Write
once memory) code. Further, when the code length of the WOM code is N, the storage area of the write-once memory is divided into N bits each, which is called a block. The following is information and control 0-/l
/ (Information and control
), Vol, 55. This is an encoding/decoding method proposed by Rivest and Shamir in 1982.

第1表は情報シンボルの数Mが4、符号長Nが3、書き
込み世代数でが2のWOM符号の第1世代(符号請人)
、および第2世代(符号語B)の符号語を示すものであ
る。初期状態においては記録媒体にはオール0が記録さ
れているものとする。
Table 1 shows the first generation of WOM code (code subscriber) where the number of information symbols M is 4, the code length N is 3, and the number of written generations is 2.
, and a code word of the second generation (code word B). It is assumed that all 0s are recorded on the recording medium in the initial state.

第1世代では情報シンボルXに対して符号請人(X)を
書き込む。ここで0を書き込むことは記憶媒体に何等の
変化も生じさせないことを意味し、1を書き込むことは
記憶媒体に何等かの非可逆的な物理的変化を生じさせる
ことを意味している。第2世代では情報シンボルyがX
と異なれば符号語B(y)を書き込み、y=xならば書
き込みは行わない。
In the first generation, a code requestor (X) is written for the information symbol X. Here, writing 0 means not causing any change to the storage medium, and writing 1 means causing some irreversible physical change to the storage medium. In the second generation, the information symbol y is
If different, code word B(y) is written, and if y=x, no writing is performed.

この符号化・復号化方式においてはあるプO、yりに書
き込むべき第T+1世代(T=0.1)の符号語は (
1)  長さNビットの2進系列であり、かつ (II
)  そのブロックに第7世代において書き込まれてい
る符号語からの遷移が可能なものであり、かつ (1)
  第T−)−1世代の符号語から一意的に第T+1世
代の情報シンボルが復号可能であるという条件を満足す
るように設定されている。
In this encoding/decoding method, the T+1st generation (T=0.1) codeword to be written in a certain pool is (
1) It is a binary sequence of length N bits, and (II
) It is possible to transition from the code word written in the 7th generation to that block, and (1)
It is set so as to satisfy the condition that the information symbol of the T+1th generation can be uniquely decoded from the code word of the T-)-1th generation.

第1表 符号化の具体的な例を示そう。第1世代の書き込みにお
いて情報シンボル列00 011゜11に対しある4ブ
ロックの書き込み符号語列は000 100010 0
01  となる。この後に第2世代の情報シンボル列と
して111゜1000が入力されたとき、そのブロック
の書き込み符号語列は 110 101 010111
 となる。
Let us show a concrete example of Table 1 encoding. In the first generation writing, the write code word string of 4 blocks for the information symbol string 00 011°11 is 000 100010 0
01. After this, when 111°1000 is input as the second generation information symbol string, the written code word string for that block is 110 101 010111
becomes.

一方、この書き込み符号語列から情報シンボルが一意的
に復号されることは第1表から明らかである。
On the other hand, it is clear from Table 1 that the information symbol is uniquely decoded from this written code word string.

発明が解決しようとする問題点 しかしながら上記の符号化・復号化法では延べの書き込
み情報量の点で改良すべきものがある。
Problems to be Solved by the Invention However, in the above encoding/decoding method, there is something that should be improved in terms of the total amount of written information.

すなわち、上記の符号化・復号化法では1記憶率位当た
シの書き込み情報量は第1世代、第2を代とも(1o 
g 24 )/3ビットであり、延べの書き込み情報量
は1記憶率位当たり%ビットでしかない。
In other words, in the above encoding/decoding method, the amount of information written per memory rate is (1o
g 24 )/3 bits, and the total amount of written information is only % bits per storage rate.

また、前記の文献に引用されている他のWOM符号でも
1記憶率位轟たシの延べの書き込み情報量は高々1.6
04ビツトでしかない。
Furthermore, in other WOM codes cited in the above-mentioned literature, the total amount of written information for one memory rate is at most 1.6.
It's only 04 bits.

本発明はかかる点に鑑み、1記憶率位当たシの延べの書
き込み情報量が従来のものに比べて大きい、追記型メモ
リ用符号化・復号化装置を提供することを目的としてい
る。
In view of this point, it is an object of the present invention to provide an encoding/decoding device for a write-once memory in which the total amount of written information per storage rate is larger than that of the conventional device.

問題点を解決するための手段 本発明の追記型メモリ用の符号化・復号化装置では、あ
るブロックに書き込むべき第T+1世代(T=o、1.
・・・)の情報シンボルXに対する符号語は (1)長
さNビットの2進系列であり、かつ(11)長さNの1
の連続系列でなく、かつ (III)そのブロックに第
7世代において書き込まれている符号語からの遷移が可
能なものであ)、かつ (IV)第T+1世代の符号語
から一意的に情報シンボルが復号可能であるという条件
の下で設定する。以下ではこの条件を満足する符号語を
有効符号語と呼ぶ。
Means for Solving the Problems In the encoding/decoding device for write-once memory of the present invention, the T+1 generation (T=o, 1.
), the code word for the information symbol X is (1) a binary sequence of length N bits, and (11) 1 of length N
(III) It is possible to transition from the codeword written in the 7th generation in the block), and (IV) The information symbol is uniquely derived from the codeword of the T+1th generation. is set under the condition that it can be decrypted. In the following, a codeword that satisfies this condition will be referred to as an effective codeword.

そして符号化装置では情報シンボルχの誉き込みにおい
て追記型メモリの書き込みブロックの内容を読みだし、
もし有効符号語が存在すればそれをそのブロックに書き
込み、一方もし有効符号語が存在しなければそのブロッ
クを無効ブロックとし無効符号語として長さHの1の連
続系列を書き込み、情報シンボルXに対する符号語を、
そのブロック以降で書き込み可能なブロックに書き込む
ものである。ま念、復号化装置ではまずあるブロックが
無効ブロックであるか否かを検査し、もし有効ブロック
であればそのブロックに書き込まれている符号語から情
報シンボルを一意的に決定し、一方もし無効ブロックで
あればそのブロック以降のブロックについて上記の復号
処理を再帰的に行うものである。
Then, the encoding device reads the contents of the write block of the write-once memory when reading the information symbol χ,
If a valid codeword exists, it is written in that block; if no valid codeword exists, the block is made an invalid block and a continuous sequence of 1s of length H is written as an invalid codeword, and code word,
This is to write to a block that can be written after that block. To be sure, the decoding device first checks whether a certain block is an invalid block or not, and if it is a valid block, it uniquely determines the information symbol from the code word written in that block; If it is a block, the above decoding process is recursively performed for blocks after that block.

作用 本発明による追記型メモリ用符号化・復号化装置は前記
した無効符号語の存在によシ前記(TI) 、 (1)
の条件を満足する符号語の選択範囲が広がシ、この結果
1記憶単位当たシの延べの書き込み情報量が従来のもの
よシ大きくなるのである。
Operation: The write-once memory encoding/decoding device according to the present invention relies on the existence of the invalid code word as described above (TI), (1).
The selection range of code words that satisfy the condition is expanded, and as a result, the total amount of information written per one storage unit becomes larger than that of the conventional method.

実施例 以下、本発明を実施列によシ詳細に説明する。Example Hereinafter, the present invention will be explained in detail based on examples.

第2表は本発明の1実施レリによる符号化・復号化装置
の情報シンボルと符号語の対応を示したものである。
Table 2 shows the correspondence between information symbols and code words of the encoding/decoding apparatus according to one embodiment of the present invention.

まず、符号化処理の概略を説明する。初期状態において
は記録媒体にはオール0が記録されているものとする。
First, an outline of the encoding process will be explained. It is assumed that all 0s are recorded on the recording medium in the initial state.

第1世代ではあるブロックS1に、情報シンボルX、に
対して初期符号語A(XI)を書き込む。第2世代では
そのブロックS1 に書き込むべき情報シンボルx2が
xlと異なれば更新符号語B(χ2)を書き込み、X2
=XIならば書き込みは行わない。第3世代においては
そのブロックに書き込むべき情報シンボルx3がX2と
等しければ書き込みは行わない。一方、もしXsがX2
 と異なれば、書き込まれている符号語が初期符号語で
あるならば更新符号語B(Xs)を書き込む。もし更新
符号語が書き込まれているならばそのブロックS1に無
効符号語111を書き込み、次のブロックS2以降で初
期符号語が書き込まれているブロックS1を検索しSl
に更新符号語B (xs)を書き込む。このときSlか
ら51−1までには無効符号語111を書き込む。第4
世代以降でも記録媒体に書き込むべきブロックがあれば
情報の書き込みが可能である。
In the first generation, an initial code word A(XI) is written for an information symbol X in a certain block S1. In the second generation, if the information symbol x2 to be written in block S1 is different from xl, update code word B(χ2) is written,
If =XI, no writing is performed. In the third generation, if the information symbol x3 to be written into the block is equal to X2, no writing is performed. On the other hand, if Xs is X2
If the codeword being written is the initial codeword, an updated codeword B(Xs) is written. If an updated codeword has been written, an invalid codeword 111 is written in that block S1, and from the next block S2 onwards, a block S1 in which an initial codeword has been written is searched for, and Sl
The updated code word B (xs) is written in . At this time, an invalid code word 111 is written from Sl to 51-1. Fourth
Information can be written even after the generation if there is a block to be written to the recording medium.

一方、復号処理の概略は次のようになる。まずあるブロ
ックが無効符号語であるか否かを検査し、有効符号語で
あればブロック符号語−情報シンボル対応表から復号シ
ンボルを求め、これを出力とする。一方、無効符号語で
あればブロックカウンタを1進め次のブロックで上記の
復号処理を再帰的に行うのである。
On the other hand, the outline of the decoding process is as follows. First, it is checked whether a certain block is an invalid codeword or not, and if it is a valid codeword, a decoded symbol is obtained from the block codeword-information symbol correspondence table, and this is output. On the other hand, if it is an invalid codeword, the block counter is incremented by one and the above decoding process is recursively performed in the next block.

第2表 第1図は本発明の1実施列における追記型メモリ用符号
化装置の構成を示す図である。
Table 2 FIG. 1 is a diagram showing the configuration of a write-once memory encoding device in one embodiment of the present invention.

第1図において1は情報シンボル入力部で0,1゜2か
らなる3値の情報シンボルを入力する。2は情報シンボ
ルバッファで、情報シンボル入力部1から入力された情
報シンボル列を一時記憶する。
In FIG. 1, 1 is an information symbol input section which inputs a ternary information symbol consisting of 0, 1°2. 2 is an information symbol buffer that temporarily stores the information symbol string input from the information symbol input section 1;

3は符号化バッフ7カウンタで情報シンボルバッファ2
のうち現在書き込み中の情報シンボルの番号を記憶して
いる。4は追記型メモリで、ピント単位での書き込みお
よび呼び出しが可能である。
3 is the encoding buffer 7 counter and the information symbol buffer 2
The number of the information symbol currently being written is stored. Reference numeral 4 denotes a write-once memory, which can be written and recalled in units of focus.

また本実施しリにおいては3ビツトからなるブロック単
位での書き込みおよび読み込みが可能であるものとする
。5は符号化ブロックカウンタで、現在書き込みもしく
は読み込み中の追記型メモリ4のブロック番号を記憶し
ている。eはブロック読み込み部で、追記型メモリ4の
うちで符号化ブロックカウンタ6で指定されるブロック
の記憶内容を読み込む。7は符号語選択部でブロック読
み込み部6によって読み込まれた符号語と情報シンボル
バッファ2のうち符号化バッファカウンタ3によって指
定される情報シンボルから書き込み符号語を選択する。
Further, in this embodiment, it is assumed that writing and reading are possible in units of blocks each consisting of 3 bits. 5 is an encoded block counter that stores the block number of the write-once memory 4 that is currently being written or read. A block reading unit e reads the stored contents of the block specified by the encoded block counter 6 in the write-once memory 4. 7 is a code word selection unit which selects a code word to be written from the code word read by the block reading unit 6 and the information symbol designated by the encoding buffer counter 3 from the information symbol buffer 2.

読み込み符号語と情報シンボルと書き込み符号語との関
係は第2図のマルコフ連鎖−図に示す通シである。同図
中、矢印の基点はブロック読み込み部6によって読み込
まれた符号語、矢印の横に示すのは情報シンボル、矢印
の終点は書き込むべき符号語である。書き込むべき符号
語が有効符号語の場合は後述する有効符号語書き込み部
を起動する。一方書き込むべき符号語が無効符号語の場
合は後述する無効符号語書き込み部を起動した後に自ら
を再帰的に起動する。8は有効符号語書き込み部で符号
語選択部7が選択した有効符号語を追記型メモリ4のう
ち符号化ブロックカウンタ6によって指定されるブロッ
クに書き込み、符号化バンファカウンタ3および符号化
ブロックカウンタ6の内容をそれぞれ1増加させる。
The relationship between the read code word, information symbol, and write code word is the same as shown in the Markov chain diagram of FIG. In the figure, the base point of the arrow is the code word read by the block reading unit 6, the information symbol shown next to the arrow, and the end point of the arrow is the code word to be written. If the codeword to be written is an effective codeword, an effective codeword writing unit, which will be described later, is activated. On the other hand, if the codeword to be written is an invalid codeword, it recursively activates itself after activating an invalid codeword writing unit, which will be described later. Reference numeral 8 denotes an effective code word writing unit which writes the effective code word selected by the code word selection unit 7 into the block specified by the coding block counter 6 in the write-once memory 4, and writes the effective code word selected by the code word selection unit 7 into the block designated by the coding block counter 6 in the write-once memory 4. Increase the contents of 6 by 1.

9は無効符号語書き込み部で無効符号語を追記型メモリ
4のうち符号化ブロックカウンタ5によって指定される
ブロックに書き込み、符号化ブロックカウンタ6の内容
を1増加させる。
Reference numeral 9 denotes an invalid code word writing unit which writes an invalid code word into the block designated by the encoded block counter 5 in the write-once memory 4 and increments the contents of the encoded block counter 6 by one.

第3図は本発明の1実施し1]における追記型メモリ用
復号化装置の構成を示す図である。
FIG. 3 is a diagram showing the configuration of a write-once memory decoding device in Embodiment 1 of the present invention.

同図において10は復号ブロックカウンタで、現在読み
込み中の追記型メモリ4のブロック番号を記憶している
。11は復号シンボル変換部で、第4図に示す符号語と
復号シンボルの変換デープルを有し、ブロック読み込み
部6によって読み込まれた符号語が有効符号語か無効符
号語かの検査を行ない、有効符号語の場合にはこれに対
応する復号シンボルを後述する復号シンボルバッフ7に
格納した後、後述する復号バッファカウンタの内容を1
増加し、無効符号語の場合には復号ブロックカウンタ1
0の内容を1増加させた後口らを再帰的に起動する。1
2は復号シンボルバッファで、復号シンボル変換部11
によって設定された復号シンボルを順次格納する。13
は復号化バッファカウンタで、復号シンボルバッファ1
2のうチ現在書き込み中の復号シンボルの格納位置番号
を記憶している。
In the figure, 10 is a decoding block counter, which stores the block number of the write-once memory 4 that is currently being read. Reference numeral 11 denotes a decoded symbol conversion unit, which has a codeword and decoded symbol conversion table shown in FIG. 4, and checks whether the codeword read by the block reading unit 6 is a valid codeword or an invalid codeword. In the case of a code word, the corresponding decoded symbol is stored in the decoded symbol buffer 7, which will be described later, and then the contents of the decoded buffer counter, which will be described later, are set to 1.
decoded block counter 1 in case of invalid codeword.
After incrementing the contents of 0 by 1, recursively activate the program. 1
2 is a decoded symbol buffer, which is a decoded symbol converter 11;
The decoded symbols set by are stored sequentially. 13
is the decoding buffer counter, decoding symbol buffer 1
The second one stores the storage position number of the decoded symbol currently being written.

一トに従って説明する。I will explain according to the first one.

〔符号化装置〕[Encoding device]

(1)情報シンボル入力部1から入力された情報シンボ
ル列が情報シンボルバッファ2に一時記憶される。この
時点で符号化バッファカウンタ3および符号化ブロック
カウンタ5の内容はそれぞれ○である。
(1) The information symbol string input from the information symbol input section 1 is temporarily stored in the information symbol buffer 2. At this point, the contents of the encoding buffer counter 3 and the encoding block counter 5 are each ○.

(2)符号化バッファカウンタ3の内容が情報シンボル
バッファ2の有効長よシも大きい場合は符号化処理を終
了する。そうでなければ(3)に進む。
(2) If the content of the encoding buffer counter 3 is larger than the effective length of the information symbol buffer 2, the encoding process is terminated. Otherwise, proceed to (3).

(3)符号化ブ07クカウンタ5の内容が追記型メモリ
4の有効容量よシも大きい場合は符号化処理を終了する
。そうでなければブロック読み込み部6は追記型メモリ
4のうち符号化ブロックカウンタ5で指定されるブロッ
クを読み込む。
(3) If the contents of the encoding block 07 counter 5 are larger than the effective capacity of the write-once memory 4, the encoding process is terminated. Otherwise, the block reading unit 6 reads the block specified by the encoded block counter 5 from the write-once memory 4.

(4)符号語選択部7は情報シンボルバッファ2のうち
符号化バッファカウンタ3で指定される情報シンボルと
ブロック読み込み部6によシ読み込まれた符号語から書
き込み符号語を選択する。
(4) The code word selection unit 7 selects a write code word from the information symbol specified by the encoding buffer counter 3 in the information symbol buffer 2 and the code word read by the block reading unit 6.

書き込み符号語が有効符号語の場合は(四に進み、無効
符号語の場合は(6)に進む。
If the written codeword is a valid codeword, proceed to (4); if it is an invalid codeword, proceed to (6).

(5)有効符号語書き込み部8は符号語選択部7が選択
した有効符号語を追記型メモリ4のうち符号化ブロック
カウンタ6によって指定されるブロックに書き込み、符
号化バッフ7カウンタ3および符号化ブロックカウンタ
5の内容をそれぞれ1増加させる。この後(2)に進む
(5) The valid code word writing unit 8 writes the valid code word selected by the code word selection unit 7 into the block specified by the coding block counter 6 in the write-once memory 4, and writes the valid code word selected by the code word selection unit 7 into the block specified by the coding block counter 6 in the coding buffer 7 counter 3 and the coding block. The contents of block counter 5 are each incremented by 1. After this, proceed to (2).

(6)無効符号語書き込み部9は無効符号語を追記型メ
モリ4のうち符号化ブロックカウンタ5によって指定さ
れるブロックに曹き込み、符号化ブロックカウンタ6の
内容を1増加させる。この後(3)に進む。
(6) The invalid code word writing unit 9 writes the invalid code word into the block specified by the encoded block counter 5 in the write-once memory 4, and increases the contents of the encoded block counter 6 by one. After this, proceed to (3).

〔復号化装置〕[Decoding device]

(′7)復号化バンフ7カウンタ13および復号化ブロ
ックカウンタ10の内容をそれぞれ0とする。
('7) Set the contents of the decoding banff 7 counter 13 and the decoding block counter 10 to 0, respectively.

(8)復号化バンファカウンタ13の内容が復号シンボ
ルバッファ12の有効長よりも大きい場合は復号化処理
を終了する。そうでなければ(9)に進む。
(8) If the content of the decoding buffer counter 13 is larger than the effective length of the decoding symbol buffer 12, the decoding process is terminated. Otherwise, proceed to (9).

(9)復号化ブロックカウンタ1Qの内容が追記型メモ
リ4の有効容量よシも大きい場合は復号化処理を終了す
る。そうでなければブロック読み込み部6は追記型メモ
リ4のうち復号化ブロックカウンタ10で指定されるブ
ロックを読み込む。
(9) If the content of the decoding block counter 1Q is larger than the effective capacity of the write-once memory 4, the decoding process is terminated. Otherwise, the block reading unit 6 reads the block specified by the decoding block counter 10 from the write-once memory 4.

(10)復号シンボル変換部11はブロック読み込み部
6によシ読み込まれた符号語が有効符号語か無効符号語
かを検査する。読み込み符号語が有効符号語の場合は(
11)に進み、無効符号語の場合は(12)に進む。
(10) The decoded symbol converter 11 checks whether the codeword read by the block reader 6 is a valid codeword or an invalid codeword. If the read codeword is a valid codeword (
Proceed to step 11), and if it is an invalid codeword, proceed to step (12).

(11)復号シンボル変換部11は第4図の変換テーブ
ルの(a)欄において読み込み符号語と一致する符号語
を検索し、それに対応する(b)欄の復号シン° ボル
ヲ復号シンボルバッファ12のうち復号化バッファカウ
ンタ13で指定される位置に格納する。そして復号化バ
ッファカウンタ13および復号化ブロックカウンタ10
の内容をそれぞれ1増加させる。この後(8)に進む。
(11) The decoded symbol conversion unit 11 searches for a code word that matches the read code word in the column (a) of the conversion table in FIG. It is stored in the position specified by the decoding buffer counter 13. and a decoding buffer counter 13 and a decoding block counter 10
Increase the contents of each by 1. After this, proceed to (8).

(12)復号シンボル変換部11は復号化ブロックカウ
ンタ10の内容を1増加させる。この後(9)に進む。
(12) The decoded symbol converter 11 increments the contents of the decoded block counter 10 by one. After this, proceed to (9).

次に本実施例の追記型メモリ用符号化装置の具体的な動
作の一列を示す。今、追記型メモリ4は8ブロックから
なるものとし、その記憶状態は第3表(IL)に示すも
のであるとする。そして第1世代の入力として情報シン
ボル入力部1から第3表(b)の情報シンボルが入力さ
れ、情報シンボルバッファ2に一時記憶されているもの
とする。また符号化バッファカウンタ3および符号化ブ
ロックカウンタ6の内容はそれぞれ0であるとする。ま
ず本符号化装置はブロック読み込み部6が追記型メモリ
4のうち符号化ブロックカウンタ6で指定されるブロッ
クの内容を読み込む。この内容は000である。そして
符号語選択部子は情報シンボルバッファ2のうち符号化
バッファカウンタ3で指定される情報シンボル(この場
合は○)と上記ブロック内容(この場合は00Q)とか
ら第2図に従って有効符号語○00を選択する。そして
有効符号語書き込み部8は有効符号語000を追記型メ
モリ4のうち符号化ブロックカウンタ5の示すブロック
○に書き込む。そして符号化バッファカウンタ3および
符号化ブロックカウンタ6の内容をそれぞれ1増加させ
る。
Next, a series of specific operations of the write-once memory encoding device of this embodiment will be described. It is now assumed that the write-once memory 4 consists of eight blocks, and its storage state is as shown in Table 3 (IL). It is assumed that the information symbols shown in Table 3 (b) are input from the information symbol input unit 1 as the first generation input and are temporarily stored in the information symbol buffer 2. It is also assumed that the contents of the encoding buffer counter 3 and the encoding block counter 6 are each 0. First, in this encoding device, the block reading unit 6 reads the contents of the block specified by the encoding block counter 6 from the write-once memory 4 . This content is 000. Then, the code word selection unit selects the effective code word ○ according to FIG. Select 00. Then, the effective code word writing unit 8 writes the effective code word 000 into the block ◯ indicated by the encoded block counter 5 in the write-once memory 4 . Then, the contents of the encoding buffer counter 3 and the encoding block counter 6 are each incremented by 1.

上述の処理を繰シ返し、情報シンボル入力部1から入力
された8つの情報シンボルがすべて追記型メモリ4に書
き込まれたとき第1世代の符号化処理は終了する。この
時の追記型メモリ4の記憶状態は第3表(C)に示すと
おりである。
The above-described process is repeated, and when all eight information symbols input from the information symbol input section 1 are written into the write-once memory 4, the first generation encoding process ends. The storage state of the write-once memory 4 at this time is as shown in Table 3 (C).

次いで、第2世代の情報シンボルとして第3表(d)の
入力が情報シンボル入力部1からあったものとする。こ
のとき前記(1)〜(6)の処理を行うことによシ8シ
ンボルの書き込みが行なわれ追記型メモリ4の記憶状態
は第3表(61)に示すようになる。
Next, it is assumed that the input shown in Table 3 (d) is received from the information symbol input section 1 as the second generation information symbol. At this time, by performing the processes (1) to (6) above, eight symbols are written, and the storage state of the write-once memory 4 becomes as shown in Table 3 (61).

更に第3世代の情報シンボルとして第3表(f)の入力
が情報シンボル入力部1からあったものとする。この時
前記の処理を行うことによj)6シンボルの有効符号語
と3シンボルの無効符号語が書き込みが行なわれ追記型
メモリ4の記憶状態は第3表弯)のようになる。
Furthermore, it is assumed that the input of Table 3 (f) as a third generation information symbol is received from the information symbol input section 1. At this time, by performing the above-mentioned processing, six valid codewords and three invalid codewords are written, and the storage state of the write-once memory 4 becomes as shown in Table 3).

更に第4世代の情報シンボルとして第3表(h)の入力
が情報シンボル入力部1からあったものとする。この時
前記の処理を行うことによシ4シンボルの有効符号語と
4シンボルの無効符号語が書き込みが行なわれ追記型メ
モリ4の記憶状態は第3表(i>のようになる。
Furthermore, it is assumed that the input of Table 3 (h) as a fourth generation information symbol is received from the information symbol input unit 1. At this time, by performing the above processing, four symbols of valid codewords and four symbols of invalid codewords are written, and the storage state of the write-once memory 4 becomes as shown in Table 3 (i>).

第3表 (a)  ooo○oo ooo ooo ooo o
oo ooo oo。
Table 3 (a) ooo○oo ooo ooo ooo o
oo ooo oo.

(b)01201120 (C)  00000101000000100101
00o○(d)02211201 (e)  00010101000100110101
1001(f)1 1 1 2 0 (g)  ○01 111 110001101 11
1 111011(h)2110 (i)  101111 110001111111 
111011また本実施例の追記型メモリ用復号化装置
は前述のヴ)から(12)までの処理を行うことによシ
上述の動作例の場合、追記型メモリ4の記憶内容が第1
世代において第3表(C)に示すものであるとき第3表
の(b)の復号シンボル列を復号シンボルバッフ712
に格納する。また追記型メモリ4の記憶内容が第2世代
において第3表(e)に示すものであるとき第3表の(
0)の復号シンボル列を復号シンボルバッファ12に格
納する。また追記型メモリ4の記憶内容が第3世代にお
いて第3表(g)に示すものであるとき復号シンボル列
「1112o」を復号シンボルバッファ12に格納する
。また追記型メモリ4の記憶内容が第4世代において第
3表(i)に示すものであるとき復号シンボル列「21
1o」全復号シンボルバッファ12に格納する。
(b) 01201120 (C) 00000101000000100101
00o○ (d) 02211201 (e) 00010101000100110101
1001 (f) 1 1 1 2 0 (g) ○01 111 110001101 11
1 111011 (h) 2110 (i) 101111 110001111111
111011 Furthermore, the write once memory decoding device of this embodiment performs the processes from V) to (12) described above.
When the generation is as shown in Table 3 (C), the decoded symbol string of (b) in Table 3 is stored in the decoded symbol buffer 712.
Store in. In addition, when the storage contents of the write-once memory 4 are as shown in Table 3 (e) in the second generation, (
0) is stored in the decoded symbol buffer 12. Further, when the storage contents of the write-once memory 4 are as shown in Table 3 (g) in the third generation, the decoded symbol string "1112o" is stored in the decoded symbol buffer 12. Further, when the storage contents of the write-once memory 4 are as shown in Table 3 (i) in the fourth generation, the decoded symbol string "21
1o'' are stored in the entire decoded symbol buffer 12.

以上述べたように、上述の動作例においては本実施例の
追記型メモリ用符号化装置は8ブロックの追記型メモリ
の記憶領域に4世代にわたって第3表の(b) 、 (
d) 、 (f) 、 (h)の延べ26情報シンボル
を書き込むことができる。1情報シンボルはLog23
ビットの情報量を有するから、1記憶単位当たシの延べ
の書き込み情報量は10g23・25/(3・8すなわ
ち、1.651ビツトとなる。
As described above, in the above-mentioned operation example, the write-once memory encoding device of this embodiment stores the data in the storage area of the 8-block write-once memory over four generations as shown in (b) in Table 3.
A total of 26 information symbols of d), (f), and (h) can be written. 1 information symbol is Log23
Since it has an information amount of bits, the total amount of written information per memory unit is 10g23.25/(3.8, that is, 1.651 bits).

上述の動作列はほんの一例であるので本実施例の追記型
メモリ用符号化・復号化装置の従来の方式に対する優位
性を示すためには確率計算を用いて平均的な延べ書き込
み情報量を求めて評価しなければならない。以下では本
実施例の符号化・復号化装置の1記憶単位当たりの平均
的な延べ書き込み情報量を導出する。ここで3値入力情
報シンボルは等確率にかつ統計的独立に発生するものと
仮定する。
The above sequence of operations is just an example, so in order to demonstrate the superiority of the encoder/decoder for write-once memory of this embodiment over the conventional method, the average total amount of written information will be determined using probability calculation. must be evaluated. Below, the average total amount of written information per storage unit of the encoding/decoding device of this embodiment will be derived. Here, it is assumed that the ternary input information symbols occur with equal probability and statistically independently.

本符号を用いて複数世代の書き込みを行った後あるブロ
ックの書き込み状態が初期状態5o=000からどのよ
うに遷移するかは第2図のマルコフ連鎖図で表わされる
。以下、符号語Wが書き込まれている状態を状態Swと
表わすものとする。ここで3値入力シンボルの発生確率
がそれぞれ晃であることを考えると、次の状態遷移確率
行列Pが得られる。
The Markov chain diagram in FIG. 2 shows how the write state of a certain block changes from the initial state 5o=000 after multiple generations have been written using this code. Hereinafter, the state in which the code word W is written will be referred to as state Sw. If we consider that the probability of occurrence of each ternary input symbol is K, the following state transition probability matrix P can be obtained.

ここで初期状態はSaである。状態SQから82におい
ては確率1で書き込みが可能である。また状態S3から
85においては確率晃で書き込みが可能である。第1世
代においであるブロックが書き込み可能である確率Q1
は明らかに1であり、第2世代における上記確率Q2は
、 となる。一般に第を世代における上記確率Qは、t〉2
において、 となる。
Here, the initial state is Sa. In states SQ to 82, writing is possible with probability 1. Further, in states S3 to S85, writing is possible with a high probability. Probability Q1 that a certain block is writable in the first generation
is clearly 1, and the above probability Q2 in the second generation is as follows. Generally, the above probability Q in the th generation is t〉2
In , it becomes .

上記状態遷移確率行列Pよシ、第1世代に状態S1にあ
シ第を世代に状態Sjとなる確率は次のようになる。
Given the above state transition probability matrix P, the probability that the first generation will be in the state S1 and the second generation will be in the state Sj is as follows.

が得られる。ここで、 a=t (t−1) 、 b=t (t−1)/2 、
 c=3t−2t 2−1゜a==3t−2t−1,6
=3t−1、f=3t0これらの式よシ、1記憶単位幽
たシの平均延べ書き込み情報量rは r=1og23/3−  Σ Qt t==−1 =1.534(b工t) となる。従って本実施例の追記型メモリ用符号化・復号
化装置は従来の方式に比べて大きい延べ書き込み情報量
を有することが示される。
is obtained. Here, a=t (t-1), b=t (t-1)/2,
c=3t-2t 2-1゜a==3t-2t-1,6
= 3t-1, f = 3t0 According to these formulas, the average total amount of written information r for one memory unit is r = 1og23/3- Σ Qt t = = -1 = 1.534 (b-t) becomes. Therefore, it is shown that the write-once memory encoding/decoding device of this embodiment has a larger total amount of written information than the conventional system.

第6図に本発明の他の実施例における追記型メモリ用符
号化・復号化装置の情報シンボルと書き込み符号語の関
係を示すマルコフ連鎖図を示す。
FIG. 6 shows a Markov chain diagram showing the relationship between information symbols and written code words in a write-once memory encoding/decoding device according to another embodiment of the present invention.

この符号は符号長Nが4、情報シンボル数Mが4の符号
である。この符号の1記憶単位当たりの平均延べ書き込
み情報量は前述と同様の確率計算を行なうことによシ、
1.926ビツトとなることが証明される。この実施列
においても前述の実施列と同様に従来提案されているW
OM符号よシも大きい1記憶単位当たシの平均延べ書き
込み情報量かえられる。
This code has a code length N of 4 and a number M of information symbols of 4. The average total amount of written information per storage unit of this code can be calculated by performing the same probability calculation as described above.
It is proven that the number of bits is 1.926 bits. In this implementation sequence, as well as the above-mentioned implementation sequence, W
The average total amount of written information per storage unit is also large compared to the OM code.

発明の詳細 な説明したように、本発明によれば1記憶単位当たりの
延べの書き込み情報量が従来のものより大きい追記型メ
モリ用符号化・復号化装置が実現でき、その実用的効果
は太きい。
As described in detail, according to the present invention, it is possible to realize an encoding/decoding device for a write-once memory in which the total amount of information written per one storage unit is larger than that of the conventional one, and its practical effects are significant. Hey.

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

第1図は本発明における“−実施列の追記型メモリ用符
号化装置の構成図、第2図は同実施例の情報シンボルと
符号語の関係を示すマルコフ連鎖図、第3図は本発明て
おける一実施例の追記型メモリ用復号化装置の構成図、
第4図は符号語と復号シンボルの変換テーブルの内容図
、第6図は本発明における一実施例の追記型メモリ用符
号化・復号化装置の動作の一列を示すフローチャート、
第6図は本発明の他の実施例の追記型メモリ用符号化・
復号化装置の情報シンボルと符号語の関係を示スマルコ
フ連鎖図である。 1・・・・・・情報シンボル入力部、4・・・・・追記
型メモリ、5・・・・・符号化ブロックカウンタ、6・
・・・・ブロック読み込み部、7・・・・・符号語選択
部、8・・・・・有効符号語書き込み部、9・・・・・
・無効符号語書き込み部、10・・・・・復号化ブロッ
クカウンタ、11・・・・−復号シンボル変換部。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名−ψ
     ト 第 2 図 第3図 第4図 (久)       (b) 第5図A (符号化表L) 第5図B (復号化表工)
FIG. 1 is a block diagram of a write-once memory encoding device for "-implementation sequences" according to the present invention, FIG. 2 is a Markov chain diagram showing the relationship between information symbols and code words in the same embodiment, and FIG. 3 is a diagram according to the present invention. A configuration diagram of a write-once memory decoding device according to an embodiment of the present invention;
FIG. 4 is a content diagram of a conversion table between code words and decoded symbols, and FIG. 6 is a flowchart showing a series of operations of the write-once memory encoding/decoding apparatus according to an embodiment of the present invention.
FIG. 6 shows an encoding method for write-once memory according to another embodiment of the present invention.
It is a Smarkov chain diagram showing the relationship between information symbols and code words of a decoding device. 1...Information symbol input unit, 4...Writable memory, 5...Encoding block counter, 6...
...Block reading unit, 7...Code word selection unit, 8...Valid code word writing unit, 9...
- Invalid code word writing unit, 10...Decoded block counter, 11...-Decoded symbol conversion unit. Name of agent: Patent attorney Toshio Nakao and 1 other person -ψ
Figure 2 Figure 3 Figure 4 (Kyu) (b) Figure 5 A (Encoding table L) Figure 5 B (Decoding table)

Claims (2)

【特許請求の範囲】[Claims] (1)情報シンボルを入力する情報シンボル入力部と、
Nビットを1ブロックとしブロック単位での書き込みお
よび読み込みが可能である追記型メモリと、前記追記型
メモリ内のブロックを指定するブロック指定手段と、前
記追記型メモリのうちで前記ブロック指定手段で指定さ
れるブロックの記憶内容を読み込むブロック読み込み部
と、有効符号語書き込み部と、無効符号語書き込み部と
、前記ブロック読み込み部によって読み込まれた符号語
と前記情報シンボル入力部からの入力情報シンボルとに
よって有効符号語もしくは無効符号語である書き込み符
号語を選択し、書き込むべき符号語が有効符号語の場合
は有効符号語書き込み部を起動し、一方書き込むべき符
号語が無効符号語の場合は無効符号語書き込み部を起動
した後に再帰的に自らを起動する符号語選択部とを有し
、前記有効符号語書き込み部は前記符号語選択部が選択
した有効符号語を前記追記型メモリのうち前記ブロック
指定手段が指定するブロックに書き込み、前記無効符号
語書き込み部は無効符号語を前記追記型メモリのうち前
記ブロック指定手段が指定するブロックに書き込み前記
ブロック指定手段の指定内容を前記ブロックの次のブロ
ックとし、前記符号語選択部によって情報シンボルxに
対して選択される有効符号語としては、( I )長さN
ビットの2進系列であり、かつ(II)長さNの1の連続
系列ではなく、かつ(III)そのブロックに書き込まれ
ている符号語からの遷移が可能なものであり、かつ(I
V)その有効符号語から一意的に情報シンボルが復号可
能であるという条件で設定されており、一方無効符号語
としては長さNの1の連続系列であるように設定されて
いることを特徴とする追記型メモリの符号化装置。
(1) an information symbol input section for inputting information symbols;
A write-once memory in which N bits are one block and write and read in blocks are possible; block designation means for specifying a block in the write-once memory; and designation by the block designation means in the write-once memory. a block reading unit that reads the memory contents of the block to be processed, a valid codeword writing unit, an invalid codeword writing unit, and the codeword read by the block reading unit and the input information symbol from the information symbol input unit. Select a write codeword that is a valid codeword or an invalid codeword, and if the codeword to be written is a valid codeword, start the valid codeword writing section, and if the codeword to be written is an invalid codeword, start the invalid codeword. and a code word selection section that starts itself recursively after starting the word writing section, and the effective code word writing section writes the effective code word selected by the code word selection section to the block in the write-once memory. The invalid codeword writing unit writes the invalid codeword to the block specified by the block specifying means in the write-once memory and writes the contents specified by the block specifying means to the block next to the block. The effective code word selected for the information symbol x by the code word selection unit is (I) length N
is a binary sequence of bits, and (II) is not a continuous sequence of ones of length N, and (III) is transitionable from the codeword written in the block, and (I
V) It is set under the condition that the information symbol can be uniquely decoded from the effective code word, while the invalid code word is set to be a continuous sequence of 1's of length N. A write-once memory encoding device.
(2)Nビットを1ブロックとしブロック単位での読み
込みが可能である追記型メモリと、現在読み込み中の前
記追記型メモリのブロック番号を指定するブロック指定
手段と、前記追記型メモリのうちで前記ブロック指定手
段で指定されるブロックの記憶内容を読み込むブロック
読み込み部と、所定の条件を満足する符号語とこれに対
応する復号シンボルとの関係を記憶し、前記ブロック読
み込み部によって読み込まれた符号語が有効符号語か無
効符号語かの検査を行ない、有効符号語の場合にはこれ
に対応する復号シンボルを出力し、無効符号語の場合に
はブロック指定手段の指定内容を前記ブロックの次のブ
ロックとした後に再帰的に自らを起動する復号シンボル
変換部を有し、前記所定の条件として、有効符号語とし
ては、( I )長さNビットの2進系列であり、かつ(
II)長さNの1の連続系列ではなく、かつ(III)その
ブロックに書き込まれている符号語からの遷移が可能な
ものであり、かつ(IV)その有効符号語から一意的に情
報シンボルが復号可能であるという条件で設定されてお
り、一方無効符号語としては長さNの1の連続系列であ
るように設定されていることを特徴とする追記型メモリ
の復号化装置。
(2) a write-once memory that has N bits as one block and can be read in blocks; a block designation means for specifying a block number of the write-once memory that is currently being read; a block reading section that reads the stored contents of the block specified by the block specifying means; a block reading section that stores the relationship between a code word that satisfies a predetermined condition and a decoded symbol that corresponds to the code word that is read by the block reading section; is a valid codeword or an invalid codeword, and if it is a valid codeword, the corresponding decoded symbol is output, and if it is an invalid codeword, the specified content of the block designation means is changed to the next block of the block. It has a decoding symbol converter that recursively activates itself after forming a block, and as the predetermined conditions, the effective code word is (I) a binary sequence of length N bits, and (
II) is not a continuous sequence of 1s of length N, and (III) is capable of transition from the codeword written in the block, and (IV) is a unique information symbol from the effective codeword. 1. A decoding device for a write-once memory, characterized in that the condition is set such that the code word can be decoded, and the invalid code word is set to be a continuous sequence of 1's of length N.
JP60230136A 1985-10-16 1985-10-16 Encoding and decoding devices for postscript type memory Pending JPS6290723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60230136A JPS6290723A (en) 1985-10-16 1985-10-16 Encoding and decoding devices for postscript type memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60230136A JPS6290723A (en) 1985-10-16 1985-10-16 Encoding and decoding devices for postscript type memory

Publications (1)

Publication Number Publication Date
JPS6290723A true JPS6290723A (en) 1987-04-25

Family

ID=16903143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60230136A Pending JPS6290723A (en) 1985-10-16 1985-10-16 Encoding and decoding devices for postscript type memory

Country Status (1)

Country Link
JP (1) JPS6290723A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI458923B (en) * 2007-06-25 2014-11-01 Unitec Inc Unit type clean room and its combination method
JP2015185193A (en) * 2014-03-25 2015-10-22 京セラドキュメントソリューションズ株式会社 Data storage device and image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI458923B (en) * 2007-06-25 2014-11-01 Unitec Inc Unit type clean room and its combination method
JP2015185193A (en) * 2014-03-25 2015-10-22 京セラドキュメントソリューションズ株式会社 Data storage device and image processor

Similar Documents

Publication Publication Date Title
US5812841A (en) Method and apparatus for recording and reading date data having coexisting formats
JP2770855B2 (en) Digital information storage and retrieval method and apparatus
JPS62145574A (en) Writing of information into support unable to be erased
US5175857A (en) System for sorting records having sorted strings each having a plurality of linked elements each element storing next record address
JPH06508456A (en) Data compression using multiple levels
Leiss Data integrty in digital optical disks
US5394143A (en) Run-length compression of index keys
JPH09115227A (en) Write-in method for variable length sequencial record
JPS6290723A (en) Encoding and decoding devices for postscript type memory
JP7059516B2 (en) Coding program, coding device and coding method
CN1048607C (en) Method of correcting errors and erasures in digital information, and device suitable for carrying out the method
JP3850134B2 (en) Data retrieval device
EP0647034B1 (en) A variable word length code decoding method, and a decoder for performing the same
JPS6051731B2 (en) Two-tier file system
KR100317760B1 (en) Recordable information recording medium and method and apparatus for formatting the same, and Method and apparatus for writing data to and reading data from the recordable information recording medium.
EP0049113A2 (en) File deletion method for bubble cassette memory, and bubble cassette memory control apparatus
CA1208794A (en) Error detection system
CN111681290B (en) Picture storage method based on DNA coding technology
JPH0477990B2 (en)
Fitzpatrick et al. Construction of high rate codes from an infinite memory constraint graph
SU1667155A1 (en) Associative working memory
JPS6140635A (en) Magnetic disc controller
JPS63191272A (en) Display method for retrieved picture
JPS62278606A (en) Numerical controller
JPS62139416A (en) Data compressing and decoding device