JP3863961B2 - Font generator device - Google Patents

Font generator device Download PDF

Info

Publication number
JP3863961B2
JP3863961B2 JP06782197A JP6782197A JP3863961B2 JP 3863961 B2 JP3863961 B2 JP 3863961B2 JP 06782197 A JP06782197 A JP 06782197A JP 6782197 A JP6782197 A JP 6782197A JP 3863961 B2 JP3863961 B2 JP 3863961B2
Authority
JP
Japan
Prior art keywords
address
font
bits
character
font generator
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 - Fee Related
Application number
JP06782197A
Other languages
Japanese (ja)
Other versions
JPH10268859A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP06782197A priority Critical patent/JP3863961B2/en
Publication of JPH10268859A publication Critical patent/JPH10268859A/en
Application granted granted Critical
Publication of JP3863961B2 publication Critical patent/JP3863961B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Record Information Processing For Printing (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、例えば、ドットプリンタ,ワードプロセッサ等に使用される文字情報をドットマトリックスパターンとして記憶するフォントジェネレータ装置に関する。
【0002】
【従来の技術】
近年、パーソナルコンピュータやワードプロセッサ等の高機能化に伴って、表示装置や印字装置の高精細化と共に、各種の文字サイズのフォントが要求されるようになってきている。これらのフォントは、従来はハードディスク装置等に保存されていたが、半導体メモリの高集積化によって、マスクROM(リード・オンリ・メモリ)等の不揮発性メモリに保持されることが多くなって来ている。
【0003】
図7は、従来から使用されているフォントジェネレータへの文字ドットマトリックスパターンの記憶状態を示す。図7においては、文字は縦16ドット×横16ドットのドットマトリックスパターンで表現される。図中の文字「A」を構成する斜線部のビット位置には論理“1”が立ち、白部のビット位置には論理“0”が立つことによって、文字「A」が記憶されるのである。
そして、このように記憶された文字の読み出しは、文字の縦方向に対応するローアドレスを順次スキャンし、夫々のローアドレスの語データ(文字部を表す論理“1”と白部を表す論理“0”)を並列に出力することによって行われる。
【0004】
上述のように、1文字分のスキャンアドレスをNビット(図7においてはN=4)とすると、2Nのローアドレスを要し、通常は語データ(D0〜D7)も2の冪乗(図7においては24(=2×23))となる。
【0005】
次に、上記フォントジェネレータからの文字の読み出し動作について、図8のブロック図に従って詳細に説明する。
先ず、JISコードが与えられると、アドレス変換回路1によって、上記JISコードで指定された文字パターンが格納されている文字番地アドレスが生成される。この場合、フォントジェネレータ2内に1024文字種以内の文字パターンが格納されているものとすると、上記文字番地アドレスは10ビット(210=1024)必要である。
【0006】
また、文字サイズが縦16ドット×横16ドットとすると、1文字に256ビット必要であり、フォントジェネレータ2の記憶容量として256Kビット(=218ビット,K=210)が必要となる。さらに、フォントジェネレータ2には1語8ビットでフォントデータが記憶されているとすると、1文字の横16ドットは2語で表現されている。したがって、読み出し時には、図7に示すように、1文字のドットマトリックスパターンを縦16ドット×横8ドットずつ左右2分割し、矢印のようにローアドレスを2回スキャンする必要がある。
【0007】
そこで、従来は、上記フォントジェネレータ2のアドレスを次のように割り当てている。
すなわち、上記スキャンアドレスをA0〜A4の5ビットとし、そのうちの下位4ビットのアドレスA0〜A3に文字の縦方向16行(つまり、ローアドレス)を割り当て、残り1ビットのアドレスA4にドットマトリックスパターンの左右を割り当てる。そして、上記文字番地アドレスをA5〜A14の上位10ビットに割り当てるのである。
【0008】
そして、例えば5個の2進カウンタで構成されるカウンタ3にクロックCLKが入力されて、フォントジェネレータ2の下位5ビットのスキャンアドレスA0〜A4が生成される。そうすると、加算器4は、上記アドレス変換回路1によって生成された上位10ビットの文字番地アドレスA5〜A14と、カウンタ3で生成された下位5ビットのスキャンアドレスA0〜A4とを加算して、15ビットのフォントジェネレータ2の実アドレスA0〜A14を生成するのである。
【0009】
その結果、上記実アドレスA0〜A14のうち上位10ビットの文字番地アドレスA5〜A14で指定された文字のドットマトリックスパターンが、下位5ビットのスキャンアドレスA0〜A4に応じて、縦16ドット×横8ドットずつクロックCLKに同期して2回スキャンされ、クロックCLK32周期で1文字のフォントデータが出力されることになる。
【0010】
【発明が解決しようとする課題】
しかしながら、上記のように構成されて上記のように動作する従来のフォントジェネレータでは、以下のような問題がある。
すなわち、上述したように、フォントジェネレータ2のローアドレス数や1語の語長は2の冪乗である。したがって、上記フォントジェネレータ2に、2の冪乗に適合しないサイズの文字ドットマトリックスパターンを記憶した場合には、フォントジェネレータ2に空き領域が生ずることになる。
【0011】
例えば、上記フォントジェネレータ2に格納する文字ドットマトリックスパターンのサイズを縦12ドット×横12ドットとすると、文字「A」のドットマトリックスパターンは、図9に示すように格納される。この場合、スキャンアドレスを、本来の5ビットから「1」を減じて4ビットにすると、上記左右の指定に1ビットが取られるからローアドレス数は「8」となり、必要ローアドレス数が12以下となってしまう。したがって、フォントジェネレータ2における1文字分として割り当てられるドットマトリックス領域(以下、1文字領域と言う)5は、縦16ドット×横16ドットよりも小さくできず、文字「A」のドットマトリックスパターンの周囲に空き領域が生ずるのである。
【0012】
そして、上述のように、上記フォントジェネレータ2の実アドレスA0〜A14のうちの上位10ビットを文字番地アドレスに割り当てる一方、下位5ビットをスキャンアドレスに割り当てているために、空き領域6は、図10に示すように、各文字番地アドレス毎に分散して存在することになる。
すなわち、従来のフォントジェネレータでは、2の冪乗に適合しないサイズの文字ドットマトリックスパターンを記憶した場合に生じた空き領域は、他の用途に利用することができないという問題がある。
【0013】
尚、上述のように、2の冪乗に適合しないサイズの文字ドットマトリックスパターンを記憶する場合に、文字ドットマトリックスパターンを2の冪乗ドットずつ均等に複数ブロックに分割し、分割された個々のブロックを別々のROMに格納するパタン発生回路が提案されている(特開昭58−17488号公報)。
しかしながら、半導体メモリの集積度の向上によって多量の文字フォントを1チップ上に格納する今日においては、上記パタン発生回路のような多数のROMを必要とする文字ドットマトリックスパターンの記憶は不適当である。
【0014】
そこで、この発明の目的は、2の冪乗に適合しないサイズの文字ドットマトリックスパターンを記憶する場合に発生した空き領域を有効に利用できるフォントジェネレータ装置を提供することにある。
【0015】
【課題を解決するための手段】
上記目的を達成するため、請求項1に係る発明のフォントジェネレータ装置は、
複数のドットマトリックスパターンが記憶されるフォントジェネレータを備え
当該フォントジェネレータには、連続してアドレスが付与されており、
当該フォントジェネレータのアドレス空間が2 m ( mは正の整数 ) に等分割されたアドレス領域が定義されており、
上記アドレス領域に対応する記憶領域には、上記ドットマトリックスパターンの最大値である1文字領域を縦方向あるいは横方向に2 m に等分割してなる各部分文字領域のフォントデータを表す語データが格納され、
上記ドットマトリックスパターンを読み出すために入力される入力アドレスによって特定される特定アドレスの最上位mビット、上記分割された各アドレス領域に割り付けられており、
上記特定アドレスの最下位n ( nは正の整数 ) ビットが、ローアドレスに割り付けられており、
上記特定アドレスにおける最下位nビットおよび最上位mビットを除くビットが、文字 番地アドレスに割り付けられており、
上記2 m 個のアドレス領域に対応する上記2 m 個の記憶領域のうち、上記フォントデータを表す語データが格納される記憶領域以外の記憶領域は、不揮発性メモリとして機能し、
上記特定アドレスの上記ローアドレスおよび文字番地アドレスと同じアドレス ( A0〜A13 ) でアクセスされる書き換え可能メモリと、
上記入力アドレスの最上位mビットと選択信号 ( SLC ) とを受けて、上記入力アドレスの最上位mビットの値が特定の値であり、且つ、上記選択信号が上記書き換え可能メモリを選択すべき選択信号である場合には、上記書き換え可能メモリからの出力データを選択する一方、上記選択信号が上記フォントジェネレータを選択すべき選択信号である場合には、上記フォントジェネレータからの出力データを選択する出力データ選択手段と
をさらに備え、
上記入力アドレスの最上位mビットの値が上記特定の値であり、且つ、上記選択信号が上記フォントジェネレータを選択すべき選択信号である場合には、上記フォントジェネレータにおける上記入力アドレスで指定される上記2 m 個の記憶領域のうちの不揮発性メモリから上記フォントデータ以外のデータが出力される一方、
上記入力アドレスの最上位mビットの値が上記特定の値以外の値であり、且つ、上記選択信号が上記フォントジェネレータを選択すべき選択信号である場合には、上記フォントジェネレータにおける上記入力アドレスで指定される上記2 m 個の記憶領域のうちの語データが格納される記憶領域から上記フォントデータが出力される
ことを特徴としている。
【0016】
上記構成によれば、複数の同一サイズのドットマトリックスパターンが、上記フォントジェネレータのアドレス空間を2 m個に等分割した夫々のアドレス領域に対応する2 m 個の記憶領域に分散して格納される。したがって、2の冪乗に適合しないサイズの文字ドットマトリックスパターンを記憶した場合に夫々の文字毎に生ずる空き領域に上記入力アドレスによって特定される特定アドレスの最上位mビットの上記特定値を割り当てることによって、総ての文字の空き領域を上記フォントジェネレータの上 m 個に等分割された記憶領域のうち上記特定値で指定されたアドレス領域に対応する記憶領域に集めることができる。
こうして、上記フォントジェネレータの記憶領域上に連続した空き領域を形成することによって、有効に利用可能な空き領域が形成される。
【0017】
そして、上記フォントジェネレータに2の冪乗に適合しないサイズのドットマトリックスパターンを記憶した場合に生ずる空き領域が、不揮発性メモリとしてユーザに開放される。また、上記特定アドレスの上記ローアドレスおよび文字番地アドレスと同じアドレス ( A0〜A13 ) でアクセスされる書き換え可能メモリを備えると共に、上記入力アドレスの最上位mビットと選択信号 ( SLC ) とに基づいて、上記書き換え可能メモリからの出力データ、上記フォントジェネレータからのフォントデータ、および、上記フォントジェネレータの不揮発性メモリからの上記フォントデータ以外のデータの何れかを選択する出力データ選択手段を備えたので、上記書き換え可能メモリのアドレスが、上記フォントジェネレータの不揮発性メモリ用のアドレスと共用される。こうして、上記書き換え可能メモリ用のアドレス発生回路が節約される。
【0018】
【発明の実施の形態】
以下、この発明を図示の実施の形態により詳細に説明する。
<第1実施の形態>
図1は、本実施の形態のフォントジェネレータのアドレス空間を示す。
本フォントジェネレータ11は256Kビットの記憶容量を有する。このフォントジェネレータ11には、1024文字種以内の文字パターンが格納されるものとすると、上記文字番地アドレスは10ビット(210=1024)必要である。また、図2に示すように、文字ドットマトリックスパターンのサイズは2の冪乗に適合しないような縦12ドット×横12ドットであり、1語4ビットでフォントデータが記憶されるとする。
【0019】
ここで、上記フォントジェネレータ11のアドレスはA0〜A15の16ビットとする。そして、そのうちのアドレスA4〜A13の10ビットを文字番地アドレスに割り当てる。一方、アドレスA0〜A3,A14,A15の6ビットをスキャンアドレスに割り当てる。また、スキャンアドレスA0〜A3,A14,A15のうち、下位の4ビットのアドレスA0〜A3をローアドレスに割り当てる。
【0020】
また、上述のように、上記フォントジェネレータ11は、256Kビットの記憶容量を有しており、最大1024=210文字種の文字パターンを格納できる。したがって、1文字の記憶容量は256ビットとなり、図2に示すように、1文字領域14は縦16ドット×横16ドットとなる。ここで、1語は4ビットであるから、1文字領域14の横16ドットを4語で表現する必要がある。したがって、読み出し時には、1文字領域14を縦16ドット×横4ドットずつ4つの領域a,b,c,dに等分割して、ローアドレスを4回スキャンする必要がある。
そこで、本実施の形態においては、4領域a,b,c,dの指定に、スキャンアドレスA0〜A3,A14,A15のうち最上位2ビットのアドレスA14,A15を割り当てるのである。
【0021】
その結果、上記フォントジェネレータ11の各1文字領域14のうち領域a〜cに、サイズが縦12ドット×横12ドットの文字ドットマトリックスパターンを格納することによって、図1に示すように、フォントジェネレータ11のアドレス空間をアドレスの昇順に4つの領域A,B,C,Dに等分割した最小アドレス領域Aには、1文字領域14の領域aの語データが格納される。以下、フォントジェネレータ11の領域Bには1文字領域14の領域bの語データが格納され、領域Cには領域cの語データが格納され、領域Dには領域dの語データが格納されることになる。
つまり、上記フォントジェネレータ11の最大アドレス領域Dには、連続した空き領域13が形成されるのである。以下、実際のフォントジェネレータとして使用される領域A〜領域Cの192Kビットをフォント格納領域12と言う。
【0022】
上記フォントジェネレータ11からの読み出し動作は、以下のようにして行われる。
16ビットのアドレスA0〜A15が上記フォントジェネレータ11に入力される。そうすると、アドレスA0〜A15のうち最上位2ビットのアドレスA14,A15の組み合わせ(0,0),(0,1),(1,0)に関して、文字番地アドレスA4〜A13で指定された文字の部分ドットマトリックスパターンが、下位4ビットのスキャンアドレスA0〜A3に応じてクロックCLKに同期してスキャンされる。こうして、クロックCLK48(ローアドレス数「16」×アドレスA14,A15の組み合わせ数「3」)周期で1文字のフォントデータが出力されるのである。
【0023】
尚、上記最上位2ビットのアドレスA14,A15の組み合わせが(1,1)となってフォントジェネレータ11の空き領域13からデータが読み出された場合には、データ無効手段(図示せず)によって上記読み出された出力データをハイインピーダンスにする。
【0024】
上述のように、本実施の形態においては、256Kビットのフォントジェネレータ11に2の冪乗に適合しない縦12ドット×横12ドットのドットマトリックスパターンを記憶する場合に、1文字分のドットマトリックスの最大値である1文字領域14に生じた空き領域に、最上位2ビットのアドレスA13,A14の組み合わせ(1,1)を割り当てている。その結果、総ての1文字領域14の空き領域は、フォントジェネレータ11のアドレス空間における上位アドレス側に連続して存在することになる。
したがって、上記フォントジェネレータ11の上位アドレス側に連続した64Kビットの空き領域13を形成でき、結果的に256Kビットのフォントジェネレータ11を192Kビットに縮小することが可能となる。
【0025】
尚、上記実施の形態においては、1文字領域14の空き領域にアドレスA0〜A14のうちの最上位2ビットのアドレスA13,A14の組み合わせ(1,1)を割り当てているが、この発明はこれに限定されるものではない。例えば、上記1文字領域は縦8語×横8語であり、空き領域は2語で表現される場合には、最上位3ビットのアドレスの組み合わせ(1,1,0),(1,1,1)が割り当てられる。
【0026】
<第2実施の形態>
本実施の形態におけるフォントジェネレータは256Kビットの記憶容量を有している。このフォントジェネレータには、1024文字種以内の文字パターンが格納されるものとすると、上記文字番地アドレスは10ビット(210=1024)必要である。また、図3に示すように、文字ドットマトリックスパターンのサイズは2の冪乗に適合しないような縦12ドット×横12ドットであり、1語8ビットでフォントデータが記憶されるとする。
【0027】
本実施の形態においては、上記フォントジェネレータのアドレスはA0〜A14の15ビットとする。そして、そのうちのアドレスA3〜A12の10ビットを文字番地アドレスに割り当てる。一方、アドレスA0〜A2,A13,A14の5ビットをスキャンアドレスに割り当てる。また、スキャンアドレスA0〜A2,A13,A14のうち、アドレスA1,A2,A13,A14をローアドレスに割り当てる。
【0028】
また、第1実施の形態と同様に、1文字領域15は縦16ドット×横16ドットとなる。ここで、1語は8ビットであるから、1文字領域15の横16ドットを2語で表現する必要がある。したがって、読み出し時には、1文字領域15を縦16ドット×横8ドットずつ2つの領域e,fに等分割し、ローアドレスを2回スキャンする必要がある。
そこで、本実施の形態においては、図3に示すように、2つの領域e,fの指定に、スキャンアドレスA0〜A2,A13,A14のうち最下位ビットのアドレスA0を割り当てるのである。
【0029】
その結果、上記フォントジェネレータの各1文字領域15のうち最上位2ビットのアドレスA13,A14の組み合わせが(0,0),(0,1),(1,0)のローアドレス空間に、サイズが縦12ドット×横12ドットの文字ドットマトリックスパターンを格納することによって、図1に示す最小アドレス領域Aに相当する領域には、1文字領域15の領域gの語データが格納される。以下、領域Bに相当する領域には1文字領域15の領域hの語データが格納され、領域Cに相当する領域には領域iの語データが格納され、領域Dに相当する領域には領域jの語データが格納されることになる。
つまり、図1に示す最大アドレス領域Dに相当する領域には、連続した空き領域が形成されるのである。
【0030】
本フォントジェネレータからの読み出し動作は、以下のように行われる。
アドレスA0〜A14のうちのアドレス(A13,A14)の組み合わせ(0,0),(0,1),(1,0)に関して、文字番地アドレスA3〜A12で指定された文字の部分ドットマトリックスパターンが、下位3ビットのスキャンアドレスA0〜A2に応じてクロックCLKに同期して領域e,fを交互にスキャンする。こうして、クロックCLK24(アドレスA1,A2の組み合わせ数「4」×アドレスA15,A14の組み合わせ数「3」×アドレスA0の状態数「2」)周期で1文字のフォントデータが出力されるのである。
【0031】
尚、上記最上位2ビットのアドレスA13,A14の組み合わせが(1,1)となって上記フォントジェネレータの空き領域からデータが読み出された場合には、データ無効手段(図示せず)によって上記読み出されたデータをハイインピーダンスにする。
【0032】
上述のように、本実施の形態においても、256Kビットのフォントジェネレータに2の冪乗に適合しない縦12ビット×横12ビットのドットマトリックスパターンを記憶する場合に、1文字分のドットマトリックス領域である1文字領域15に生じた空き領域に、最上位2ビットのアドレスの組み合わせ(1,1)を割り当てている。その結果、総ての1文字領域15の空き領域は、当該フォントジェネレータのアドレス空間における上位アドレス側に連続して存在することになる。
したがって、上記フォントジェネレータの上位アドレス側に連続した64Kビットの空き領域を形成でき、結果的に256Kビットのフォントジェネレータを192Kビットに縮小することが可能となる。
【0033】
<第3実施の形態>
本実施の形態は、2の冪乗に適合しないような縦12ドット×横12ドット文字ドットマトリックスパターンを256Kビットのフォントジェネレータに記憶した場合に、第1,第2実施の形態の適用によって形成された空き領域を有効利用する方法に関する。
但し、以下の説明は、第1実施の形態を適用した場合を例に説明する。
【0034】
図4は、本実施の形態のフォントジェネレータ装置のブロック図である。
図4において、フォントジェネレータ16は、図1に示すフォントジェネレータ11おけるフォント格納領域12と全く同じアドレス空間を有する。また、RAM17(ランダム・アクセス・メモリ)は、図1に示すフォントジェネレータ11おける空き領域13と同じ64Kビットの記憶容量を有し、アドレスA0〜A13でアクセスされるアドレス空間を有している。つまり、本実施の形態においては、第1実施の形態におけるフォントジェネレータ11の空き領域13用のアドレスをRAM17用のアドレスとして有効利用するのである。
【0035】
アドレス変換回路(図示せず)で生成された16ビットのアドレスA0〜A15がフォントジェネレータ16に供給される。また、アドレスA0〜A15のうちの下位アドレスA0〜A13がRAM17に供給される一方、最上位アドレスA14,A15がマルチプレクサ18に供給される。そうすると、マルチプレクサ18は、最上位アドレスA14,A15に応じて、フォントジェネレータ16からの出力データとRAM17からの出力データとの何れかを選択して外部に出力する。
【0036】
上記構成のフォントジェネレータ装置は、以下のように動作してフォントデータを読み出す。
上記アドレス変換回路にJISコードが与えられると、フォントジェネレータ16のアドレスA0〜A15が生成されてフォントジェネレータ16に供給される。そうすると、フォントジェネレータ16は、入力されたアドレスA0〜A15のうち最上位アドレスA14,A15の組み合わせが(0,0),(0,1),(1,0)の場合に、第1実施の形態において説明したようにしてフォントデータを出力する。
これに対して、上記RAM17は、最上位アドレスA14,A15の組み合わせに拘わらず、アドレスA0〜A13で指定されたデータを出力する。
【0037】
上記マルチプレクサ18は、上記最上位2ビットのアドレスA14,A15を受けて、アドレスA14,A15の組み合わせが(0,0),(0,1),(1,0)の場合にはフォントジェネレータ16からのフォントデータを外部に出力する。一方、アドレスA14,A15の組み合わせが(1,1)の場合には、RAM17からのデータを外部に出力するのである。
【0038】
このように、本実施の形態においては、192Kビットの記憶容量を有するフォントジェネレータ16を用い、第1実施の形態を適用して、2の冪乗に適合しないような縦12ドット×横12ドット文字ドットマトリックスパターンを記憶している。したがって、無駄な領域が生じないように2の冪乗に適合しないサイズの文字ドットマトリックスパターンを記憶できる。
また、上記フォントジェネレータ16用の16ビットのアドレスA0〜A15のうち最上位2ビットのアドレスA0〜A13の組み合わせ(1,1)を、RAM17に割り当てているので、フォントジェネレータ16用のアドレスA0〜A15を利用してRAM17をアクセスできる。したがって、RAM17用のアドレス変換回路を必要とはせず、回路構成を簡単にできる。
【0039】
尚、上記RAM17を、図1に示すフォントジェネレータ11おける空き領域13と全く同じアドレス空間を有するように構成する。そして、アドレスA0〜A15をRAM17に供給して、マルチプレクサ23を用いずに、フォントジェネレータ16とRAM17とから別々にデータを取り出してもよい。
【0040】
<第4実施の形態>
本実施の形態は、2の冪乗に適合しないような縦12ドット×横12ドットの文字ドットマトリックスパターンを256Kビットのフォントジェネレータに記憶する場合に、第1,第2実施の形態の適用によって形成された空き領域を、ユーザ等が有効利用する他の方法に関する。
但し、以下の説明は、第1実施の形態を適用した場合を例に説明する。
【0041】
図5は、本実施の形態のフォントジェネレータ装置のブロック図である。
本実施の形態におけるフォントジェネレータ21は、256Kビットの記憶容量を有している。このフォントジェネレータ21には、サイズが2の冪乗に適合しないような縦12ドット×横12ドットの1024文字種以内の文字パターンが、1語4ビットで格納されている。
【0042】
また、上記フォントジェネレータ21のアドレスはA0〜A15の16ビットであり、そのうちのアドレスA4〜A13が文字番地アドレスに割り当てられている。一方、アドレスA0〜A3,A14,A15がスキャンアドレスに割り当てられている。また、スキャンアドレスA0〜A3,A14,A15のうち、下位の4ビットのアドレスA0〜A3がローアドレスに割り当てられている。
そうすると、第1実施の形態において説明したように、上記フォントジェネレータ21の上位アドレス側に64Kビットの空き領域21bが形成される。
【0043】
そこで、本実施の形態においては、上記フォントジェネレータ21の下位アドレス側の192Kビットの領域をフォント格納領域21aとして使用する。そして、上位アドレス側の64Kビットの空き領域21bをユーザ領域としてユーザに解放して、ユーザ独自の文字のドットマトリックスパターンを記憶したり、プログラム記憶領域として利用可能にするのである。
【0044】
さらに、本実施の形態においては、図6に示すように、上記ユーザ領域21bと同じ64Kビットの記憶容量を有して、アドレスA0〜A13でアクセスされるアドレス空間を有するRAM22を設ける。そして、アドレス変換回路(図示せず)で生成されたアドレスA0〜A15をフォントジェネレータ21に供給する。また、アドレスA0〜A15のうち下位アドレスA0〜A13をRAM22に供給し、最上位2ビットのアドレスA14,A15をマルチプレクサ23に供給する。
上記マルチプレクサ23は、外部から入力される選択信号SLCと最上位アドレスA14,A15とに応じて、フォントジェネレータ21からの出力データとRAM22からの出力データとの何れかを選択して外部に出力する。
【0045】
上記構成のフォントジェネレータ装置は、以下のように動作してフォントデータを読み出す。
上記アドレス変換回路にJISコードが与えられると、フォントジェネレータ21のアドレスA0〜A15が生成されてフォントジェネレータ21に供給される。そうすると、フォントジェネレータ21は、上記アドレスA0〜A15のうち最上位アドレスA14,A15の組み合わせが(0,0),(0,1),(1,0)の場合には、第1実施の形態において説明したようにしてフォント格納領域21aのフォントデータを出力する。また、(1,1)の場合には、ユーザ領域21bのデータを出力する。
これに対して、上記RAM22は、最上位アドレスA14,A15の組み合わせに拘わらず、アドレスA0〜A13で指定されたデータを出力する。
【0046】
上記マルチプレクサ23は、選択信号SLCが“1”であって、且つ、最上位アドレスA14,A15の組み合わせが(1,1)である場合には、RAM22の出力データを外部に出力する。また、それ以外の場合にはフォントジェネレータ21からの出力データを外部に出力する。したがって、選択信号SLCが“0"であって、且つ、最上位アドレスA14,A15の組み合わせが(1,1)である場合には、ユーザ領域21bのデータが外部に出力される。また、選択信号SLCが“0”であって、且つ、最上位アドレスA14,A15の組み合わせが(0,0),(0,1),(1,0)である場合には、フォント格納領域21aのフォントデータが外部に出力されることなる。
【0047】
このように、本実施の形態においては、256Kビットのフォントジェネレータ21に2の冪乗に適合しない縦12ビット×横12ビットの文字ドットマトリックスパターンを記憶して生じた64Kビットの空き領域をユーザ領域21bとし、さらに、アドレスA0〜A13でアクセスされるアドレス空間を有する64KビットのRAM22を設ける。そして、マルチプレクサ23によって、選択信号SLCと最上位アドレスA14,A15とに応じて、フォントジェネレータ21からの出力データおよびRAM22からの出力データの何れかを選択して外部に出力するようにしている。
したがって、上記フォントジェネレータ21の空き領域をユーザに解放して有効利用できる。また、フォントジェネレータ21用のアドレス変換回路をRAM22用のアドレス変換回路として利用して回路構成を簡単にできる。
【0048】
上記第3,第4実施の形態においては、フォントジェネレータ16,21に第1実施の形態によるアドレス割り当てを適用した場合を例に説明している。しかしながら、第2実施の形態によるアドレス割り当てを適用することも可能である。但し、その場合には、フォントジェネレータ16,21には15ビットのアドレスA0〜14が供給され、マルチプレクサ18,23は、最上位ビットA13,14の組み合わせに応じて、出力データを選択すればよい。
【0049】
【発明の効果】
以上より明らかなように、請求項1に係る発明のフォントジェネレータ装置は、ドットマトリックスパターンの最大値である1文字領域を縦方向または横方向に2m個に等分割して部分文字領域とし、当該フォントジェネレータのアドレス空間を2 m個に等分割すると共に、この等分割されたアドレス領域に対応する2 m 個の記憶領域には上記各部分文字領域のフォントデータを表す語データを格納し、入力アドレスによって特定される特定アドレスの最上位のmビットを上記分割された各アドレス領域に割り付けたので、一つのドットマトリックスパターンは、上記フォントジェネレータのアドレス空間を m 個に等分割した夫々のアドレス領域に対応する2 m 個の記憶領域に分散して格納される。
したがって、2の冪乗に適合しないようなサイズのドットマトリックスパターンを記憶した場合に生ずる空き領域に上記特定アドレスの最上位mビットの特定値を割り当てることによって、総ての文字の空き領域を上記フォントジェネレータの記憶領域における上記特定値で指定されたアドレス領域に対応する記憶領域に集めることができる。すなわち、この発明によれば、上記フォントジェネレータの記憶領域上に連続した空き領域を形成することができ、空き領域の有効利用を図ることができる。
【0050】
さらに上記2 m 個の記憶領域のうち、上記フォントデータを表す語データが格納される記憶領域以外の記憶領域を不揮発性メモリとして機能させ、上記特定アドレスのローアドレスおよび文字番地アドレスと同じアドレスでアクセスされる書き換え可能メモリを備えると共に、上記入力アドレスの最上位mビットと選択信号とに基づいて、上記書き換え可能メモリからの出力データ、上記フォントジェネレータからのフォントデータ、および、上記フォントジェネレータの不揮発性メモリからの上記フォントデータ以外のデータの何れかを選択する出力データ選択手段を備えたので、2の冪乗に適合しないサイズのドットマトリックスパターンを記憶した場合に生ずる空き領域を不揮発性メモリとしてユーザに開放して、空き領域の有効利用を図ることができる。
さらに、上記不揮発性メモリのアドレスと上記書き換え可能メモリ用のアドレスとを共用できるので、上記書き換え可能メモリ用のアドレス発生回路が不必要となる。したがって、回路構成が簡単になる。
【図面の簡単な説明】
【図1】 この発明のフォントジェネレータにおけるアドレス空間を示す図である。
【図2】 図1に示すアドレス空間に対する縦12ドット×横12ドットの文字ドットマトリックスパターンの割り当て方法の説明図である。
【図3】 図2とは異なる文字ドットマトリックスパターンの割り当て方法の説明図である。
【図4】 図2に従って文字ドットマトリックスパターンが記憶されたフォントジェネレータ装置のブロック図である。
【図5】 図4とは異なるフォントジェネレータ装置のブロック図である。
【図6】 図5におけるフォントジェネレータとRAMのアドレス空間を示す図である。
【図7】 従来のフォントジェネレータへの記憶状態の説明図である。
【図8】 従来のフォントジェネレータ装置のブロック図である。
【図9】 図7に示す記憶方法によって縦12ドット×横12ドットの文字ドットマトリックスパターンを記憶した場合の記憶状態を示す図である。
【図10】 図9に示す記憶状態で文字ドットマトリックスパターンを記憶した場合のフォントジェネレータのアドレス空間上での空き領域の説明図である。
【符号の説明】
11,16,21…フォントジェネレータ、
12,21a…フォント格納領域、 13…空き領域、
14,15…1文字領域、 17,22…RAM、
18,23…マルチプレクサ、 21b…ユーザ領域。
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a font generator for storing character information used as, for example, a dot printer, a word processor or the like as a dot matrix pattern.apparatusAbout.
[0002]
[Prior art]
  In recent years, along with the enhancement of functions of personal computers, word processors, etc., fonts of various character sizes have been demanded as display devices and printing devices have become higher in definition. Conventionally, these fonts have been stored in a hard disk drive or the like. However, due to the high integration of semiconductor memories, they are often held in non-volatile memories such as mask ROM (read-only memory). Yes.
[0003]
  FIG. 7 shows a storage state of a character dot matrix pattern in a conventionally used font generator. In FIG. 7, a character is represented by a dot matrix pattern of 16 dots vertically × 16 dots horizontally. The logic “1” is set at the bit position of the shaded portion constituting the character “A” in the figure, and the logic “0” is set at the bit position of the white portion, whereby the character “A” is stored. .
  The character stored in this manner is read by sequentially scanning the row address corresponding to the vertical direction of the character, and the word data of each row address (logic “1” representing the character portion and logic “1” representing the white portion). 0 ") is output in parallel.
[0004]
  As described above, if the scan address for one character is N bits (N = 4 in FIG. 7), 2NRow address, and usually word data (D0 to D7) is also a power of 2 (in FIG. 7, 2Four(= 2 × 2Three)).
[0005]
  Next, a character reading operation from the font generator will be described in detail with reference to the block diagram of FIG.
  First, when a JIS code is given, the address conversion circuit 1 generates a character address where the character pattern designated by the JIS code is stored. In this case, assuming that a character pattern of 1024 character types or less is stored in the font generator 2, the character address is 10 bits (2Ten= 1024) Necessary.
[0006]
  If the character size is 16 dots long x 16 dots wide, 256 characters are required for each character, and the storage capacity of the font generator 2 is 256 Kbits (= 2).18Bit, K = 2Ten)Is required. Further, assuming that font data is stored in the font generator 2 with 8 bits per word, the horizontal 16 dots of one character are expressed by two words. Therefore, at the time of reading, as shown in FIG. 7, it is necessary to divide a dot matrix pattern of one character into left and right two by 16 dots vertically and 8 dots horizontally, and scan the row address twice as shown by arrows.
