JPH03131899A - Pattern conversion circuit - Google Patents

Pattern conversion circuit

Info

Publication number
JPH03131899A
JPH03131899A JP1269977A JP26997789A JPH03131899A JP H03131899 A JPH03131899 A JP H03131899A JP 1269977 A JP1269977 A JP 1269977A JP 26997789 A JP26997789 A JP 26997789A JP H03131899 A JPH03131899 A JP H03131899A
Authority
JP
Japan
Prior art keywords
data
memory
read
bit
bit position
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
JP1269977A
Other languages
Japanese (ja)
Inventor
Ichiro Kajitani
一郎 梶谷
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP1269977A priority Critical patent/JPH03131899A/en
Publication of JPH03131899A publication Critical patent/JPH03131899A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the number of times of an instruction fetch cycle, to reduce a load on a CPU, and to accelerate conversion speed by selectively taking out data at a designated bit position, and outputting data of (n) bits taken out as a result of readout for (n) times from a memory. CONSTITUTION:A control means 6 issues a readout signal to the memory 1 for (n) times corresponding to the column readout instruction of the CPU 5, and an address designation means 7 performs the address designation of data of (m) bits which belongs to the same column of pattern data corresponding to the issuance of the readout signal from the control means 6. Also, a bit position designation means 8 designates a bit position. A selection means 10 selectively takes out the data at the bit position designated with the bit position designation means 8 at every readout of the data of (m) bits whose address is designated with the address designation means 7 from the memory 1 based on the readout signal, and outputs the data of (n) bits taken out as the result of readout for (n) times from the memory 1. In such a way, it is possible to reduce the number of times of the instruction fetch cycle, and to reduce the load on the CPU, and to accelerate the conversion speed.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、メモリに書込まれたM列XN行のパターンデ
ータを列方向で読出し出力するパターン変換回路に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pattern conversion circuit that reads and outputs pattern data of M columns and XN rows written in a memory in the column direction.

[従来の技術] (1)背景 近年においては、イメージデータ等のパターンデータを
取扱うワードプロセッサ等の情報処理機器が用いられる
ようになっている。
[Prior Art] (1) Background In recent years, information processing devices such as word processors that handle pattern data such as image data have come into use.

このような情報処理機器では、メモリに格納されたパタ
ーンデータの方向を90度変換して出力するパターン変
換回路が用いられるようになっている。
Such information processing equipment uses a pattern conversion circuit that converts the direction of pattern data stored in a memory by 90 degrees and outputs the result.

(2)メモリ及びパターンデータの構造第6図には、8
ビット単位でアクセス可能なメモリ1が示され、更に該
パターンメモリ1の各行には、0.1.2.・・・のア
ドレスが付与されている。
(2) Memory and pattern data structure Figure 6 shows 8
A bit-wise accessible memory 1 is shown, and each row of the pattern memory 1 has 0.1.2 . ... has been assigned an address.

第7図には、メモリ1に格納されるパターンデータの構
造が示されている。メモリ1に格納されるパターンデー
タが、3行×5列に配置された単位パターンデータから
構成されるデータであり、更にこの単位パターンデータ
が縦8ビツト×横8ビツトのデータである場合、メモリ
1のアドレス0〜4をパターンデータの第0行の0ビツ
ト目に属する8ビツトデータD   D、  ・・・ 
D4に0’   1 順に割り当て、次にメモリ1のアドレス5〜9をパター
ンデータの第0行の1ビツト目に属するデータに割り当
てるというように、順次、データとパターンメモリ1と
を対応づけるならば、第7図に示される構造のパターン
データを第6図に示されるメモリ1に格納することがで
きる。
FIG. 7 shows the structure of pattern data stored in the memory 1. If the pattern data stored in memory 1 is data consisting of unit pattern data arranged in 3 rows x 5 columns, and furthermore, this unit pattern data is data of 8 bits vertically x 8 bits horizontally, the memory Addresses 0 to 4 of 1 are 8-bit data belonging to the 0th bit of the 0th row of the pattern data D D, . . .
If we sequentially associate data with pattern memory 1 by sequentially assigning 0' 1 to D4 and then assigning addresses 5 to 9 of memory 1 to the data belonging to the 1st bit of the 0th row of pattern data. , pattern data having the structure shown in FIG. 7 can be stored in the memory 1 shown in FIG.

(3)第1の従来方法 次に、従来のパターン変換回路におけるパターン変換の
方法を説明する。
(3) First conventional method Next, a pattern conversion method in a conventional pattern conversion circuit will be explained.

