JPH03182954A - Data processor - Google Patents

Data processor

Info

Publication number
JPH03182954A
JPH03182954A JP32341889A JP32341889A JPH03182954A JP H03182954 A JPH03182954 A JP H03182954A JP 32341889 A JP32341889 A JP 32341889A JP 32341889 A JP32341889 A JP 32341889A JP H03182954 A JPH03182954 A JP H03182954A
Authority
JP
Japan
Prior art keywords
external bus
internal
bus
cpu
state
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
JP32341889A
Other languages
Japanese (ja)
Inventor
Yoshihisa Shiomi
塩見 佳久
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP32341889A priority Critical patent/JPH03182954A/en
Publication of JPH03182954A publication Critical patent/JPH03182954A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To improve processing capacity as a whole data processor by controlling a gate circuit if CPU in a processor is in an internal processing state, setting an internal bus and an external bus to be a non-condition state and outputting the use permission signal of the external bus to a peripheral equipment. CONSTITUTION:When a timing control circuit 11a detects that the processing of CPU 11 is an internal processing which does not use the external bus 20, it shifts a system between the internal bus 11e and the external bus 20 to be the non-connection state by dropping a strobe signal STB supplied to the gate circuit 13 to be low. When it receives a holding request signal HLDR from a DMA controller 23, it continues the internal processing state and returns the use permission signal of the external bus in the form of HLDA, which shows a shift to a holding state. Thus, the internal processing of the processor and data transfer by the peripheral equipment through the external bus can be executed in parallel and processing capacity as the whole data processor can be improved.

Description

【発明の詳細な説明】 (1) (産業上の利用分野) この発明は、各種の制御システムや通信システムなどに
利用されるデータ処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) (Field of Industrial Application) The present invention relates to a data processing device used in various control systems, communication systems, and the like.

各種の制御システムや通信システムなどに利用されるデ
ータ処理装置には、CPUの内部/<スに接続されるロ
ーカルメモリを内蔵するマイクロプロセッサと、このマ
イクロプロセッサ内のCPUの内部バスに外部バスを介
して接続される周辺装置とから構成されるものがある。
Data processing devices used in various control systems and communication systems include a microprocessor with a built-in local memory connected to the internal bus of the CPU, and an external bus connected to the internal bus of the CPU in this microprocessor. There are some that consist of peripheral devices connected via.

(発明が解決しようとする課題) 従来、上述のデータ処理装置では、マイクロプロセッサ
のCP Uが内部バスだけを使用している間もこの内部
バスと外部バスとが接続されたままになっている。この
ため、CPUによる内部処理と周辺装置による外部バス
を介するデータ転送とを同時に行うことができず、デー
タ処理装置全体としての処理能力が低下するという問題
がある。
(Problem to be Solved by the Invention) Conventionally, in the data processing device described above, the internal bus and external bus remain connected even while the CPU of the microprocessor uses only the internal bus. . Therefore, internal processing by the CPU and data transfer by the peripheral device via the external bus cannot be performed simultaneously, resulting in a problem that the processing capacity of the data processing device as a whole is reduced.

(課題を解決するための手段) 本発明のデータ処理装置は、CPUの内部バス(2) と外部バスとを選択的に接続可能なゲート回路と、プロ
セソザ内のCPUが外部バスを使用しない内部処理状態
にあるか否かを検出し内部処理状態にあればゲーI・回
路を制御してこの内部バスと外部バスとを非接続状態に
すると共に周辺装置に外部バスの使用許可信号を出力す
る制御手段とを備え、プロセッサの内部処理と周辺装置
による外部バスを介するデータ転送とを並行して行うこ
とを可能とし、データ処理装置全体としての処理能力を
向上させるように構成されている。
(Means for Solving the Problems) The data processing device of the present invention includes a gate circuit that can selectively connect an internal bus (2) of a CPU to an external bus, and an internal bus (2) in which a CPU in a processor does not use an external bus. It detects whether or not it is in the processing state, and if it is in the internal processing state, it controls the gate I circuit to disconnect the internal bus from the external bus and outputs an external bus use permission signal to the peripheral device. The controller is configured to enable internal processing of the processor and data transfer by peripheral devices via an external bus to be performed in parallel, thereby improving the processing capacity of the data processing device as a whole.

以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.