[0007]
  Therefore, conventionally, the address of the font generator 2 is assigned as follows.
  That is, the scan address is 5 bits from A0 to A4, the lower 4 bits of the address A0 to A3 are assigned 16 vertical rows of characters (that is, the row address), and the remaining 1 bit of the address A4 is a dot matrix pattern. Assign left and right. The character address is assigned to the upper 10 bits of A5 to A14.
[0008]
  Then, for example, the clock CLK is input to the counter 3 constituted by five binary counters, and the scan addresses A0 to A4 of the lower 5 bits of the font generator 2 are generated. Then, the adder 4 adds the upper 10-bit character address addresses A5 to A14 generated by the address conversion circuit 1 and the lower 5-bit scan address A0 to A4 generated by the counter 3, and adds 15 The real addresses A0 to A14 of the bit font generator 2 are generated.
[0009]
  As a result, the dot matrix pattern of the character designated by the upper 10-bit character address addresses A5 to A14 among the real addresses A0 to A14 is 16 dots × horizontal in accordance with the lower 5-bit scan addresses A0 to A4. Each 8 dots are scanned twice in synchronism with the clock CLK, and one character font data is output in the period of the clock CLK32.
[0010]
[Problems to be solved by the invention]
  However, the conventional font generator configured as described above and operating as described above has the following problems.
  That is, as described above, the number of row addresses and the word length of one word of the font generator 2 are powers of two. Therefore, when a character dot matrix pattern having a size that does not fit the power of 2 is stored in the font generator 2, an empty area is generated in the font generator 2.
