Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5937511B2 - character pattern generator - Google Patents
[go: Go Back, main page]

JPS5937511B2 - character pattern generator - Google Patents

character pattern generator

Info

Publication number
JPS5937511B2
JPS5937511B2 JP14331678A JP14331678A JPS5937511B2 JP S5937511 B2 JPS5937511 B2 JP S5937511B2 JP 14331678 A JP14331678 A JP 14331678A JP 14331678 A JP14331678 A JP 14331678A JP S5937511 B2 JPS5937511 B2 JP S5937511B2
Authority
JP
Japan
Prior art keywords
address
character pattern
character
data
memory
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
Application number
JP14331678A
Other languages
Japanese (ja)
Other versions
JPS5569847A (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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP14331678A priority Critical patent/JPS5937511B2/en
Publication of JPS5569847A publication Critical patent/JPS5569847A/en
Publication of JPS5937511B2 publication Critical patent/JPS5937511B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 この発明は文字パターン発生装置に関する。[Detailed description of the invention] The present invention relates to a character pattern generating device.

文字パターン発生装置として文字コードの入力によつて
対応する文字パターンを出力するパターンメモリがしば
しば用いられる。文字パターンとして特に漢字パターン
を対象とする場合には非常に多くの字種があるので大容
量のメモリ例えば磁気ディスク等を必要とする。しかし
ながら磁気ディスクを用いたのではアクセスに多くの時
間を要するためパターン発生速度が低いという欠点があ
る。このため磁気ディスク等の大容量メモリ(第1の文
字パターンメモリ)には比較的使用頻度の低い多くの文
字パターンを収容し、一方一般に使用頻度の高い小数の
文字をICメモリ等(第2の文字パターンメモリ)に収
容しておくことにより、見かけ上のパターン発生速度の
向上を計ることが計みられている。すなわち、入力文字
コードに対応する文字パターンが、第2の文字パターン
メモリ中にあるかどうかをまず検索し、存在しないとき
のみ第1の文字パターンメモリから読み出すように構成
される。このとき第1の文字パターンメモリから読み出
された文字パターンは一担第2の文字パターンメモリに
収容し、いままで第2の文字パターンメモリ中にあつた
最も使用頻度の低いものを除くようにソフトウエアで管
理することにより、常に使用者が使用する可能性が高い
文字パターンが第2の文字パターンメモリ中にあるよう
にされる。しかしながら実際にはソフトウエアで行なう
データの管理には多くの時間がかかり、期待するほどの
パターン発生速度の向上が得られないという欠点があつ
た。この発明は上記事情に鑑みて為されたものであり、
パターン発生速度の向上した文字パターン発生装置を提
供することを目的とする。
A pattern memory is often used as a character pattern generator, which outputs a character pattern corresponding to input of a character code. In particular, when a character pattern is a Kanji pattern, there are a large number of character types, so a large-capacity memory such as a magnetic disk is required. However, when a magnetic disk is used, it takes a long time to access, so the pattern generation speed is low. For this reason, a large capacity memory such as a magnetic disk (first character pattern memory) stores many character patterns that are relatively infrequently used, while decimal characters that are generally used frequently are stored in a large capacity memory such as an IC memory (second character pattern memory). By storing the pattern in a character pattern memory (character pattern memory), it is possible to improve the apparent pattern generation speed. That is, the second character pattern memory is first searched to see if the character pattern corresponding to the input character code exists, and only when the character pattern does not exist is read out from the first character pattern memory. At this time, the character patterns read from the first character pattern memory are stored in the second character pattern memory, and the least frequently used ones that have been in the second character pattern memory are removed. Through software management, character patterns that are likely to be used by the user are always kept in the second character pattern memory. However, in practice, data management using software takes a lot of time, and the pattern generation speed cannot be improved as much as expected. This invention was made in view of the above circumstances,
An object of the present invention is to provide a character pattern generation device with improved pattern generation speed.

第1図に本発明の一実施例を示す。FIG. 1 shows an embodiment of the present invention.

多数例えば10000字種の文字パタ一が磁気デイスク
(MD)1(第1の文字パターンメモリ)に収容されて
いる。
A large number of character patterns, for example 10,000 characters, are stored in a magnetic disk (MD) 1 (first character pattern memory).

また例えば200字の文字パターンを収容可能な高速な
リードライトメモリ(DBM)2(第2の文字パターン
メモリ)があり、DBM2はMDlから読み出された文
字パターンを記憶している。3はMDlからパターンデ
ータを読み出しDBM2へ供給するデータ読出回路、4
はDBM2のパターンデータを利用装置例えばCPU5
へ供給するためのデータ転送回路、6は文字コードとこ
れに対応する文字パターンが占めるDBM2内のアドレ
スとの対応表及び後述する連鎖子情報を記憶するインテ
ツクスメモリ(TM)、7はCPU5が出力した文字コ
ードを保持するレジスタ、8はレジスタ7の内容に一致
する文字コードがTM6内の対応表にあるかどうか検索
する検索回路、9,10はそれぞれTM6内の最も優先
順序の高い対応表のアドレス及び最も優先順序の低い対
応表のアドレスを記憶するレジスタ(FDAR,LDA
R)、11は′RM6内のデータの読出回路、12はT
M6内へデータを書き込むための書込回路、13はデー
タ修正回路、14は制御回路である。
There is also a high-speed read/write memory (DBM) 2 (second character pattern memory) that can accommodate character patterns of, for example, 200 characters, and the DBM 2 stores character patterns read from MDl. 3 is a data reading circuit that reads pattern data from MDl and supplies it to DBM2; 4
is a device that uses the pattern data of DBM2, for example, CPU5.
6 is an index memory (TM) that stores a correspondence table between the character code and the address in the DBM 2 occupied by the corresponding character pattern, and chain child information (to be described later); A register that holds the output character code, 8 is a search circuit that searches whether the character code matching the contents of register 7 is in the correspondence table in TM6, and 9 and 10 are the highest priority correspondence tables in TM6, respectively. registers (FDAR, LDA) that store the address of
R), 11 is a data read circuit in 'RM6, 12 is T
A write circuit for writing data into M6, 13 a data modification circuit, and 14 a control circuit.

