JPH03118648A - Effective application method of memory area for cpu control - Google Patents
Effective application method of memory area for cpu controlInfo
- Publication number
- JPH03118648A JPH03118648A JP25585989A JP25585989A JPH03118648A JP H03118648 A JPH03118648 A JP H03118648A JP 25585989 A JP25585989 A JP 25585989A JP 25585989 A JP25585989 A JP 25585989A JP H03118648 A JPH03118648 A JP H03118648A
- Authority
- JP
- Japan
- Prior art keywords
- address
- cpu
- memory
- area
- read
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims description 7
- 238000010586 diagram Methods 0.000 description 5
- 239000013256 coordination polymer Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔概 要〕
CPUで制御される回路において、CPUで決められた
範囲のメモリ領域を有効に使用する方法に関し、
CPUで決められたメモリ領域の中で、そのメモリ領域
以上の情報を記憶できるCPU制御におけるメモリ領域
の有効活用方法を提供することを目的とし、
CPUと、CPuに接続され、所定のデータを記憶する
リードオンリーメモリと、アクセスするべきリードオン
リーメモリを識別するための信号をCPUから入力し、
解読して出力するアドレスデコーダとを有する回路にお
いて、リードオンリーメモリのアドレス領域を所定の数
に区分し、同一り−ドオンリーメモリ内のそれぞれのア
ドレス領域に同一のアドレスを与え、CPUからの制御
信号を入力して解読し、リードオンリーメモリの区分し
たアドレス領域のうちCPUにより指定されたアドレス
領域にアクセスする第2のデコーダを設け、アドレスデ
コーダの出力信号により指定されたリードオンリーメモ
リの、第2のデコーダにより指定されたアドレス領域の
、CPUにより指定されたアドレスに記憶したデータを
読み出すように構成する。[Detailed Description of the Invention] [Summary] Regarding a method for effectively using a memory area within a range determined by the CPU in a circuit controlled by the CPU. The purpose is to provide a method for effectively utilizing memory areas in CPU control that can store the above information, and identifies the CPU, the read-only memory that is connected to the CPU and stores predetermined data, and the read-only memory that should be accessed. Input the signal from the CPU to
In a circuit having an address decoder that decodes and outputs the data, the address area of the read-only memory is divided into a predetermined number, the same address is given to each address area in the read-only memory, and the control from the CPU is performed. A second decoder is provided which receives and decodes the signal and accesses the address area specified by the CPU among the divided address areas of the read-only memory. The device is configured to read data stored at an address specified by the CPU in an address area specified by the decoder No. 2.
本発明は、マイクロコンピュータ等のCPUで制御され
る回路において、CPuで決められた範囲のメモリ領域
を有効に使用する方法に関するものである。The present invention relates to a method for effectively using a memory area determined by a CPU in a circuit controlled by a CPU such as a microcomputer.
上記回路においてCPUのアドレス空間が例えば64に
バイトの時、ソフトウェアが80にバイトを使用する時
などのようなあまり広いメモリ領域を持てないシステム
構成の時、リードオンリーメモリ(以下ROMと称する
)として広いアドレス領域を持ちたい場合がある。この
ため、CPUで決められたメモリ領域の中で、そのメモ
リ領域以上の情報を記憶できるCPU制御におけるメモ
リ領域の有効活用方法が要望されている。In the above circuit, when the CPU address space is, for example, 64 bytes, and the software uses 80 bytes, when the system configuration does not have a very large memory area, it is used as a read-only memory (hereinafter referred to as ROM). There are cases where you want to have a wide address area. For this reason, there is a need for a method of effectively utilizing a memory area under CPU control that can store more information than the memory area determined by the CPU.
第3図は従来例の回路の構成を示すブロック図である。 FIG. 3 is a block diagram showing the configuration of a conventional circuit.
第3図において、CPU 1において例えば64にバイ
トの使用可能領域があり、そのうち32にバイトをRO
Mの領域として使用できる場合、これをROM3−1.
3−2に16にバイトずつ割り当てるとする。そして例
えばROM3−1にアクセスする場合、CPU 1から
アドレスデコーダ2にROM3−1にアクセスするため
のチップセレクト信号を出力し、アドレスデコーダ2で
これを解読し、ROM3−1にROM3−1を指定する
信号を、出力しROM3−1にアクセスする。同時にC
PU1からアドレスバスを介してROM3−1.3−2
にアドレスを指定する信号を出力する。In Figure 3, for example, there is a usable area of 64 bytes in CPU 1, and 32 of them have byte RO.
If it can be used as the area of ROM3-1.
Assume that 16 bytes are allocated to 3-2. For example, when accessing ROM3-1, the CPU 1 outputs a chip select signal for accessing the ROM3-1 to the address decoder 2, the address decoder 2 decodes this, and specifies ROM3-1 as the ROM3-1. It outputs a signal to access the ROM 3-1. At the same time C
ROM3-1.3-2 from PU1 via address bus
Outputs a signal specifying the address.
二の結果、ROM3−1の指定されたアドレスに記憶し
たデータが読み出される。As a result of step 2, the data stored at the designated address in the ROM 3-1 is read out.
ROM3−2に記憶したデータを読み出す場合も、上述
と同様にして行う。The reading of data stored in the ROM 3-2 is also carried out in the same manner as described above.
このようにしてROMに記憶したデータを読み出すよう
にしていた。In this way, the data stored in the ROM was read out.
しかしながら上述の回路においては、CPU内の各メモ
リ領域とROM内のアドレスは一対一対応になっている
。CPU内の決められた範囲のメモリ領域が充分に広い
アドレス領域を持っていれば問題はないが、CPUのア
ドレス空間が例えば64にバイトの時、ソフトウェアが
80にバイトを使用する時などのようなあまり広いメモ
リ領域を持てないシステム構成の時、対応するROMの
アドレス領域は狭くなってしまうという問題点があった
。However, in the above-described circuit, each memory area in the CPU and the address in the ROM have a one-to-one correspondence. There is no problem if the specified range of memory area within the CPU has a sufficiently wide address area, but if the CPU's address space is, for example, 64 bytes, and the software uses 80 bytes. In addition, when the system configuration does not have a large memory area, there is a problem that the corresponding ROM address area becomes narrow.
したがって本発明の目的は、CPU内の決められたメモ
リ領域の中で、そのメモリ領域以上の(ソフトウェア)
情報を記憶できるCPU制御におけるメモリ領域の有効
活用方法を提供することにある。Therefore, it is an object of the present invention to store (software) data in a predetermined memory area within a CPU that is greater than or equal to the memory area.
An object of the present invention is to provide a method for effectively utilizing a memory area in CPU control that can store information.
上記問題点は第1図に示す回路構成によって解決される
。The above problem is solved by the circuit configuration shown in FIG.
即ち第1図において、CPU100と、CPUに接続さ
れ、所定のデータを記憶するリードオンリーメモリ30
0−1〜300−nと、アクセスするべきリードオンリ
ーメモリを識別するための信号をCPUから人力し、解
読して出力するアドレスデコーダ200とを有する回路
において、リードオンリーメモリのアドレス領域を所定
の数に区分し、同一リードオンリーメモリ内のそれぞれ
のアドレス領域に同一のアドレスを与える。That is, in FIG. 1, a CPU 100 and a read-only memory 30 connected to the CPU and storing predetermined data.
0-1 to 300-n and an address decoder 200 that manually inputs, decodes and outputs a signal from the CPU to identify the read-only memory to be accessed. The same address is given to each address area within the same read-only memory.
500はCPUからの制御信号を入力して解読し、リー
ドオンリーメモリ内で区分されたアドレス領域のうちC
PUにより指定されたアドレス領域にアクセスするため
に設けられた第2のデコーダである。500 inputs and decodes control signals from the CPU, and selects C from among the address areas divided in the read-only memory.
This is a second decoder provided to access the address area specified by the PU.
そして、アドレスデコーダの出力信号により指定された
リードオンリーメモリの、第2のデコーダにより指定さ
れたアドレス領域の、CPUにより指定されたアドレス
に記憶したデータを読み出すように構成する。Then, data stored at an address specified by the CPU in the address area specified by the second decoder of the read-only memory specified by the output signal of the address decoder is read out.
第1図において、リードオンリーメモリ300−1〜3
00〜nのアドレス領域を所定の数に区分し、同一リー
ドオンリーメモリ内のそれぞれのアドレス領域に同一の
アドレスを与える。In FIG. 1, read-only memories 300-1 to 3
The address areas 00 to n are divided into a predetermined number, and the same address is given to each address area within the same read-only memory.
そして、アドレスデコーダ200の出力信号により指定
されたリードオンリーメモリの、第2のデコーダ500
により指定されたアドレス領域の、CPU100により
指定されたアドレスに記憶したデータを読み出す。Then, the second decoder 500 of the read-only memory specified by the output signal of the address decoder 200
The data stored at the address specified by the CPU 100 in the address area specified by the CPU 100 is read out.
この結果、CPUで決められたメモリ領域の中で、その
メモリ領域以上のソフトウェアを記憶することが可能と
なる。As a result, within the memory area determined by the CPU, it becomes possible to store more software than that memory area.
第2図は本発明の実施例の回路の構成を示すブロック図
である。FIG. 2 is a block diagram showing the configuration of a circuit according to an embodiment of the present invention.
企図を通じて同一符号は同一対象物を示す。The same reference numerals refer to the same objects throughout the design.
第2図において、例えばROM 30−2がそれぞれ1
6にバイトずつの2つの領域(a)、但)に分けられて
いて、(a)及び(b)に同一のアドレスが与えられて
いるとする。そしてCP[I 10から上記ROM 3
0−2の2つの領域(a)又は[有])のいずれかを指
定する制御信号をデコーダ50に加える。この制御信号
は、例えば1ワードがAO−A15の16ビツトからな
る時、上位の1ビツト(A 15)を使用して“1”又
は0”を与えることにより、ROM 30−2の2つの
領域(a)又は(1))のいずれかを指定する。In FIG. 2, for example, each ROM 30-2 has one
Assume that the area is divided into two areas (a) and 6 bytes each, and the same address is given to (a) and (b). and CP[I 10 to the above ROM 3
A control signal is applied to the decoder 50 to specify one of the two regions (a) or [present] of 0-2. For example, when one word consists of 16 bits of AO-A15, this control signal can be applied to two areas of ROM 30-2 by using the upper 1 bit (A15) to give "1" or 0. Specify either (a) or (1)).
例えばROM30−1にメインルーチンのプログラムを
格納し、ROM30−2の2つの領域(a)、(b)に
サブルーチンのプログラムを格納する。そしてメインル
ーチンのプログラムでサブルーチンのプログラムをコー
ルする時、例えばROM30−2の領域(b)をアクセ
スする時には、アドレスデコーダ20の出力のチップセ
レクト信号によりアクセスするべきROMを選択しく今
の場合ROM3O−2)、上記デコーダ50の出力によ
り(今の場合)領域(ハ)を選択する。その後、選択さ
れた領域@)に対してアドレスバスを介して、CPU
10からアドレスを指定し該当するアドレスに記憶した
データ(プログラム)を読み出す。For example, a main routine program is stored in the ROM 30-1, and subroutine programs are stored in two areas (a) and (b) of the ROM 30-2. When the main routine program calls a subroutine program, for example, when accessing area (b) of ROM 30-2, the ROM to be accessed is selected by the chip select signal output from the address decoder 20. 2) Select region (c) (in this case) based on the output of the decoder 50. After that, the CPU sends a message to the selected area @) via the address bus.
Specify an address from 10 and read out the data (program) stored at the corresponding address.
尚、上述の例では1つのROMのアドレス領域を2づに
区分した場合について説明したが、1つのROMを例え
ば4つに区分する時には、CPU 10からデコーダ5
0への制御信号として上位2ビツト(A14、A15)
を使用する。Incidentally, in the above example, the case where the address area of one ROM is divided into two parts is explained, but when one ROM is divided into, for example, four parts, the decoder 5 from the CPU 10
Upper 2 bits (A14, A15) as control signal to 0
use.
この結果、CPUで決められたメモリ領域の中で、その
メモリ領域以上のソフトウェアを記憶することが可能と
なる。As a result, within the memory area determined by the CPU, it becomes possible to store more software than that memory area.
第1図は本発明の原理図、
第2図は本発明の実施例の回路の構成を示すブロック図
、
第3図は従来例の回路の構成を示すブロック図である。
図において
100はCPU 。
200はアドレスデコーダ、
300−1〜300−n はリードオンリーメモリ、5
00は第2のデコーダ
を示す。
〔発明の効果〕
以上説明したように本発明によれば、CPUで決められ
たメモリ領域の中で、そのメモリ領域以上のソフトウェ
アを記憶することが可能となる。
篤
2
図
2本、発明の7原J里図
熟1図FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a block diagram showing the configuration of a circuit according to an embodiment of the present invention, and FIG. 3 is a block diagram showing the configuration of a conventional circuit. In the figure, 100 is a CPU. 200 is an address decoder, 300-1 to 300-n are read-only memories, 5
00 indicates the second decoder. [Effects of the Invention] As described above, according to the present invention, it is possible to store more software than the memory area determined by the CPU within the memory area. Atsushi 2 Figure 2 Book, 7 originals of invention Jri Figure 1 Figure
Claims (1)
タを記憶するリードオンリーメモリ(300_−_1〜
300_−_n)と、アクセスするべき該リードオンリ
ーメモリを識別するための信号を該CPUから入力し、
解読して出力するアドレスデコーダ(200)とを有す
る回路において、 該リードオンリーメモリのアドレス領域を所定の数に区
分し、同一リードオンリーメモリ内のそれぞれのアドレ
ス領域に同一のアドレスを与え、該CPUからの制御信
号を入力して解読し、該リードオンリーメモリの区分し
たアドレス領域のうち該CPUにより指定されたアドレ
ス領域にアクセスする第2のデコーダ(500)を設け
、 該アドレスデコーダの出力信号により指定されたリード
オンリーメモリの、該第2のデコーダにより指定された
アドレス領域の、該CPUにより指定されたアドレスに
記憶したデータを読み出すようにしたことを特徴とする
CPU制御におけるメモリ領域の有効活用方法。[Claims] A CPU (100) and a read-only memory (300_-_1 to 300) connected to the CPU and storing predetermined data.
300_-_n) and a signal for identifying the read-only memory to be accessed from the CPU;
In a circuit having an address decoder (200) that decodes and outputs the data, the address area of the read-only memory is divided into a predetermined number, the same address is given to each address area in the same read-only memory, and the CPU A second decoder (500) is provided which inputs and decodes a control signal from the read-only memory and accesses an address area specified by the CPU among the divided address areas of the read-only memory, and according to the output signal of the address decoder. Effective utilization of a memory area in CPU control, characterized in that data stored in an address area specified by the second decoder of a specified read-only memory is read out at an address specified by the CPU. Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25585989A JPH03118648A (en) | 1989-09-29 | 1989-09-29 | Effective application method of memory area for cpu control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25585989A JPH03118648A (en) | 1989-09-29 | 1989-09-29 | Effective application method of memory area for cpu control |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03118648A true JPH03118648A (en) | 1991-05-21 |
Family
ID=17284575
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP25585989A Pending JPH03118648A (en) | 1989-09-29 | 1989-09-29 | Effective application method of memory area for cpu control |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03118648A (en) |
-
1989
- 1989-09-29 JP JP25585989A patent/JPH03118648A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2215321C2 (en) | Memory access protection | |
CA1037159A (en) | Processing link control system for data processing equipment | |
US4764896A (en) | Microprocessor assisted memory to memory move apparatus | |
US5293591A (en) | Processing system including memory selection of multiple memories and method in an interrupt environment | |
US4672538A (en) | Method of dynamically changing formation of addresses in memory of a data processing system | |
JPS59188764A (en) | Memory device | |
US5355465A (en) | Data storing device having a plurality of registers allotted for one address | |
US4388707A (en) | Memory selecting system | |
JPH03118648A (en) | Effective application method of memory area for cpu control | |
JPS5827253A (en) | Data processing device | |
JPH0227596A (en) | Semiconductor memory | |
JP2874230B2 (en) | Memory addressing method of microcomputer | |
JP2680013B2 (en) | External I / O control circuit of programmable controller | |
JPS58201157A (en) | Control circuit of bank memory | |
JPH08249289A (en) | Memory controller and its control method | |
JPS62151955A (en) | Memory addressing system | |
JPS61128347A (en) | Memory address setting system | |
JPS61195438A (en) | Information processor | |
JPH0317758A (en) | Memory mapping storage | |
JPH0245843A (en) | Register and memory switching circuit | |
JPS63204342A (en) | Memory device | |
JPS59186048A (en) | Microprogram control system | |
JPH01318127A (en) | System for switching memory bank | |
JPS63257044A (en) | Programmable memory mapping system | |
JPS6226549A (en) | Memory circuit |