(実施例) 第1図は、本発明の一実施例に係わるデータ処理装置の
構成を示すブロック図であり、10はマイクロプロセッ
サ、20は外部バス、21は人出力(Ilo)インタフ
ェース回路、22はバッファメモリ(BM)、23はD
MAコントローラである。
(Embodiment) FIG. 1 is a block diagram showing the configuration of a data processing device according to an embodiment of the present invention, in which 10 is a microprocessor, 20 is an external bus, 21 is a human output (Ilo) interface circuit, and 22 is buffer memory (BM), 23 is D
It is an MA controller.

マイクロプロセッサlOは、CPUI 1と、こ(3) のCPUの内部バスに接続されるローカルメモリ(LM
)12とに加えて、ゲート回路13を備えている。CP
UIIは、タイミング・制御回路11a、命令デコーダ
llb、演算回路11c、レジスタ群lid及びこれら
の回路を相互接続する内部バスlieを備えている。
The microprocessor IO has a CPUI 1 and a local memory (LM) connected to the internal bus of this (3) CPU.
) 12 and a gate circuit 13. C.P.
The UII includes a timing/control circuit 11a, an instruction decoder llb, an arithmetic circuit 11c, a register group lid, and an internal bus lie interconnecting these circuits.

プログラム格納用のROMとデータ格納用のRAMとに
よって構成されるローカルメモリ12から読出される命
令は、内部バスlieを介して命令デコーダllbに転
送され解読される。この解読結果と所定のタイミング信
号とに基づきタイミング・制御回路11aにおいて各種
の制御信号が発生され、この制御信号のもとに演算回路
11cの動作が行われ、演算結果がレジスタ群lid内
の各種のレジスタに設定され、あるいはローカルメモリ
12に書込まれる。
Instructions read from the local memory 12, which is composed of a ROM for storing programs and a RAM for storing data, are transferred to the instruction decoder llb via the internal bus lie and decoded. Various control signals are generated in the timing/control circuit 11a based on this decoding result and a predetermined timing signal, and the operation of the arithmetic circuit 11c is performed based on these control signals, and the arithmetic results are stored in various registers in the register group lid. or written to the local memory 12.

このタイミング・制御回路11aは、命令デコーダll
bのデコード結果とレジスタ群11d内のアドレス・レ
ジスタやプログラム・カウンタの内容に基づき、このC
PUIIの処理が外部バス(4) 20を使用しない内部処理であるか外部バス2゜を使用
する外部処理であるかを検出する。タイミング・制御回
路11aは、CPUIIの処理が内部処理であることを
検出すると、ゲート回路13に供給するストローブ信号
STBをローに立下げることにより内部バスlieと外
部バス2oとの間を非接続状態に移行させる。
This timing/control circuit 11a includes an instruction decoder ll
Based on the decoding result of C and the contents of the address register and program counter in register group 11d
It is detected whether the PUII process is an internal process that does not use the external bus (4) 20 or an external process that uses the external bus 2°. When the timing/control circuit 11a detects that the CPU II processing is internal processing, the timing/control circuit 11a lowers the strobe signal STB supplied to the gate circuit 13 to a disconnected state between the internal bus lie and the external bus 2o. to be transferred to

外部バス20に接続されたDMAコントローラ23は、
入出力インタフェース回路21とバッファメモリ22と
の間のDMA転送のために外部バス20の使用が必要に
なると、CPUII内のタイミング・制御回路11aに
外部バス2oの使用要求信号を出力する。
The DMA controller 23 connected to the external bus 20 is
When it becomes necessary to use the external bus 20 for DMA transfer between the input/output interface circuit 21 and the buffer memory 22, a signal requesting the use of the external bus 2o is output to the timing/control circuit 11a in the CPU II.

第2図のタイごング・チャートに例示するように、この
外部バスの使用要求信号は、内部バスと外部バスとが直
結されている従来のデータ処理装置の仕様に従って、c
puzへのホールド要求信号(HLDR)の形態で発せ
られる。タイミング・制御回路11aは、上述の内部処
理状態においてDMAコントローラ23からホールド要
求信(5) 号(HL D R)を受けると、実際にはホールド状態
に移行することなく内部処理状態を継続する一方で、D
MAコントローラ23に対してはホールド状態への移行
を示すHLDAの形態の外部バス使用許可信号を返す。
As illustrated in the timing chart of FIG. 2, this external bus use request signal is generated by c
It is issued in the form of a hold request signal (HLDR) to puz. When the timing/control circuit 11a receives the hold request signal (5) (HLDR) from the DMA controller 23 in the internal processing state described above, it actually continues the internal processing state without shifting to the hold state. So, D
An external bus use permission signal in the form of HLDA indicating transition to the hold state is returned to the MA controller 23.

