JPS63206872A - Picture memory - Google Patents
Picture memoryInfo
- Publication number
- JPS63206872A JPS63206872A JP62039102A JP3910287A JPS63206872A JP S63206872 A JPS63206872 A JP S63206872A JP 62039102 A JP62039102 A JP 62039102A JP 3910287 A JP3910287 A JP 3910287A JP S63206872 A JPS63206872 A JP S63206872A
- Authority
- JP
- Japan
- Prior art keywords
- address
- address data
- counter
- data
- image memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000284 extract Substances 0.000 claims 1
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Image Input (AREA)
- Digital Computer Display Output (AREA)
Abstract
Description
【発明の詳細な説明】 ウアクセス機能を有する画像記憶装置に関する。[Detailed description of the invention] The present invention relates to an image storage device having an image access function.
(従来の技術)
従来の画像記憶装置では、画像メモリのアドレスを制御
するアドレスカウンタをCPUにより制御している。換
言すれば、ソフトウェアによつてアドレス制御を行なっ
ている。(Prior Art) In a conventional image storage device, a CPU controls an address counter that controls the address of an image memory. In other words, address control is performed by software.
しかしながら、このような構成では画像メモリに任意の
大きさの四角形のウィンドウ領域を設定し、そのウィン
ドウ領域に対してアクセスを行なう場合には、ソフトウ
ェアに大きな負担がかかる。However, in such a configuration, when a rectangular window area of an arbitrary size is set in the image memory and the window area is accessed, a large burden is placed on the software.
また、こうしたソフトウェアによるアクセス制御ではア
クセス速度が遅くなるのも欠点である。Another drawback of such software-based access control is that the access speed is slow.
(発明が解決しようとする問題点)
このように従来の画像記憶装置では、ウィンドウアクセ
スに際してソフトウェアに負担がかかり、またアクセス
速度が遅いという問題があった。(Problems to be Solved by the Invention) As described above, conventional image storage devices have the problem that window access places a burden on the software and the access speed is slow.
本発明はウィンドウアクセス機能をハードウェアで実現
することにより、ソフトウェアの負担を軽減し、さらに
ウィンドウアクセスの高速化を図ることができる画像記
憶装置を提供することを口封して設定されるウィンドウ
領域の開始アドレスカウンタおよび終了アドレスデータ
を保持するウィンドウアドレス保持手段と、画像メモリ
のアドレスを制御するアドレスカウンタから出力される
アドレスデータと制御バスから供給されるアドレスデー
タとを選択的に取出して画像メモリに与える選択手段と
、アドレスカウンタから出力されるアドレスデータと制
御バスから供給されるアドレスデータとを比較する第1
の比較手段と、選択手段により取出されたアドレスデー
タと終了アドレスデータとを比較する第2の比較手段と
、これら第1および第2の比較手段の比較結果に基づい
てアドレスカウンタの内容を開始アドレスを初期値とし
て終了アドレスと一致するまでインクリメントする手段
と、選択手段により制御バスからのアドレスデータが選
択されている場合は第1および第2の比較手段の比較結
果に基づいて、制御バスからのアドレスデータがウィン
ドウ領域外のアドレスに対応するデータのとき該アドレ
スデータによる画像メモリのアクセスを禁止する手段と
を設けたことを特徴とする。The present invention aims to provide an image storage device that reduces the burden on software and further speeds up window access by realizing a window access function in hardware, and a window area that is set. window address holding means for holding the start address counter and end address data of the image memory; and address data output from the address counter that controls the address of the image memory and address data supplied from the control bus to be selectively taken out. a first selection means for comparing the address data output from the address counter and the address data supplied from the control bus;
a second comparison means for comparing the address data retrieved by the selection means with the end address data; and a second comparison means for comparing the address data retrieved by the selection means with the end address data, and the content of the address counter is changed to the start address based on the comparison results of the first and second comparison means. means for incrementing the initial value until it matches the end address, and when the selection means selects the address data from the control bus, the address data from the control bus is incremented based on the comparison results of the first and second comparison means. The present invention is characterized by providing means for prohibiting access to the image memory by the address data when the address data corresponds to an address outside the window area.
持手段に保持された開始アドレスデータを初期値として
インクリメントされ、ウィンドウアドレス保持手段に保
持された終了アドレスデータと一致するとアクセスが終
了する。これにより画像メモリの内容のうち、ウィンド
ウアドレス保持手段に保持された開始および終了アドレ
スデータによって与えられるウィンドウ領域のデータの
みがアクセスされる。The start address data held in the window address holding means is incremented as an initial value, and when it matches the end address data held in the window address holding means, the access ends. As a result, among the contents of the image memory, only the data in the window area given by the start and end address data held in the window address holding means is accessed.
一方、ソフトウェアによりアフィン変換等を行なう場合
のように、制御バスから入力される外部CPU等からの
アドレスデータにより画像メモリをアクセスする場合に
は、ウィンドウ領域の開始および終了アドレスデータに
よって、そのアドレスデータがウィンドウ領域内のアド
レスに対応するデータかどうかを知り、ウィンドウ領域
外のデータと認識すると、そのアドレスデータによる画
像メモリのアクセスを禁止する。On the other hand, when accessing the image memory using address data from an external CPU, etc. input from the control bus, such as when performing affine transformation etc. using software, the address data is accessed using the start and end address data of the window area. It is determined whether the data corresponds to an address within the window area, and if it is recognized as data outside the window area, access to the image memory by that address data is prohibited.
(実施例)
第1図は本発明の一実施例に係る画像記憶装置の構成図
である。同図において、レジスタ4゜なわち第2図に斜
線で示すウィンドウ領域のX。(Embodiment) FIG. 1 is a block diagram of an image storage device according to an embodiment of the present invention. In the same figure, register 4°, that is, X in the window area indicated by diagonal lines in FIG.
X方向の開始アドレスデータXs、Ysおよび終了アド
レスデータXe、Yeを保持する。Holds X-direction start address data Xs, Ys and end address data Xe, Ye.
ウィンドウ領域のX方向の開始アドレスデータXsを保
持するレジスタ4の内容は、X方向のアドレスカウンタ
8に初期値として入力される。ウィンドウ領域のX方向
の開始アドレスデータYsを保持するカウンタ5は、X
方向のアドレスカウンタを兼ねている(以下、カウンタ
5をアドレスカウンタという)。The contents of the register 4 holding the X-direction start address data Xs of the window area are input to the X-direction address counter 8 as an initial value. The counter 5 that holds the start address data Ys in the X direction of the window area is
It also serves as a direction address counter (hereinafter, counter 5 will be referred to as an address counter).
これらX方向およびX方向のアドレスカウンタ8.5か
らのアドレスデータ(Xl、Yj とする)は、セレク
タ9の一方の入力に与えられる。セレクタ9の他方の入
力には、CPUIから制御バス2およびインターフェー
ス3を介して入力されるアドレスデータが与えられる。The address data (Xl, Yj) from the X-direction and X-direction address counters 8.5 are applied to one input of the selector 9. The other input of the selector 9 is given address data input from the CPUI via the control bus 2 and interface 3.
セレクタ9により選択されたアドレスデータは、画像メ
モリ10に供給される。画像メモリ10はRAMにより
構成され、例えば第2図に示すように512 X512
のアドレス空間を有するものとする。また、画像メモア
ドレスカウンタ8,5からのアドレスデータXi、Yj
は、それぞれ第1の比較手段としてのコンパレータll
a、llbの一方の入力に与えられる。コンパレータl
la、llbの他方の入力には、CPUIから制御バス
2およびインターフェース3を介して入力されるアドレ
スデータが与えられる。The address data selected by the selector 9 is supplied to the image memory 10. The image memory 10 is composed of a RAM, and for example, as shown in FIG.
It has an address space of In addition, address data Xi, Yj from the image memo address counters 8, 5
are the comparators ll and ll as the first comparison means, respectively.
It is given to one input of a and llb. comparator l
Address data input from the CPU via the control bus 2 and interface 3 is applied to the other inputs of la and llb.
一方、セレクタ9により選択されたアドレスデータは、
第2の比較手段であるコンパレータ12a、12bの一
方の入力にそれぞれ与えられる。コンパレータ12a、
12bの他方の人力には、レジスタ6.7に保持された
ウィンドウ領域のx、X方向の終了アドレスデータXe
、Ycがそれぞれ与えられている。On the other hand, the address data selected by the selector 9 is
Each of the signals is applied to one input of comparators 12a and 12b, which are second comparison means. Comparator 12a,
12b has the end address data Xe in the x and X directions of the window area held in the register 6.7.
, Yc are given, respectively.
コンパレータlla、llbおよび12a。Comparators lla, llb and 12a.
12bの比較結果は、コントローラ13に人力される。The comparison result 12b is manually input to the controller 13.
コントローラ13はこれらの比較結果に基づいてアドレ
スカウンタ8,5および画像メモリ10を制御する。ま
た、コントローラ13はセレ制御バス2との間で行なう
かを切換えるためのものである。Controller 13 controls address counters 8, 5 and image memory 10 based on these comparison results. Further, the controller 13 is used to switch between the select control bus 2 and the select control bus 2.
次に、本実施例の画像記憶装置の動作を説明す°る。本
装置におけるウィンドウアクセス機能としては、(1)
画像メモリ10内のウィンドウ領域を順次アクセスする
通常のウィンドウアクセスと、(2)CPUIから画像
メモリ10をアクセスする場合にウィンドウ領域外のア
ドレスのアクセスを禁止し、ウィンドウ領域内のアクセ
スのみを許容するウィンドウアクセスとがある。Next, the operation of the image storage device of this embodiment will be explained. The window access function of this device is (1)
(2) When accessing the image memory 10 from the CPUI, access to addresses outside the window area is prohibited and only access within the window area is allowed. There is window access.
(1)のウィンドウアクセス時には、まずCPUIから
制御バス2およびインターフェース3を介してレジスタ
4にウィンドウ領域のX方向の開始アドレスデータXs
が、アドレスカウンタ5にX方向の開始アドレスデータ
Ysが、レジスタ61;X方向の終了アドレスデータX
eが、レジスタ7にX方向の終了アドレスデータYeが
それぞれセットされる。次に、レジスタ4の内容がアド
レスカウンタ8にロードされ、アドレスカウンタ8の内
容、すなわちX方向のアドレスデータXtが一つンパレ
ータ12aでアドレスカウンタ8からのX・、I
方−向のアドレスデータXIがレジスタ6からのX方向
の終了アドレスXeのデータと一致したと判定されると
、コントローラ13の制御によりレジスタ4の内容がア
ドレスカウンタ8に再ロードされ、さらにアドレスカウ
ンタ5の内容、すなわちX方向のアドレスデータYjが
一つインクリメントされる。以下、Xl−Xcとなるご
とにYjがインクリメントされ、Xl−Xa、Yj−Y
eとなるまで同様の動作が行なわれることにより、画像
メモリ10内のウィンドウ領域がアクセスされる。When accessing the window in (1), first, the start address data Xs in the X direction of the window area is stored in the register 4 from the CPU via the control bus 2 and interface 3.
However, the start address data Ys in the X direction is stored in the address counter 5, and the end address data Ys in the X direction is stored in the register 61;
e and end address data Ye in the X direction are set in the register 7, respectively. Next, the contents of the register 4 are loaded into the address counter 8, and the contents of the address counter 8, that is, the address data Xt in the X direction, are transferred to the comparator 12a by the address counter 8. When it is determined that the data matches the data of the end address Xe in the X direction from the register 6, the contents of the register 4 are reloaded into the address counter 8 under the control of the controller 13, and the contents of the address counter 5, that is, the data in the X direction are reloaded. address data Yj is incremented by one. Thereafter, Yj is incremented every time Xl-Xc becomes Xl-Xa, Yj-Y
The window area in the image memory 10 is accessed by performing similar operations until reaching e.
この場合、CPUIはウィンドウ領域の開始および終了
アドレスデータのみを発生すればよく、ウィンドウ領域
内の個々のアドレスデータを発生する必要はないので、
ソフトウェアは非常に簡単となる。また、アドレスカウ
ンタ8.5の内容をインクリメントさせるだけでアドレ
スデータを進められるので、画像メモリ10のアクセス
速度が非常に速い。In this case, the CPU only needs to generate the start and end address data of the window area, and there is no need to generate individual address data within the window area.
The software becomes very simple. Furthermore, since the address data can be advanced simply by incrementing the contents of the address counter 8.5, the access speed of the image memory 10 is extremely fast.
一方、(2)のウィンドウアクセス時には、(1)と同
様にまずレジスタ4.アドレスカウンタ5.レジ任意の
アドレスデータが入力され、セレクタ9を介して画像メ
モリ10に与えられる。このとき入力されるアドレスカ
ウンタはコンパレータ11a。On the other hand, when accessing the window in (2), register 4 is first accessed as in (1). Address counter5. Arbitrary address data is input to the register and provided to the image memory 10 via the selector 9. The address counter input at this time is the comparator 11a.
11bおよび12a、12bによりウィンドウアドレス
、すなわちXs、Ys、Xe、Yeと常時比較されてい
る。そして、コントローラ13によりコンパレータll
a、llb、12a、12bの比較結果から、入力され
たアドレスデータがウィンドウ領域外のアドレスに対応
するデータと判定された場合は、画像メモリ10に供給
されているアドレスストローブ信号を反転させ、そのア
ドレスデータによる画像メモリ10のアクセスを禁止す
る。11b, 12a, and 12b are constantly compared with window addresses, that is, Xs, Ys, Xe, and Ye. Then, the controller 13 controls the comparator ll.
If it is determined that the input address data corresponds to an address outside the window area from the comparison results of a, Access to the image memory 10 using address data is prohibited.
この場合も、CPUIはウィンドウ領域を考慮せずにア
ドレスデータを発生することができるので、そのための
ソフトウェアは簡単である。In this case as well, the CPU can generate address data without considering the window area, so the software for this purpose is simple.
[発明の効果]
本発明による画像記憶装置によれば、ウィンドウアクセ
スのためのソフトウェアの負担が大きく軽減され、しか
もアクセス速度を高速化することができる。[Effects of the Invention] According to the image storage device according to the present invention, the burden on software for window access can be greatly reduced, and the access speed can be increased.
第3図は画像メモリのアドレスデータの構成を示す図で
ある。FIG. 3 is a diagram showing the structure of address data of the image memory.
1・・・CPU、2・・・制御バス、3・・・インター
フェース、4・・・レジスタ、5・・・アドレスカウン
タ、6・・・レジスタ、7・・・レジスタ、8・・・ア
ドレスカウンタ、9・・・セレクタ(選択手段)、10
・・・画像メモリ、11a、11b・・・コンパレータ
(第1の比較手段)、12a、12b・・・コンパレー
タ(第2の比較手段)、13・・・コントローラ、14
・・・セレクタ、15・・・データバス、16・・・イ
ンターフェースO1... CPU, 2... Control bus, 3... Interface, 4... Register, 5... Address counter, 6... Register, 7... Register, 8... Address counter , 9... selector (selection means), 10
... image memory, 11a, 11b... comparator (first comparing means), 12a, 12b... comparator (second comparing means), 13... controller, 14
...Selector, 15...Data bus, 16...Interface O
Claims (1)
始アドレスデータおよび終了アドレスデータを保持する
ウィンドウアドレス保持手段と、前記画像メモリのアド
レスを制御するアドレスカウンタと、 このアドレスカウンタから出力されるアドレスデータと
制御バスから供給されるアドレスデータとを選択的に取
出して前記画像メモリに与える選択手段と、 前記アドレスカウンタから出力されるアドレスデータと
前記制御バスから供給されるアドレスデータとを比較す
る第1の比較手段と、 前記選択手段により取出されたアドレスデータと前記終
了アドレスデータとを比較する第2の比較手段と、 これら第1および第2の比較手段の比較結果に基づいて
前記アドレスカウンタの内容を前記開始アドレスを初期
値として前記終了アドレスと一致するまでインクリメン
トする手段と、 前記選択手段により前記制御バスからのアドレスデータ
が選択されている場合は前記第1および第2の比較手段
の比較結果に基づいて、制御バスからのアドレスデータ
が前記ウィンドウ領域外のアドレスに対応するデータの
とき該アドレスデータによる前記画像メモリのアクセス
を禁止する手段とを備えたことを特徴とする画像記憶装
置。[Scope of Claims] An image memory for storing image data, a window address holding means for holding start address data and end address data of a window area set for the image memory, and controlling an address of the image memory. an address counter that outputs the address data outputted from the address counter and address data supplied from the control bus; selection means that selectively extracts the address data outputted from the address counter and the address data supplied from the control bus and applies the extracted address data to the image memory; a first comparing means for comparing the address data supplied from the control bus; a second comparing means for comparing the address data taken out by the selecting means and the end address data; means for incrementing the contents of the address counter with the starting address as an initial value until it matches the ending address based on the comparison result of the comparing means; and the selecting means selects the address data from the control bus. If the address data from the control bus is data corresponding to an address outside the window area, means for prohibiting access to the image memory by the address data based on the comparison results of the first and second comparison means. An image storage device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62039102A JPS63206872A (en) | 1987-02-24 | 1987-02-24 | Picture memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62039102A JPS63206872A (en) | 1987-02-24 | 1987-02-24 | Picture memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63206872A true JPS63206872A (en) | 1988-08-26 |
Family
ID=12543706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62039102A Pending JPS63206872A (en) | 1987-02-24 | 1987-02-24 | Picture memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63206872A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0277935A (en) * | 1988-09-14 | 1990-03-19 | Mitsubishi Electric Corp | Line buffer memory |
JPH04237382A (en) * | 1991-01-22 | 1992-08-25 | Fujitsu Ltd | Device and method for generating image address |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59176775A (en) * | 1983-03-28 | 1984-10-06 | 富士通株式会社 | Writing control system for bit map memory |
JPS60254255A (en) * | 1984-05-30 | 1985-12-14 | Ricoh Co Ltd | Memory scan system |
JPS61223788A (en) * | 1985-03-28 | 1986-10-04 | 富士通株式会社 | Clipping control system |
-
1987
- 1987-02-24 JP JP62039102A patent/JPS63206872A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59176775A (en) * | 1983-03-28 | 1984-10-06 | 富士通株式会社 | Writing control system for bit map memory |
JPS60254255A (en) * | 1984-05-30 | 1985-12-14 | Ricoh Co Ltd | Memory scan system |
JPS61223788A (en) * | 1985-03-28 | 1986-10-04 | 富士通株式会社 | Clipping control system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0277935A (en) * | 1988-09-14 | 1990-03-19 | Mitsubishi Electric Corp | Line buffer memory |
JPH04237382A (en) * | 1991-01-22 | 1992-08-25 | Fujitsu Ltd | Device and method for generating image address |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH02235156A (en) | Information processor | |
JPS63206872A (en) | Picture memory | |
JPS5893095A (en) | Memory address controller | |
US5335087A (en) | Document acknowledge system having horizontal/vertical-run length smoothing algorithm circuits and a document region divide circuit | |
JPS61117673A (en) | System for picture data transfer processing | |
JP3206013B2 (en) | Direct memory access transfer controller | |
JPS62297954A (en) | Memory control system | |
KR100367054B1 (en) | Hardware-based sequential mask read-only memory adapter | |
JPH1011388A (en) | Direct memory access controller | |
JP2669432B2 (en) | Image data transfer device | |
JPS62175852A (en) | Register access device | |
JPS62145339A (en) | Interleaving type storage device | |
JPH01304490A (en) | Display controller | |
JPS63170755A (en) | Microcomputer | |
JPH0512097A (en) | Method and circuit for memory access | |
JPH04138582A (en) | Single instruction type parallel computer | |
JPS61148550A (en) | Memory device | |
JPH07281944A (en) | Image memory control method | |
JPH0520253A (en) | Data processor | |
JPH0399338A (en) | Microprocessor | |
JPS62272336A (en) | Memory control system | |
JPH0432949A (en) | I/o port address extension system | |
JPH04111149A (en) | Circuit system for dma device | |
JPH07319809A (en) | Processor | |
JPS623371A (en) | Vector data processor |