JPS6395548A - Memory control system - Google Patents
Memory control systemInfo
- Publication number
- JPS6395548A JPS6395548A JP61241852A JP24185286A JPS6395548A JP S6395548 A JPS6395548 A JP S6395548A JP 61241852 A JP61241852 A JP 61241852A JP 24185286 A JP24185286 A JP 24185286A JP S6395548 A JPS6395548 A JP S6395548A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- bank
- signal
- processor
- bus
- 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
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Memory System (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
CPUのアドレス空間とは異なるアドレス空間のバンク
メモリを設け、DMAIQ能によりメインメモリにデー
タを移すことにより、バンクレジスタなしのバンクメモ
リを実現する。[Detailed Description of the Invention] [Summary] A bank memory without a bank register is realized by providing a bank memory with an address space different from the address space of the CPU and moving data to the main memory using the DMAIQ function.
本発明は、バンクメモリを備えるコンピュータシステム
のメモリ制御方式に関する。The present invention relates to a memory control method for a computer system including bank memory.
8ビツトマイクロコンピユータは一般に64に程度の容
量のメモリを備えるが、更に容量を増加したい場合はメ
モリを切換えて使用する。第4図はその代表的な例を示
し、10はプロセッサ、12.14,16.18は各6
4にの容量のメモリ(RAM)である。これらのメモリ
はバンクメモリと呼ばれ、アドレス空間は同じであって
、共通のアドレス及びデータバス34によりプロセッサ
10と接続する。該バス34にプロセッサ10があるア
ドレスを出力してメモリアクセスすると該アドレスはメ
モリ12,14,16.18に共通に与えられるが、選
択されたメモリのみ動作し、書込み/読取りを行なう。An 8-bit microcomputer is generally equipped with a memory capacity of about 64 mm, but if it is desired to further increase the capacity, the memory must be switched. Figure 4 shows a typical example, where 10 is a processor, 12.14, 16.18 are 6
The memory (RAM) has a capacity of 4. These memories are called bank memories, have the same address space, and are connected to processor 10 by a common address and data bus 34. When the processor 10 outputs a certain address to the bus 34 and accesses the memory, the address is commonly given to the memories 12, 14, 16, and 18, but only the selected memory operates to perform writing/reading.
メモリ選択はメモリセレクタ30とバンクレジスタ32
により行なう。Memory selection is done by memory selector 30 and bank register 32
This is done by
即ちプロセッサ10がバス34を通してメモリセレクタ
30にデータ″1”をセットすると、メモリセレクタ3
0はH(ハイ)レベル信号を出力し、アンドゲート22
,24,26.28を開く。またプロセッサ10はバス
34に選択するメモリを指定する信号(本例ではメモリ
は4個であるので2ビツトデータ)を出力するとバ・ン
クレジスタ32はこれを受取ってデコードし、メモリ1
2,14、・・・・・・の1つを選択する出力を生じる
。例えばプロセッサ10がメモリ12を選択するデータ
を出力したとすると、バンクレジスタ32は図面で ′
1番上の線にHレベルを出力し、その他の線にはL(ロ
ー)レベルを出力し、この結果アンドゲート22のみが
Hレベル出力を生じ、これはメモリ12のイネーブル又
はセレクト信号になる。プロセッサのメモリアクセスが
メモリ読出しであれば、メモリ12はバス34上のアド
レス信号で示されるアドレスのデータを読出し、これを
バス34を通してプロセッサ10へ送る。他のメモリが
選択される場合も同様である。That is, when the processor 10 sets data "1" to the memory selector 30 through the bus 34, the memory selector 3
0 outputs an H (high) level signal, and the AND gate 22
, 24, 26. Open 28. Further, when the processor 10 outputs a signal specifying the memory to be selected to the bus 34 (in this example, there are 4 memories, 2-bit data), the bank register 32 receives and decodes this signal, and the memory 1
produces an output that selects one of 2, 14, . For example, if the processor 10 outputs data to select the memory 12, the bank register 32 will be
An H level is output to the top line, and an L (low) level is output to the other lines. As a result, only the AND gate 22 produces an H level output, which becomes an enable or select signal for the memory 12. . If the processor's memory access is a memory read, memory 12 reads data at the address indicated by the address signal on bus 34 and sends it to processor 10 via bus 34. The same applies when other memories are selected.
このバンクメモリ方式によれば、プロセッサのアドレス
空間は64にであっても実質はバンクメモリの数だけ、
本例では4倍に拡張される。According to this bank memory method, even though the processor has 64 address spaces, the actual address space is equal to the number of bank memories.
In this example, it is expanded four times.
しかしながら、この従来のバンクメモリ方式では、バン
クメモリを選択するためのバンクレジスタ32が必要で
ある。またメモリチップを選択する形(メモリ12.1
4.・・・・・・はエメモリチソプであっても又は1メ
モリカードなどであってもよいが)なので、アドレスは
同一アドレスになってしまい、異なるアドレス空間でも
よいようにすると回路が複雑になってしまう。However, this conventional bank memory method requires a bank register 32 for selecting a bank memory. You can also select the memory chip (Memory 12.1
4. . . . may be a memory card or a single memory card, etc.), so the addresses will be the same, and if different address spaces are allowed, the circuit will become complicated. .
本発明はこれらの点を改善し、バンクレジスタが不要で
あり、またメモリ空間は異なるものであってもよいバン
クメモリ方式を提供しようとするものである。The present invention aims to improve these points and provide a bank memory system that does not require bank registers and may have different memory spaces.
第1図に示すように本発明はマイクロプロセッサエ0と
、該プロセッサがアクセス可能なメインメモリ40と、
バンクメモリ20とを備えるコンピュータシステムのメ
モリ制御方式において、プロセッサlOがバンクメモリ
20をアクセスするときはダイレクトメモリアクセス(
DMA)制御装置42にバンクメモリ20の内容をメイ
ンメモリ40へ転送させ、該メインメモリをプロセッサ
10がアクセスする。As shown in FIG. 1, the present invention includes a microprocessor 0, a main memory 40 accessible by the processor,
In a memory control method for a computer system including a bank memory 20, when a processor IO accesses the bank memory 20, a direct memory access (
DMA) causes the controller 42 to transfer the contents of the bank memory 20 to the main memory 40, which is accessed by the processor 10.
このようにすればプロセッサはメインメモリをアクセス
することでバンクメモリをアクセスすることができ、バ
ンクレジスタなどは不要上ある。In this way, the processor can access the bank memory by accessing the main memory, and there is no need for bank registers.
バンクメモリの内容を転送されるメインメモリの領域は
メインメモリの一部、そしてメインメモリへ転送される
バンクメモリの内容もバンクメモリの全内容の一部であ
ってよ(、そしてバンクメモリのどの部分の内容をメイ
ンメモリの何処に移すかはプロセッサ10がDMA制御
装置42に指示する。The area of main memory to which the contents of bank memory are transferred must be part of main memory, and the contents of bank memory to be transferred to main memory must also be part of the total contents of bank memory (and any part of bank memory The processor 10 instructs the DMA controller 42 where in the main memory the contents of the portion should be moved.
このシステムではプロセッサのアドレス空間と各バンク
メモリのアドレス空間が同一であるdWはなく、バンク
メモリ20のアドレス空間はDMA制御装置42のアド
レス空間内にあればよい。In this system, there is no dW in which the address space of the processor and the address space of each bank memory are the same, and the address space of the bank memory 20 only needs to be within the address space of the DMA control device 42.
プロセッサは各種プログラムにより動作し、あるプログ
ラムではあるデータを、他のプログラムでは他のデータ
を必要とすることが多いから、走行するプログラムが変
る際、今度走行するプログラムが必要とするデータをバ
ンクメモリよりメインメモリへ移し、該メインメモリを
プロセッサがアクセスするようにするとよい。Processors operate on various programs, and some programs often require certain data and other programs often require other data, so when the program to be run changes, the data needed by the program to be run next is stored in the bank memory. It is preferable to move the information to the main memory and allow the processor to access the main memory.
第2図は本発明の実施例を示す。マイクロプロセッサ1
01メインメモリ40.バンクメモリ20、DMA制御
装置42を結ぶアドレスデータバス(制御線も含む)3
4にはトライステードパ・7フア44.46が挿入され
、これらは排他オアゲ−)50の出力で制御される。5
2はインバータであり、従ってバッファ44と46では
制御が逆になる。48は方向レジスタで、この出力がD
MA ilJ御装置42の制御出力R/Wと共にゲート
50の入力となる。ゲート50は排他オアゲートである
から、方向レジスタ48にデータ″1″がセットされる
と信号R/Wの“1”、“0”を反転し、方向レジスタ
48にデータ“0”がセットされると信号R/Wの“1
”、“0”をそのま\出力する。FIG. 2 shows an embodiment of the invention. microprocessor 1
01 Main memory 40. Address data bus (including control lines) 3 connecting bank memory 20 and DMA control device 42
4 is inserted with a triste amplifier 44 and 46, which are controlled by the output of an exclusive or game (exclusive or game) 50. 5
2 is an inverter, so the buffers 44 and 46 have opposite controls. 48 is a direction register, and this output is D.
It becomes an input to the gate 50 together with the control output R/W of the MA ilJ control device 42. Since the gate 50 is an exclusive OR gate, when data "1" is set in the direction register 48, "1" and "0" of the signal R/W are inverted, and data "0" is set in the direction register 48. and “1” of signal R/W
”, “0” is output as is.
この構成において、プロセッサ10がバンクメモリ20
をリードしようとする時は方向レジスタ48にリードコ
マンド“1”を与え、DMA制御装置42に所要のパラ
メータ(バンクメモリのどの部分をメインメモリのどの
部分へ転送せよ等を示すデータ)を与え、起動する。D
MA制御装置42は信号R/Wを1”または0″にして
おり、“O”で書込み(ライト)モード、“1”で読取
り(リード)モードを示す。排他オアゲート50は方向
レジスタ48の出力が“1”のとき信号R/Wを反転す
るからライトモード即ちR/Wが“0”のとき“1”を
出力し、これはバッファ44をオン、バッファ46をオ
フにする。上記のプロセッサ10からDMA制御装置4
2へのパラメータ書込みはこの状態で行なわれる。書込
みが終るとリードサイクルになってR/Wは“1″、バ
ッファ44はオフ、バッファ46がオンになる。In this configuration, the processor 10 is connected to the bank memory 20
When attempting to read, give a read command "1" to the direction register 48, give the necessary parameters to the DMA control device 42 (data indicating which part of the bank memory should be transferred to which part of the main memory, etc.), to start. D
The MA control device 42 sets the signal R/W to 1" or 0", and "O" indicates a write mode and "1" indicates a read mode. Since the exclusive OR gate 50 inverts the signal R/W when the output of the direction register 48 is "1", it outputs "1" when the write mode, that is, R/W is "0", which turns on the buffer 44 and turns the buffer on. 46 off. From the processor 10 described above to the DMA control device 4
Parameter writing to 2 is performed in this state. When the writing is completed, a read cycle starts, and R/W is "1", the buffer 44 is turned off, and the buffer 46 is turned on.
DMA制御装置42はこの状態でバンクメモリ20の内
容を読取り、次にライトサイクルにしてバッファ44が
オン、46がオフになるとき、該読取ったデータをメイ
ンメモリ40に転送する。然るのちプロセッサ10はメ
インメモリ40をアクセスし、所要のデータを読取り、
また書込みを行なう。The DMA control device 42 reads the contents of the bank memory 20 in this state, and then transfers the read data to the main memory 40 when the buffer 44 is turned on and the buffer 46 is turned off in a write cycle. The processor 10 then accesses the main memory 40, reads the required data, and
Write again.
メインメモリのデータをバンクメモリへ転送するときは
、プロセッサ10は方向レジスタ48にライトコマンド
“0”を与え、またDMA制御装置42に所要のパラメ
ータを与える。DMA制御装置42はR/Wが“1”の
とき該パラメータを受取り、該パラメータに従ってメイ
ンメモリ40の内容を読取り、次にR/Wが“0”のと
きこれをバンクメモリ20に書込む。When transferring data from the main memory to the bank memory, the processor 10 provides a write command "0" to the direction register 48 and also provides necessary parameters to the DMA controller 42. The DMA control device 42 receives the parameter when the R/W is "1", reads the content of the main memory 40 according to the parameter, and then writes it to the bank memory 20 when the R/W is "0".
第3図は本発明の他の実施例を示す。前回と同様に10
はマイクロプロセッサ、20はバンクメモリ、40はメ
インメモリ、42はDMA制御装置であり、そして34
aはアドレスバス、34bはデータバス、34c〜34
fは信号線である。FIG. 3 shows another embodiment of the invention. 10 like last time
is a microprocessor, 20 is a bank memory, 40 is a main memory, 42 is a DMA controller, and 34
a is an address bus, 34b is a data bus, 34c to 34
f is a signal line.
また54.56はバッファ、58.60はデコーダ、6
2はオアゲートである。Also, 54.56 is a buffer, 58.60 is a decoder, 6
2 is the or gate.
DMAによりバンクメモリ20の内容をメインメモリ4
0へ転送する場合は、DMA制御装置42が制御線34
eを通して信号BRを送り、プロセッサ10にバスの使
用を要求する。プロセッサ10はBR倍信号受付けたら
バスを開放し、制御線34. dに信号BAを送ってバ
スを開放したことをD M A制御装置42に伝える。The contents of the bank memory 20 are transferred to the main memory 4 by DMA.
0, the DMA control device 42 transfers the control line 34
It sends a signal BR through e to request the processor 10 to use the bus. When the processor 10 receives the BR multiplied signal, it releases the bus and connects the control line 34. d to notify the DMA control device 42 that the bus has been released.
DMA制御装置42はBA倍信号受けると制御線34f
に信号BGを送り、バスを使用することを示す。なおり
A。When the DMA control device 42 receives the BA double signal, it transmits the control line 34f.
It sends a signal BG to indicate that the bus is to be used. Naori A.
BGはH,Lでバス使用/不使用を示す。BA倍信号よ
り (プロセッサのバス開放により)デコーダ58はデ
ィスエーブルとなり、BG倍信号より(DMACのバス
使用により)デコーダ60.バッファ54.56がイネ
ーブルになる。この状態でDMA制御装置42によるメ
インメモリ40、バンクメモリ20間のデータ転送が可
能になる。BG is H or L to indicate whether the bus is used or not. The BA double signal disables the decoder 58 (due to the processor opening the bus), and the BG double signal disables the decoder 60 . Buffers 54,56 are enabled. In this state, data transfer between the main memory 40 and the bank memory 20 by the DMA control device 42 becomes possible.
以上説明したように本発明によればバンクレジスタ不要
のバンクメモリシステムが得られ、またバンクメモリの
アドレス空間をプロセッサのアドレス空間と異ならせ、
自由なアドレス決定ができる利点が(写られる。As explained above, according to the present invention, a bank memory system that does not require bank registers can be obtained, and the address space of the bank memory is made different from the address space of the processor,
The advantage of being able to freely decide on addresses is shown here.
第1図は本発明の原理説明図、
第2図および第3図は本発明の実施例を示すブロック図
、
第4図は従来例を示すブロック図である。
第1図で10はプロセッサ、2oはバンクメモリ、34
はバス、40はメインメモリ、42はDMA制御装置で
ある。FIG. 1 is a diagram explaining the principle of the present invention, FIGS. 2 and 3 are block diagrams showing embodiments of the present invention, and FIG. 4 is a block diagram showing a conventional example. In FIG. 1, 10 is a processor, 2o is a bank memory, and 34
is a bus, 40 is a main memory, and 42 is a DMA control device.
Claims (1)
モリと、バンクメモリとを備えるコンピュータシステム
のメモリ制御方式において、プロセッサ(10)がバン
クメモリ(20)をアクセスする場合は、ダイレクトメ
モリアクセス制御装置(42)によりバンクメモリの内
容をメインメモリ(40)に移し、該メインメモリをプ
ロセッサがアクセスすることを特徴とするメモリ制御方
式。In a memory control method for a computer system that includes a processor, a main memory that can be accessed by the processor, and a bank memory, when the processor (10) accesses the bank memory (20), a direct memory access control device (42) is used. A memory control method characterized in that the contents of a bank memory are transferred to a main memory (40), and the main memory is accessed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61241852A JPS6395548A (en) | 1986-10-11 | 1986-10-11 | Memory control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61241852A JPS6395548A (en) | 1986-10-11 | 1986-10-11 | Memory control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6395548A true JPS6395548A (en) | 1988-04-26 |
Family
ID=17080467
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61241852A Pending JPS6395548A (en) | 1986-10-11 | 1986-10-11 | Memory control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6395548A (en) |
-
1986
- 1986-10-11 JP JP61241852A patent/JPS6395548A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2000047974A (en) | Bus arbitration method for bus control controller, bus control controller, and system for electronic device | |
JPH01169557A (en) | Storage control system for computer | |
US4814977A (en) | Apparatus and method for direct memory to peripheral and peripheral to memory data transfers | |
JPS6395548A (en) | Memory control system | |
US4628450A (en) | Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor | |
JPS60189561A (en) | Memory access control system | |
JP2522412B2 (en) | Communication method between programmable controller and input / output device | |
JPS59173828A (en) | Data processing system | |
JPS58114258A (en) | Data processor | |
JP2632859B2 (en) | Memory access control circuit | |
JPS62184560A (en) | Input/output buffer controller | |
JPS63155254A (en) | Information processor | |
JPH06214939A (en) | Dma controller | |
JPH0259495B2 (en) | ||
JPH04116750A (en) | Dma memory transfer device | |
JPH0293971A (en) | Memory access circuit | |
JPH04352045A (en) | Connecting device for ic card | |
JPH08272603A (en) | Data processing device | |
JPH03269650A (en) | buffer storage | |
JPH02249052A (en) | Data transfer device | |
JPH03204049A (en) | Memory controller | |
JPS58213371A (en) | Data processing system | |
JPH02159648A (en) | Cache memory update control method | |
JPS63313251A (en) | Addressing circuit | |
JPS63259746A (en) | Data transfer method between bank memories |