この外部バス使用許可を受けたDMAコントローラ23
は、人出ツノインタフェース回路21とバッファメモリ
22との間の外部バス20を使用したDMA転送を開始
する。この外部バス20上の転送データと、内部バスl
le上の転送データはゲート回路18によって両バスが
分離されているため妨害し合うことはない。このDMA
転送が終了すると、DMAコントローラ23からCPU
11に供給されるホールド要求信号HL D Rがロー
に立下げられ、これに応答してホールド信号HALDA
もローに立下げられる。
The DMA controller 23 that has received permission to use this external bus
starts DMA transfer using the external bus 20 between the turnout interface circuit 21 and the buffer memory 22. This transfer data on the external bus 20 and the internal bus l
Transfer data on le does not interfere with each other because both buses are separated by gate circuit 18. This DMA
When the transfer is completed, the DMA controller 23 transfers the
11, the hold request signal HLDR is pulled low, and in response, the hold signal HALDA
is also lowered to low.

CPUI I内のタイミング・制御回路11aは、上記
外部バス20を介するDMA転送の続行中にCPUI 
lがバッファメモリ22のアクセスを伴う外部処理状態
になったことを検出すると、この(6) DMA転送の終了待ち状態に移行する。タイミング・制
御回路11aは、上記DMA転送の終了に伴い外部バス
使用要求信号(HLDR)がローに立下がると外部バス
使用許可信号(HLDA)をローに立上げる。また、ケ
ート回路13にイ」(給するストローブ信号STBがハ
イに立」二げられ内部バスIceと外部バス20とが接
続される。続いて、内部バスlieと外部バス20とを
使用するCPUI 1によるハソファメモリ22のアク
セスが開始される。このCPUI 1による外部バス2
0の使用状態において、DMAコントローラ23からの
外部バス使用要求(HLDRのハイへの立」二かり)が
発生してもHL D Aはロー状態を保持し外部バスの
使用許可は発行されない。
The timing/control circuit 11a in the CPUI I controls the CPUI while the DMA transfer via the external bus 20 continues.
When it is detected that l is in an external processing state involving access to the buffer memory 22, it shifts to the (6) DMA transfer completion waiting state. The timing/control circuit 11a raises the external bus use permission signal (HLDA) to low level when the external bus use request signal (HLDR) falls to low level upon completion of the DMA transfer. In addition, the strobe signal STB supplied to the gate circuit 13 is raised to high level, and the internal bus Ice and the external bus 20 are connected. 1 starts accessing the CPU memory 22. This CPU 1 starts accessing the external bus 2.
In the use state of 0, even if an external bus use request (HLDR goes high) occurs from the DMA controller 23, HLDA remains low and permission to use the external bus is not issued.

タイごング・制御回路11aは、CPUIIの外部処理
が終了すると、ストローブ信号STBをローに立下げて
内部バスlieと外部バス2oとを非接続状態に復帰さ
せると共に、HL D Aをハイに立上げることにより
DMAコントローラ23に外部バス使用許可を発行する
。これに伴い、C(7) P tJ + 1の内部処理とDMAコンl−1コーラ
23によるI) M A転送が並行して開始される。
When the external processing of the CPU II is completed, the timing/control circuit 11a lowers the strobe signal STB to low to return the internal bus lie and external bus 2o to a disconnected state, and also sets HLDA to high. By raising the flag, permission to use the external bus is issued to the DMA controller 23. Along with this, internal processing of C(7) P tJ + 1 and I) MA transfer by the DMA controller 1-1 caller 23 are started in parallel.

(発明の効果) 以上詳細に説明したように、本発明のデータ処理装置は
、プロセッサ内のcpuが内部処理状態にあればゲート
回路を制御して内部バスと外部バスとを非接続状態にす
ると共に周辺装置に外部バスの使用許可信号を出力する
構成であるから、プロセッサの内部処理と周辺装置によ
る外部バスの使用を並行して行うことが可能となり、デ
ータ処理装置全体としての処理能力が向上するという効
果が奏される。
(Effects of the Invention) As described above in detail, the data processing device of the present invention controls the gate circuit to disconnect the internal bus and external bus when the CPU in the processor is in the internal processing state. Since the configuration also outputs an external bus use permission signal to peripheral devices, it is possible to perform internal processing of the processor and use of the external bus by peripheral devices in parallel, improving the processing capacity of the data processing device as a whole. This effect is produced.

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

