JPH01282795A - memory circuit - Google Patents

memory circuit

Info

Publication number
JPH01282795A
JPH01282795A JP63111641A JP11164188A JPH01282795A JP H01282795 A JPH01282795 A JP H01282795A JP 63111641 A JP63111641 A JP 63111641A JP 11164188 A JP11164188 A JP 11164188A JP H01282795 A JPH01282795 A JP H01282795A
Authority
JP
Japan
Prior art keywords
data
address
scanning direction
pixel
row
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
JP63111641A
Other languages
Japanese (ja)
Inventor
Hiroshi Hamada
浜田 博志
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63111641A priority Critical patent/JPH01282795A/en
Publication of JPH01282795A publication Critical patent/JPH01282795A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dram (AREA)

Abstract

PURPOSE:To arrange a memory element in a matrix and to attain a data access in a raw direction and a column direction without executing address conversion or data conversion, etc., by providing a means to access plural memories in the raw direction with continuous addresses and a means to access the memories in the column direction. CONSTITUTION:Plural memories RAM 00-RAM 77, which are arranged in the matrix, respectively input the addresses in the raw direction and column direction and in correspondence to the addresses, data in the raw direction or the column direction are inputted and outputted. A raw access means 11 accesses the plural memories RAM 00-RAM 77 in the raw direction by the continuous addresses and a column access means 15 accesses the memories in the column direction by the continuous addresses. Thus, the memory elements RAM 00-RAM 77 are arranged in the matrix and the access can be executed in the raw direction and column direction by the continuous addresses without executing the special address conversion or data conversion, etc.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は書込み方向と読出し方向を変えてマトリクス形
式でアクセスできるメモリ回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory circuit that can be accessed in a matrix format by changing the write direction and the read direction.

[従来の技術] 近年、半導体メモリの大容旦化に伴ない、スキャナ等か
ら入力された複数両面分のデジタル画像データをそのま
ま格納し、データ圧縮や密度変換等の画像データ変換を
実施できる画像処理装置が数多く市場にでてきている。
[Prior Art] In recent years, with the increase in the capacity of semiconductor memories, it has become possible to store digital image data for multiple sides inputted from a scanner or the like as is, and to perform image data conversion such as data compression and density conversion. Many processing devices are now available on the market.

[発明が解決しようとしている課題] しかしながら、このような装置の画像メモリは通常、メ
モリをアクセスするCPUのデータバスに対応した線形
アドレスで構成されており、このようなメモリの1ワー
ドの各ビットに格納される画像データは、例えば原稿の
主走査方向の連続した画素列で構成されている。このた
め、この画像メモリに格納されている画像データを、画
像データの回転等のデータ変換のために副走査方向に読
出したりする様な場合は、−旦主走査方向に複数行分の
画像データを読出し、その後それら複数行の所定のビッ
ト(画素)データを基に副走査方向(縦方向)の画素デ
ータ列を作成しなければならない。また、副走査方向に
書込む場合も同様にして面倒なデータ変換やアドレス変
換を行う必要があった。
[Problem to be Solved by the Invention] However, the image memory of such devices usually consists of linear addresses that correspond to the data bus of the CPU that accesses the memory, and each bit of one word of such memory The image data stored in , for example, is composed of continuous pixel rows in the main scanning direction of the document. Therefore, when reading the image data stored in this image memory in the sub-scanning direction for data conversion such as rotation of the image data, it is necessary to read out the image data for multiple lines in the main-scanning direction. , and then create a pixel data string in the sub-scanning direction (vertical direction) based on the predetermined bit (pixel) data of the plurality of rows. Furthermore, when writing in the sub-scanning direction, it is necessary to similarly perform troublesome data conversion and address conversion.

このように、画像データ特有の画像データの書込みや読
出しを行うには、多くのアドレスをアクセスしなければ
ならず、特に主走査方向に書込まれた画像データを副走
査方向に読出したり、また逆に、副走査方向に書込まれ
た画像データを主走査方向に読出すような場合等には、
メモリのアクセス回数が増大したり、データの並び換え
に要する時間が増大する等の問題があった。
In this way, in order to write or read image data specific to image data, it is necessary to access many addresses. On the other hand, when image data written in the sub-scanning direction is read out in the main-scanning direction,
There were problems such as an increase in the number of memory accesses and an increase in the time required to rearrange data.

本発明は上記従来例に鑑みてなされたもので、メモリ素
子をマトリクスに配置し、特別なアドレス変換やデータ
変換等を行うことなく、行方向及び列方向にデータをア
クセスできるメモリ回路を提供することを目的とする。
The present invention has been made in view of the above conventional example, and provides a memory circuit in which memory elements are arranged in a matrix and data can be accessed in the row and column directions without special address conversion or data conversion. The purpose is to