従来のパターン変換は、例えば特公昭61−32990
号公報に開示された装置で実現される。
Conventional pattern conversion is, for example, disclosed in Japanese Patent Publication No. 61-32990.
This is realized by the device disclosed in the publication.

第8図には、この従来装置によるパターン変換の方法が
概略的に示されている。
FIG. 8 schematically shows a pattern conversion method using this conventional device.

この従来方法においては、パターンデータはメモリーか
らmビット(例えば8ビツト)毎に書込み/読出しされ
る。例えば、第7図において斜線で示される領域に書き
込まれたデータXの読出しくいわゆる列読出し)を行お
うとする場合には、第8図において2で示されるレジス
タに、まずデータDoが読み出される。次に、アドレス
0と斜線領域とが交わるビット、すなわちデータD の
先頭ビットのデータX がレジスタ2内で左方向への1
ビットシフト動作により取出される。このビットデータ
Xlは、他のレジスタ3に、右方向に1ビツトのシフト
により格納される。
In this conventional method, pattern data is written/read from memory every m bits (eg, 8 bits). For example, when attempting to read data X written in the area shown by diagonal lines in FIG. 7 (so-called column read), data Do is first read into the register shown by 2 in FIG. 8. Next, the bit where address 0 intersects with the shaded area, that is, the first bit of data
Extracted by bit shift operation. This bit data Xl is stored in another register 3 by shifting one bit to the right.

この後に、前記レジスタ2にデータD5が読み出される
。データD。の読出しの際の動作と同様に、データD5
の先頭ビットのデータX2が前記レジスタ3に格納され
る。そして、この読出しが、アドレス35まで繰り返さ
れると、斜線領域の先頭ビットデータXlがすべて読み
出され、レジスタ3に格納される。
After this, data D5 is read into the register 2. Data D. Similarly to the operation when reading data D5
Data X2 of the first bit of is stored in the register 3. When this reading is repeated up to address 35, all of the leading bit data Xl in the shaded area is read out and stored in register 3.

なお、読出し対象である斜線領域がメモリ1の0列目で
ない場合は、前記レジスタ2における左方向へのシフト
が、読出し対象領域の属するビット位置付だけ行われる
Note that if the diagonally shaded area to be read is not in the 0th column of the memory 1, the leftward shift in the register 2 is performed by the bit position to which the read target area belongs.

このように、この従来方法においては、メモリ1の各行
ごとの読出し及びレジスタ2とレジスタ3のシフト動作
により、データの列読出しが行われ、パターンデータを
90@方向変換して出力することが可能である。
In this way, in this conventional method, column reading of data is performed by reading each row of memory 1 and shifting operations of registers 2 and 3, and it is possible to convert pattern data in 90@ direction and output it. It is.

(4)第2の従来方法 また、従来のパターン変換方法としては、例えば第9図
に示されるような方法があり、この方法は、例えば特開
昭55−10647号公報に開示された装置において採
用されている。
(4) Second conventional method Furthermore, as a conventional pattern conversion method, there is a method as shown in FIG. 9, for example. It has been adopted.

この従来方法においては、前記レジスタ2に読み出され
た8ビツトのデータがいったん8ビツト×8ビツトのレ
ジスタ4に格納される。この読出し及び格納が8回繰返
され、前記レジスタ4へのデータの格納が終了したとき
に、このレジスタ4の0列についてレジスタ3への読出
しを行うことにより、第7図に示される斜線領域に格納
されている8ビツトデータが読出される。
In this conventional method, the 8-bit data read into the register 2 is once stored in the 8-bit×8-bit register 4. This reading and storing is repeated 8 times, and when the storage of data in the register 4 is completed, the 0 column of this register 4 is read out to the register 3, so that the shaded area shown in FIG. The stored 8-bit data is read.

[発明が解決しようとする課題] (1)従来の問題点 しかしながら、従来においては、次のような問題点があ
った。
[Problems to be Solved by the Invention] (1) Conventional Problems However, in the past, there were the following problems.

例えば、第8図に示される第1の従来方法においては、
CPUを用いてソフトウェアで処理する場合、メモリか
らのデータ読出しく1命令)及びレジスタのシフトに係
る命令(2命令)のフェッチサイクルが必要である。こ
の場合、第7図の斜線領域についての読出しには、アド
レス計算を除き、データ変換のみで3X8−24フエツ
チサイクルが必要である。
For example, in the first conventional method shown in FIG.
When processing by software using a CPU, fetch cycles are required for one instruction for reading data from memory and two instructions for shifting registers. In this case, reading the shaded area in FIG. 7 requires 3.times.8-24 fetch cycles for data conversion only, excluding address calculation.