第1図は本発明の一実施例に係わるデータ処理装置の構
成を示すブロック図、第2図は第1図のデータ処理装置
の動作を説明するためのタイミング・チャートである。 10・・・マイクロプロセツサ、1】・・・CPU、1
10・・・CPUIIの内部バス、11a・・・タイミ
ング・制御回路、I2・・・ロー(8) カルメモリ、I3・・・ゲート回路、20・外部バス、
21・・・人出力インタフェース回路、22・・・ハソ
ファメモリ、23・・・D M Aコントローラ。
FIG. 1 is a block diagram showing the configuration of a data processing apparatus according to an embodiment of the present invention, and FIG. 2 is a timing chart for explaining the operation of the data processing apparatus shown in FIG. 10...Microprocessor, 1]...CPU, 1
10... CPU II internal bus, 11a... timing/control circuit, I2... low (8) memory, I3... gate circuit, 20... external bus,
21... Human output interface circuit, 22... Hasofa memory, 23... DMA controller.

Claims (1)

【特許請求の範囲】 CPU及びこのCPUの内部バスに接続されるローカル
メモリを備えたプロセッサと、このマイクロプロセッサ
内のCPUの内部バスに外部バスを介して接続される周
辺装置とから構成されるデータ処理装置において、 前記CPUの内部バスと外部バスとを選択的に接続可能
なゲート回路と、 前記プロセッサ内のCPUが前記外部バスを使用しない
内部処理状態にあるか否かを検出し内部処理状態にあれ
ば前記ゲート回路を制御してこの内部バスと前記外部バ
スとを非接続状態にすると共に前記周辺装置に外部バス
の使用許可信号を出力する制御手段とを備えたことを特
徴とするデータ処理装置。
[Claims] Consisting of a CPU, a processor equipped with a local memory connected to the internal bus of this CPU, and a peripheral device connected to the internal bus of the CPU in this microprocessor via an external bus. In a data processing device, a gate circuit capable of selectively connecting an internal bus of the CPU and an external bus; and a gate circuit that detects whether or not a CPU in the processor is in an internal processing state that does not use the external bus, and performs internal processing. control means for controlling the gate circuit to disconnect the internal bus and the external bus and outputting an external bus use permission signal to the peripheral device if the external bus is in the state. Data processing equipment.
JP32341889A 1989-12-12 1989-12-12 Data processor Pending JPH03182954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32341889A JPH03182954A (en) 1989-12-12 1989-12-12 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32341889A JPH03182954A (en) 1989-12-12 1989-12-12 Data processor

Publications (1)

Publication Number Publication Date
JPH03182954A true JPH03182954A (en) 1991-08-08

Family

ID=18154469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32341889A Pending JPH03182954A (en) 1989-12-12 1989-12-12 Data processor

Country Status (1)

Country Link
JP (1) JPH03182954A (en)

Similar Documents

Publication Publication Date Title
JPS63255759A (en) Control system
JPH03182954A (en) Data processor
JPH0343804A (en) Sequence controller
JPS6111876A (en) Data transfer system
JP2554423Y2 (en) Memory controller
JPS616754A (en) Direct memory access transfer system
JPS59146326A (en) Control system of channel device
JP3270040B2 (en) Bus control method
JPH036762A (en) Direct access method for image memory
JPH02211571A (en) Information processor
JPH0592856U (en) DMA transfer control device for external memory of 1-chip CPU
JPS6048566A (en) Memory bus access system
JPS6361351A (en) Data transfer method
JPS61183764A (en) Direct memory access controlling system
JPS6140658A (en) Data processor
JPS61251943A (en) Data processor
JPH05120201A (en) Data processor
JPH03185547A (en) Memory control device
JPH08185370A (en) Microprocessor controller
JPH04117585A (en) Microcomuter
JPH03219359A (en) Interface circuit
JPS63300346A (en) Dma control system
JPH01181144A (en) Data input/output device
JPS58119029A (en) Dma transferring system
JPH02249052A (en) Data transfer device