[課題を解決するための手段] 上記目的を達成するために本発明のメモリ回路は以下の
様な構成からなる。即ち、 n×mのマトリクスに配された複数のメモリと、該メモ
リのそれぞれは行方向及び列方向のアドレスを入力し、
該アドレスに対応して行或いは列方向のデータを入出力
する手段とを有し、前記複数のメモリを連続したアドレ
スで行方向にアクセスする行アクセス手段と、前記複数
のメモリを連続したアドレスで列方向にアクセスする列
アクセス手段とを備久る。
[Means for Solving the Problems] In order to achieve the above object, the memory circuit of the present invention has the following configuration. That is, a plurality of memories arranged in an n×m matrix, each of which receives addresses in the row direction and column direction,
means for inputting and outputting data in a row or column direction corresponding to the address; row access means for accessing the plurality of memories in the row direction at consecutive addresses; and row access means for accessing the plurality of memories in the row direction at consecutive addresses. A column access means for accessing in the column direction is provided.

[作用] 以上の構成において、n×mのマトリクスに配された複
数のメモリのそれぞれは、行方向及び列方向のアドレス
を入力し、そのアドレスに対応して行或いは列方向のデ
ータを入出力する。行アクセス手段は、これら複数のメ
モリを連続したアドレスで行方向にアクセスするととも
に、列アクセス手段はこれら複数のメモリを連続したア
ドレスで列方向にアクセスすることができる。
[Operation] In the above configuration, each of the plurality of memories arranged in an n×m matrix receives an address in the row direction and column direction, and inputs/outputs data in the row or column direction in accordance with the address. do. The row access means can access these multiple memories in the row direction using consecutive addresses, and the column access means can access these multiple memories in the column direction using consecutive addresses.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[メモリ回路の説明 (第1図〜第4図)]第1図は実
施例のメモリ回路101の構成を示す回路図、第2図は
第1図のマトリクスに配された各メモリ回路素子の構成
を示す回路図である。
[Description of the memory circuit (Figs. 1 to 4)] Fig. 1 is a circuit diagram showing the configuration of the memory circuit 101 of the embodiment, and Fig. 2 shows the structure of each memory circuit element arranged in the matrix of Fig. 1. FIG. 2 is a circuit diagram showing the configuration.

そして、第3図はこの実施例のメモリ回路101と制御
回路100との接続を示す図である。なお、以下の説明
は第4図に示す4096 (主走査)X8192(副走
査)画素からなる画像データを処理する場合について説
明する。
FIG. 3 is a diagram showing the connection between the memory circuit 101 and the control circuit 100 of this embodiment. Note that the following description will be made regarding the case where image data consisting of 4096 (main scanning) x 8192 (sub scanning) pixels shown in FIG. 4 is processed.