[0011]
  For example, assuming that the size of the character dot matrix pattern stored in the font generator 2 is vertical 12 dots × horizontal 12 dots, the dot matrix pattern of the character “A” is stored as shown in FIG. In this case, if the scan address is made 4 bits by subtracting “1” from the original 5 bits, the number of row addresses becomes “8” because 1 bit is taken for the above left and right designations, and the required number of row addresses is 12 or less. End up. Therefore, the dot matrix area (hereinafter referred to as “one character area”) 5 assigned as one character in the font generator 2 cannot be smaller than the vertical 16 dots × horizontal 16 dots, and is around the dot matrix pattern of the character “A”. An empty area is generated in the area.
[0012]
  As described above, the upper 10 bits of the real addresses A0 to A14 of the font generator 2 are assigned to the character address address, while the lower 5 bits are assigned to the scan address. As shown in FIG. 10, each character address is distributed and exists.
  In other words, the conventional font generator has a problem that a free area generated when a character dot matrix pattern having a size that does not fit the power of 2 cannot be used for other purposes.
[0013]
  As described above, when storing a character dot matrix pattern having a size that does not conform to the power of 2, the character dot matrix pattern is equally divided into a plurality of blocks, each of which is a power of 2 dots. A pattern generating circuit for storing blocks in separate ROMs has been proposed (Japanese Patent Laid-Open No. 58-17488).
  However, in today's case where a large amount of character fonts are stored on one chip due to an increase in the degree of integration of semiconductor memory, it is inappropriate to store character dot matrix patterns that require a large number of ROMs such as the pattern generation circuit. .
