JPS5990132A - Memory bank switching system of microcomputer system - Google Patents

Memory bank switching system of microcomputer system

Info

Publication number
JPS5990132A
JPS5990132A JP19990182A JP19990182A JPS5990132A JP S5990132 A JPS5990132 A JP S5990132A JP 19990182 A JP19990182 A JP 19990182A JP 19990182 A JP19990182 A JP 19990182A JP S5990132 A JPS5990132 A JP S5990132A
Authority
JP
Japan
Prior art keywords
dma
channel
bank address
transfer
data
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
JP19990182A
Other languages
Japanese (ja)
Inventor
Masami Ono
正巳 大野
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP19990182A priority Critical patent/JPS5990132A/en
Publication of JPS5990132A publication Critical patent/JPS5990132A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To transfer data with high efficiency with no intervention of an I/O by setting a bank address in a DMA transfer mode in response to the present channel of a DMA controller. CONSTITUTION:A DMA controller 1 has plural DMA cycle counters (4 channels in the diagram), and these channels have their own priorities. Thus plural channels never work at a time. The DMA answer signals DACK0-3 of each channel are sent to an encoder 8 to detect an active channel. The data on the detected channel is delivered as a bank address, and at the same time a signal EO is sent to a latch 6' to inhibit the latch output. Then the mode is switched to the bank address setting by the DMA transfer from the bank address setting by a CPU. Thus it is possible to set a bank address in a DMA transfer mode with no intervention of an I/O to improve the data transfer efficiency to an external storage device.

Description

【発明の詳細な説明】 本発明はマイクロコンピュータシステムのメモリバンク
切替方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory bank switching method for a microcomputer system.

第1図は従来のD 八l Aコント0−ラ(イシテル社
製8257)を利用したマイクロコンピュータシステム
の要部接続図を示している。この回路においてDMAI
ントローラt1)は通常DMA要求待ちの状態にあり、
いずれかのチャンネルからDMA要求信号(DRQ )
があると、DMAコントローラ+1)は所定のステート
SOに入ってCPUf2+に対してホールド要求信号(
HRQ)を出す。CPUf21はをDMA:lントO−
ラ10へ返えす。DMAコントローラ(1+はホールド
応答があるまで、上記ステートにとどまって、ステート
S。のくシ返し毎にDMA要求が継続されているか否か
を判定し、更にチャンネルの優先度も順次変化させ、あ
る優先順位にあるチャンネル対しホールド応答信号(H
OLDA )があると、DMAサイクル入ることになる
。そしてDMAコントローラ(1)はアドレスイネーブ
ル(i %(A E N)を出力しD M Aサイクル
のスタートに入ってバスの点有権を獲得するのである。
FIG. 1 shows a connection diagram of main parts of a microcomputer system using a conventional D81A controller (8257 manufactured by Ishitel Corporation). In this circuit DMAI
Controller t1) is normally in a state of waiting for a DMA request,
DMA request signal (DRQ) from either channel
If so, the DMA controller +1) enters a predetermined state SO and issues a hold request signal (
HRQ). CPUf21 DMA:lnt O-
Return to la 10. The DMA controller (1+ stays in the above state until a hold response is received, and then enters state S. It determines whether the DMA request is continuing or not every time it returns, and also sequentially changes the priority of the channel. Hold response signal (H
OLDA), a DMA cycle will be entered. Then, the DMA controller (1) outputs an address enable (i % (AE N)), enters the start of the DMA cycle, and acquires ownership of the bus.

そしてアドレスバスAn〜A7にアドレス下位の8ヒツ
トを出力し、データバスl)。、−D7にアドレス上位
の8ヒツトを出力してラッチ(4)でラッチし、該ラッ
チ出力で2アドレスバスA8〜AI6にアドレス上位の
8ヒツトを出力することにより、マイク0コンヒユータ
システムのRAMからなる主メモリ(6)とI10間の
データの送、受を行なうのである。尚上位8ピツトのメ
モリアドレスをラッチ(4)でラッチするストローブ信
号(ADR5TB)もラッチ(4)に出力される。そし
てIJAMコントO−ラ(4)fdDMA応答信号(D
ACK )を当該チャンネルに対応して出力し、次のス
テートに移るのである。尚(3)はコントロールバスで
、このコントロールバスを通じてCP U (21側か
らメモリライト信号(MEMW)、メモリリード信号(
MEMR)、110ライト信号(l10W)、I10リ
ード信号(110R)、チップセレクト信号CS、り0
ツクCLK等の信号が送られる。
Then, the lower eight bits of the address are output to the address buses An to A7, and the data bus l). , -D7, latches it with latch (4), and uses the latch output to output the upper eight addresses to 2 address buses A8 to AI6. It sends and receives data between the main memory (6) consisting of the main memory (6) and I10. Note that a strobe signal (ADR5TB) for latching the memory address of the upper eight pits by the latch (4) is also output to the latch (4). And IJAM controller (4) fdDMA response signal (D
ACK) corresponding to the corresponding channel, and moves to the next state. Note that (3) is a control bus, and through this control bus, memory write signals (MEMW) and memory read signals (
MEMR), 110 write signal (l10W), I10 read signal (110R), chip select signal CS, r0
A signal such as CLK is sent.