また、第9図に示される第2の従来方法による回路にお
いては、同様にCPUによれば、メモリ1からのデータ
読出し及びレジスタ4へのデータ書込み(2命令)及び
ビット列データの読出しく1命令)のフェッチサイクル
が必要であって、第7図の斜線領域のデータ取り出しに
は、2X8+1−17フエツチサイクルが必要である。
Similarly, in the circuit according to the second conventional method shown in FIG. ) are required, and 2×8+1-17 fetch cycles are required to retrieve the data in the shaded area in FIG.

このように、従来のパターン変換方法におい1は、パタ
ーン変換に多大な命令フェッチサイクツ。
As described above, in the conventional pattern conversion method, the first problem is that pattern conversion requires a large amount of instruction fetch cycles.

が必要であり、従ってCPUの負担が大であり、変換速
度が遅い等の問題が生じていた。
, which places a heavy burden on the CPU and causes problems such as slow conversion speed.

(2)発明の目的 本発明は、このような問題点を解決すること蔓課題とし
てなされたものであり、命令フェッチカイクルが低減さ
れ、従って、CPUの負担が小きく、高速変換が実現可
能なパターン変換回路を扛倶することを目的とする。
(2) Purpose of the Invention The present invention was made to solve these problems, and the instruction fetch cycles are reduced, so the load on the CPU is reduced, and high-speed conversion can be realized. The purpose is to create a pattern conversion circuit.

[課題を解決するための手段] 前記目的を達成するために、本発明は、CPLの列読出
し命令に応じて前記メモリに読出し信ηをn回発する制
御手段と、制御手段による読出し信号の発生に応じてパ
ターンデータの同じ列に【するmビットのデータをアド
レス指定するアトトス指定手段と、ビット位置を指定す
るビット位惰指定手段と、読出し信号に基づいてアドレ
ス指双手段によりアドレス指定されるmビットのデータ
がメモリから読出されるたびにビット位置指定手段によ
り指定されたビット位置のデータを選択して取出し、メ
モリからのn回の読出しの結果取出されたnビットのデ
ータを出力する選択手段と、を備えたことを特徴とする
[Means for Solving the Problem] In order to achieve the above object, the present invention provides a control means for issuing a read signal η n times to the memory in response to a column read command of a CPL, and a control means for generating a read signal by the control means. m bits of data to be addressed in the same column of pattern data according to the data, bit position specifying means for specifying the bit position, and address specifying means based on the readout signal. Selection of selecting and extracting data at a bit position specified by the bit position specifying means every time m-bit data is read from the memory, and outputting n-bit data extracted as a result of n times of reading from the memory. It is characterized by having a means.