第3図において、100は実施例のメモリ回路101に
アドレス信号やデータ信号等を出力し、メモリ回路10
1にアクセスする制御回路で、例えばマイクロプロセッ
サ等のCPUや、第5図と第6図のフローチャートで示
されたCPUの制御プログラムや各種データ等を格納し
ているROM、CPUのワークエリアとして使用される
RAM等を備えている。102は制御回路100よりメ
モリ回路101に出力される22ビツトのアドレスバス
(AO〜A21)、103は制御回路10oの8ビツト
のデータバス(Do−D7)を示し、104は制御回路
100よりメモリ回路101に出力されるリード/ライ
ト(R/W)信号で、メモリ回路101へのデータ書込
み時にロウレベルで出力される。105は制御回路10
0よりメモリ回路101に出力される水平・垂直(H/
V)信号で、メモリ回路101を行方向(主走査方向)
にアクセスするときはハイレベルに、列方向(副走査方
向)にアクセスするときはロウレベルで出力される。
In FIG. 3, reference numeral 100 outputs address signals, data signals, etc. to the memory circuit 101 of the embodiment;
1, and is used as a work area for a CPU such as a microprocessor, a ROM that stores the CPU control program and various data shown in the flowcharts of Figures 5 and 6, and the CPU. It is equipped with RAM, etc. 102 is a 22-bit address bus (AO-A21) output from the control circuit 100 to the memory circuit 101, 103 is an 8-bit data bus (Do-D7) of the control circuit 10o, and 104 is an address bus (AO-A21) output from the control circuit 100 to the memory circuit 101. This is a read/write (R/W) signal output to the circuit 101, and is output at a low level when data is written to the memory circuit 101. 105 is the control circuit 10
0 to the memory circuit 101 (horizontal/vertical (H/
V) signal to move the memory circuit 101 in the row direction (main scanning direction)
When accessing, it is output at high level, and when accessing in the column direction (sub-scanning direction), it is output at low level.

第1図は実施例のメモリ回路101の構成を示す回路図
で、第3図と共通する部分は同一記号で示している。
FIG. 1 is a circuit diagram showing the configuration of a memory circuit 101 according to an embodiment, and parts common to those in FIG. 3 are indicated by the same symbols.

図中、10は512kX1ビツトの容量を有するRAM
回路で、このメモリ回路101では8×8のマトリクス
に64個が配置されている。このマトリクス配置におい
て、1行目のRAM回路をRAM00−RAMO7で、
2行目の回路をRAM 10〜17というように、以下
第8行目までを図のように示している。11はアドレス
バス102のA9〜Allを入力し、H/V信号105
がハイレベル(主走査方向のメモリアクセス)のときに
、それらをデコードして行方向のバッファ12(GO〜
G7)のエネーブル信号17ENO〜EN7を出力する
デコーダである。
In the figure, 10 is a RAM with a capacity of 512k x 1 bit.
In this memory circuit 101, 64 circuits are arranged in an 8×8 matrix. In this matrix arrangement, the RAM circuits in the first row are RAM00-RAMO7,
The circuits on the second row are shown as RAMs 10 to 17, and the circuits up to the eighth row are shown as shown in the figure. 11 inputs A9 to All of the address bus 102, and inputs the H/V signal 105.
is at a high level (memory access in the main scanning direction), they are decoded and stored in the row direction buffer 12 (GO~
G7) is a decoder that outputs enable signals 17ENO to EN7.

12はデータバス103に接続された8ビツトのバッフ
ァで、マトリクスに配置されたR A M回路群の各行
に対応して、1行目のGoから8行目の07までの記号
を付して示している。これらの各バッファは対応するエ
ネーブル信号(ENO〜EN7)がエネーブル(ハイレ
ベル)のときに、データバス103のデータを対応する
RAM回路行に出力したり、対応するRAM回路行より
のデータをデータバス103に出力している。13はR
AM回路群の行方向(主走査方向)のアドレスデータ、
14はRAM回路群の列方向(副走査方向)のアドレス
データである。
Reference numeral 12 denotes an 8-bit buffer connected to the data bus 103, which is labeled with symbols from Go on the first row to 07 on the eighth row, corresponding to each row of the RAM circuit group arranged in the matrix. It shows. When the corresponding enable signal (ENO to EN7) is enabled (high level), each of these buffers outputs data on the data bus 103 to the corresponding RAM circuit row, or outputs data from the corresponding RAM circuit row. It is output to bus 103. 13 is R
Address data in the row direction (main scanning direction) of the AM circuit group,
14 is address data in the column direction (sub-scanning direction) of the RAM circuit group.

15はアドレスバスのAl0−Al2を入力してデコー
ドし、H/V信号105がロウレベル(副走査方向のメ
モリアクセス)のときに列方向のバッファ18(Go’
〜G7′)をエネーブルにするエネーブル信号ENO’
〜EN7’信号16を出力するデコーダである。18は
データバス103に接続された8ビツトのバッファで、
マトリクスに配置されたRAM回路群の各列に対応して
、1列目のGO′から8行目のG7’ までの記号を付
して示している。これらの各バッファは対応するエネー
ブル信号(ENO’〜EN7’)がエネーブル(ハイレ
ベル)のときに、データバス103のデータを対応する
列のRAM回路に出力したり、対応する列のRAM回路
よりのデータをデータバス103に出力している。
15 inputs and decodes Al0-Al2 of the address bus, and when the H/V signal 105 is low level (memory access in the sub-scanning direction), the buffer 18 in the column direction (Go'
~G7') enable signal ENO'
~EN7' This is a decoder that outputs the signal 16. 18 is an 8-bit buffer connected to the data bus 103;
Symbols from GO' in the first column to G7' in the eighth row are shown corresponding to the columns of the RAM circuit group arranged in the matrix. Each of these buffers outputs the data on the data bus 103 to the RAM circuit of the corresponding column when the corresponding enable signal (ENO' to EN7') is enabled (high level), or outputs the data from the RAM circuit of the corresponding column. data is output to the data bus 103.

第2図はRAM回路1oの回路構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing the circuit configuration of the RAM circuit 1o.

2oは512kX1ビツトの容量を有するメモリ素子で
、19ビツトのアドレス信号26を入力し、1ビツトの
データ信号21を入出力している。25はメモリ素子2
0をエネーブルするエネーブル信号で、この信号25が
ハイレベルのときにメモリ素子20へのアクセスが可能
になる。
2o is a memory element having a capacity of 512k×1 bit, which inputs a 19-bit address signal 26 and inputs/outputs a 1-bit data signal 21. 25 is memory element 2
This enable signal 25 enables access to the memory element 20 when the signal 25 is at a high level.

21はアドレスデータ13と14とを切換えてアドレス
信号26として出力するセレクタで、H/■信号105
がハイレベルのとき(主走査方向のアクセス時)はアド
レスデータAO−A8及びA12〜A21がアドレス信
号26として入力され、副走査方向のアクセス(H/V
信号がロウレベル)時にはアドレスデータ14(A12
〜A21及びAO〜A9)がアドレス信号26として出
力される。
21 is a selector that switches between address data 13 and 14 and outputs it as an address signal 26;
is at high level (during access in the main scanning direction), address data AO-A8 and A12 to A21 are input as the address signal 26, and access in the sub-scanning direction (H/V
When the signal is low level, address data 14 (A12
~A21 and AO~A9) are output as address signals 26.

22と23はそれぞれ双方向性の1ビツトバツフアで、
R/W信号104がハイレベル(読込み時)のときはn
AからnBに及びmAからmBに1ビツトデータが出力
され、R/W信号104がロウレベル(書込み時)のと
きは、nBからnAに及びmBからmAに出力される。
22 and 23 are two-way 1-bit buffers, respectively.
When the R/W signal 104 is at high level (during reading), n
One bit data is output from A to nB and from mA to mB, and when the R/W signal 104 is at low level (during writing), it is output from nB to nA and from mB to mA.

24は主走査方向ノアクセス(ENnがハイレベルのと
き)或いは副走査方向のアクセス(ENm’がハイレベ
ルのとき)時に、メモリ素子20をエネーブルにするO
R回路である。なお、このメモリ素子20はエネーブル
信号25がハイレベルでR/W信号104がロウレベル
のときはデータの書込みが、R/W信号104がハイレ
ベルのときはメモリ素子20よりの読出しが行われる。
24 is an O that enables the memory element 20 during access in the main scanning direction (when ENn is at a high level) or during access in the sub-scanning direction (when ENm' is at a high level).
This is an R circuit. Note that data is written to the memory element 20 when the enable signal 25 is at a high level and the R/W signal 104 is at a low level, and data is read from the memory element 20 when the R/W signal 104 is at a high level.

ここでメモリ素子20はRAMnmで示しているが、n
は第1図の行数(0〜7)を示し、mは各行の列数(0
〜7)を示している。従って、例えば第2図に示された
メモリ素子20が第1図のRAM01の場合はn=o、
m=1となり、双方向バッファ22は行方向(主走査方
向)にアクセスされるときENOによってエネーブルに
され、データバスD1を入出力する。また、副走査方向
へのアクセス時、ENI’が出力されると双方向バッフ
ァ23はデータバスのDoをリード或いはライト信号に
対応して入出力する。このように、RA M n mは
n行目とm列目がアクセスされるときにエネーブルとな
り、主走査方向へのアクセス時にはデータバス103の
Dmを、副走査方向へのアクセス時にはデータバス10
3のDnデータを入出力する。
Here, the memory element 20 is shown as RAMnm, but n
represents the number of rows (0 to 7) in Figure 1, and m represents the number of columns in each row (0
-7) are shown. Therefore, for example, if the memory element 20 shown in FIG. 2 is RAM01 in FIG. 1, n=o,
When m=1, the bidirectional buffer 22 is enabled by ENO when accessed in the row direction (main scanning direction), and inputs and outputs the data bus D1. Further, when accessing in the sub-scanning direction, when ENI' is output, the bidirectional buffer 23 inputs and outputs Do of the data bus in response to a read or write signal. In this way, RAM n m is enabled when the n-th row and m-column are accessed, and Dm of the data bus 103 is enabled when accessing in the main scanning direction, and Dm of the data bus 103 is enabled when accessing in the sub-scanning direction.
Input/output Dn data of 3.

第4図は第1図のメモリ回路101に格納される画像デ
ータ41を示す図で、この画像データは4096X81
92の画素で構成されている。
FIG. 4 is a diagram showing image data 41 stored in the memory circuit 101 of FIG. 1, and this image data is 4096×81
It is composed of 92 pixels.

この実施例では、8×8画素(各画素は2値データ)で
構成された画素データ40の部分を、第1図の64個の
RAM00−RAM77に、各RAMのメモリ素子20
に入力されるアドレスを同じにして、例えばアドレス“
0”で格納する。
In this embodiment, a portion of pixel data 40 composed of 8×8 pixels (each pixel is binary data) is stored in 64 RAM00-RAM77 in FIG.
For example, the address “
Stored as 0".

更に、この64個の画素マトリクス40を単位として主
走査方向(横方向)と副走査方向(縦方向)にそれぞれ
シフトしていき、それら8×8の64個の画素をそれぞ
れ同じようにしてRA M 00−RAM77に格納す
る。
Furthermore, these 64 pixel matrix 40 are shifted in the main scanning direction (horizontal direction) and the sub-scanning direction (vertical direction), respectively, and these 64 pixels of 8×8 are each shifted in the same way to RA. M00-Stored in RAM77.

即ち、H/V信号をハイレベルにし、アドレスバス10
2を全て”0”にして書込むとバッファ12のGoのみ
がエネーブルとなるため、1ライン目の画素(00−0
7)がRAM00−RAM○7のアドレス“0″に格納
される。以下同様にして、順次1ライン目の画素データ
が順次RAM○0〜RAMO7の各メモリ素子のアドレ
ス“0”から“511”番地までに格納される。次に、
アドレスバス102のアドレスが“512“番地になる
とA9が“1”になるため、バッファ12のG1のみが
エネーブルとなる。これにより主走査方向の2ライン目
の画素データ(画素10〜画素1.4095)はRAM
l0〜17のアドレス“0”から“511”番地に格納
される。
That is, the H/V signal is set to high level, and the address bus 10
If all 2 are set to "0" and written, only Go of the buffer 12 is enabled, so the pixels on the first line (00-0
7) is stored at address "0" of RAM00-RAM○7. Thereafter, in the same manner, the pixel data of the first line is sequentially stored in the addresses "0" to "511" of each memory element of RAM00 to RAM07. next,
When the address of the address bus 102 reaches address "512", A9 becomes "1", so only G1 of the buffer 12 is enabled. As a result, the pixel data of the second line in the main scanning direction (pixel 10 to pixel 1.4095) is stored in the RAM.
It is stored at addresses "0" to "511" of l0-17.

従って、例えば画像データ41の主走査方向に順次画像
データが格納されていく場合、RAM0Oのメモリ素子
20のアドレス“0”には画素(00)が、アドレス“
1”には画像(08)が、アドレス“2”には画素(1
6)というように順次格納されていき、アドレス“51
1”番地に画素(0,4088)が格納されると、8×
4096画素(8主走査線分の画素データ)がメモリ回
路101に格納されたことになる。更に、9ライン目か
ら16ラインまでの画素データはRAM0O−07(7
)“512”番地から“1023 ”番地というように
、512にビットの画素データが64個のRAM回路の
各メモリ素子に格納されたとき、第4図に示す8192
(ライン)X4096画素の画像データ41が全てメモ
リ回路101に格納されたことになる。
Therefore, for example, when image data 41 is stored sequentially in the main scanning direction, pixel (00) is stored at address "0" of memory element 20 of RAM0O, and pixel (00) is stored at address "0" of memory element 20 of RAM0O.
1” has an image (08), and address “2” has a pixel (1
6) and so on, and the address “51
When pixel (0,4088) is stored at address 1”, 8×
This means that 4096 pixels (pixel data for 8 main scanning lines) are stored in the memory circuit 101. Furthermore, pixel data from the 9th line to the 16th line is stored in RAM0O-07 (7
) When pixel data of 512 bits is stored in each memory element of 64 RAM circuits from address "512" to address "1023", 8192 bits as shown in FIG.
(Line) All of the image data 41 of 4096 pixels are stored in the memory circuit 101.

次に、例えば第4図の画素マトリクス40の縦方向の画
素列(画素00,10,20.・・・、70)の8画素
を読出したい場合は、H/V信号1o5をロウレベルに
し、アドレスバス102を全て“0”にしてR/W信号
をハイレベルにしてメモリ回路101をリードする。こ
れにより、ENO′のみがハイレベルになりバッファ1
8のGO′より1バイトのデータが読出される。このと
きは、画素OOはRAM0Oより、画素01はRAM0
1というように、1列分の画素データが続出される。ま
た例えば、2列目の画素列(画素O1〜71)を読出し
たいときは、アドレスバスのAIOのみを“1”にして
、同じようにリードする。更に、画素列42(画素08
〜画素78)を読出したいときは、アドレスバス102
のA13のみを“1”にし、副走査方向(H/V=ロウ
レベル)にリードすれば良い。
Next, for example, if you want to read out 8 pixels in the vertical pixel column (pixels 00, 10, 20..., 70) of the pixel matrix 40 in FIG. 4, set the H/V signal 1o5 to low level and The bus 102 is all set to "0", the R/W signal is set to high level, and the memory circuit 101 is read. As a result, only ENO' becomes high level and buffer 1
One byte of data is read from GO' of No.8. At this time, pixel OO is from RAM0O, pixel 01 is from RAM0
1, pixel data for one column is output one after another. For example, when it is desired to read the second pixel column (pixels O1 to O71), only the AIO of the address bus is set to "1" and read in the same manner. Furthermore, pixel row 42 (pixel 08
~ pixel 78), address bus 102
It is sufficient to set only A13 to "1" and read in the sub-scanning direction (H/V=low level).

なお、第2図から明らかなように、主走査方向のアドレ
ス入力はAO−A8.AI2〜A21となっていて、副
走査方向のアドレス入力は下位にAI3〜A21、その
上位にAO〜A9がきているが、これは副走査方向に画
素OO〜画素70の画素列をアクセスし、次にその下方
の画素列43(画素80〜画素150)をアクセスする
というように、順次副走査方向(第4図の下方向)に8
画素づつアクセスしていく場合、アドレスバス102に
出力するアドレスは“0”から連続した線形アドレスを
出力すればよいようにしたものである。
As is clear from FIG. 2, the address input in the main scanning direction is AO-A8. The address input in the sub-scanning direction is AI3-A21 at the bottom and AO-A9 above it, but this accesses the pixel column from pixel OO to pixel 70 in the sub-scanning direction. Next, the lower pixel row 43 (pixel 80 to pixel 150) is accessed, and so on, 8 pixels are sequentially accessed in the sub-scanning direction (downward in FIG. 4).
When accessing one pixel at a time, the addresses output to the address bus 102 are designed such that continuous linear addresses starting from "0" need only be output.

[制御部の書込み及び読出し処理の説明(第5図、第6
図)コ 第5図は実施例の制御回路100によりメモリ回路10
1に第4図の画像データ41を主走査方向に書込む処理
を示すフローチャート、第6図は第5図のフローチャー
トで示された書込み処理によりメモリ回路101に書込
まれた画像データ41を副走査方向に読出す処理を示す
フローチャートである。
[Explanation of write and read processing of control unit (Figs. 5 and 6)
Figure) Fig. 5 shows the memory circuit 10 by the control circuit 100 of the embodiment.
1 is a flowchart showing the process of writing the image data 41 shown in FIG. 4 in the main scanning direction, and FIG. It is a flowchart which shows the process of reading in a scanning direction.

画像データの書込み時はステップS1でアドレスバス1
02に“0“を出力し、ステップS2で主走査方向の8
画素データを入力する。なお、この画素データは画像デ
ータ41の左上より順次入力されてくるものとする。ス
テップS3では水平・垂直信号(H/V)105をハイ
レベルにし、ステップS4でR/W信号をロウレベルに
して8画素データを書込む。こうして主走査方向の8画
素データが書込まれるとステップS5でアドレスバス1
02に出力するアドレスを+1し、ステッブS6でアド
レスバスに出力するアドレスが4メガバイト以上かを判
定し、4M以上でなければステップS2に戻り次の画像
データの格納処理に進む。こうしてアドレスバス102
の値がA21からA22に桁上げされると、第4図の画
像データ41が全てメモリ回路101に格納されたこと
になる。
When writing image data, address bus 1 is set in step S1.
"0" is output to 02, and 8 in the main scanning direction is output in step S2.
Enter pixel data. It is assumed that this pixel data is input sequentially from the upper left of the image data 41. In step S3, the horizontal/vertical signal (H/V) 105 is set to high level, and in step S4, the R/W signal is set to low level to write 8 pixel data. When the 8 pixel data in the main scanning direction is written in this way, in step S5 the address bus 1 is
02 is incremented by 1, and in step S6 it is determined whether the address to be output to the address bus is 4 megabytes or more. If it is not 4M or more, the process returns to step S2 and proceeds to the next image data storage process. Thus address bus 102
When the value of is carried up from A21 to A22, all of the image data 41 in FIG. 4 is stored in the memory circuit 101.

次に読出し処理について説明すると、ステップS10で
アドレスバス102に“0”のアドレスを出力し、ステ
ップSllでH/V信号105をロウレベルにする。ス
テップS12でR/W信号をハイレベルにしてリードを
行うと、第4図の画素(00〜70)で示された縦方向
に8ビツトの画素列が読出される。ステップS13でア
ドレスバス102の値を+1し、ステップS14でアド
レスバス102のアドレスが4Mバイト以上かをみる。
Next, the read process will be described. In step S10, an address of "0" is output to the address bus 102, and in step Sll, the H/V signal 105 is set to low level. When reading is performed by setting the R/W signal to a high level in step S12, an 8-bit pixel column in the vertical direction indicated by pixels (00 to 70) in FIG. 4 is read out. In step S13, the value of address bus 102 is incremented by 1, and in step S14, it is determined whether the address of address bus 102 is 4 Mbytes or more.

4M以下であれば再びステップS12に戻り画像データ
の読出しを行う。これにより次の画素列43が読出され
、以下同様にして、順次縦方向に8画素づつ読出され、
左端の1列分(8192画素)の画素が読出されると、
連続して2列目の画素というように、副走査方向に連続
して画像データを読出すことができる。
If it is less than 4M, the process returns to step S12 and the image data is read out. As a result, the next pixel column 43 is read out, and in the same manner, eight pixels are sequentially read out in the vertical direction.
When the leftmost column of pixels (8192 pixels) is read out,
Image data can be read out successively in the sub-scanning direction, such as from pixels in the second row.

なお、この実施例のメモリ回路101の回路構成は第4
図の画像データの処理を目的として成されたもので、処
理する画像データの画素数等に応じて適宜変更しても良
い。
Note that the circuit configuration of the memory circuit 101 of this embodiment is the fourth one.
This is done for the purpose of processing the image data in the figure, and may be changed as appropriate depending on the number of pixels of the image data to be processed.

また、この実施例では主走査方向にアクセスするアドレ
スバスやデータバス等と、副走査方向にアクセスするア
ドレスバスとデータバスとを共通で示したがこれに限定
されるものでなく、各RAM回路のメモリ素子をデュア
ルポートRAMで構成し、主走査方向のアクセスと副走
査方向のアドレスを異なるCPUより独立してアクセス
するようにもできる。またこの実施例では、主走査方向
に書込み、副走査方向に読出す場合で示したが、逆に副
走査方向に書込んで主走査方向に読出しても良いことは
もちろんである。
Further, in this embodiment, the address bus, data bus, etc. that are accessed in the main scanning direction, and the address bus and data bus that are accessed in the sub-scanning direction are shown in common, but the present invention is not limited to this, and each RAM circuit It is also possible to configure the memory element with a dual-port RAM so that accesses in the main scanning direction and addresses in the sub-scanning direction can be accessed independently by different CPUs. Further, in this embodiment, writing is performed in the main scanning direction and reading is performed in the sub-scanning direction, but it is of course possible to write in the sub-scanning direction and read out in the main scanning direction.

第7図は他の実施例のマルチプレクサ21へのアドレス
接続例を示す図、第8図はデコーダ15のアドレスバス
の接続例を示す図で、こように接続することにより、前
述の第5図で説明したようにしてメモリ回路101に書
込まれた画素データを、第4図の画素列(画素00〜画
素70)から右側の画素列(画素01〜画素71)に向
う主走査方向への画素列に対するアクセスを連続したア
ドレスで行うことができる。
FIG. 7 is a diagram showing an example of address connection to the multiplexer 21 of another embodiment, and FIG. 8 is a diagram showing an example of address bus connection of the decoder 15. By connecting in this way, the above-mentioned FIG. The pixel data written in the memory circuit 101 as explained in 1. Access to pixel columns can be performed using consecutive addresses.

また、この実施例では主走査(行)方向のデータアクセ
スと副走査(列)方向へのデータアクセスを同じビット
数で行うように説明したが、例えば行方向には16ビツ
トでアクセスし、列方向には8ビツトでアクセスすると
いうように、行方向と列方向とでアクセスするビット数
を変更しても良い。なお、この場合には16×8のマト
リクス構成になる。
Furthermore, in this embodiment, data access in the main scanning (row) direction and data access in the sub-scanning (column) direction are performed using the same number of bits, but for example, data access in the row direction is performed using 16 bits, and data access in the column The number of bits accessed in the row direction and column direction may be changed, such as accessing with 8 bits in the direction. Note that in this case, the configuration is a 16×8 matrix.

また更にこの実施例では、各画素データが1ビツトの2
値データの場合で示したがこれに限定されるものでなく
、例えば第2図のメモリ素子20の容量を512kX2
ビツトにし、バッファ22と23をそれぞれ2ビツトバ
ツフアで構成して制御部100のデータバスを16ビツ
トにすれば、第4図の各画素がそれぞれ2ビツトで表さ
れた多値画像データを第1図の回路に格納できる。
Furthermore, in this embodiment, each pixel data consists of 2 bits of 1 bit.
Although the case of value data is shown, the present invention is not limited to this. For example, if the capacity of the memory element 20 in FIG. 2 is 512k×2
If the data bus of the control unit 100 is made 16 bits by configuring the buffers 22 and 23 as 2-bit buffers, the multivalued image data shown in FIG. 1, in which each pixel in FIG. can be stored in the circuit.

以上説明したようにこの実施例によれば、行方向及び列
方向のいずれの方向にも連続したアドレスでアクセスで
きるメモリ回路が提供でき、これは画像データのように
、主走査方向と副走査方向というように、アクセスする
方向を変えてアクセスされるデータを処理する場合に特
に有効である。
As explained above, according to this embodiment, it is possible to provide a memory circuit that can be accessed with continuous addresses in both the row and column directions, and, like image data, can be accessed in both the main scanning direction and the sub-scanning direction. This is particularly effective when processing data that is accessed by changing the direction of access.

[発明の効果] 以上説明したように本発明によれば、メモリ素子をマト
リクスに配置し、特別なアドレス変換やデータ変換等を
行うことなく、行方向及び列方向に連続したアドレスで
アクセスできる効果がある。
[Effects of the Invention] As explained above, according to the present invention, memory elements are arranged in a matrix and can be accessed with consecutive addresses in the row and column directions without special address conversion or data conversion. There is.

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

第1図は実施例のメモリ回路の構成例を示す回路図、 第2図はRAMの構成を示す回路図、 第3図は制御回路と実施例のメモリ回路との接続を示す
ブロック図、 第4図は実施例の画像データ例を示す図、第5図は実施
例の制御回路によりメモリ回路に第4図の画像データを
主走査方向に書込む処理を示すフローチャート、 第6図は第5図のフローチャートで示された書込み処理
によりメモリ回路に書込まれた画像データを副走査方向
に読出す処理を示すフローチャート、 第7図と第8図は他の実施例のマルチプレクサとデコー
ダのアドレスバスへの接続を示す図である。 図中、10・・・RAM回路、11.15・・・デコー
ダ、12.18・・・バッファ、13.14・・・アド
レスデータ、16.17・・・エネーブル信号、20・
・・メモリ素子、21・・・マルチプレクサ、22.2
3・・・デコーダ、24・・・OR回路、25・・・エ
ネーブル信号、100・・・制御回路、101・・・メ
モリ回路、102・・・アドレスバス、103・・・デ
ータバス、104・・・リード/ライト信号(R/W)
 、105・・・水平・垂直信号(H/V)である。 特許出願人  キャノン株式会社 第3図 第5図 第6図 51亀 第7図 第80
FIG. 1 is a circuit diagram showing an example of the configuration of the memory circuit of the embodiment; FIG. 2 is a circuit diagram showing the configuration of the RAM; FIG. 3 is a block diagram showing the connection between the control circuit and the memory circuit of the embodiment; 4 is a diagram showing an example of image data of the embodiment, FIG. 5 is a flowchart showing a process of writing the image data of FIG. 4 into the memory circuit in the main scanning direction by the control circuit of the embodiment, and FIG. A flowchart showing the process of reading out image data written to the memory circuit in the sub-scanning direction by the write process shown in the flowchart in the figure. FIG. In the figure, 10...RAM circuit, 11.15...decoder, 12.18...buffer, 13.14...address data, 16.17...enable signal, 20...
...Memory element, 21...Multiplexer, 22.2
3... Decoder, 24... OR circuit, 25... Enable signal, 100... Control circuit, 101... Memory circuit, 102... Address bus, 103... Data bus, 104...・Read/write signal (R/W)
, 105 . . . horizontal/vertical signals (H/V). Patent applicant: Canon Co., Ltd. Figure 3 Figure 5 Figure 6 Figure 51 Figure 7 Figure 80

Claims (1)

【特許請求の範囲】[Claims] n×mのマトリクスに配された複数のメモリと、該メモ
リのそれぞれは行方向及び列方向のアドレスを入力し、
該アドレスに対応して行或いは列方向のデータを入出力
する手段とを有し、前記複数のメモリを連続したアドレ
スで行方向にアクセスする行アクセス手段と、前記複数
のメモリを連続したアドレスで列方向にアクセスする列
アクセス手段とを備えることを特徴とするメモリ回路。
A plurality of memories arranged in an n×m matrix, each of which receives addresses in the row direction and column direction,
means for inputting and outputting data in a row or column direction corresponding to the address; row access means for accessing the plurality of memories in the row direction at consecutive addresses; and row access means for accessing the plurality of memories in the row direction at consecutive addresses. A memory circuit comprising column access means for accessing in the column direction.
JP63111641A 1988-05-10 1988-05-10 memory circuit Pending JPH01282795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63111641A JPH01282795A (en) 1988-05-10 1988-05-10 memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63111641A JPH01282795A (en) 1988-05-10 1988-05-10 memory circuit

Publications (1)

Publication Number Publication Date
JPH01282795A true JPH01282795A (en) 1989-11-14

Family

ID=14566463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63111641A Pending JPH01282795A (en) 1988-05-10 1988-05-10 memory circuit

Country Status (1)

Country Link
JP (1) JPH01282795A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58205187A (en) * 1982-05-26 1983-11-30 株式会社東芝 Memory device
JPS59128586A (en) * 1983-01-14 1984-07-24 富士ゼロックス株式会社 Vertically/horizontally readable memory array

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58205187A (en) * 1982-05-26 1983-11-30 株式会社東芝 Memory device
JPS59128586A (en) * 1983-01-14 1984-07-24 富士ゼロックス株式会社 Vertically/horizontally readable memory array

Similar Documents

Publication Publication Date Title
US4847809A (en) Image memory having standard dynamic RAM chips
US5590084A (en) Semiconductor memory device having a column selector
EP0398510B1 (en) Video random access memory
JPH0636311B2 (en) Dual port VRAM memory
JPS60160780A (en) Picture storage device for special effect
WO1991017544A1 (en) Semiconductor storage device having multiple ports
JPH0562493A (en) Digital-shift-register using random-access-memory
EP0272980A2 (en) Boundary-free semiconductor memory device
KR100612414B1 (en) Image data processing system and image data reading / writing method
US4852065A (en) Data reorganization apparatus
EP0569218A2 (en) Circuit for rotating a ditigal image
US6560686B1 (en) Memory device with variable bank partition architecture
JPH01282795A (en) memory circuit
KR20010085368A (en) Memory chip and data storage method
JP3277377B2 (en) Video signal processor
JPH0612608B2 (en) Semiconductor memory device
JPH06167958A (en) Memory device
JP3114305B2 (en) Storage device and addressing method thereof
JP2633251B2 (en) Image memory device
JPH05113928A (en) Image memory device
JPH05307600A (en) Read/readout circuit for data
US20080246643A1 (en) Technique For Efficient Video Re-Sampling
JPS60211690A (en) Memory circuit
JP3417765B2 (en) Optical character reader
JPH0118430B2 (en)