第2図はTM6のデータの構造を示す。同図においてK
EYはキーデータを示し、ここでは文字コードである。
ADDはKEYで示される文字コードに対応する文字パ
ターンのDBM2でのアドレスである。これらKEY,
ADDにより対応表が構成されている。またBD及びA
DはKEYで示される文字コードに対応する文字パター
ンの優先順位を規定するために設けられたもので、それ
ぞれ優先順位が1つ高い対応表のアドレス及び優先順位
が1つ低い対応表のアドレスを与える。このようにTM
6の各アドレスに収容されたデータは可逆リスト構造と
なつており、その順位は個々の文字パターンに対する利
用が最も最近に為されたものを最上位におき、あとは利
用の新しい順序に位置付けされている。つまり、TM6
のデータはそのアドレスで決定される物理的順位と可逆
リスト構造で決定される順位とを持つ。後者を論理順位
と呼べば、FDAR9,LDARlOはそれぞれ論理順
位の最上位及び最下位なる対応表がTM6のどのアドレ
スのデータとして収容されているかを指示している。な
お、ここではTM6のデータ数はDBM2内の文字パタ
ーンの数と一致しているものとする。次に第3図a乃至
第3図dに示すフローチヤートを参照して本実施例の動
作を説明する。
FIG. 2 shows the structure of TM6 data. In the same figure, K
EY indicates key data, which is a character code here.
ADD is the address in DBM2 of the character pattern corresponding to the character code indicated by KEY. These KEY,
A correspondence table is constructed by ADD. Also BD and A
D is provided to specify the priority order of the character pattern corresponding to the character code indicated by KEY, and the address of the correspondence table with one higher priority and the address of the correspondence table with one lower priority, respectively. give. Like this TM
The data stored in each address of 6 has a reversible list structure, and the order is such that the most recently used character pattern is placed at the top, and the rest are placed in the order of new use. ing. In other words, TM6
The data has a physical order determined by its address and a order determined by a reversible list structure. If the latter is called a logical order, FDAR9 and LDAR10 indicate which address of TM6 stores the correspondence table corresponding to the highest and lowest logical order, respectively. It is assumed here that the number of data in TM6 matches the number of character patterns in DBM2. Next, the operation of this embodiment will be explained with reference to the flowcharts shown in FIGS. 3a to 3d.