[0014]
  SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a font generator that can effectively use a free area generated when storing a character dot matrix pattern having a size that does not conform to a power of 2.apparatusIs to provide.
[0015]
[Means for Solving the Problems]
  To achieve the above object, the invention according to claim 1Font generator deviceIs
  Font generator that stores multiple dot matrix patternsWith,
  The font generator is continuously assigned addresses,
  The address space of the font generator is 2 m Pieces ( m is a positive integer ) The address area is equally divided into
  In the storage area corresponding to the address area,One character area which is the maximum value of the dot matrix pattern is set to 2 in the vertical or horizontal direction. m PiecesEqually dividedEachPartial character areaWord data representing the font data of
  Input address input to read the dot matrix patternOf a specific address identified byMost significant m bitsBut, Each divided aboveaddressAssign to areaAnd
  The lowest n of the specific address ( n is a positive integer ) A bit is assigned to the row address,
  The bits except the lowest n bits and the highest m bits in the specific address are characters. Assigned to the street address,
  2 above m 2 corresponding to one address area m Among the storage areas, a storage area other than the storage area in which the word data representing the font data is stored functions as a nonvolatile memory,
  The same address as the row address and character address of the specific address ( A0-A13 ) Rewritable memory accessed with
  Most significant m bits of the above input address and selection signal ( SLC ) When the value of the most significant m bits of the input address is a specific value and the selection signal is a selection signal for selecting the rewritable memory, Output data selecting means for selecting output data from the font generator when the output signal is selected and the selection signal is a selection signal for selecting the font generator;