[作用コ 本発明のパターン変換回路においては、CPUから列読
出し命令が発せられたときに、制御手段からn回、読出
し信号が順次メモリ及び選択手段に供給される。さらに
、メモリに格納されたパターンデータが、アドレス指定
に応じてmビット毎に読み出される。このアドレス指定
は、パターンデータの同じ列に属するデータを順次メモ
リから読出すように行われる。選択手段においては、こ
のようにして読出されたmビットのデータのうち、ビッ
ト位置指定手段により指定されたビット位置のデータが
選択され取出され、’ n行についての取出しの後にn
ビットのデータとして出力される。
[Function] In the pattern conversion circuit of the present invention, when a column read command is issued from the CPU, a read signal is sequentially supplied to the memory and the selection means n times from the control means. Furthermore, the pattern data stored in the memory is read out every m bits according to address designation. This addressing is performed so that data belonging to the same column of pattern data are sequentially read from the memory. In the selection means, among the m-bit data thus read out, the data at the bit position designated by the bit position designation means is selected and taken out, and after taking out n rows, n
Output as bit data.

従って、1個の列読出し要求でnビットのデータが取出
され、このデータはパターンデータの列方向のデータと
なる。
Therefore, n-bit data is taken out with one column read request, and this data becomes data in the column direction of the pattern data.

[実施例コ 以下、本発明の好適な実施例を、図面に基づいて説明す
る。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described based on the drawings.

なお、第6図乃至第9図に示される従来例と同様の構成
には、同一の符号を付し、説明を省略する。
Components similar to those of the conventional example shown in FIGS. 6 to 9 are denoted by the same reference numerals, and description thereof will be omitted.

(1)実施例の構成 第1図には、この実施例に係るパターン変換回路の構成
が示されている。以下、第1図に基づいて、この実施例
の構成を説明する。
(1) Configuration of Embodiment FIG. 1 shows the configuration of a pattern conversion circuit according to this embodiment. The configuration of this embodiment will be explained below based on FIG.

(A)実施例の全体構成 この実施例においては、CPU5には、メモリ1の列読
出しの際にメモリ読出し信号MRDを所定回数(8回)
発する制御ユニット6が接続されている。制御ユニット
6には、列読出し時にデータの読出しにかかる物理アド
レスS l0ADHを逐次更新し、かつビット位置BI
TADRの指定を行うアドレスユニット7が接続されて
いる。また、前記制御ユニット6の発する信号sIoに
より制御され、前記アドレスユニット7及びCPU5が
それぞれ接続されたセレクタ8は、アドレスバスA−B
US9を介してメモリ1に接続されている。 一方、前
記メモリlは、列読出し時にビット位置BITADHに
よりビットデータの選択を行う選択ユニット1oにデー
タバスD−BUS11を介して接続されている。またこ
の選択ユニット10は、前記セレクタ12に接続されて
いる。
(A) Overall configuration of the embodiment In this embodiment, the CPU 5 receives the memory read signal MRD a predetermined number of times (8 times) when reading a column of the memory 1.
A control unit 6 for emitting is connected. The control unit 6 sequentially updates the physical address S10ADH related to data readout during column readout, and updates the bit position BI
An address unit 7 for specifying TADR is connected. Further, the selector 8, which is controlled by the signal sIo issued by the control unit 6 and connected to the address unit 7 and the CPU 5, is connected to the address bus A-B.
It is connected to memory 1 via US9. On the other hand, the memory 1 is connected via a data bus D-BUS11 to a selection unit 1o that selects bit data based on the bit position BITADH during column reading. Further, this selection unit 10 is connected to the selector 12.

また、前記選択ユニッ)10は、前記制御ユニット6か
らのメモリ読出し信号MRDが入力可能に、該111m
ユニット6に接続されている。
Further, the selection unit) 10 is configured such that the memory read signal MRD from the control unit 6 can be inputted to the selection unit 111m.
Connected to unit 6.

(B)アドレスユニット7の構成 第2図には、本発明の特徴に係るアドレスユニット7の
詳細な構成が示されている。
(B) Structure of Address Unit 7 FIG. 2 shows a detailed structure of the address unit 7 according to the feature of the present invention.

このアドレスユニット7は、D−BUS 11に接続さ
れたビット位置レジスタ13、メモリ幅レジスタ14及
びセレクタ15と、該セレクタ15に接続された物理ア
ドレスレジスタ16と、該物理アドレスレジスタ16及
びメモリ幅レジスタ14に接続された加算器17と、が
ら構成されている。また、前記加算器17は前記セレク
タ15の入力端に接続されている。
This address unit 7 includes a bit position register 13, a memory width register 14, and a selector 15 connected to the D-BUS 11, a physical address register 16 connected to the selector 15, and a physical address register 16 and a memory width register. The adder 17 is connected to the adder 14. Further, the adder 17 is connected to the input terminal of the selector 15.

(C)選択ユニット10の構成 第3図には、本発明の特徴に係る選択ユニット10の詳
細な構成が示されている。
(C) Structure of selection unit 10 FIG. 3 shows a detailed structure of the selection unit 10 according to the feature of the present invention.

前記選択ユニット10は、前記メモリ1から読出された
データのうち1ビツトをビット位置BITADRにより
選択するセレクタ18と、このセレクタ18の出力をシ
リアル/パラレル変換するシフトレジスタ19と、から
構成されている。
The selection unit 10 is composed of a selector 18 that selects one bit of the data read from the memory 1 according to the bit position BITADR, and a shift register 19 that converts the output of the selector 18 from serial to parallel. .