第3図aにおいて、まず利用装置CPU5が利用したい
文字パターンの文字コードKEYcを出力することによ
つて動作が開始される(プロツク100)。
In FIG. 3a, the operation is started by the utilization device CPU 5 outputting the character code KEYc of the desired character pattern (block 100).

この文字コードKEYcはレジスタ7にセツトされる。
プロツク101において、検索回路8はレジスタ7の内
容KEYcに一致する文字コードがTM6にあるかどう
かを調べる。すなわち検索回路8は読出回路11を駆動
させてTM6から順次対応表を読み出し、そのKEYパ
ートとレジスタ7の内容との順次比較する(プロツク1
02)。この結果すべての対応表に一致する文字コード
がなかつた場合には後述する処理Aに移る。処理Aのフ
ローを第3図b及びcに示す。処理AはDBM2内に利
用したい文字パターンが存在しなかつた場合に行なわれ
るものである。検索回路8から不一致信号が出力される
と、制御回路14はLDARlOの内容を読む(プロツ
ク103)。LDARlOの内容をAEとすると、TM
6のアドレスAEには最下順位の対応表が収容されてい
る。次にプロツク104においてLDARlOの内容は
読出回路11へ供給され、読出回路11はTM6のアド
レスAEのデータを読み出し制御回路14を介してデー
タ修正回路13へ送る。いま読み出されたアドレスAE
のデータがプロツク104内に描かれている。一方制御
回路14はレジスタ7の内容KEYcをデータ読出回路
3へ送り、MDlから文字コードKEYOに対応する文
字パターンが読み出させる。この文字パターンはDBM
2のアドレスADDEに書込まれる(プロツク105)
。アドレスADDEは先に読み出されたTM6のアドレ
スAEOADDパートの内容である。次のプロツク10
6において、制御回路14はアドレスAEのデータのB
Dパートの内容BDEを読出回路11へ送りTM6から
アドレスBDEのデータを読み出す。プロツク106の
内部にこのデータを示す。このデータはデータ修正回路
13へ送られ、そのADパートが対応表の最下位を示す
ADEに変更される。この修正されたデータをブ田ンク
107の内部に示す。この修正されたデータは書込回路
12を介してTM6の同じアドレスBDEへ書込む(プ
ロツク107)次にプロツク108において、制御回路
14はLDARlOへBDEを書き込む。すなわち、今
度はアドレスBDEに最下位の対応表が収容されている
ことを表示する。プロツク109において、制御回路1
4はFDAR9の内容Asを読み出し、プロツク110
においてTM6のアドレスAsのデータを読出回路11
を介して読み出す。
This character code KEYc is set in register 7.
In block 101, search circuit 8 checks whether a character code matching the content KEYc of register 7 exists in TM6. That is, the search circuit 8 drives the read circuit 11 to sequentially read the correspondence table from the TM 6, and sequentially compares the KEY part with the contents of the register 7 (Program 1).
02). As a result, if there is no matching character code in all the correspondence tables, the process moves to process A, which will be described later. The flow of process A is shown in FIGS. 3b and 3c. Process A is performed when the desired character pattern does not exist in the DBM2. When the search circuit 8 outputs a mismatch signal, the control circuit 14 reads the contents of the LDARIO (block 103). If the contents of LDARIO are AE, then TM
Address AE 6 stores the lowest ranking correspondence table. Next, in block 104, the contents of LDARIO are supplied to the readout circuit 11, and the readout circuit 11 sends the data at address AE of TM6 to the data modification circuit 13 via the readout control circuit 14. Address AE that was just read
data is drawn in block 104. On the other hand, the control circuit 14 sends the contents KEYc of the register 7 to the data reading circuit 3, and causes the character pattern corresponding to the character code KEYO to be read out from MDl. This character pattern is DBM
2 is written to address ADDE (block 105).
. Address ADDE is the content of address AEOADD part of TM6 that was read earlier. Next block 10
6, the control circuit 14 controls the data B of the address AE.
The content BDE of the D part is sent to the reading circuit 11, and the data at the address BDE is read from TM6. This data is shown inside block 106. This data is sent to the data modification circuit 13, and its AD part is changed to ADE indicating the lowest position in the correspondence table. This corrected data is shown inside the button 107. This modified data is written to the same address BDE of TM6 via write circuit 12 (block 107).Next, in block 108, control circuit 14 writes BDE to LDARIO. That is, this time it is displayed that the lowest correspondence table is accommodated at address BDE. In block 109, control circuit 1
4 reads the contents As of FDAR9 and executes the block 110.
The read circuit 11 reads the data at address As of TM6 at
Read through.

