JPS61284799A - Image data processor - Google Patents

Image data processor

Info

Publication number
JPS61284799A
JPS61284799A JP60125794A JP12579485A JPS61284799A JP S61284799 A JPS61284799 A JP S61284799A JP 60125794 A JP60125794 A JP 60125794A JP 12579485 A JP12579485 A JP 12579485A JP S61284799 A JPS61284799 A JP S61284799A
Authority
JP
Japan
Prior art keywords
color
code
register
color code
character
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
JP60125794A
Other languages
Japanese (ja)
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.)
ASCII Corp
Original Assignee
ASCII Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ASCII Corp filed Critical ASCII Corp
Priority to JP60125794A priority Critical patent/JPS61284799A/en
Publication of JPS61284799A publication Critical patent/JPS61284799A/en
Priority to US07/212,131 priority patent/US4893114A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、画像処理装置に係り、特に1表示メモリへ表
示データを書込み処理する場合に1色コードへ展開する
回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an image processing device, and particularly to a circuit that develops display data into a one-color code when writing and processing display data into a one-display memory.

[従来の技術] 画像メモリは、近年大容量化の傾向にあり、これによっ
て、多色表示が可能となっている。すなわち、1表示ド
ツトについて、複数ビットの表示データを対応させる方
式(ビットマツプ方式)が採用されている。
[Prior Art] In recent years, image memories have tended to have larger capacities, and this has made it possible to display multiple colors. That is, a method (bitmap method) is adopted in which one display dot is associated with display data of a plurality of bits.

つまり1画面に文字を表示する場合、まず、その文字の
表示パターンがrlJまたはrOJのフォントパターン
(つまり、二値のフォントパターン)として与えられる
。そして、上記「1」、「O」のそれぞれを、前景色の
色コードまたは背景色の色コードに展開し、この展開し
た色コードを表示メモリに書込む必要がある。
That is, when displaying a character on one screen, the display pattern of the character is first given as an rlJ or rOJ font pattern (that is, a binary font pattern). Then, it is necessary to develop each of the above "1" and "O" into a color code for the foreground color or a color code for the background color, and write the developed color code into the display memory.

第10図は、画像データ娼理装置の従来例を示すブロッ
ク図である。
FIG. 10 is a block diagram showing a conventional example of an image data distribution device.

タイミングコントローラ20は、画像データ処理装置の
タイミングを全体的に制御するものである。
The timing controller 20 controls the overall timing of the image data processing device.

表示コントローラ30は、タイミングコントローラ20
から与えられるタイミングに基づいて。
The display controller 30 is the timing controller 20
Based on the timing given by.

CRT等の画面を表示する表示信号を作成する。Create a display signal to display a screen such as a CRT.

つまり、表示コントローラ30は、画面の表示位tに対
応した表示アドレスを、表示メモリ用アドレスバス51
に出力して、表示メモリ4oをアクセスする。このとき
のメモリタイミングも、タイミングコントローラ20か
ら与えられる。
In other words, the display controller 30 transfers the display address corresponding to the display position t on the screen to the display memory address bus 51.
to access the display memory 4o. The memory timing at this time is also given from the timing controller 20.

表示メモリ40からの出力データは1表示メモリ用デー
タバス53を介して1表示コントローラ30内のパラレ
ル−シリアル変換回路32に送られる。そして1表示コ
ントローラ30における所定の処理によって表示信号を
作成する。
Output data from the display memory 40 is sent to the parallel-to-serial conversion circuit 32 in the one-display controller 30 via the one-display memory data bus 53. Then, a display signal is created by predetermined processing in the 1-display controller 30.

一方、CPU60は1画像処理プログラムメモリ61か
らの画像処理プログラムを実行し、入出力インタフェー
ス70からのデータに基づいて、表示メモリ40に書込
むアドレスとデータとを準備し1画像メモリアクセス要
求をタイミングコントローラ20へ伝える。ここで、入
出力インタフェース70としては、R3232C,モデ
ムインタフェース、ディスクインタフェース、マウスイ
ンタフェース等がある。
On the other hand, the CPU 60 executes the image processing program from the 1-image processing program memory 61, prepares the address and data to be written into the display memory 40 based on the data from the input/output interface 70, and determines the timing of the 1-image memory access request. The information is transmitted to the controller 20. Here, the input/output interface 70 includes an R3232C, a modem interface, a disk interface, a mouse interface, and the like.

そして、タイミングコントローラ20は、CPU60か
らアクセス要求を受取ると1表示コントローラ30の表
示アクセスと競合しないタイミングに合わせて、表示メ
モリ用アドレスバッファ52と、表示メモリ用データバ
スバッファ54とをイネーブルする。これと並行して、
CPU60に実行許可を4える。このようにしてCPU
60は、表示メモリ40に対して許可されたタイミング
のみアクセスできる。
When the timing controller 20 receives an access request from the CPU 60, it enables the display memory address buffer 52 and the display memory data bus buffer 54 at a timing that does not conflict with the display access of the 1-display controller 30. In parallel with this,
Give execution permission to the CPU 60 by 4. In this way the CPU
60 can access the display memory 40 only at permitted timings.

CPU60は、上記動作を繰り返しながら、表示メモリ
4oへ画像イメージ(表示パターン)を書込む。
The CPU 60 writes the image (display pattern) to the display memory 4o while repeating the above operations.

ここで1表示すべきパターンが文字情報である場合を考
える。
Here, consider a case where the pattern to be displayed once is character information.

第11図は1色コード展開の説明図であり1色コードに
変換すべき文字パターンの例と、その文字パターンの一
部を展開した色コードの例とを示しである。
FIG. 11 is an explanatory diagram of one-color code development, and shows an example of a character pattern to be converted into a one-color code, and an example of a color code obtained by developing a part of the character pattern.