(2)実施例の動作 第4図には、本実施例の動作が概略的に示され、また第
5図には、この実施例の動作が詳細に示されている。以
下、第4図及び第5図に基づ(1て、この実施例の動作
を説明する。
(2) Operation of the Embodiment FIG. 4 schematically shows the operation of this embodiment, and FIG. 5 shows the operation of this embodiment in detail. Hereinafter, the operation of this embodiment will be explained based on FIGS. 4 and 5.

(A)通常モード まず、パターン変換を行わずに、データの書込み/読出
しを行う動作(通常モード動作)について説明する。
(A) Normal Mode First, the operation of writing/reading data without performing pattern conversion (normal mode operation) will be described.

この場合、制御ユニット6は、信号510をrLJレベ
ルとし、従来と同様に、CPU5のメモリ書込み命令ま
たはメモリ読出し命令に応じて、メモリ1ヘメモリ書込
み信号MWRまたはメモリ読出し信号MRDを1回発生
する。信号SIOがrLJレベルの時は、セレクタ8は
CPU5からのアドレスを選択し、セレクタ12はメモ
リ1の出力を選択するので、メモリ1に対する通常の書
込み及び読出し動作が実現される。
In this case, control unit 6 sets signal 510 to rLJ level and generates memory write signal MWR or memory read signal MRD to memory 1 once in response to a memory write command or memory read command from CPU 5, as in the conventional case. When the signal SIO is at the rLJ level, the selector 8 selects the address from the CPU 5, and the selector 12 selects the output of the memory 1, so that normal write and read operations for the memory 1 are realized.

(B)パターン変換モード 次に、パターン変換回路の本来の目的機能であるパター
ン変換を行う際の動作(パターン変換モード動作)につ
いて説明する。
(B) Pattern Conversion Mode Next, the operation (pattern conversion mode operation) when performing pattern conversion, which is the original purpose function of the pattern conversion circuit, will be described.

第5図には、この実施例における動作タイミングが詳細
に示されている。この図において、−点鎖線は各信号間
の同期連動関係、二点鎖線はデータシフトを表わしてい
る。。
FIG. 5 shows the operation timing in this embodiment in detail. In this figure, the dashed-dotted line represents the synchronous interlocking relationship between each signal, and the dashed-two dotted line represents the data shift. .

まず、パターン変換動作に先立ち、前述の通常モード動
作によってビット位置レジスタ13及びメモリ幅レジス
タ14に読出すべきビット位置とパターンデータの幅を
示す値を設定する。この設定は、CPU5から与えられ
る5TATUS及びアドレスに応じて、制御ユニット6
から発せられるI10ライト信号10W1〜3により行
われる。
First, prior to the pattern conversion operation, values indicating the bit position to be read and the width of pattern data are set in the bit position register 13 and memory width register 14 by the normal mode operation described above. This setting is made by the control unit 6 according to the 5TATUS and address given from the CPU 5.
This is performed by I10 write signals 10W1 to 10W3 issued from.

次に、列読出し命令を実行するため、前記CPU5から
前記制御ユニット6にI10リードを示す5TATUS
 (rLJレベル)と特定のI10アドレスが与えられ
ると、5TATUSのrLJレベルへの立下がり直後に
到来するクロックPCLKの立上がりにより、SIOが
立上がり、列読出しを表す値になる。SIOがrHJレ
ベルになると、セレクタ8はアドレスユニット7からの
物理アドレス5IOADHを選択してメモリ1に出力す
る。更に、READYが立下がり、CPU5にウェイト
がかかる。
Next, in order to execute a column read command, the CPU 5 sends a 5TATUS signal indicating an I10 read to the control unit 6.
(rLJ level) and a specific I10 address, the rise of the clock PCLK that comes immediately after the fall of 5TATUS to the rLJ level causes SIO to rise to a value representing column read. When SIO reaches the rHJ level, selector 8 selects physical address 5IOADH from address unit 7 and outputs it to memory 1. Furthermore, READY falls and a wait is applied to the CPU 5.

次に、メモリ読出し信号MRDが、制御ユニット6から
クロックPCLKの所定周期(図においては4周期)毎
に8回発せられる。
Next, the memory read signal MRD is issued from the control unit 6 eight times at every predetermined cycle (four cycles in the figure) of the clock PCLK.

メモリ読出し信号MRDが発せられると、前記物理アド
レスレジスタ14の出力する物理アドレスS 10AD
Rにより指定されたデータD1がメモリ1から読み出さ
れる。このデータD、は、D−BUSl 1を介して、
選択ユニット10に供給される。
When the memory read signal MRD is issued, the physical address S10AD output from the physical address register 14 is
Data D1 specified by R is read from memory 1. This data D is transmitted via D-BUSl 1,
A selection unit 10 is supplied.

R択ユニット10においては、アドレスユニット7が指
定するビット位置B ITADHに基づいて、メモリ1
から入力されるデータDIのうち1ビツトのデータ(第
4図においては斜線で示されている)が選択される。
The R selection unit 10 selects the memory 1 based on the bit position B ITADH specified by the address unit 7.
One bit of data (indicated by diagonal lines in FIG. 4) is selected from the data DI inputted from the input data DI.

この選択は、第3図に示されるセレクタ18によって行
われる。すなわち、前記選択ユニット10に入力される
データD1は、まずこの選択ユニット10を構成するセ
レクタ18に入力される。
This selection is made by the selector 18 shown in FIG. That is, the data D1 input to the selection unit 10 is first input to the selector 18 forming the selection unit 10.

また、このセレクタ18には、前記アドレスユニット7
においてI10ライト信号l0WIにより設定されてい
るビット位置B ITADHが入力されている。前記セ
レクタ18においては、このビット位置B ITADH
により指定されるビットのデータのみが、Q端子から出
力され、シフトレジスタ19に入力される。
The selector 18 also includes the address unit 7.
The bit position B ITADH set by the I10 write signal l0WI is input. In the selector 18, this bit position B ITADH
Only the data of the bit specified by is output from the Q terminal and input to the shift register 19.

前記シフトレジスタ19においては、前記メモリ読出し
信号MRDが供給される毎に、前記セレクタ18から入
力されたデータの1ビツトシフトが行われる。例えば、
第5図において2点鎖線で示されているように、メモリ
読出し信号MRDの立上がり毎に、D−BUS 11上
のデータがシフトレジスタ19の7ビツト目に読み込ま
れ、既にこのシフトレジスタ19に格納されたビットデ
ータが順次左に1ビツトシフトする。
In the shift register 19, the data input from the selector 18 is shifted by one bit each time the memory read signal MRD is supplied. for example,
As shown by the two-dot chain line in FIG. 5, every time the memory read signal MRD rises, the data on the D-BUS 11 is read into the 7th bit of the shift register 19, and is already stored in this shift register 19. The resulting bit data is sequentially shifted one bit to the left.

更に、アドレスユニット7において、物理アドレス5I
OADHがメモリ幅の加算により更新される。
Furthermore, in the address unit 7, the physical address 5I
OADH is updated by adding the memory width.

このとき、前記セレクタ15は、SIOにより加算器1
7の出力を物理アドレスレジスタ16に出力しており、
制御ユニット6からメモリ読出し信号MRDの発生に応
じて同様に8回出力されるI10ライト信号10W4a
、10W5a、10W6aにより該物理アドレスレジス
タ16の内容が一斉に書き替えられる。
At this time, the selector 15 selects the adder 1 by SIO.
7 is output to the physical address register 16,
The I10 write signal 10W4a is similarly output eight times from the control unit 6 in response to the generation of the memory read signal MRD.
, 10W5a, and 10W6a, the contents of the physical address register 16 are rewritten all at once.

この実施例においてはメモリ幅は5であるのでこの更新
された物理アドレスS I 0ADRにより前記メモリ
lから読み出されるデータは、第4図に示されるように
、最初に読み出されたデータDIのアドレスに5を加え
たデータ、即ちデータD1+5である。
In this embodiment, the memory width is 5, so the data read from the memory I by this updated physical address S I 0ADR is the address of the first read data DI, as shown in FIG. This is data obtained by adding 5 to D1, that is, data D1+5.

このデータDi+5についても、同様にビット位置BI
TADRに基づ(ビットデータの選択及び前記シフトレ
ジスタ19への格納が行われる。
Similarly, regarding this data Di+5, the bit position BI
Based on TADR (bit data is selected and stored in the shift register 19).

そして、前記メモリ1からのデータ読出しが逐次、アド
レスユニット7において更新される物理アドレス5IO
ADHに基づいて8回行われると、前記シフトレジスタ
19の内容は、前記メモリ1からの出力に係るデータか
ら前記BITADRの指定により抽出した8ビツトのデ
ータXとなる。
Then, the data read from the memory 1 is sequentially updated at the physical address 5IO in the address unit 7.
When this is performed eight times based on ADH, the contents of the shift register 19 become the 8-bit data X extracted from the data related to the output from the memory 1 according to the specification of the BITADR.

第5図においては、前記メモリ1から8回目に読み出さ
れるデータDI+35からの選択ユニット19への入力
に先立ち、前記制御ユニット6から発せられるREAD
Yが立上げられている。このREADYの立上がりは、
PCLKによりラッチされ、前記CPU5のウェイトを
解除する。前記CPU5は、ウェイトが解除されると、
5TATUSを立上げる。この5TATUSの立上がり
は、この5TATUSがI10リードを示すS TAT
USでなくなることを意味する。
In FIG. 5, prior to inputting the data DI+35 read out from the memory 1 for the eighth time to the selection unit 19, a READ signal is issued from the control unit 6.
Y is being launched. The rise of this READY,
It is latched by PCLK and releases the wait state of the CPU 5. When the weight is released, the CPU 5
5 Launch TATUS. The rise of this 5TATUS indicates that this 5TATUS indicates an I10 lead.
This means that it will no longer be in the US.

そして、データXがシフトレジスタ19に格納された後
のタイミングにおいて、制御ユニット6から出力される
R/Wがリードを示しているので、このデータXがバッ
ファ20及びDATA−BUS21を介してCPU5に
読み込まれる。
Then, at the timing after the data X is stored in the shift register 19, the R/W output from the control unit 6 indicates read, so this data Loaded.

しかるうちに、SIOは立下げられる。即ち、前記CP
U5は、前記セレクタ8を介してメモリ1にアドレス指
定可能に接続され、回路が通常モード動作に復帰する。
Before long, SIO will be shut down. That is, the CP
U5 is addressably connected to memory 1 via said selector 8, and the circuit returns to normal mode operation.

なお、図においては5TATUSより先にREADYが
立ち上がっているが、この順は逆でもかまわない。ビッ
ト位置BITADHを変更せず、引続き列読出しを行う
場合、レジスタ13及び16の内容の再設定は不要であ
る。また、メモリ幅レジスタ14の内容は、データ構造
が変わらない限り、設定しなおす必要はない。
In the figure, READY rises before 5TATUS, but this order may be reversed. If column reading is continued without changing the bit position BITADH, it is not necessary to reset the contents of registers 13 and 16. Further, the contents of the memory width register 14 do not need to be reset unless the data structure changes.

以上に述べた実施例においては、選択ユニット10にお
いて、シフトレジスタ19を用いてデータのシリアル/
パラレル変換を行っていたが、このシフトレジスタ19
に替えて8ビツトメモリを用いることもできる。この場
合には、この8ビツトメモリへの格納アドレスを指定す
るためのライト信号が必要となる。
In the embodiment described above, the selection unit 10 uses the shift register 19 to serially/transmit data.
I was performing parallel conversion, but this shift register 19
An 8-bit memory can also be used instead. In this case, a write signal is required to specify the storage address in this 8-bit memory.

また、前記シフトレジスタ19にリード信号を供給して
、所望の時点において、該シフトレジスタ19の記憶内
容を出力するようにしても構わない。
Alternatively, a read signal may be supplied to the shift register 19 to output the stored contents of the shift register 19 at a desired time.

この実施例においては、従来例についての計算では除外
したアドレス計算分を加えても、パターン変換に係る命
令フェッチサイクルは、ビットアドレスレジスタ設定(
1命令)メモリ幅レジスタ設定(2命令)、物理アドレ
スレジスタ設定(3命令)、及びI10リードにより行
われるパターン変換(1命令)の7フエツチサイクルに
すぎない。この数値は、前述の第8図及び第9図に示さ
れる従来方法と比べ、著しく低減された値である。
In this embodiment, even if the address calculations excluded in the calculations for the conventional example are added, the instruction fetch cycle related to pattern conversion is still limited to the bit address register setting (
There are only 7 fetch cycles: memory width register setting (2 instructions), physical address register setting (3 instructions), and pattern conversion performed by I10 read (1 instruction). This value is significantly reduced compared to the conventional method shown in FIGS. 8 and 9 described above.

従って、この実施例においては、命令フエツチサイクル
を低減可能であり、CPU5の負担が軽減される。
Therefore, in this embodiment, the number of instruction fetch cycles can be reduced, and the load on the CPU 5 can be reduced.

[発明の効果] 以上説明したように、本発明のパターン変換回路によれ
ば、1回の列読出し命令でnビットデータの列読出しを
行え、命令フェッチサイクルを低減して、CPUの負担
軽減と変換速度の向上という効果を得ることが可能であ
る。
[Effects of the Invention] As explained above, according to the pattern conversion circuit of the present invention, it is possible to read a column of n-bit data with one column read instruction, reducing the instruction fetch cycle and reducing the load on the CPU. It is possible to obtain the effect of improving conversion speed.

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

第1図は、本発明の一実施例に係るパターン変換回路の
構成を示す構成図、 第2図は、この実施例におけるアドレスユニットの構成
を示す構成図、 第3図は、同様にこの実施例における選択ユニットの構
成を示す構成図、 第4図は、この実施例の動作原理を示す動作原理図、 第5図は、この実施例の動作タイミングを示すタイミン
グチャート、 第6図は、メモリの構成を示す構成図、第7図は、 第8図は、 第9図は、 である。 1 ・・・ 5 ・・・ 6 ・・・ 7 ・・・ 10 ・・・ Dl ・・・ X ・・・ メモリ CPU 制御ユニット アドレスユニツ 選択ユニット データ 出力データ パターンデータの構造を示すマツプ、 第1の従来方法の原理を示す原理図、 第2の従来方法の原理を示す原理図 ト
FIG. 1 is a block diagram showing the structure of a pattern conversion circuit according to an embodiment of the present invention, FIG. 2 is a block diagram showing the structure of an address unit in this embodiment, and FIG. 3 is a block diagram showing the structure of an address unit in this embodiment. FIG. 4 is an operating principle diagram showing the operating principle of this embodiment; FIG. 5 is a timing chart showing the operation timing of this embodiment; FIG. 6 is a memory The configuration diagrams illustrating the configuration of FIG. 7, FIG. 8, and FIG. 9 are as follows. 1 ... 5 ... 6 ... 7 ... 10 ... Dl ... X ... Memory CPU Control unit Address Unit Selection unit Data Output data Map showing the structure of pattern data, first Principle diagram showing the principle of the conventional method; Principle diagram showing the principle of the second conventional method.

Claims (1)

【特許請求の範囲】 M列×N行のパターンデータを記憶し、mビットごとに
CPUによってアクセスされるメモリを含むパターン変
換回路において、 CPUの列読出し命令に応じて前記メモリに読出し信号
をn回発する制御手段と、 前記制御手段による読出し信号の発生に応じて、前記パ
ターンデータの同じ列に属するmビットのデータをアド
レス指定するアドレス指定手段と、ビット位置を指定す
るビット位置指定手段と、前記読出し信号に基づいて、
前記アドレス指定手段によりアドレス指定されるmビッ
トのデータが前記メモリから読出されるたびに、前記ビ
ット位置指定手段により指定されたビット位置のデータ
を選択して取出し、前記メモリからのn回の読出しの結
果取出されたnビットのデータを出力する選択手段と、 を備えたことを特徴とするパターン変換回路。
[Scope of Claims] In a pattern conversion circuit including a memory that stores pattern data of M columns and N rows and is accessed by a CPU every m bits, a read signal is sent to the memory in response to a column read command from the CPU. control means for generating a read signal repeatedly; addressing means for addressing m-bit data belonging to the same column of the pattern data in response to generation of a read signal by the control means; and bit position specifying means for specifying a bit position; Based on the readout signal,
Each time m-bit data addressed by the addressing means is read from the memory, data at a bit position designated by the bit position designating means is selected and retrieved, and data is read n times from the memory. A pattern conversion circuit comprising: selection means for outputting n-bit data extracted as a result of .
JP1269977A 1989-10-17 1989-10-17 Pattern conversion circuit Pending JPH03131899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1269977A JPH03131899A (en) 1989-10-17 1989-10-17 Pattern conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1269977A JPH03131899A (en) 1989-10-17 1989-10-17 Pattern conversion circuit

Publications (1)

Publication Number Publication Date
JPH03131899A true JPH03131899A (en) 1991-06-05

Family

ID=17479859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1269977A Pending JPH03131899A (en) 1989-10-17 1989-10-17 Pattern conversion circuit

Country Status (1)

Country Link
JP (1) JPH03131899A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0883062A (en) * 1994-09-12 1996-03-26 Nec Corp Image display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0883062A (en) * 1994-09-12 1996-03-26 Nec Corp Image display device

Similar Documents

Publication Publication Date Title
US4636783A (en) Device for giving a pattern a rotation of an integral multiple of 90° with the pattern read from a memory on a block by block basis
US4300234A (en) Address pattern generator for testing a memory
US5093783A (en) Microcomputer register bank accessing
US4759021A (en) Test pattern generator
JPH0146891B2 (en)
EP0239119A2 (en) Information transferring method and apparatus of transferring information from one memory area to another memory area
KR920005739B1 (en) A partially storing control circuit used in a memory unit
JP3166447B2 (en) Image processing apparatus and image processing method
JPH03131899A (en) Pattern conversion circuit
US4093984A (en) Data processing system having a cycle control function
JPS6330633B2 (en)
JPH0795269B2 (en) Instruction code decoding device
US5093799A (en) Painting-out pattern reference system
JP2595992B2 (en) Electronic musical instrument
JP2854301B2 (en) Memory access circuit
JPH09231347A (en) Image processor
JP3285033B2 (en) Information processing system
JP2789893B2 (en) Character pattern enlargement processing method and circuit thereof
JP2730013B2 (en) Method and apparatus for transferring coordinate data
JPS63503101A (en) data storage and transfer equipment
JP3247441B2 (en) Image processing device
JPS6362755B2 (en)
JPS63304293A (en) Display memory control circuit
JPS6083153A (en) Data memory
JPS60121493A (en) Display control system