次のプロツク111において制御回路14はFDAR9
に先に読んだLDARlOの内容AEを書き込む。デー
タ修正回路13はプロツク104で読み出されたアドレ
スAEのデータのうち、KEYパートを入力文字コード
KEYcに変更し、またBDパートをプロツク110で
読み出されたアドレスAs(7)BDパートの内容BD
sに変更して書込回路12に送る。
In the next block 111, the control circuit 14
Write the content AE of LDARIO that was read earlier. The data modification circuit 13 changes the KEY part of the data at the address AE read in the block 104 to the input character code KEYc, and changes the BD part to the address As(7) read out in the block 110.The contents of the BD part BD
s and sends it to the write circuit 12.

しかしてTM6のアドレスAEにはプロツク112の内
部に示したデータが書込まれる。次にデータ修正回路1
3はプロツク110で読出されたアドレスAsのデータ
のうちBDパートをAEに変更する。この修正されたデ
ータは書込み回路12を介して同じアドレスAsに書き
込まれる(プロツク113)。またプロツク114で制
御回路14はデータ転送回路4を駆動しアドレスDBM
2のADDEに収容された文字パターンをCPU5へ転
送して処理を終える。処理Bのフローを第3図D,eに
示す。
Thus, the data shown inside block 112 is written to address AE of TM6. Next, data correction circuit 1
3 changes the BD part of the data at address As read out by block 110 to AE. This modified data is written to the same address As via the write circuit 12 (block 113). Also, in block 114, the control circuit 14 drives the data transfer circuit 4 to address DBM.
The character pattern accommodated in ADDE No. 2 is transferred to the CPU 5 and the processing is completed. The flow of process B is shown in FIGS. 3D and 3e.