Further comprising
  When the most significant m-bit value of the input address is the specific value and the selection signal is a selection signal for selecting the font generator, it is specified by the input address in the font generator. 2 above m While data other than the font data is output from the non-volatile memory of the storage areas,
  When the value of the most significant m bits of the input address is a value other than the specific value and the selection signal is a selection signal for selecting the font generator, the input address in the font generator is 2 above specified m The font data is output from the storage area in which the word data is stored among the storage areas.
It is characterized by that.
[0016]
  According to the above configuration, a plurality of dot matrix patterns of the same size are included in the address space of the font generator.2 mIn each address area equally divided intoCorresponding 2 m Storage areasStored in a distributed manner. Therefore, when memorizing a character dot matrix pattern that does not fit the power of 2For each characterThe resulting free space aboveThe highest level of a specific address specified by the input addressm bitsthe abovespecificofBy assigning a value, free space for all characters,Font generator aboveuponRecord2 m In piecesEqually dividedMemoryIdentify above areaofAddress area specified by valueStorage area corresponding toGather inCanThe
  Thus, the font generatorStorage areaBy forming continuous free space on top, free space that can be used effectively is formed.The
[0017]
  AndThis does not occur when a dot matrix pattern whose size does not fit the power of 2 is stored in the font generator.SkyThis area is released to the user as a nonvolatile memory. Also,The same address as the row address and character address of the specific address ( A0-A13 ) And the most significant m bits of the input address and the selection signal ( SLC ) Output data selection means for selecting any of output data from the rewritable memory, font data from the font generator, and data other than the font data from the nonvolatile memory of the font generator, based on Because we preparedthe aboveRewritableThe memory address isNon-volatileShared with memory address. Thus, the address generation circuit for the rewritable memory is saved.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
  Hereinafter, the present invention will be described in detail with reference to the illustrated embodiments.