ところで主メ七り(5)が複数のメモリバンクからなる
ときには第2図のような回路を追加して、CP U (
()でアクセスされるバンクアドレスと、DMAコント
D−ラ(1)でアクセスされるバンクアドレスを設けて
、CP U (21からのホールド応答信号(、)(O
LDA)が立ったときにはDMA転送用のラッチ(6)
にバンクアドレスをラッチし、CPU(2+からの小−
ルド応答信号が無いときにはCPU用のラッチ(7)に
蓋 バンクアドレス全ラッチする方法が用いられていた。し
かしながらこの方法ではIJMAコント[1−ラ+0に
接続されるところのIloに対応するすPンネルごとに
バンクアトしスを切替えることができなかった。
By the way, when the main memory (5) consists of multiple memory banks, a circuit like the one shown in Figure 2 is added and the CPU (
A bank address accessed by () and a bank address accessed by DMA controller D-(1) are provided, and a hold response signal (,) (O
When LDA) is set up, the latch for DMA transfer (6)
The bank address is latched to the CPU (small - from 2+).
When there is no lock response signal, a method has been used in which the CPU latch (7) latches all the lid bank addresses. However, with this method, it was not possible to switch the bank address for each P channel corresponding to Ilo connected to IJMA controller [1-La+0.

本発明は、上述の問題点に鑑みて為されたもので、その
目的とするところはDMA転送時のバンクアドレスをD
MA転送を行なうチャンネルごとに設定できるマイクロ
コンピュータシステムのメモリバンク切替方式を提供す
るにある。
The present invention has been made in view of the above-mentioned problems, and its purpose is to change the bank address during DMA transfer to
To provide a memory bank switching method for a microcomputer system that can be set for each channel for MA transfer.

以下本発明を実施例によって説明する。第3図は本発明
の実施例の回路ブロック図を示しており、かかる実施例
ではDMAコシトローラ(1)としてはDMAtjイク
ルカウンタを4チャンネル有し、各チャンネルには優先
順位があって同時にDMA転送の要求があっても同時に
複数のチャンネルが働くことがないように構成されたイ
ンテル社製8257のような汎用のD M Aコントロ
ーラを使用してあって、各チャンネルのDMA応答信号
(DACKo) −(DACK、)をエンコータ(8)
に入力し、いずれかのチャンネルのDMA応答端子がア
クティブになったことを検知することによってエンコー
ダ(8)はどのチャンネルがDΔ4A転送に入ったかを
検出し、その検出チャンネルデータをバンクアトしスと
して出力すると同時に入力があったことを示す(=号(
go)をラッチ(6)′へ出力する。このラッチ(6Y
はCPU用のバンクアドレスをラッチするだめのもので
、前記信号EOが端子(’D E)に入力するとラッチ
出力を禁止してCPUよるバンクアドレス設置よシ、、
DMA転送によるバンクアドレス設定に切替えるように
なっている。ラッチ(4トは第1図従来例のラッチ(4
)と同様な動作をなすアドレス上位のデータをラッチす
るだめのものである。尚第3図中AENはアドレスイネ
ーブル信号出力端子、ADSTBはアドレスストロープ
信号出力端子を示す。
The present invention will be explained below with reference to Examples. FIG. 3 shows a circuit block diagram of an embodiment of the present invention. In this embodiment, the DMA controller (1) has four channels of DMAtj cycle counters, and each channel has a priority order and simultaneously performs DMA transfer. A general-purpose DMA controller such as the Intel 8257 is configured so that multiple channels do not work at the same time even if there is a request for the DMA response signal (DACKo) of each channel. Encoder (DACK,) (8)
By detecting that the DMA response terminal of any channel has become active, the encoder (8) detects which channel has entered DΔ4A transfer, and outputs the detected channel data as a bank address. Indicates that there was an input at the same time as the = sign (
go) is output to latch (6)'. This latch (6Y
is used to latch the bank address for the CPU, and when the signal EO is input to the terminal ('D E), the latch output is inhibited and the bank address is set by the CPU.
It is designed to switch to bank address setting using DMA transfer. Latch (4 is the latch of the conventional example in Figure 1 (4)
), it is used to latch the data at the upper address. In FIG. 3, AEN indicates an address enable signal output terminal, and ADSTB indicates an address strobe signal output terminal.

しかして通常時においてはIlo 、:]ントロール信
号によってデータバスD。−D、を通し送られてくるバ
ンクアドレスをラッチして、c P U toの制御の
元でバンク切替えを行なう。DMA  転送時において
はD Ni A要求のあったチャンネルに応じたバンク
アドレスの主メモ1月5)にバンク切替えを行なって、
該主メモリ(5)と当該チャンネルに対応するI10間
でデータの送受をD M Aコントローラ(1)の制御
の元で行なうのである。
However, under normal conditions, the data bus D is controlled by the Ilo, :] control signal. -D, the bank address sent through is latched, and bank switching is performed under the control of cPUto. At the time of DMA transfer, the bank is switched to the main memo of the bank address corresponding to the channel where the D Ni A request was made.
Data is sent and received between the main memory (5) and the I10 corresponding to the channel under the control of the DMA controller (1).

本発明はDMAコントローラの各チャンネルごとに対応
するメtリハンク?予め設定し、DMAコントローラよ
り出力する各チャンネルへのDMA応答信号を入力して
現在D M A転送に入った当該チャンネルをエシコー
5夕で検出して当該チャンネルのバンクアドレスデータ
をエンコータよ多出力させるので、DMA転送時のバン
クアドレスをDMAコントローラの現在のチ17:)ネ
ルに対応させて設定することができ、そのためDMA転
送時のバンクアドレスをIloを通すことなく設置でき
、マルチユーザーオベレーテイ′Jタシステムにおいて
、各ユーりごとにバンクが割当てられているようなシス
テムでは外部記憶装置とのデータ転送にCよ有用なもの
でるる。
The present invention provides a metric hunk that corresponds to each channel of the DMA controller. Input the DMA response signal to each channel that is set in advance and output from the DMA controller, detect the channel that is currently undergoing DMA transfer with the encoder, and output the bank address data of the channel multiple times to the encoder. Therefore, the bank address at the time of DMA transfer can be set to correspond to the current channel of the DMA controller. Therefore, the bank address at the time of DMA transfer can be set without passing through Ilo, and multi-user operation is possible. 'C is useful for data transfer with an external storage device in a data system in which a bank is assigned to each unit.

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

第1図は従来例のマイクDコンヒュータシステムの全体
づ099図、第2図は同上のtSシンク替に用いる要部
回路ブロック図、第3図は本発明の一実施例の要部回路
ブロック図であり、mはDMAコントD−ラ、(2)は
CPU、(5)は主メモり、(8)はニジコータ、(L
IACK)はDMA応答信号である。 代理人 弁理士  石 1)長 七
Fig. 1 is an overall diagram of a conventional microphone D computer system, Fig. 2 is a block diagram of the main circuit used for replacing the tS sink, and Fig. 3 is a block diagram of the main circuit of an embodiment of the present invention. In the figure, m is the DMA controller, (2) is the CPU, (5) is the main memory, (8) is the rainbow coater, (L
IACK) is a DMA response signal. Agent Patent Attorney Ishi 1) Choshichi

Claims (1)

【特許請求の範囲】[Claims] (1)複数バンクからなる主メ℃りを備え、 DMAコ
ントローラによって、主メモリと110間をDMA転送
を行なうマイクロコンピュータシステムにおいて、DM
AフントD−ラの各チャンネルごとに対応するメモリバ
ンクを予め設定し、DMAフントo−ラより出力する各
チャンネルへのDMA応答信号を入力して現在DMA転
送に入った当該チャンネルをエンコータで検出して尚該
チャンネルのバンクアドレスデータをエンコータより出
力させることを特徴とするマイクロコンピュータシステ
ムのメモリバンク切替方式。
(1) In a microcomputer system that is equipped with a main memory consisting of multiple banks and that uses a DMA controller to perform DMA transfer between the main memory and the
A memory bank corresponding to each channel of the DMA controller is set in advance, and the DMA response signal to each channel output from the DMA controller is inputted, and the corresponding channel that is currently undergoing DMA transfer is detected by the encoder. A memory bank switching method for a microcomputer system, characterized in that bank address data of the channel is output from an encoder.
JP19990182A 1982-11-15 1982-11-15 Memory bank switching system of microcomputer system Pending JPS5990132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19990182A JPS5990132A (en) 1982-11-15 1982-11-15 Memory bank switching system of microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19990182A JPS5990132A (en) 1982-11-15 1982-11-15 Memory bank switching system of microcomputer system

Publications (1)

Publication Number Publication Date
JPS5990132A true JPS5990132A (en) 1984-05-24

Family

ID=16415480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19990182A Pending JPS5990132A (en) 1982-11-15 1982-11-15 Memory bank switching system of microcomputer system

Country Status (1)

Country Link
JP (1) JPS5990132A (en)

Similar Documents

Publication Publication Date Title
EP0428330A2 (en) Computer interface circuit
JPS5853379B2 (en) Multiprocessing device microcomputer
JPS6142049A (en) Data processing system
US5828891A (en) Multilevel interrupt device
US6282144B1 (en) Multi-ported memory with asynchronous and synchronous protocol
JPS5990132A (en) Memory bank switching system of microcomputer system
JPS6216289A (en) Read only memory
JPH0311448A (en) Direct memory access control system
JP2574821B2 (en) Direct memory access controller
JPS588338A (en) Bus controlling circuit in memory system
JPS61259358A (en) Dma circuit
JPH03137754A (en) Access control system for shared memory
JPS62127962A (en) Microcomputer
JPS59189433A (en) Data erasing system by direct memory access
JPS60219849A (en) Packet processing unit
JPS63244160A (en) Bus control system
JPS63251851A (en) Constitution of dma memory
JPS62262169A (en) Data transfer system
JPS6279558A (en) Direct memory access controller
JPS62293455A (en) Dma controller
JPS626359A (en) Bus control system
JPS63206854A (en) Data transfer system
JPH02222052A (en) Direct memory access controller
JPS61206066A (en) Memory address setting method
JPH0293971A (en) Memory access circuit