処理BはDBM2内に利用したい文字パターンが存在す
る場合に行なわれる。このとき検索回路8は一致信号を
制御回路14へ送る。いまTM6のアドレスAKのデー
タが文字コードKEYcを含むとすると、このデータが
制御回路14へ送られる(プロツク115)。匍卿回路
はアドレスAKのデータのBDパートの内容A,及びA
Dパートの内容AIを用いて、TM6からアドレスAJ
及びAIのデータを読み出す(プロツク116)。次に
FDAR9の内容Asを読み出し(プロツク117)、
TM6のアドレスAsのデータを読み出す(プロツク1
18)。プロツク119において、読み出されたアドレ
スAK,AJ,AI,ASのデータはデータ修正回路1
3により修正され、修正されたデータは書込回路12を
介して再びTM6に書込まれる。このとき、アドレスA
Kのデータは、BDパート及びADパートがそれぞれB
Ds及びAsとなり最上位のデータとなる。アドレスA
Jのデータは、ADパートがAIに変更される。アドレ
スAIのデータは、BDパートがAJに変更される。ア
ドレスAsのデータはBDパートがAKに変更される。
そしてFDAR9にはAKが書き込まれる。次にプロツ
ク120において、DBM2のアドレスADDKの文字
パターンをCPU5に転送して処理を終える。以上詳細
に説明したように、本発明によればTMのデータ構造が
可逆リスト構造であるため、対応表の管理が連鎖子の変
更だけで可能であり、多くの時間を費すことがない。
Process B is performed when the desired character pattern exists in the DBM2. At this time, the search circuit 8 sends a match signal to the control circuit 14. Assuming that the data at the address AK of TM6 includes the character code KEYc, this data is sent to the control circuit 14 (block 115). The Sakyo circuit uses the contents A and A of the BD part of the data at address AK.
Using the content AI of part D, address AJ from TM6
and AI data is read out (block 116). Next, read the contents As of FDAR9 (block 117),
Read the data at address As of TM6 (Proc 1
18). In block 119, the read data at addresses AK, AJ, AI, and AS is transferred to the data correction circuit 1.
3, and the modified data is written to TM6 again via the write circuit 12. At this time, address A
In the data of K, the BD part and AD part are each B.
The data becomes Ds and As and becomes the highest level data. Address A
For the data of J, the AD part is changed to AI. The BD part of the data at address AI is changed to AJ. The BD part of the data at address As is changed to AK.
Then, AK is written to FDAR9. Next, at block 120, the character pattern at address ADDK of DBM2 is transferred to CPU5, and the process is completed. As described above in detail, according to the present invention, the TM data structure is a reversible list structure, so management of the correspondence table is possible only by changing the chain elements, and it does not take much time.

特に日本語の通常の文章(漢字を含む)に従つて文字パ
ターン発生装置のアクセスが行なわれた場合、アクセス
の70%は使用頻度の上位200字内の文字である。本
発明によればDBM上には使用状態に応じてその時点で
の使用頻度の上位200字が登録されており、DBM上
にアクセスすべき文字パターンが登録されている確率は
80%以上になつている。すなわち、文字パターンの発
生速度はデイスクだけを使用した場合の4〜5倍となる
In particular, when the character pattern generator is accessed according to normal Japanese sentences (including Kanji), 70% of the accesses are to characters within the top 200 most frequently used characters. According to the present invention, the top 200 most frequently used characters at the time are registered in the DBM according to the usage status, and the probability that the character pattern to be accessed is registered in the DBM is more than 80%. ing. In other words, the speed at which character patterns are generated is four to five times faster than when only disks are used.

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