文字コードに対応して1文字フォントは二値(1または
Oのデータ)で与えられている0表示メモリ40は、1
ドツト毎に、たとえば16色の4ビツト情報を保持する
ビットマツプ方式を採用したメモリであるとする。そし
て、前景色(表示文字の色)の色コードをrloloJ
とし、背景色(表示文字の背景の色)の色コードをro
loo」と仮定する。
The 0 display memory 40, in which a single character font is given as a binary value (1 or O data), corresponds to the character code.
Assume that the memory employs a bitmap method in which 4-bit information of, for example, 16 colors is held for each dot. Then, set the color code of the foreground color (displayed character color) to rloloJ
and set the color code of the background color (background color of displayed characters) to ro
Assume that "loo".

CPU60は、上記文字フォントのデータをlビットず
つチェックしながら、第11図に示すように、その1ビ
ツトが「1」か「O」かに対応して、前景色の色コード
または背景色の色コードを並べ、その並べられた色コー
ドを、書込みデータとして表示メモリ40へ送ル。
The CPU 60 checks the character font data one bit at a time, and as shown in FIG. The color codes are arranged and the arranged color codes are sent to the display memory 40 as write data.

ところで、従来の文字表示は、上記ビットマツプ方式と
は異なり、キャラクタジェネレータ方式のものが殆どで
ある。このキャラクタジェネレータ方式の場合、文字コ
ードおよびアトリビュートカラーフードを表示メモリに
書込めば1文字コードから文字フォントへの展開、およ
びその文字フォントから表示色コードへの展開は、既存
のハードウェアで実行される。したがって、キャラクタ
ジェネレータ方式における色コードへの展開は。
Incidentally, unlike the bitmap method described above, most conventional character display methods use a character generator method. In the case of this character generator method, once the character code and attribute color hood are written to the display memory, the expansion from a single character code to a character font, and from that character font to a display color code, can be performed using existing hardware. Ru. Therefore, the expansion to color code in the character generator method is as follows.

非常に高速に処理できる。Can be processed very quickly.

[従来技術の問題点] ところが、ビットマツプ方式において、CPUが色コー
ドに展開する場合は、非常に時間が長くなるという問題
がある。
[Problems with the Prior Art] However, in the bitmap method, when the CPU develops color codes, there is a problem that it takes a very long time.