<First embodiment>
  FIG. 1 shows the address space of the font generator of this embodiment.
  The font generator 11 has a storage capacity of 256K bits. If the font generator 11 stores character patterns within 1024 character types, the character address is 10 bits (2Ten= 1024) Necessary. Also, as shown in FIG. 2, it is assumed that the size of the character dot matrix pattern is 12 vertical dots × 12 horizontal dots that do not fit the power of 2, and font data is stored in 4 bits per word.
[0019]
  Here, the address of the font generator 11 is 16 bits from A0 to A15. Then, 10 bits of the addresses A4 to A13 are assigned to the character address. On the other hand, 6 bits of addresses A0 to A3, A14, and A15 are assigned to the scan address. Further, among the scan addresses A0 to A3, A14, and A15, the lower 4 bits of the addresses A0 to A3 are assigned to the row address.
[0020]
  Further, as described above, the font generator 11 has a storage capacity of 256 K bits, and a maximum of 1024 = 2.TenCan store character patterns of character types. Therefore, the storage capacity of one character is 256 bits, and as shown in FIG. 2, the one character area 14 is 16 dots long × 16 dots wide. Here, since one word is 4 bits, it is necessary to express 16 horizontal dots of one character area 14 with four words. Therefore, at the time of reading, it is necessary to divide one character area 14 into four areas a, b, c, and d by 16 dots vertically and 4 dots horizontally and to scan the row address four times.
  Therefore, in the present embodiment, the most significant 2 bits of the addresses A14 and A15 among the scan addresses A0 to A3, A14 and A15 are assigned to the designation of the four areas a, b, c and d.
[0021]
  As a result, by storing a character dot matrix pattern having a size of 12 dots vertically by 12 dots horizontally in each of the character areas 14 of the font generator 11 as shown in FIG. In the minimum address area A obtained by equally dividing 11 address spaces into four areas A, B, C, and D in ascending order of addresses, the word data of the area a of the one character area 14 is stored. Hereinafter, the word data of the area b of the one-character area 14 is stored in the area B of the font generator 11, the word data of the area c is stored in the area C, and the word data of the area d is stored in the area D. It will be.
  That is, a continuous empty area 13 is formed in the maximum address area D of the font generator 11. Hereinafter, 192K bits of the areas A to C used as an actual font generator are referred to as a font storage area 12.
[0022]
  The reading operation from the font generator 11 is performed as follows.
  16-bit addresses A0 to A15 are input to the font generator 11. Then, for the combination (0,0), (0,1), (1,0) of the most significant 2 bits of the addresses A14 and A15 among the addresses A0 to A15, the character specified by the character address A4 to A13 The partial dot matrix pattern is scanned in synchronization with the clock CLK according to the lower 4 bits of the scan addresses A0 to A3. In this way, font data of one character is output at a cycle of clock CLK48 (number of row addresses “16” × number of combinations of addresses A14 and A15 “3”).
[0023]
  If the combination of the most significant 2-bit addresses A14 and A15 is (1, 1) and data is read from the empty area 13 of the font generator 11, data invalidation means (not shown) is used. The read output data is set to high impedance.
[0024]
  As described above, in the present embodiment, when storing a dot matrix pattern of vertical 12 dots × horizontal 12 dots that does not conform to the power of 2 in the 256 Kbit font generator 11, the dot matrix of one character is stored. The combination (1,1) of the most significant 2-bit addresses A13 and A14 is assigned to the empty area generated in the one character area 14 which is the maximum value. As a result, all the empty areas of the one character area 14 are continuously present on the higher address side in the address space of the font generator 11.
  Therefore, a continuous 64K-bit empty area 13 can be formed on the upper address side of the font generator 11, and as a result, the 256K-bit font generator 11 can be reduced to 192K bits.
[0025]
  In the above embodiment, the combination (1, 1) of the most significant 2 bits of the addresses A13 and A14 among the addresses A0 to A14 is assigned to the empty area of the one character area 14. It is not limited to. For example, when the 1 character area is 8 words in the vertical direction and 8 words in the horizontal direction, and the empty area is expressed by 2 words, the combination of the most significant 3 bits of addresses (1, 1, 0), (1, 1 , 1) is assigned.
[0026]
<Second Embodiment>
  The font generator in this embodiment has a storage capacity of 256K bits. If the font generator stores character patterns of up to 1024 character types, the character address is 10 bits (2Ten= 1024) Necessary. Also, as shown in FIG. 3, it is assumed that the size of the character dot matrix pattern is 12 vertical dots × 12 horizontal dots that do not fit the power of 2, and font data is stored in 8 bits per word.
[0027]
  In this embodiment, the address of the font generator is 15 bits A0 to A14. Then, 10 bits of the addresses A3 to A12 are assigned to the character address. On the other hand, 5 bits of addresses A0 to A2, A13, and A14 are assigned to the scan address. Further, among the scan addresses A0 to A2, A13, and A14, the addresses A1, A2, A13, and A14 are assigned to the row address.
[0028]
  Similarly to the first embodiment, one character area 15 is 16 dots long × 16 dots wide. Here, since one word is 8 bits, it is necessary to express 16 horizontal dots of one character area 15 with two words. Therefore, at the time of reading, it is necessary to equally divide one character area 15 into two areas e and f by 16 dots vertically and 8 dots horizontally and scan the row address twice.
  Therefore, in the present embodiment, as shown in FIG. 3, the address A0 of the least significant bit among the scan addresses A0 to A2, A13, and A14 is assigned to the designation of the two areas e and f.
[0029]
  As a result, the combination of the most significant 2 bits of the addresses A13 and A14 in each character area 15 of the font generator is sized in the row address space of (0,0), (0,1), (1,0). By storing the character dot matrix pattern of 12 dots vertically × 12 dots horizontally, the word data of the region g of the one character region 15 is stored in the region corresponding to the minimum address region A shown in FIG. Hereinafter, the word data of the area h of the one character area 15 is stored in the area corresponding to the area B, the word data of the area i is stored in the area corresponding to the area C, and the area corresponding to the area D is the area. j word data is stored.
  That is, a continuous free area is formed in an area corresponding to the maximum address area D shown in FIG.
[0030]
  The reading operation from this font generator is performed as follows.
  Partial dot matrix pattern of characters specified by the character address A3 to A12 with respect to the combination (0,0), (0,1), (1,0) of the addresses (A13, A14) among the addresses A0 to A14 However, the areas e and f are alternately scanned in synchronization with the clock CLK in accordance with the scan addresses A0 to A2 of the lower 3 bits. In this way, font data of one character is output in a cycle of clock CLK24 (number of combinations of addresses A1 and A2 “4” × number of combinations of addresses A15 and A14 “3” × number of states of address A0 “2”).
[0031]
  If the combination of the most significant 2-bit addresses A13 and A14 is (1, 1) and data is read from the empty area of the font generator, the data invalidation means (not shown) The read data is set to high impedance.
[0032]
  As described above, in the present embodiment as well, when a dot matrix pattern of vertical 12 bits × horizontal 12 bits that does not conform to a power of 2 is stored in a 256 Kbit font generator, a dot matrix area for one character is used. A combination (1, 1) of the most significant 2-bit address is assigned to an empty area generated in a certain character area 15. As a result, all the empty areas of the one character area 15 are continuously present on the upper address side in the address space of the font generator.
  Therefore, a continuous 64K-bit empty area can be formed on the upper address side of the font generator, and as a result, the 256K-bit font generator can be reduced to 192K bits.
[0033]
<Third Embodiment>
  This embodiment is formed by applying the first and second embodiments when a character dot matrix pattern of vertical 12 dots × horizontal 12 dots that does not fit the power of 2 is stored in a 256 Kbit font generator. The present invention relates to a method for effectively using the free space that has been used.
  However, in the following description, the case where the first embodiment is applied will be described as an example.
[0034]
  FIG. 4 is a block diagram of the font generator apparatus according to the present embodiment.
  In FIG. 4, the font generator 16 has the same address space as the font storage area 12 in the font generator 11 shown in FIG. The RAM 17 (random access memory) has the same storage capacity of 64K bits as the empty area 13 in the font generator 11 shown in FIG. 1, and has an address space accessed by addresses A0 to A13. That is, in the present embodiment, the address for the empty area 13 of the font generator 11 in the first embodiment is effectively used as the address for the RAM 17.
