JPH06161880A - Arbitrary editing circuit for address decode - Google Patents
Arbitrary editing circuit for address decodeInfo
- Publication number
- JPH06161880A JPH06161880A JP31387592A JP31387592A JPH06161880A JP H06161880 A JPH06161880 A JP H06161880A JP 31387592 A JP31387592 A JP 31387592A JP 31387592 A JP31387592 A JP 31387592A JP H06161880 A JPH06161880 A JP H06161880A
- Authority
- JP
- Japan
- Prior art keywords
- address
- memory
- circuit
- memories
- setting
- 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.)
- Withdrawn
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は処理装置から複数の多面
化されたメモリにアクセスするときのメモリのアドレス
デコードを任意に編集する回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit for arbitrarily editing address decoding of a memory when accessing a plurality of multifaceted memories from a processing device.
【0002】例えば、処理装置(以下CPUと称する)
を使用した監視装置は、その機能が高度化、複雑化して
きており、そこで使用するメモリや入出力装置の容量も
CPUのもつアドレッシングでは不足する状態が生ずる
ようになってきている。For example, a processing device (hereinafter referred to as CPU)
The function of the monitoring device using the CPU is becoming more sophisticated and complicated, and the capacity of the memory and the input / output device used therein is becoming insufficient by the addressing of the CPU.
【0003】このような容量の不足を解消するために、
メモリや入出力装置のアドレスブロックを複数の面で構
成することにより、多面化し容量不足を解消している。
このような多面化した面間でCPUが処理を実行すると
き、処理効率の高いアドレスデコードの任意編集回路が
要求されている。In order to solve such a shortage of capacity,
By constructing the address blocks of the memory and the input / output device from multiple planes, the number of planes is increased and the lack of capacity is eliminated.
When the CPU executes processing between such multifaceted surfaces, an arbitrary edit circuit for address decoding with high processing efficiency is required.
【0004】[0004]
【従来の技術】図4は従来例を説明するブロック図を示
す。図はメモリを512Kbyteの3面のランダムア
クセスメモリ(以下RAMと称する)21A〜23Aか
ら構成した例である。図中の10はCPU、40はバン
クレジスタである。2. Description of the Related Art FIG. 4 shows a block diagram for explaining a conventional example. The figure shows an example in which the memory is composed of three 512-byte random access memories (hereinafter referred to as RAM) 21A to 23A. In the figure, 10 is a CPU and 40 is a bank register.
【0005】図5は多面化したメモリマップの構成例で
ある。(A)は多面化する前のメモリマップを示す。こ
こでは、アドレスが00000〜7FFFFの512K
bのRAM21Aと、アドレスが80000〜FFFF
Fの512Kbのリードオンリメモリ(以下ROMと称
する)20Aから構成した例である。FIG. 5 shows an example of the structure of a multi-faceted memory map. (A) shows a memory map before being multifaceted. Here, the address is 00000 to 7FFFF and is 512K.
RAM 21A of b and the address is 80,000 to FFFF
In this example, the read-only memory (hereinafter referred to as ROM) 20A of 512 Kb of F is used.
【0006】(B)は多面化した時のメモリマップを示
し、RAM21Aの他に、RAM22A、23Aを使用
した例である。このようにして構成したRAM21A〜
23Aをバンクと称する。FIG. 3B shows a memory map when the number of faces is increased, and is an example in which RAMs 22A and 23A are used in addition to the RAM 21A. The RAM 21A configured in this way
23A is called a bank.
【0007】ここでRAM21A〜23AにCPU10
からアクセスする場合、CPU10から図4に示すバン
クレジスタ40に、RAM21A〜23Aの何れをアク
セスするかを指示し、バンクレジスタ40は使用するR
AM21A〜23Aの1つに面切替信号(チップイネー
ブル信号)CEを出力し、面切り替えを行う。Here, the CPU 10 is stored in the RAMs 21A to 23A.
When accessing from the CPU 10, the CPU 10 instructs the bank register 40 shown in FIG. 4 which of the RAMs 21A to 23A is to be accessed, and the bank register 40 uses the R to be used.
A surface switching signal (chip enable signal) CE is output to one of the AMs 21A to 23A to perform surface switching.
【0008】[0008]
【発明が解決しようとする課題】上述の従来例におい
て、多面化されたRAM21A〜23Aでデータの転送
を行う場合、1バイト(ワード)毎に面切り替えを行う
ことが必要である。In the above-mentioned conventional example, when data is transferred in the multi-faceted RAMs 21A to 23A, it is necessary to switch faces for each byte (word).
【0009】例えば、RAM21AのデータをRAM2
2Aに転送する場合は次の処理となる。 バンクを切り替える。For example, the data in the RAM 21A is transferred to the RAM 2
In the case of transferring to 2A, the following processing is performed. Switch banks.
【0010】 RAM21AからDATA READ
を行う。 バンクを切り替える。 RAM22AにDATA WRITEを行う。From RAM 21A to DATA READ
I do. Switch banks. DATA WRITE is performed on the RAM 22A.
【0011】このような処理を1バイトごとに行うこと
が必要であるので、大容量のデータの転送を行う際、そ
の処理能力が大きく低下することになる。本発明は処理
装置により、処理装置のアドレッシング以上のメモリ容
量のデータ処理を行う場合に、処理効率を低下させるこ
とのない多面化されたメモリのアドレスデコードの任意
編集回路を実現しようとする。Since it is necessary to perform such processing for each byte, the processing capacity of a large amount of data is greatly reduced. The present invention intends to realize an arbitrary edit circuit for address decoding of a multi-faceted memory that does not reduce the processing efficiency when the processing device performs data processing with a memory capacity larger than the addressing of the processing device.
【0012】[0012]
【課題を解決するための手段】図1は本発明の原理を説
明するブロック図である。図中の10はデータ処理を行
うCPUであり、21〜2nは複数の多面化されたメモ
リであり、31〜3nは複数の多面化されたメモリ21
〜2nが使用するアドレスを設定するメモリアドレス設
定回路30Aと、メモリアドレス設定回路30Aに設定
した設定アドレスと処理装置10が指定するアドレスを
比較して、多面化されたメモリ21〜2nのイネーブル
制御を行うアドレス比較回路30Bよりなるアドレスデ
コーダであり、かかる手段によりメモリマップの編集を
任意に行う。FIG. 1 is a block diagram for explaining the principle of the present invention. In the figure, 10 is a CPU for processing data, 21 to 2n are a plurality of multifaceted memories, and 31 to 3n are a plurality of multifaceted memories 21.
Memory address setting circuit 30A for setting the address used by ~ 2n, and the address set by the memory address setting circuit 30A and the address specified by the processor 10 are compared to enable control of the multi-sided memories 21-2n. This is an address decoder composed of the address comparison circuit 30B for performing the above. The memory map is arbitrarily edited by such means.
【0013】[0013]
【作用】CPU10により、CPU10のアドレッシン
グ以上のメモリ容量のデータ処理を行う場合に、メモリ
を多面化してその容量を増加させる。When the CPU 10 performs data processing with a memory capacity larger than the addressing of the CPU 10, the memory is multifaceted to increase its capacity.
【0014】この多面化したメモリ21〜2nをアクセ
スするとき、アドレスデコーダ31〜3nのアドレス設
定回路30Aにメモリ21〜2nが使用するアドレス範
囲を設定しておき、CPU10が指定するアドレスとア
ドレス設定回路30Aに設定したアドレスをアドレス比
較回路30Bで比較し、使用するメモリ21〜2nの中
の1つをイネーブル状態としてデータの入出力を行う。When accessing the multifaceted memories 21 to 2n, the address range used by the memories 21 to 2n is set in the address setting circuit 30A of the address decoders 31 to 3n, and the address and the address setting designated by the CPU 10 are set. The addresses set in the circuit 30A are compared by the address comparison circuit 30B, and one of the memories 21 to 2n to be used is enabled and data is input / output.
【0015】また、アドレス設定回路30Aに設定する
アドレスはCPU10から任意の値に設定できるので、
多面化したメモリ21〜2nの任意のバンクを使用する
ことが可能となるとともに、処理能力を低下させること
なくバンク間のデータの転送が可能となる。Since the address set in the address setting circuit 30A can be set to any value by the CPU 10,
It is possible to use an arbitrary bank of the multi-faceted memories 21 to 2n, and it is possible to transfer data between the banks without lowering the processing capacity.
【0016】[0016]
【実施例】図2は本発明の実施例を説明するブロック図
である。図はメモリとして3面のRAMを使用する例で
ある。図中の10はCPUであり、21A〜23AはR
AMであり、31〜33はアドレスデコーダである。FIG. 2 is a block diagram illustrating an embodiment of the present invention. The figure shows an example in which a three-sided RAM is used as a memory. In the figure, 10 is a CPU, and 21A to 23A are R
AM, and 31 to 33 are address decoders.
【0017】また、原理図で設定したアドレス設定回路
30Aとして、Aレジスタ31a、Bレジスタ32a、
加算回路33a、アドレス比較回路30Bとして、比較
回路31b、32b、論理積回路(以下AND回路と称
する)33bから構成した例である。ここでは、アドレ
スデコーダ31のみの構成を示しているが、アドレスデ
コーダ32、33の構成もアドレスデコーダ31の構成
と同じである。As the address setting circuit 30A set in the principle diagram, an A register 31a, a B register 32a,
In this example, the adder circuit 33a and the address comparison circuit 30B are composed of comparison circuits 31b and 32b and an AND circuit (hereinafter referred to as an AND circuit) 33b. Although only the configuration of the address decoder 31 is shown here, the configurations of the address decoders 32 and 33 are the same as the configuration of the address decoder 31.
【0018】図3は本発明の実施例のメモリマップ構成
の例を示す。(A)はRAM21A〜23Aが使用する
アドレスの先頭アドレス(ベースアドレス)とそのデコ
ードサイズを示す。ここでRAM21Aはベースアドレ
スが00000であり、デコードサイズは3FFFFの
256Kbであり、RAM22Aはベースアドレス40
000であり、デコードサイズは1FFFFの128K
bであり、RAM23Aはベースアドレス60000で
あり、デコードサイズは1FFFFの128Kbであ
る。FIG. 3 shows an example of the memory map configuration of the embodiment of the present invention. (A) shows the start address (base address) of the addresses used by the RAMs 21A to 23A and its decode size. Here, the RAM 21A has a base address of 00000, the decode size is 256 kb of 3FFFF, and the RAM 22A has a base address of 40Kb.
000, and the decoding size is 128K with 1FFFF
b, the RAM 23A has a base address of 60000, and the decoding size is 128 Kb of 1FFFF.
【0019】(B)は実際のRAM21A〜23Aが使
用するアドレスを図示したものである。また、RAM2
1A〜23Aの他にROM20Aとして80000から
〜FFFFFの512Kbをもっており、ここにはCP
U10が処理を実行するためのプログラムが書き込まれ
ている。(B) shows the addresses used by the actual RAMs 21A-23A. In addition, RAM2
In addition to 1A to 23A, ROM 20A has 80000 to 512 Kb of FFFFF.
A program for the U10 to execute the processing is written.
【0020】図3の条件での図2の動作を説明する。 アドレスデコーダ31〜33のAレジスタ31aに
それぞれのメモリがデコードするベースアドレスがCP
U10によりセットされる。ここでは、RAM21A〜
23Aに00000、40000、60000がセット
される。The operation of FIG. 2 under the condition of FIG. 3 will be described. The base addresses decoded by the respective memories are stored in the A register 31a of the address decoders 31 to 33 as CP.
Set by U10. Here, RAM 21A-
23A is set to 00000, 40,000 and 60,000.
【0021】 アドレスデコーダ31〜33のBレジ
スタ32aにそれぞれのメモリのデコードを行うデコー
ドサイズがCPU10によりセットされる。ここでは、
RAM21A〜23Aに3FFFF、1FFFF、1F
FFFがセットされる。The CPU 10 sets the decode size for decoding each memory in the B register 32a of the address decoders 31 to 33. here,
3FFFF, 1FFFF, 1F in RAM21A-23A
FFF is set.
【0022】 加算回路33aによりAレジスタ31
aにセットされた値とBレジスタ32aにセットされた
値の加算を行う。加算結果はデコードをおこなうアドレ
ッシングブロックの最大アドレスを示し、ここでは、3
FFFF、5FFFF、7FFFFとなる。The adder circuit 33 a controls the A register 31.
The value set in a and the value set in the B register 32a are added. The addition result indicates the maximum address of the addressing block to be decoded.
FFFF, 5FFFF, and 7FFFF.
【0023】 CPU10から出力されるアドレスバ
スのアドレスとAレジスタ31aにセットしたベースア
ドレスとを比較回路31bで比較し、ベースアドレスよ
り、アドレスバスからのアドレスが大きい場合には
「1」が出力される。The comparison circuit 31b compares the address of the address bus output from the CPU 10 with the base address set in the A register 31a, and when the address from the address bus is larger than the base address, "1" is output. It
【0024】 CPU10から出力されるアドレスバ
スのアドレスと加算回路33aの加算結果とを比較回路
32bで比較し、加算回路33aの加算結果の最大アド
レスより、アドレスバスからのアドレスが小さい場合に
は「1」が出力される。The comparison circuit 32b compares the address of the address bus output from the CPU 10 with the addition result of the addition circuit 33a. If the address from the address bus is smaller than the maximum address of the addition result of the addition circuit 33a, " 1 ”is output.
【0025】 比較回路31b、比較回路32bから
同時に「1」が出力されたときのみAND回路33bの
出力が「1」となり、この「1」がRAM21A〜23
Aに対するチップイネーブル信号CEとなる。すなわ
ち、「1」が出力されたアドレスデコーダ31〜33に
対応するRAM21A〜23Aのみがイネーブルとな
り、CPU10からのデータを入出力する。The output of the AND circuit 33b becomes "1" only when "1" is simultaneously output from the comparison circuit 31b and the comparison circuit 32b, and this "1" is RAMs 21A to 23.
It becomes the chip enable signal CE for A. That is, only the RAMs 21A to 23A corresponding to the address decoders 31 to 33 to which "1" is output are enabled and the data from the CPU 10 is input / output.
【0026】例えば、CPU10からアドレス0500
0が出力されると、アドレスデコーダ31から「1」が
出力されRAM21Aがイネーブル状態となり、アドレ
ス45000が出力されるとアドレスデコーダ32から
「1」が出力されRAM22Aがイネーブル状態とな
り、アドレス65000が出力されるとアドレスデコー
ダ33から「1」が出力されRAM23Aがイネーブル
状態となることにより、イネーブル状態となったRAM
がアクセスされる。For example, from CPU 10 address 0500
When 0 is output, "1" is output from the address decoder 31 and the RAM 21A is enabled. When address 45000 is output, "1" is output from the address decoder 32 and the RAM 22A is enabled, and address 65000 is output. Then, "1" is output from the address decoder 33 and the RAM 23A is enabled, so that the RAM enabled.
Is accessed.
【0027】ここで、RAM21AのデータをRAM2
2Aに転送する場合は次の処理となる。 RAM21AのDATAをRAM22AにDATA
WRITEする。Here, the data in the RAM 21A is transferred to the RAM 2
In the case of transferring to 2A, the following processing is performed. DATA of RAM21A to DATA of RAM22A
WRITE.
【0028】従来例では、この動作を4ステップの処理
で実行するが、本発明の実施例によると1ステップの処
理で実行することが可能となる。Aレジスタ、Bレジス
タにセットするベースアドレス、デコードサイズはCP
Uから任意に設定することが可能であるので、CPUが
実行する処理に最適のベースアドレス、デコードサイズ
をRAMに設定することにより、RAMのバンクを有効
に利用することができる。In the conventional example, this operation is executed in the process of 4 steps, but according to the embodiment of the present invention, it is possible to execute the operation in the process of 1 step. The base address set in the A and B registers and the decode size is CP
Since it can be arbitrarily set from U, the bank of the RAM can be effectively used by setting the optimum base address and decoding size for the processing executed by the CPU in the RAM.
【0029】[0029]
【発明の効果】本発明によれば、多面化されたメモリの
任意のバンクを処理装置からの設定により、自由に指定
して使用することが可能となり、データ転送時に1バイ
トごとの面切り替えが必要でなくなることから、その処
理に要する時間を約50%短縮することができる。According to the present invention, it is possible to freely specify and use an arbitrary bank of a multi-sided memory by setting from the processing device, and to switch the surface for each byte at the time of data transfer. Since it is not necessary, the time required for the processing can be shortened by about 50%.
【図1】 本発明の原理を説明するブロック図FIG. 1 is a block diagram illustrating the principle of the present invention.
【図2】 本発明の実施例を説明するブロック図FIG. 2 is a block diagram illustrating an embodiment of the present invention.
【図3】 本発明の実施例のメモリマップ構成の例FIG. 3 is an example of a memory map configuration according to an embodiment of the present invention.
【図4】 従来例を説明するブロック図FIG. 4 is a block diagram illustrating a conventional example.
【図5】 多面化したメモリマップ構成例FIG. 5: Example of multi-faceted memory map configuration
10 処理装置 21〜2n メモリ 20A ROM 21A〜23A RAM 31〜3n アドレスデコーダ 30A メモリアドレス設定回路 30B アドレス比較回路 31a Aレジスタ 32a Bレジスタ 33a 加算回路 31b、32b 比較回路 33b AND回路 40 バンクレジスタ 10 processing device 21-2n memory 20A ROM 21A-23A RAM 31-3n address decoder 30A memory address setting circuit 30B address comparison circuit 31a A register 32a B register 33a addition circuit 31b, 32b comparison circuit 33b AND circuit 40 bank register
Claims (1)
たメモリ(21〜2n)にアクセスするときのアドレス
デコードを任意に行う回路であって、 データ処理を行う処理装置(10)と、 複数の多面化されたメモリ(21〜2n)と、 前記複数の多面化されたメモリ(21〜2n)が使用す
るアドレスを設定するメモリアドレス設定回路(30
A)と、前記メモリアドレス設定回路(30A)に設定
した設定アドレスと前記処理装置(10)が指定するア
ドレスを比較して、前記多面化されたメモリ(21〜2
n)のイネーブル制御を行うアドレス比較回路(30
B)よりなるアドレスデコーダ(31〜3n)を備え、 メモリマップの編集を任意に行うことを特徴とするアド
レスデコードの任意編集回路。1. A processing device (10) for arbitrarily performing address decoding when accessing a plurality of multi-faceted memories (21-2n) from the processing device (10), A plurality of multifaceted memories (21 to 2n) and a memory address setting circuit (30) for setting an address used by the plurality of faceted memories (21 to 2n).
A) is compared with a setting address set in the memory address setting circuit (30A) and an address designated by the processing device (10), and the multi-sided memory (21-2
n) enable control circuit (30) for performing enable control
An arbitrary edit circuit for address decoding, comprising an address decoder (31 to 3n) consisting of B) and arbitrarily editing a memory map.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31387592A JPH06161880A (en) | 1992-11-25 | 1992-11-25 | Arbitrary editing circuit for address decode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31387592A JPH06161880A (en) | 1992-11-25 | 1992-11-25 | Arbitrary editing circuit for address decode |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06161880A true JPH06161880A (en) | 1994-06-10 |
Family
ID=18046564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP31387592A Withdrawn JPH06161880A (en) | 1992-11-25 | 1992-11-25 | Arbitrary editing circuit for address decode |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06161880A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6336158B1 (en) * | 1998-10-30 | 2002-01-01 | Intel Corporation | Memory based I/O decode arrangement, and system and method using the same |
-
1992
- 1992-11-25 JP JP31387592A patent/JPH06161880A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6336158B1 (en) * | 1998-10-30 | 2002-01-01 | Intel Corporation | Memory based I/O decode arrangement, and system and method using the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3532932B2 (en) | Randomly accessible memory with time overlapping memory access | |
US6523755B2 (en) | Semiconductor memory device | |
CA1037159A (en) | Processing link control system for data processing equipment | |
JPS5995660A (en) | Data processor | |
JP4175694B2 (en) | Flash memory and system equipped with flash memory | |
JPH06161880A (en) | Arbitrary editing circuit for address decode | |
US8812813B2 (en) | Storage apparatus and data access method thereof for reducing utilized storage space | |
JP2874230B2 (en) | Memory addressing method of microcomputer | |
KR940003632B1 (en) | Method and circuit extending memory space in micro-processor | |
US20020156964A1 (en) | Reduction of bank switching instructions in main memory of data processing apparatus having main memory and plural memory | |
JPS593440Y2 (en) | memory selection device | |
JPS598070A (en) | Memory access circuit | |
JPS6143362A (en) | Integrated circuit device | |
JPS62132297A (en) | Semiconductor memory element | |
JPH06251589A (en) | Associative memory input/output control circuit | |
JPH0417044A (en) | Memory access system | |
JPH04241651A (en) | Microcomputer | |
JPH0922394A (en) | Controller | |
JPH07312081A (en) | Random access memory circuit | |
JPH03211641A (en) | Address designation method for memory device | |
JPH06337847A (en) | Multiprocessor device | |
JPH05257798A (en) | Memory control circuit | |
JPH01154392A (en) | Memory circuit | |
JPS63646A (en) | Control circuit for memory access waiting | |
JPS58122688A (en) | Memory device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20000201 |