これは、CPU60は、本来、バイトまたは2バイト(
ワード)の処理をすることは非常に簡単かつ高速に実行
できるのに対して、1ビツトずつチェックしながら展開
すること、つまり、1バイトのデータをパターンに応じ
たビット列に拡大しながら並べ変える展開処理は、不可
能ではないが非常に長い時間を要する。
This means that the CPU 60 is originally a byte or 2 bytes (
While processing (words) can be executed very easily and quickly, expanding while checking each bit one by one, in other words, expanding one byte of data into a bit string according to a pattern and rearranging it. The process, although not impossible, takes a very long time.

ビットマツプ方式のグラフィック表示が可能な画像表示
装置は、テキスト表示!Jiよりも明らかに高級である
にも係らず、その表示処理に長時間を要することは非常
に問題である。
Image display devices that can display bitmap-based graphics display text! Although it is clearly more sophisticated than Ji, it is very problematic that its display processing takes a long time.

[発明の目的] 本発明は、上記従来技術の問題点に着目してなされたも
のであり、CPUがビットハンドリングしなくても、パ
ターンデータから色コードへの展開を可能にし、またそ
の色コードへの展開時間を短縮できる画像データ処理装
置を提供することを目的とするものである。
[Object of the Invention] The present invention has been made by focusing on the above-mentioned problems of the prior art, and enables development of pattern data into a color code without bit handling by the CPU, and also enables development of the color code. It is an object of the present invention to provide an image data processing device that can shorten the time required for data processing.

[発明の概要] 本発明は、キャラクタフォントパターンを前景色の色コ
ードまたは背景色の色コードに迅速に展開するようにす
るために、前景色の色コードを前景色レジスタに保持し
、背景色の色コードを背景色レジスタに保持し、キャラ
クタフォントのパターンに応じて、セレクタが、前景色
の色コードまたは背景色の色コードを選択出力するもの
である。
[Summary of the Invention] In order to quickly develop a character font pattern into a foreground color code or a background color color code, the present invention maintains a foreground color code in a foreground color register and a background color code. The color code of the character font is held in the background color register, and the selector selectively outputs the foreground color code or the background color color code according to the pattern of the character font.

[発明の実施例] 第1図は、本発明の前提となる回路の一例を示すブロッ
ク図である。
[Embodiments of the Invention] FIG. 1 is a block diagram showing an example of a circuit on which the present invention is based.

この例が、第10図に示す従来例と異なる主な点は1色
コード展開回路lOを追加した点である。
The main difference between this example and the conventional example shown in FIG. 10 is that a one-color code expansion circuit 1O is added.

上記例において、色コード展開をする必要が生じたとき
に、CPU60aが、必要な情報を色コード展開回路1
0にセットする。これによって、タイミングコントロー
ラ21の制御のもとに、色コード展開回路lOが色コー
ド展開の動作を実行し、その得られた色コードが表示メ
モリ4oへ3込まれる。したがって、従来のようにCP
U60が色コード展開する場合よりも、その処理速度が
迅速になる。
In the above example, when it becomes necessary to develop a color code, the CPU 60a transmits the necessary information to the color code development circuit 1.
Set to 0. As a result, under the control of the timing controller 21, the color code expansion circuit 10 executes the color code expansion operation, and the obtained color code is stored in the display memory 4o. Therefore, as before, CP
The processing speed is faster than when U60 develops color codes.

なお、第1O図に示した従来例において使用した部品と
同一の部品については、同一符号を付してその説明を省
略する。
It should be noted that the same parts as those used in the conventional example shown in FIG.

第2図は、上記例において使用する色コード展開回路を
示す詳細ブロック図である。
FIG. 2 is a detailed block diagram showing the color code expansion circuit used in the above example.

前景色レジスタ11は、前景色の色コードを保持するレ
ジスタであり、背景色レジスタ12は、背景色の色コー
ドを保持するレジスタである。また、パターンシフトレ
ジスタ13は、色コードに展開すべきパターンデータを
保持するとともに、上記パターンデータをシフトするレ
ジスタである。セレクタ14は、シフトレジスタ13の
上位ビットの内容に応じて、上記前景色の色コードまた
は上記背景色の色コードを選択出力するものである。
The foreground color register 11 is a register that holds the color code of the foreground color, and the background color register 12 is a register that holds the color code of the background color. The pattern shift register 13 is a register that holds pattern data to be developed into color codes and shifts the pattern data. The selector 14 selects and outputs the color code of the foreground color or the background color according to the contents of the upper bits of the shift register 13.

また、書込みアドレスカウンタ15は、表示メモリ40
への書込アドレスを保持するレジスタであり、長さカウ
ンタ16は1色コードに展開すべきパターンデータの長
さ情報であって、画面の横一列の長さ情報を保持するカ
ウンタである。
In addition, the write address counter 15 is connected to the display memory 40.
The length counter 16 is a register that holds a write address for a single color code, and the length counter 16 is a counter that holds information about the length of pattern data to be developed into one color code, and the length of one horizontal line on the screen.

次に、上記例の動作について説明する。Next, the operation of the above example will be explained.

まず、CPU60aは、展開すべき前景色の色コードお
よび背景色の色コードが与えられると。
First, the CPU 60a receives the color code of the foreground color and the color code of the background color to be developed.

前景色の色コードを前景色レジスタ11にセットし、背
景色の色コードを背景色レジスタ12にセフ  ト す
 る 。
Set the color code of the foreground color to the foreground color register 11, and steal the color code of the background color to the background color register 12.

次に、上記パターンデータをパターンシフトレジスタ1
3にセットする。さらに、CPU60aは、表示メモリ
40に書込むべきアドレスを算出した後、このアドレス
値を書込みアドレスカウンタ15にセットする。そして
、CPU60aは。
Next, the above pattern data is transferred to the pattern shift register 1.
Set to 3. Furthermore, after calculating the address to be written into the display memory 40, the CPU 60a sets this address value in the write address counter 15. And the CPU 60a.

展開すべき横1ライン分のパターンデータを得、このl
ラインの長さ情報を、長さカウンタ16にセットする。
Obtain the pattern data for one horizontal line to be developed, and
Line length information is set in the length counter 16.

と記長さカウンタ16は、リセット信号によってその初
期値をオール1(−1)に設定される。
The initial values of the length counters 16 are set to all 1 (-1) by a reset signal.

長さカウンタ16がマイナスである間は、実行信号がタ
イミングコントローラ21に与えられないので、色コー
ド展開の動作は停止したままでいる。
While the length counter 16 is negative, no execution signal is given to the timing controller 21, so the color code expansion operation remains stopped.

ここで、第11図のパターンに示しである8×8ドツト
のパターンについて、色コード展開する場合について説
明する。
Here, the case of color code development for the 8×8 dot pattern shown in the pattern of FIG. 11 will be described.

CPU60aは、展開すべきパターンデータの数から1
を差し引いた値(ドツト数−1の値)を、長さカウンタ
16にセットする。第11図に示す場合は、横方向8ド
ツトであるので、長さカウンタ16には、「7」をセッ
トする。その後。
The CPU 60a selects 1 from the number of pattern data to be developed.
The value obtained by subtracting the number of dots (the value of the number of dots minus 1) is set in the length counter 16. In the case shown in FIG. 11, there are eight dots in the horizontal direction, so the length counter 16 is set to "7". after that.

実行信号がタイミングコントローラ21に与えられて、
動作が開始する。
An execution signal is given to the timing controller 21,
The operation begins.

その後、タイミングコントローラ21は、表示メモリ4
0をアクセスできるタイミングに合わせて、イネーブル
信号を送る。これによって、書込みアドレスカウンタ1
5の値が、表示メモリ用アドレスバス51へ出力される
After that, the timing controller 21 controls the display memory 4
An enable signal is sent at the timing when 0 can be accessed. As a result, write address counter 1
The value of 5 is output to the display memory address bus 51.

これと並行して、パターンシフトレジスタ13の上位ビ
ットの値に応じて、前景色レジスタ11または背景色レ
ジスタ12の値が、セレクタ14によって選択される。
In parallel with this, the value of the foreground color register 11 or the background color register 12 is selected by the selector 14 according to the value of the upper bit of the pattern shift register 13.

つまり、上記例においては、シフトレジスタ13の上位
ビットが「1」の場合は、前景色が対応するとし、この
ときに、前景色レジスタ12に保持されている背景色の
色コードrl O10Jがセレクタ14から出力される
。また、シフトレジスタ13の上位ビットが「0」の場
合は、背景色が対応するとし、このときに、背景色レジ
スタ13に保持されている背景色の色コードro100
」がセレクタ14から出力される。
That is, in the above example, if the upper bit of the shift register 13 is "1", the foreground color corresponds, and at this time, the color code rlO10J of the background color held in the foreground color register 12 is set to the selector. It is output from 14. Further, if the upper bit of the shift register 13 is "0", it is assumed that the background color corresponds, and at this time, the color code ro100 of the background color held in the background color register 13
” is output from the selector 14.

上記のようにして選択された各色コードのデータは、表
示メモリ用データバス53に出力される。そして、タイ
ミングコントローラ21が、表示メモリ40にタイミン
グパルスを供給し、上記選択されたデータが表示メモリ
40に書込まれる。
The data of each color code selected as described above is output to the display memory data bus 53. Then, the timing controller 21 supplies a timing pulse to the display memory 40, and the selected data is written into the display memory 40.

この後に、タイミングコントローラ21は、カウントパ
ルスを出力し、書込みアドレスカウンタ15のカウント
と、長さカウンタ16のデクリメントとを行ない、パタ
ーンシフトレジスタ13の左シフトを行なう。
After this, the timing controller 21 outputs a count pulse, counts the write address counter 15, decrements the length counter 16, and shifts the pattern shift register 13 to the left.

パターンシフトレジスタ13に保持された1ビット分の
データ毎に、上記動作を繰り返し実行し、長さカウンタ
16の値が「−1」になったときに、長さカウンタ16
から実行信号が出力されなくなる。これによって、上記
色コード展開の動作が停止する。
The above operation is repeatedly executed for each bit of data held in the pattern shift register 13, and when the value of the length counter 16 becomes "-1", the length counter 16 is
The execution signal will no longer be output. As a result, the color code development operation described above is stopped.

CPU60aは、長さカウンタ16の値を読むか、また
は、実行信号によって生じる割込信号を知るか等の手段
を通じて、上記色コード展開動作の実行が停止されたこ
とを認識する。これによって、次に展開すべきパターン
データと、表示メモリ40に書込むべきアドレスと、色
コードに変換すべき画面上の横一列の長さデータとを、
各カウンタ等にセットする。そして、上記データに基づ
いて1表示メモリ40に1列分のデータを書込み、これ
らの動作を、必要な列分だけ繰り返して、1文字分の書
込みを完了する。
The CPU 60a recognizes that the execution of the color code expansion operation has been stopped by reading the value of the length counter 16 or by noticing an interrupt signal generated by the execution signal. As a result, the pattern data to be developed next, the address to be written into the display memory 40, and the length data of a horizontal line on the screen to be converted into a color code can be determined.
Set to each counter etc. Then, data for one column is written in one display memory 40 based on the above data, and these operations are repeated for the necessary columns to complete writing for one character.

以上の説明においては、書込みアドレスカウンタ15の
値と、表示メモリ40における1ドツト分のメモリアド
レスとが、1対1に対応する場合について説明した。と
ころで、表示メモリ40の1つのアドレスに、複数ドツ
トの情報を保持する場合もあり、この場合についても、
本発明を応用することができる。ただし、この場合は、
タイミングコントローラ21に、所定の機能を追加する
ことが必要になる。しかし、これは1本発明に直接関係
しないので、その説明を省略する。
In the above description, the case where the value of the write address counter 15 and the memory address of one dot in the display memory 40 correspond one to one has been described. By the way, there are cases where information on multiple dots is held at one address in the display memory 40, and in this case as well,
The present invention can be applied. However, in this case,
It is necessary to add a predetermined function to the timing controller 21. However, since this is not directly related to the present invention, its explanation will be omitted.

第3図は、タイミングコントローラ21のnmを示すブ
ロック図である。
FIG. 3 is a block diagram showing nm of the timing controller 21. As shown in FIG.

第4図は、タイミングコントローラ21の動作    
□を示すタイミング図である。
FIG. 4 shows the operation of the timing controller 21.
It is a timing diagram showing □.

表示メモリ40のメモリサイクルは、2つのタイムスロ
ット(表示タイムスロットとCPUタイムスロット)に
分けられる。
The memory cycle of display memory 40 is divided into two time slots (display time slot and CPU time slot).

上記表示タイムスロットにおいては、常に、表示アドレ
スが表示アドレス回路31またはパラレル−シリアル変
換回路32から供給され、メモリサイクルの開始ととも
に、表示データを読出し。
In the display time slot, a display address is always supplied from the display address circuit 31 or the parallel-serial conversion circuit 32, and display data is read out at the start of a memory cycle.

ロードパルス信号によって表示コントローラ30内のシ
フトレジスタ32に取込む。
The load pulse signal is loaded into the shift register 32 in the display controller 30.

一方、CPUタイムスロットにおいては、CPU60a
から、CPUリクエスト信号およびCPUライト信号が
受は付けられると、アクティブになる。
On the other hand, in the CPU time slot, the CPU 60a
When a CPU request signal and a CPU write signal are accepted, it becomes active.

CPUのクロックとタイミングコントローラ(Qクロッ
クとは1通常は、独立の発振器を有するので、タイミン
グコントローラ21から見ると、CPUリクエスト信号
は非同期に発生する。
Since the CPU clock and the timing controller (Q clock) usually have an independent oscillator, the CPU request signal is generated asynchronously from the perspective of the timing controller 21.

タイミングコトローラ21は、CPUリクエスト信号を
同期化し、待ち合わせを行なう、この待ち合わせのため
にウェイト信号を返すことによりCPUリクエストが受
けられるまで、CPU60aの実行をウェイトさせる。
The timing controller 21 synchronizes the CPU request signal and performs a wait, and for this wait, returns a wait signal to cause the execution of the CPU 60a to wait until the CPU request is received.

CPUリクエストが受けられると、そのCPUタイムス
ロットのメモリサイクルにおいて、CPUライト信号の
値に応じて、リードまたはライトが実行される。このメ
モリサイクルの実行中は。
When a CPU request is received, read or write is executed in the memory cycle of that CPU time slot, depending on the value of the CPU write signal. During this memory cycle.

バッファイネーブル信号がオンされるので、CPUから
のアドレスが供給される。
Since the buffer enable signal is turned on, the address from the CPU is supplied.

CPUライト信号が「0」のときに、メモリからのリー
ドデータは、CPU60aのデータバスへ伝えられる。
When the CPU write signal is "0", read data from the memory is transmitted to the data bus of the CPU 60a.

一方CPUライト信号が「1」のときには、パスディレ
クション信号がrlJになるので、CPU60aのデー
タバスからデータが供給される。さらに、メモリライト
信号が表示メモリ40に伝えられ、書込みが実行される
On the other hand, when the CPU write signal is "1", the path direction signal becomes rlJ, so data is supplied from the data bus of the CPU 60a. Furthermore, a memory write signal is transmitted to the display memory 40, and writing is executed.

色コード展開回路lOからの実行信号は、CPU60a
からのCPUリクエスト信号およびCPUライト信号と
全く同様に、タイミングコントローラ21で処理される
。ただし2ウ工イト信号およびバッファイネーブル信号
は要求元がCPU60aではないので禁止される。その
代り、メモリライト信号のタイミングでカウントパルス
信号、バッファイネーブル信号のタイミングでイネーブ
ル信号が色コード展開回路10へ返される。
The execution signal from the color code development circuit IO is sent to the CPU 60a.
are processed by the timing controller 21 in exactly the same way as the CPU request signal and CPU write signal from. However, the 2-way signal and the buffer enable signal are prohibited because the request source is not the CPU 60a. Instead, a count pulse signal is returned to the color code expansion circuit 10 at the timing of the memory write signal, and an enable signal is returned to the color code development circuit 10 at the timing of the buffer enable signal.

イネーブル信号によって、書込アドレスと色コードデー
タとを、それぞれのバスに出力する。これとともに、メ
モリウェイト信号によって書込みが実行され、書込み完
了と同時にカウントパルス信号によって各レジスタ、各
カウンタの内容を更新する。
The write address and color code data are output to the respective buses according to the enable signal. At the same time, writing is executed by the memory wait signal, and at the same time as the writing is completed, the contents of each register and each counter are updated by the count pulse signal.

長さカウンタに正の値がセットされると、実行信号が「
1」になる、ドツトパターンに対応した前景色背景色を
表示メモリ4oへの色コードデータとする書込みが開始
される。lド、ト書込み毎に、長さカウンタはカウント
ダウンし、やがてrOJになる。
When the length counter is set to a positive value, the execution signal is
1'', the foreground color and background color corresponding to the dot pattern are started to be written into the display memory 4o as color code data. With each write, the length counter counts down and eventually reaches rOJ.

長さカウンタがrOJのときは1、まだ実行信号が出て
いるので、もう1回書込みが実行される。これによって
、長さカウンタは−1(FF)となり、実行信号が「0
」となって実行を停止する。結果として、長さカウンタ
16にセットした値よりも1つ多い回数の実行が成され
る。この実行は総てタイミング発生回路TGのタイミン
グに基づき実行されるので、待ち合わせの必要はない、
また、隣接するCPUタイムスロットは総て有効に実行
されるので、非常に高速で処理が完了する。
When the length counter is rOJ, it is 1, and since the execution signal is still being output, another write is executed. As a result, the length counter becomes -1 (FF), and the execution signal becomes "0".
” and execution stops. As a result, the number of executions is one more than the value set in the length counter 16. This execution is all executed based on the timing of the timing generation circuit TG, so there is no need for waiting.
Furthermore, since all adjacent CPU time slots are effectively executed, processing is completed very quickly.

上記タイミングコントローラの実施例では、CPUリク
エスト信号と実行信号を対等にしている(?nにORI
、ている)ので1色コード展開が完了するまでは、表示
メモリ40をアクセスできない。
In the embodiment of the timing controller described above, the CPU request signal and the execution signal are made equal (ORI
, etc.), the display memory 40 cannot be accessed until one color code development is completed.

CPUリクエスト信号と実行信号との間で優先度によっ
て制御するようなタイミングコントローラにすれば1色
コード展開実行中にもCPU7クセスを可能にすること
が容易に実現できる。
If a timing controller is used that controls the CPU request signal and the execution signal based on priority, it is possible to easily access the CPU 7 even during the execution of one-color code development.

t55図は、本発明の前提となる回路の他の例を示すブ
ロック図であり、第6図は、第5図に示した色コード展
開回路の詳細を示す図である。
t55 is a block diagram showing another example of the circuit which is the premise of the present invention, and FIG. 6 is a diagram showing details of the color code expansion circuit shown in FIG. 5.

この例は、第1図に示す実施例から、書込みアドレスカ
ウンタ15と、長さカウンタ16とを省略したものであ
る。この場合、ii込みアドレスカウンタ15と長さカ
ウンタ16との機能は、CPU60aが発揮することに
なる。
In this example, the write address counter 15 and length counter 16 are omitted from the embodiment shown in FIG. In this case, the functions of the ii-included address counter 15 and the length counter 16 are performed by the CPU 60a.

すなわち1色コード展開における連続自動実行は、CP
U60aが実行し、カウンタ15.16を除いた色コー
ド展開回路10aでは、単純な色コードの展開のみを実
行するようにする。このようにした場合、CPU60a
の役割は少々増えるが、システム全体としての性能は、
従来よりも向上することになる。
In other words, continuous automatic execution in one-color code development is CP
The color code expansion circuit 10a, which is executed by U60a and excludes the counters 15 and 16, executes only simple color code expansion. If you do this, the CPU 60a
Although the role of
This will be an improvement over the past.

第7図は1本発明の別の例を示すブロック図である。FIG. 7 is a block diagram showing another example of the present invention.

この第7図に示す例は、第2図に示す色コード展開回路
10において、パターンシフトレジスタ13の代りに、
パターンデータレジスタ13aとデータセレクタ13b
とを設けたものである。
In the example shown in FIG. 7, in the color code expansion circuit 10 shown in FIG. 2, instead of the pattern shift register 13,
Pattern data register 13a and data selector 13b
It has been established that

パターンデータレジスタ13aは1色コードに展開すべ
きパターンデータを保持するものであり、データセレク
タ13bは、パターンデータレジスタ13aからのパタ
ーンデータを、順次選択するものである。また、フード
セレクタ14aは、データセレクタ13bの出方に応じ
て、前景色の色コードまたは背景色の色コードを選択す
るセレクタである。
The pattern data register 13a holds pattern data to be developed into one color code, and the data selector 13b sequentially selects pattern data from the pattern data register 13a. Furthermore, the food selector 14a is a selector that selects a foreground color code or a background color code according to the appearance of the data selector 13b.

第7図に示した色コード展開回路10bの動作は、第2
図に示した色コード展開回路10と、基本的には同じで
ある。異なる点は、パターンデータレジスタ13aがC
PU60aからパターンデータを受けとり保持し、その
パターンデータのL位ビットから1ビツトづつ、データ
セレクタ13bが出力し、この出力ビットに基づいて、
前景色または背jλ色がコードセレクタ14aで選択さ
れる点である。なお、データセレクタ13bは、長さカ
ウンタ16の出力信号に応じて、パターンデータの中か
ら1ビツトづつ出力するので、パターンデータレジスタ
13aの中間点からでも、色コードへの変換を開始でき
る。
The operation of the color code expansion circuit 10b shown in FIG.
It is basically the same as the color code expansion circuit 10 shown in the figure. The difference is that the pattern data register 13a is
The data selector 13b receives and holds pattern data from the PU 60a, outputs one bit at a time from the L bit of the pattern data, and based on this output bit,
This is the point where the foreground color or the background jλ color is selected by the code selector 14a. Note that since the data selector 13b outputs one bit from the pattern data in response to the output signal of the length counter 16, conversion to a color code can be started even from the midpoint of the pattern data register 13a.

第8図は、第7図に示した例の変形例を示すブロック図
である。
FIG. 8 is a block diagram showing a modification of the example shown in FIG. 7.

第8図の例は、第7図に示す例から、書込みアドレスカ
ウンタ15と、長さカウンタ16とを省略し、ビット位
置カウンタ17を追加したものである。この場合、書込
みアドレスカウンタ15と長さカウンタ16との機能は
、CPU60aが発揮することになる。
The example shown in FIG. 8 is obtained by omitting the write address counter 15 and length counter 16 from the example shown in FIG. 7, and adding a bit position counter 17. In this case, the functions of the write address counter 15 and length counter 16 are performed by the CPU 60a.

すなわち1色コード展開における連続自動実行は、CP
U60aが実行し、カウンタ15,16を除いた色コー
ド展11111回路10cでは、単純な色コードの展開
のみを実行するようにする。このようにした場合、CP
U60aの役割は少々増えるが、システム全体としての
性能は、従来よりも向上することになる。
In other words, continuous automatic execution in one-color code development is CP
The color code expansion 11111 circuit 10c executed by U60a and excluding the counters 15 and 16 executes only simple color code expansion. If you do this, CP
Although the role of U60a will increase slightly, the performance of the system as a whole will be improved compared to before.

第9図は1本発明の一実施例を示すブロック図である。FIG. 9 is a block diagram showing an embodiment of the present invention.

この実施例は、第7図に示す例のパターンデータレジス
タ13aの代りに、キャラクタフォントROM等を設け
、キャラクタコードについて色コード展開するものであ
る。
In this embodiment, a character font ROM or the like is provided in place of the pattern data register 13a of the example shown in FIG. 7, and color codes are developed for character codes.

キャラクタフォントROM80は、キャラクタフォント
パターンを記憶するものであり、キャラクタコードレジ
スタ81は、読出すべきキャラクタコードを保持するレ
ジスタである。また、Yレジスタ82は、キャラクタフ
ォントROM80における1文字分のフォントパターン
の上下方向の位置を保持するレジスタであり、上下方向
(Y方向)の読出しスタート点をセットするためのレジ
スタである。
The character font ROM 80 stores character font patterns, and the character code register 81 is a register that holds character codes to be read. Further, the Y register 82 is a register that holds the vertical position of a font pattern for one character in the character font ROM 80, and is a register for setting a reading start point in the vertical direction (Y direction).

Xカウンタ83は、フォントパターンにおける横方向(
X方向)の位置をカウントするものであり、横方向(X
方向)の展開スタート点をセットするレジスタである。
The X counter 83 is in the horizontal direction (
It counts the position in the lateral direction (X direction).
This is a register that sets the expansion start point for the direction (direction).

データセレクタ14aは、キャラクタフォントROM8
0から出力されたキャラクタフォントパターンを、順次
選択するものである。
The data selector 14a is a character font ROM8.
Character font patterns output from 0 are sequentially selected.

次に、上記実施例の動作について説明する。Next, the operation of the above embodiment will be explained.

CPU60aから1色コードに変換すべきキャラクタコ
ードがキャラクタコードレジスタ81に送られる。この
コードに基づいて、ROMアドレスの上位ビットが特定
され、そのキャラクタフォントパターン内の上下位置を
指定する値が、CPU80aからYレジスタ82にセッ
トされ、横方向(X方向)のスタート位置がXカウンタ
83にセットされる。また、Xカウンタ83のビット2
以下の値がデータセレクタ13bのセレクト信号として
使用され、Yレジスタ82の値とビット3以上の値とを
キャラクタ7オン) ROM80の7ドレスの下位ビッ
トとして使用する。
The character code to be converted into a one-color code is sent from the CPU 60a to the character code register 81. Based on this code, the upper bit of the ROM address is specified, the value specifying the upper and lower positions within the character font pattern is set from the CPU 80a to the Y register 82, and the starting position in the horizontal direction (X direction) is determined by the X counter. It is set to 83. Also, bit 2 of the X counter 83
The following values are used as select signals for the data selector 13b, and the values of the Y register 82 and the values of bits 3 and above are used as the lower bits of the 7 address of the ROM 80 (character 7 on).

Xカウンタ83が1つカウントアツプ(またはカウント
ダウン)する度に、データセレクタ13bの出カビ、ト
の中から1ビツトづつ、コードセレクタ14aにセレク
ト信号として送られ、このセレクト信号に応じて、コー
ドセレクタ14aが、前景色コードまたは背景色コード
を出力する。
Every time the X counter 83 counts up (or counts down) by one, one bit from the outputs of the data selector 13b is sent to the code selector 14a as a select signal, and in response to this select signal, the code selector 14a outputs a foreground color code or a background color code.

キャラクタフォントROM80から、キャラクタフォン
トパターンの横1列の展開が終了すると、CPU60a
は、Yレジスタ82の値を1つ加算または減少させ、X
カウンタ83の値を再びセットし、上記と同様の操作を
行ない、色コードへの変換を行なう。
When the development of one horizontal row of character font patterns from the character font ROM 80 is completed, the CPU 60a
adds or decrements the value in the Y register 82 by one, and
The value of the counter 83 is set again and the same operation as above is performed to perform conversion into a color code.

第9図に示す実施例においても、書込みアドレスカウン
タ15と長さカウンタ16とを省略してもよい。
Also in the embodiment shown in FIG. 9, the write address counter 15 and length counter 16 may be omitted.

なお、上記のcPU60aは、汎用のCPUではなく1
表示処理専用のビデオプロセス用CPUであってもよい
、また、キャラクタフォントROM80のフォントサイ
ズは、縦横任意の大きさで実施可能であり、キャラクタ
コードレジスタ81の長さも任意に決定できる。したが
って、上記キャラクタフォントは、アルファベットフォ
ント。
Note that the above cPU60a is not a general-purpose CPU.
It may be a video processing CPU dedicated to display processing, and the font size of the character font ROM 80 can be set to any vertical and horizontal sizes, and the length of the character code register 81 can also be determined arbitrarily. Therefore, the above character font is an alphabet font.

漢字7オント、または、特殊コード用のフォントであっ
てもよい、たとえば、第9図の実施例において、キャラ
クタフォントROM80の代りに、漢字フォントROM
を使用するようにしてもよい。
For example, in the embodiment of FIG. 9, instead of the character font ROM 80, the kanji font ROM 80 may be a kanji 7 ont or a font for a special code.
You may also use

[9,明の効果] 本発明によれば、キャラクタフォントパターンから色コ
ードへの展開動作が迅速に行なわれるという効果を有す
る。
[9. Effect of Brightness] According to the present invention, there is an effect that the development operation from a character font pattern to a color code is quickly performed.

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

第1図は、本発明の前提となる例を示すブロック図であ
る。 第2図は、上記例において使用される色コード展開回路
を示すブロック図である。 第3図は、上記例におけるタイミングコントローラを示
す回路図である。 第4図は、第3図に示すタイミングコトローテの動作を
示すタイミング図である。 第5図は、本発明の前提となる他の例を示すブロック図
である。 第6図は、第5図に示す例における色コード展開回路を
示すブロック図である。 第7図は1本発明の前提となる別の例を示す色コード展
開回路のブロック図である。 第8図は、第7図に示す例の変形例を示すブロック図で
ある。 第9図は1本発明の一実施例を示すブロック図である。 第10図は1画像データ処理装置の従来例を示すブロッ
ク図である。 第11図は1色コード展開の説明図である。 10、lOa、10b、10e、10d−−−色コード
展開回路。 it・・・前景色レジスタ。 12・・・背景色レジスタ、 13b・・・データセレクタ。 14・・・セレクタ。 14a・・・コードセレクタ、 15・・・書込みアドレスカウンタ。 16・・・長さカウンタ、 21d・・・タイミングコントローラ。 30・・・表示コントローラ、 60&・・・CPU、 80・・・キャラクタフォントROM。 82・・・Yレジスタ。 83・・・Xカウンタ。 特許出願人   株式会社アスキー 、−1 同       用久保  新 −1自゛ ・\。 \−□ 第3図 ムー−−+ −++++++++++  ++−j第4
図 第6図
FIG. 1 is a block diagram showing an example on which the present invention is based. FIG. 2 is a block diagram showing a color code expansion circuit used in the above example. FIG. 3 is a circuit diagram showing the timing controller in the above example. FIG. 4 is a timing diagram showing the operation of the timing cotrote shown in FIG. 3. FIG. 5 is a block diagram showing another example on which the present invention is based. FIG. 6 is a block diagram showing the color code expansion circuit in the example shown in FIG. FIG. 7 is a block diagram of a color code expansion circuit showing another example which is a premise of the present invention. FIG. 8 is a block diagram showing a modification of the example shown in FIG. 7. FIG. 9 is a block diagram showing an embodiment of the present invention. FIG. 10 is a block diagram showing a conventional example of a single image data processing device. FIG. 11 is an explanatory diagram of one-color code development. 10, lOa, 10b, 10e, 10d---color code expansion circuit. it...Foreground color register. 12...Background color register, 13b...Data selector. 14...Selector. 14a...Code selector, 15...Write address counter. 16... Length counter, 21d... Timing controller. 30...Display controller, 60&...CPU, 80...Character font ROM. 82...Y register. 83...X counter. Patent applicant: ASCII Co., Ltd., -1 Arata Yokubo -1 Self ・\. \−□ Fig. 3 Mu−−+ −++++++++++ ++−j 4th
Figure 6

Claims (4)

【特許請求の範囲】[Claims] (1)前景色の色コードを保持する前景色レジスタと; 背景色の色コードを保持する背景色レジスタと; キャラクタコードを保持するキャラクタコードレジスタ
と; キャラクタコードに対応して、そのキャラクタフォント
を記憶するキャラクタフォントROMと; このキャラクタフォントROMにおけるフォントパター
ンのY方向の位置データを保持するYレジスタと; 前記キャラクタフォントROMにおけるフォントパター
ンのX方向の位置データをカウントするXカウンタと; 前記キャラクタフォントROMから出力された前記キャ
ラクタフォントのパターンを、順次選択するデータセレ
クタと; このデータセレクタの出力に応じて、前記前景色の色コ
ードまたは前記背景色の色コードを選択するコードセレ
クタと; を有することを特徴とする画像データ処理装置。
(1) A foreground color register that holds the color code of the foreground color; a background color register that holds the color code of the background color; a character code register that holds the character code; a character font ROM for storing; a Y register for holding Y-direction position data of a font pattern in the character font ROM; an X counter for counting X-direction position data of a font pattern in the character font ROM; a data selector that sequentially selects the character font patterns output from the ROM; and a code selector that selects the foreground color code or the background color code in accordance with the output of the data selector. An image data processing device characterized by:
(2)前景色の色コードを保持する前景色レジスタと; 背景色の色コードを保持する背景色レジスタと; キャラクタフォントパターンを保持するキャラクタコー
ドレジスタと; 前記キャラクタフォントパターンに対応して、そのキャ
ラクタフォントを記憶するキャラクタフォントROMと
; このキャラクタフォントROMにおけるフォントパター
ンのY方向の位置データを保持するYレジスタと; 前記キャラクタフォントROMにおけるフォントパター
ンのX方向の位置データをカウントするXカウンタと; 前記キャラクタフォントROMから出力された前記キャ
ラクタフォントのパターンを、順次選択するデータセレ
クタと; このデータセレクタの出力に応じて、前記前景色の色コ
ードまたは前記背景色の色コードを選択するコードセレ
クタと; 表示メモリへの書込みアドレスを保持する書込みアドレ
スカウンタと; 前記フォントパターンの画面上における一列の長さ情報
を保持する長さカウンタと; を有することを特徴とする画像データ処理装置。
(2) A foreground color register that holds the color code of the foreground color; a background color register that holds the color code of the background color; a character code register that holds the character font pattern; a character font ROM that stores a character font; a Y register that holds position data of a font pattern in the Y direction in the character font ROM; an X counter that counts position data of a font pattern in the X direction in the character font ROM; a data selector that sequentially selects the character font patterns output from the character font ROM; a code selector that selects the foreground color code or the background color color code in accordance with the output of the data selector; An image data processing device comprising: a write address counter that holds a write address to a display memory; and a length counter that holds length information of one line of the font pattern on the screen.
(3)特許請求の範囲第2項において、 前記表示メモリへの書込みタイミングと、前記書込みア
ドレスカウンタのカウントタイミングと、前記データセ
レクタのセレクトタイミングと、前記長さカウンタのカ
ウントタイミングとを発生するタイミングコントローラ
を有することを特徴とする画像データ処理装置。
(3) In claim 2, the timing for generating the write timing to the display memory, the count timing of the write address counter, the select timing of the data selector, and the count timing of the length counter An image data processing device comprising a controller.
(4)特許請求の範囲第1項において、 前記キャラクタフォントは、漢字フォントパターンであ
ることを特徴とする画像データ処理装置。
(4) The image data processing device according to claim 1, wherein the character font is a Kanji font pattern.
JP60125794A 1985-06-10 1985-06-10 Image data processor Pending JPS61284799A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP60125794A JPS61284799A (en) 1985-06-10 1985-06-10 Image data processor
US07/212,131 US4893114A (en) 1985-06-10 1988-06-28 Image data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60125794A JPS61284799A (en) 1985-06-10 1985-06-10 Image data processor

Publications (1)

Publication Number Publication Date
JPS61284799A true JPS61284799A (en) 1986-12-15

Family

ID=14919039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60125794A Pending JPS61284799A (en) 1985-06-10 1985-06-10 Image data processor

Country Status (1)

Country Link
JP (1) JPS61284799A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5560992A (en) * 1978-10-31 1980-05-08 Nippon Electric Co Crt color display unit
JPS5895784A (en) * 1981-12-02 1983-06-07 ヤマハ株式会社 Color character display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5560992A (en) * 1978-10-31 1980-05-08 Nippon Electric Co Crt color display unit
JPS5895784A (en) * 1981-12-02 1983-06-07 ヤマハ株式会社 Color character display

Similar Documents

Publication Publication Date Title
US4789855A (en) Device for editing document in colors
US4595996A (en) Programmable video display character control circuit using multi-purpose RAM for display attributes, character generator, and refresh memory
US4893114A (en) Image data processing system
EP0149188B1 (en) Display control system
US5093902A (en) Memory control apparatus for accessing an image memory in cycle stealing fashion to read and write videotex signals
JPH0570832B2 (en)
JPS61284799A (en) Image data processor
CA1228931A (en) Display control unit
JPS61283970A (en) Picture data processor
JPS61283968A (en) Picture data processor
US4014017A (en) System for editing characters
JP2538388B2 (en) Pattern conversion device
JPH0236991B2 (en)
EP0283565B1 (en) Computer system with video subsystem
JPS6213690B2 (en)
JPS6139091A (en) Display unit
JP2808105B2 (en) Font drawing device
JPS59177594A (en) Display memory control system
JP3005220B2 (en) Scanning display controller
JPS6183585A (en) Display unit
JPS63269192A (en) Display device
JPS61185787A (en) Font generation circuit
JPS63243990A (en) Character transmission system
JPH0528399B2 (en)
JPS6149248A (en) High-speed writing system of pattern