[0035]
  16-bit addresses A0 to A15 generated by an address conversion circuit (not shown) are supplied to the font generator 16. The lower addresses A0 to A13 of the addresses A0 to A15 are supplied to the RAM 17, while the highest addresses A14 and A15 are supplied to the multiplexer 18. Then, the multiplexer 18 selects either the output data from the font generator 16 or the output data from the RAM 17 according to the most significant addresses A14 and A15, and outputs the selected data to the outside.
[0036]
  The font generator device configured as described above operates as follows to read font data.
  When a JIS code is given to the address conversion circuit, addresses A0 to A15 of the font generator 16 are generated and supplied to the font generator 16. Then, the font generator 16 performs the first implementation when the combination of the most significant addresses A14 and A15 among the input addresses A0 to A15 is (0,0), (0,1), (1,0). Font data is output as described in the embodiment.
  On the other hand, the RAM 17 outputs the data designated by the addresses A0 to A13 regardless of the combination of the highest addresses A14 and A15.
[0037]
  The multiplexer 18 receives the most significant 2 bits of the addresses A14 and A15, and when the combination of the addresses A14 and A15 is (0,0), (0,1), (1,0), the font generator 16 The font data from is output to the outside. On the other hand, when the combination of the addresses A14 and A15 is (1, 1), the data from the RAM 17 is output to the outside.
[0038]
  As described above, in this embodiment, the font generator 16 having a storage capacity of 192 Kbits is used, and the first embodiment is applied so that the vertical 12 dots × the horizontal 12 dots that do not fit the power of 2 are used. A character dot matrix pattern is stored. Therefore, it is possible to store a character dot matrix pattern having a size that does not conform to the power of 2 so that a useless area does not occur.
  Since the combination (1, 1) of the most significant 2 bits of the addresses A0 to A13 among the 16 bits of the addresses A0 to A15 for the font generator 16 is assigned to the RAM 17, the addresses A0 to A0 for the font generator 16 are assigned. The RAM 17 can be accessed using A15. Therefore, an address conversion circuit for the RAM 17 is not required, and the circuit configuration can be simplified.
[0039]
  The RAM 17 is configured to have the same address space as the empty area 13 in the font generator 11 shown in FIG. Then, the addresses A0 to A15 may be supplied to the RAM 17, and the data may be extracted separately from the font generator 16 and the RAM 17 without using the multiplexer 23.
[0040]
<Fourth embodiment>
  In this embodiment, when a character dot matrix pattern of vertical 12 dots × horizontal 12 dots that does not fit the power of 2 is stored in a 256 Kbit font generator, the first and second embodiments are applied. The present invention relates to another method in which a user or the like effectively uses the formed free space.
  However, in the following description, the case where the first embodiment is applied will be described as an example.
[0041]
  FIG. 5 is a block diagram of the font generator apparatus of the present embodiment.
  The font generator 21 in the present embodiment has a storage capacity of 256 K bits. The font generator 21 stores character patterns within 1024 character types of 12 vertical dots × 12 horizontal dots that do not fit the power of 2 in 4 bits per word.
[0042]
  The address of the font generator 21 is 16 bits A0 to A15, and addresses A4 to A13 are assigned to the character address. On the other hand, addresses A0 to A3, A14, and A15 are assigned to scan addresses. Of the scan addresses A0 to A3, A14, and A15, the lower four bits of the addresses A0 to A3 are assigned to the row address.
  Then, as described in the first embodiment, a 64K-bit free area 21b is formed on the upper address side of the font generator 21.
[0043]
  Therefore, in the present embodiment, a 192 Kbit area on the lower address side of the font generator 21 is used as the font storage area 21a. Then, the 64K-bit empty area 21b on the higher address side is released to the user as a user area, and a dot matrix pattern of the user's own characters is stored or made available as a program storage area.
[0044]
  Furthermore, in the present embodiment, as shown in FIG. 6, a RAM 22 having the same storage capacity of 64 K bits as the user area 21b and having an address space accessed by addresses A0 to A13 is provided. Then, the addresses A0 to A15 generated by the address conversion circuit (not shown) are supplied to the font generator 21. Further, the lower addresses A0 to A13 of the addresses A0 to A15 are supplied to the RAM 22, and the most significant 2 bits of the addresses A14 and A15 are supplied to the multiplexer 23.
  The multiplexer 23 selects either the output data from the font generator 21 or the output data from the RAM 22 according to the selection signal SLC and the most significant addresses A14 and A15 input from the outside, and outputs them to the outside. .
[0045]
  The font generator device configured as described above operates as follows to read font data.
  When a JIS code is given to the address conversion circuit, addresses A0 to A15 of the font generator 21 are generated and supplied to the font generator 21. Then, when the combination of the most significant addresses A14 and A15 among the addresses A0 to A15 is (0, 0), (0, 1), (1, 0), the font generator 21 is the first embodiment. The font data in the font storage area 21a is output as described above. In the case of (1, 1), the data of the user area 21b is output.
  On the other hand, the RAM 22 outputs the data designated by the addresses A0 to A13 regardless of the combination of the highest addresses A14 and A15.
[0046]
  The multiplexer 23 outputs the output data of the RAM 22 to the outside when the selection signal SLC is “1” and the combination of the most significant addresses A14 and A15 is (1, 1). In other cases, output data from the font generator 21 is output to the outside. Therefore, when the selection signal SLC is “0” and the combination of the highest addresses A14 and A15 is (1, 1), the data in the user area 21b is output to the outside. When the selection signal SLC is “0” and the combination of the highest addresses A14 and A15 is (0, 0), (0, 1), (1, 0), the font storage area The font data 21a is output to the outside.
[0047]
  As described above, in this embodiment, a 64-Kbit free space generated by storing a character dot matrix pattern of 12 bits in length × 12 bits in width that does not fit the power of 2 in the 256-Kbit font generator 21 is stored in the user. The area 21b is further provided with a 64K-bit RAM 22 having an address space accessed by addresses A0 to A13. The multiplexer 23 selects either the output data from the font generator 21 or the output data from the RAM 22 in accordance with the selection signal SLC and the most significant addresses A14 and A15, and outputs them to the outside.
  Therefore, the empty area of the font generator 21 can be released to the user and used effectively. Further, the circuit configuration can be simplified by using the address conversion circuit for the font generator 21 as the address conversion circuit for the RAM 22.
[0048]
  In the third and fourth embodiments, the case where the address assignment according to the first embodiment is applied to the font generators 16 and 21 is described as an example. However, it is also possible to apply the address assignment according to the second embodiment. However, in that case, 15-bit addresses A0 to A14 are supplied to the font generators 16 and 21, and the multiplexers 18 and 23 may select output data according to the combination of the most significant bits A13 and 14. .
[0049]
【The invention's effect】
  As is clear from the above, the font generator of the invention according to claim 1apparatusIndicates that one character area, the maximum value of the dot matrix pattern, is 2 in the vertical or horizontal direction.mThe font generator's address space2 mDivided into equal parts and this equally divided address area2 corresponding to m Storage areasIn each of the above partial character areasRepresents font dataWord data is stored and input addressSpecific address identified byEach of the above divided m bitsaddressSince one dot matrix pattern is allocated to the area, the address space of the font generator is2 m In each address area equally divided intoCorresponding 2 m Storage areasStored in a distributed manner.
  Therefore, the above-described vacant area generated when a dot matrix pattern having a size that does not fit the power of 2 is stored.Top of specific addressSpecify m bitsofBy assigning a value, free space of all characters isStorage areaThe above specified inofAddress area specified by valueStorage area corresponding toCan be collected. That is, according to the present invention, the font generatorStorage areaA continuous free space can be formed on the top and effective use of the free space can be achieved.The
[0050]
  further,2 above m Rewrite the storage area other than the storage area in which the word data representing the font data is stored as a non-volatile memory and accessed at the same address as the row address and character address of the specific address. And the output data from the rewritable memory, the font data from the font generator, and the non-volatile memory of the font generator based on the most significant m bits of the input address and the selection signal. Output data selection means for selecting any data other than the font dataTherefore, a free area generated when a dot matrix pattern having a size that does not conform to the power of 2 is stored can be released to the user as a nonvolatile memory, so that the free area can be effectively used.
  Further, since the address of the non-volatile memory and the address for the rewritable memory can be shared, the address generation circuit for the rewritable memory becomes unnecessary. Therefore, the circuit configuration is simplified.