第1図はこの発明の一実施例を示す図、第2図はこの発
明の一実施例で用いるインデツクスメモリのデータ構造
を示す図、第3図a乃至第3図eはこの発明の一実施例
の動作を説明するためのフローチヤートである。 1・・・・・・磁気ディスク、2・・・・・・リードラ
イトメモリ、5・・・・・・CPU、6・・・・・・イ
ンデツクスメモリ、8・・・・・・検索回路、9,10
・・・・・・レジスタ、13・・・・・・データ修正回
路、14・・・・・・制御回路。
FIG. 1 is a diagram showing an embodiment of the invention, FIG. 2 is a diagram showing the data structure of an index memory used in an embodiment of the invention, and FIGS. 3a to 3e are diagrams showing an example of the invention. It is a flowchart for explaining the operation of the embodiment. 1... Magnetic disk, 2... Read/write memory, 5... CPU, 6... Index memory, 8... Search circuit ,9,10
...Register, 13...Data correction circuit, 14...Control circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 文字パターンを収容した第1及び第2の文字パター
ンメモリ、この第2の文字パターンメモリに記憶された
文字パターンのアドレスと文字コードとの対応表を記憶
するインデックスメモリとを有し、入力文字コードから
前記インデックスメモリを検索してこの入力文字コード
に対応する文字パターンが前記第2の文字パターンメモ
リに存在しない場合にはその文字パターンを前記第1の
文字パターンメモリから前記第2の文字パターンメモリ
に転送した後読み出すように構成された装置において、
前記対応表の優先順序を示すために対応表間の相対的順
序を表わす連鎖子情報を記憶する手段と、前記優先順序
の最も高い対応表のアドレスを保持する第1のアドレス
保持手段と、前記優先順序の最も低い対応表のアドレス
を保持する第2のアドレス保持手段と、前記対応表及び
連鎖子情報を変更する手段とを備え、前記入力文字コー
ドに対応する対応表が前記インデックスメモリに存在し
ない場合、前記第2のアドレス保持手段が指示するアド
レスの対応表の文字コードを前記入力文字コードに変更
し、かつ前記第1のアドレス保持手段に前記第2のアド
レス保持手段の内容を書き込むことを特徴とする文字パ
ターン発生装置。
1. It has first and second character pattern memories that store character patterns, and an index memory that stores a correspondence table between the address of the character pattern stored in the second character pattern memory and the character code, and When the index memory is searched from the code and the character pattern corresponding to this input character code does not exist in the second character pattern memory, the character pattern is transferred from the first character pattern memory to the second character pattern. In a device configured to be read after being transferred to a memory,
means for storing chain child information representing the relative order between the correspondence tables to indicate the priority order of the correspondence tables; first address holding means for holding the address of the correspondence table having the highest priority; A second address holding means for holding an address of a correspondence table having the lowest priority, and a means for changing the correspondence table and chain child information, and a correspondence table corresponding to the input character code exists in the index memory. If not, change the character code of the correspondence table of the address indicated by the second address holding means to the input character code, and write the contents of the second address holding means to the first address holding means. A character pattern generator featuring:
JP14331678A 1978-11-22 1978-11-22 character pattern generator Expired JPS5937511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14331678A JPS5937511B2 (en) 1978-11-22 1978-11-22 character pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14331678A JPS5937511B2 (en) 1978-11-22 1978-11-22 character pattern generator

Publications (2)

Publication Number Publication Date
JPS5569847A JPS5569847A (en) 1980-05-26
JPS5937511B2 true JPS5937511B2 (en) 1984-09-10

Family

ID=15335934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14331678A Expired JPS5937511B2 (en) 1978-11-22 1978-11-22 character pattern generator

Country Status (1)

Country Link
JP (1) JPS5937511B2 (en)

Also Published As

Publication number Publication date
JPS5569847A (en) 1980-05-26

Similar Documents

Publication Publication Date Title
US5293616A (en) Method and apparatus for representing and interrogating an index in a digital memory
JPS5823375A (en) Method and apparatus for selectively clearing cache in a data processing system
JPH0814801B2 (en) Programmable access memory
JPS6217876Y2 (en)
US4975872A (en) Dual port memory device with tag bit marking
JP3081614B2 (en) Partial write control device
JP4047281B2 (en) How to synchronize cache memory with main memory
JPS5868286A (en) Cash memory and how it works
JPS5937511B2 (en) character pattern generator
JP3117244B2 (en) EEPROM control device
JPH11120044A (en) Data processing device, data processing method, data processing system, and recording medium
JP2004086300A (en) Flash memory logical address detection method
JPS5848099B2 (en) character pattern generator
JP3076115B2 (en) Large magnetic disk drive
US4125879A (en) Double ended stack computer store
JP2716254B2 (en) List vector processing device
JP2627370B2 (en) Development support system
JP3260399B2 (en) Asynchronous I/O dynamic priority change method
JP2964504B2 (en) Document processing device
JP2798492B2 (en) List vector processing device
JPH05225406A (en) Ic card extension device
JPH0550078B2 (en)
JPH06274418A (en) Memory updating system
JPH03257643A (en) Information processor
JPH01250169A (en) Pos system