[Brief description of the drawings]
FIG. 1 is a diagram showing an address space in a font generator of the present invention.
2 is an explanatory diagram of a method of assigning a character dot matrix pattern of 12 vertical dots × 12 horizontal dots for the address space shown in FIG. 1; FIG.
FIG. 3 is an explanatory diagram of a character dot matrix pattern assignment method different from FIG. 2;
FIG. 4 is a block diagram of a font generator device in which a character dot matrix pattern is stored according to FIG.
5 is a block diagram of a font generator device different from FIG.
6 is a diagram illustrating an address space of a font generator and a RAM in FIG. 5;
FIG. 7 is an explanatory diagram of a storage state in a conventional font generator.
FIG. 8 is a block diagram of a conventional font generator device.
9 is a diagram showing a storage state when a character dot matrix pattern of 12 vertical dots × 12 horizontal dots is stored by the storage method shown in FIG.
10 is an explanatory diagram of an empty area on the address space of the font generator when a character dot matrix pattern is stored in the storage state shown in FIG. 9. FIG.
[Explanation of symbols]
11, 16, 21 ... Font generator,
12, 21a: Font storage area, 13: Free area,
14, 15 ... 1 character area, 17, 22 ... RAM,
18, 23: Multiplexer, 21b: User area.

Claims (1)

複数のドットマトリックスパターンが記憶されるフォントジェネレータを備え
当該フォントジェネレータには、連続してアドレスが付与されており、
当該フォントジェネレータのアドレス空間が2 m ( mは正の整数 ) に等分割されたアドレス領域が定義されており、
上記アドレス領域に対応する記憶領域には、上記ドットマトリックスパターンの最大値である1文字領域を縦方向あるいは横方向に2 m に等分割してなる各部分文字領域のフォントデータを表す語データが格納され、
上記ドットマトリックスパターンを読み出すために入力される入力アドレスによって特定される特定アドレスの最上位mビット、上記分割された各アドレス領域に割り付けられており、
上記特定アドレスの最下位n ( nは正の整数 ) ビットが、ローアドレスに割り付けられており、
上記特定アドレスにおける最下位nビットおよび最上位mビットを除くビットが、文字番地アドレスに割り付けられており、
上記2 m 個のアドレス領域に対応する上記2 m 個の記憶領域のうち、上記フォントデータを表す語データが格納される記憶領域以外の記憶領域は、不揮発性メモリとして機能し、
上記特定アドレスの上記ローアドレスおよび文字番地アドレスと同じアドレス ( A0〜A13 ) でアクセスされる書き換え可能メモリと、
上記入力アドレスの最上位mビットと選択信号 ( SLC ) とを受けて、上記入力アドレスの最上位mビットの値が特定の値であり、且つ、上記選択信号が上記書き換え可能メモリを選択すべき選択信号である場合には、上記書き換え可能メモリからの出力データを選択する一方、上記選択信号が上記フォントジェネレータを選択すべき選択信号である場合には、上記フォントジェネレータからの出力データを選択する出力データ選択手段と
をさらに備え、
上記入力アドレスの最上位mビットの値が上記特定の値であり、且つ、上記選択信号が上記フォントジェネレータを選択すべき選択信号である場合には、上記フォントジェネレータにおける上記入力アドレスで指定される上記2 m 個の記憶領域のうちの不揮発性メモリから上記フォントデータ以外のデータが出力される一方、
上記入力アドレスの最上位mビットの値が上記特定の値以外の値であり、且つ、上記選択信号が上記フォントジェネレータを選択すべき選択信号である場合には、上記フォントジェネレータにおける上記入力アドレスで指定される上記2 m 個の記憶領域のうちの語データが格納される記憶領域から上記フォントデータが出力される
ことを特徴とするフォントジェネレータ装置
A font generator that stores multiple dot matrix patterns
The font generator is continuously assigned addresses,
Address space 2 m pieces of the font generator (m is a positive integer) are equally divided address region is defined,
In the storage area corresponding to the address area, word data representing font data of each partial character area obtained by equally dividing one character area which is the maximum value of the dot matrix pattern into 2 m pieces in the vertical direction or the horizontal direction. Is stored,
Most significant m bits of a particular address specified by the input address input to read the dot matrix pattern, and assigned to the divided respective address regions,
The least significant n bits ( where n is a positive integer ) of the specific address are assigned to the row address,
Bits other than the lowest n bits and the highest m bits in the specific address are assigned to the character address,
Of the 2 m pieces of memory area corresponding to the 2 m pieces of address area, the storage area other than the storage area the word data representing the font data is stored, acts as a non-volatile memory,
A rewritable memory that is accessed at the same address ( A0 to A13 ) as the row address and character address of the specific address ;
In response to the most significant m bits of the input address and the selection signal ( SLC ) , the value of the most significant m bits of the input address is a specific value, and the selection signal should select the rewritable memory When the selection signal is a selection signal, the output data from the rewritable memory is selected. On the other hand, when the selection signal is a selection signal for selecting the font generator, the output data from the font generator is selected. With output data selection means
Further comprising
When the most significant m-bit value of the input address is the specific value and the selection signal is a selection signal for selecting the font generator, it is specified by the input address in the font generator. While data other than the font data is output from the non-volatile memory of the 2 m storage areas,
When the value of the most significant m bits of the input address is a value other than the specific value and the selection signal is a selection signal for selecting the font generator, the input address in the font generator is font generator device according to claim <br/> to the font data from the storage area where the word data of the above specified 2 m pieces of storage area is stored is output that.
JP06782197A 1997-03-21 1997-03-21 Font generator device Expired - Fee Related JP3863961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06782197A JP3863961B2 (en) 1997-03-21 1997-03-21 Font generator device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06782197A JP3863961B2 (en) 1997-03-21 1997-03-21 Font generator device

Publications (2)

Publication Number Publication Date
JPH10268859A JPH10268859A (en) 1998-10-09
JP3863961B2 true JP3863961B2 (en) 2006-12-27

Family

ID=13356001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06782197A Expired - Fee Related JP3863961B2 (en) 1997-03-21 1997-03-21 Font generator device

Country Status (1)

Country Link
JP (1) JP3863961B2 (en)

Also Published As

Publication number Publication date
JPH10268859A (en) 1998-10-09

Similar Documents

Publication Publication Date Title
US4698691A (en) Halftone image processing method
CA1209244A (en) Compaction and decompaction of non-coded information bearing signals
US3893100A (en) Variable size character generator with constant display density method
US4468141A (en) Character generator
US5745249A (en) Pipelined architecture for patterned halftone generation
KR970004237B1 (en) Letter generating method and its apparatus
JPH0432362A (en) Picture integration processing unit
EP0085210A1 (en) Image processing system
JP3863961B2 (en) Font generator device
EP0106201A2 (en) Display control circuit for reading display data from a video RAM constituted by a dynamic RAM, thereby refreshing memory cells of the video RAM
US6560686B1 (en) Memory device with variable bank partition architecture
US5640249A (en) Image processing apparatus using derived ordered dither matrix
JP2000242258A (en) Font memory and method for reading out font data
US4510617A (en) Character recognition system utilizing pattern matching method
US4642622A (en) Video signal generating circuit
US4417318A (en) Arrangement for control of the operation of a random access memory in a data processing system
US6122702A (en) Memory cells matrix for a semiconductor integrated microcontroller
JP2502530B2 (en) Printer
JPH03127187A (en) Computer graphics apparatus and method of the same
JPS5816189B2 (en) Character pattern generation method
JPS636593A (en) Character pattern generator
JP2009105695A (en) Image forming apparatus, and image forming system
JP2846357B2 (en) Font memory device
KR910000593B1 (en) A method for generating characters which are enlarged horizontally
JP3059618B2 (en) Image control device

Legal Events

Date Code Title Description
A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20031126

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20040305

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060901

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061002

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091006

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101006

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111006

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees