JPH0754503B2 - Microprocessor bus interface circuit - Google Patents

Microprocessor bus interface circuit

Info

Publication number
JPH0754503B2
JPH0754503B2 JP61027245A JP2724586A JPH0754503B2 JP H0754503 B2 JPH0754503 B2 JP H0754503B2 JP 61027245 A JP61027245 A JP 61027245A JP 2724586 A JP2724586 A JP 2724586A JP H0754503 B2 JPH0754503 B2 JP H0754503B2
Authority
JP
Japan
Prior art keywords
bus
general
data
control signal
circuit
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.)
Expired - Fee Related
Application number
JP61027245A
Other languages
Japanese (ja)
Other versions
JPS62184557A (en
Inventor
昌夫 池田
修 宮岸
直文 永井
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP61027245A priority Critical patent/JPH0754503B2/en
Publication of JPS62184557A publication Critical patent/JPS62184557A/en
Publication of JPH0754503B2 publication Critical patent/JPH0754503B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 (1)発明の属する技術分野 本発明は機能ブロックとその機能ブロックが組み込まれ
る宅内機器の汎用マイクロプロセッサ・バスとを接続す
るための,機能ブロックに含まれるマイクロプロセッサ
・バス・インタフェース回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a microprocessor included in a functional block for connecting the functional block and a general-purpose microprocessor bus of a home device in which the functional block is incorporated. The present invention relates to a bus interface circuit.

(2)従来の技術 従来このようなマイクロプロセッサ・バス・インタフェ
ース回路は,バス・インタフェース回路に接続する対象
のマイクロプロセッサの種別を限定して設計していた。
このためデータ転送を行う機能とマイクロプロセッサ・
バスの制御信号に対応する機能とを一体として構成した
り,データ転送を行うと機能とマイクロプロセッサ・バ
スの制御信号に対応する機能との間をマイクロプロセッ
サ・バス・インタフェース回路が対象とするマイクロプ
ロセッサのバス制御信号に依存した内部信号で連絡する
等の構成となっていた。
(2) Conventional Technology Conventionally, such a microprocessor bus interface circuit was designed by limiting the type of the microprocessor to be connected to the bus interface circuit.
Therefore, the data transfer function and the microprocessor
When the function corresponding to the control signal of the bus is integrally configured or the data is transferred, the function between the function and the function corresponding to the control signal of the microprocessor bus is targeted by the microprocessor bus interface circuit. It was configured to communicate by an internal signal depending on the bus control signal of the processor.

またデータ転送方式についても予め回路設計時にI/O転
送方式あるいはDMA転送方式に設定し,アドレス発生部
やバス制御信号の生成部の設計を行っていた。このため
データの転送を行う機能とマイクロプロセッサ・バスへ
出力するバス制御信号生成の機能等を一体として構成し
たり,機能の一部を共用する等の構成となっていた。
As for the data transfer method, the I / O transfer method or the DMA transfer method was set in advance when the circuit was designed, and the address generator and bus control signal generator were designed. Therefore, the function of transferring data and the function of generating a bus control signal to be output to the microprocessor bus are integrally configured, or a part of the function is shared.

第4図は従来の技術によるI/O転送の例を説明する図で
あって,100は従来技術によるマイクロプロセッサ・イン
タフェース回路,101は機能ブロック内のマイクロプロセ
ッサ,102はデータバス,103はコントロールバス,104はデ
ータ転送回路,105はデータ転送制御回路,106は機能ブロ
ックが接続された汎用マイクロプロセッサ,107はコント
ロールバス,108はデータバスである。
FIG. 4 is a diagram for explaining an example of I / O transfer according to the conventional technique. 100 is a microprocessor interface circuit according to the conventional technique, 101 is a microprocessor in a functional block, 102 is a data bus, and 103 is a control. A bus, 104 is a data transfer circuit, 105 is a data transfer control circuit, 106 is a general-purpose microprocessor to which functional blocks are connected, 107 is a control bus, and 108 is a data bus.

これの動作を説明すると,マイクロプロセッサ101がデ
ータバス102に機能ブロックから出力したいデータをの
せ,コントロールバス103によってデータ転送回路104に
データを書き込む。データ転送回路104はコントロール
バス103を監視し,書き込みの指示を検出すると,デー
タバス102からデータを引き取る。データ転送制御回路1
05はマイクロプロセッサ101から書き込まれたデータを
データ転送回路104の内部で転送・保持する。データ転
送回路104の内部に汎用マイクロプロセッサ106へ出力す
るデータがある場合,データ転送制御回路105は汎用マ
イクロプロセッサ106にデータを引き取らせるため,コ
ントロールバス107に引き取り要求の信号をのせる。汎
用マイクロプロセッサ106は引き取り要求に応答し,コ
ントロールバス107にデータ読み取りの制御信号をのせ
る。データ転送回路104はコントロールバス107を監視
し,読み取りの指示を検出すると,データバス108にデ
ータを出力し,汎用マイクロプロセッサ106はデータバ
ス108を通じてデータを引き取る。データ転送制御回路1
05は汎用マイクロプロセッサ106が引き取り要求に応答
したことを検出した後,引き取り要求を取り下げる。デ
ータ転送制御回路105はコントロールバス107を監視して
データ読み取りのシーケンスが終了した後,つぎに出力
するデータをデータ転送回路104の内部で転送させ引き
取りの要求をコントロールバス107に出力する。汎用マ
イクロプロセッサ106が機能ブロックにデータを書き込
む場合は,データバス108にデータをのせコントロール
バス107に書き込みの制御信号をのせる。データ転送回
路104はコントロールバス107を監視し読み込みの指示を
検出するとデータバス108からデータを引き取る。デー
タ転送制御回路105はコントロールバス107を監視して,
データ転送回路104にデータが書き込まれたことを検出
すると,データ転送回路104の内部のデータを転送・保
持させ,マイクロプロセッサ101にデータを引き取らせ
るためコントロールバス103に引き取り要求の信号をの
せる。マイクロプロセッサ101は引き取り要求に応答し
てコントロールバス103にデータ読み取りの制御信号を
のせ,データ転送回104からデータバス102を通じてデー
タを引き取る。データ転送回路104やデータ転送制御回
路105は,汎用マイクロプロセッサ106からコントロール
バス107に出力されるバス制御信号を監視してデータの
入力・出力および転送を行い,さらに汎用マイクロプロ
セッサ106に対応した引き取り要求信号を作成しコント
ロールバス107に出力する等この機能ブロックが対象と
するマイクロプロセッサの種別に専用の回路となる。
The operation of this will be described. The microprocessor 101 puts the data to be output from the functional block on the data bus 102, and writes the data to the data transfer circuit 104 by the control bus 103. The data transfer circuit 104 monitors the control bus 103 and, when detecting a write instruction, takes data from the data bus 102. Data transfer control circuit 1
Reference numeral 05 transfers / holds the data written from the microprocessor 101 inside the data transfer circuit 104. When there is data to be output to the general-purpose microprocessor 106 inside the data transfer circuit 104, the data transfer control circuit 105 puts a take-out request signal on the control bus 107 in order to make the general-purpose microprocessor 106 take over the data. In response to the take-back request, the general-purpose microprocessor 106 puts a control signal for reading data on the control bus 107. The data transfer circuit 104 monitors the control bus 107, outputs a data to the data bus 108 when detecting the reading instruction, and the general-purpose microprocessor 106 takes the data through the data bus 108. Data transfer control circuit 1
05 detects that the general-purpose microprocessor 106 has responded to the take-back request, and then withdraws the take-back request. The data transfer control circuit 105 monitors the control bus 107, and after the data reading sequence is completed, the data to be output next is transferred inside the data transfer circuit 104 and a take-back request is output to the control bus 107. When the general-purpose microprocessor 106 writes data to the functional block, the data is put on the data bus 108 and the write control signal is put on the control bus 107. The data transfer circuit 104 monitors the control bus 107, and when it detects a read instruction, it takes data from the data bus 108. The data transfer control circuit 105 monitors the control bus 107,
When it is detected that the data has been written in the data transfer circuit 104, the data in the data transfer circuit 104 is transferred and held, and a take-back request signal is put on the control bus 103 so that the microprocessor 101 can take the data. In response to the take-back request, the microprocessor 101 puts a control signal for reading data on the control bus 103 and takes in data from the data transfer circuit 104 through the data bus 102. The data transfer circuit 104 and the data transfer control circuit 105 monitor a bus control signal output from the general-purpose microprocessor 106 to the control bus 107 to input / output and transfer data, and further receive data corresponding to the general-purpose microprocessor 106. This function block is a circuit dedicated to the type of the target microprocessor, such as creating a request signal and outputting it to the control bus 107.

このような構成をとっていたために,マイクロプロセッ
サ・バス・インタフェース回路が対象としていない種別
のマイクロプロセッサへの対応は不可能であったり,機
能ブロックの外部にバス・インタフェースの変換を行う
回路を付加してマイクロプロセッサ・バスに接続する等
の必要があった。また機能ブロックを改造してマイクロ
プロセッサ・バス・インタフェース回路の対象とするマ
イクロプロセッサの種別を変更する場合やデータ転送方
式をDMAにする等の転送方式を変更する場合には,新た
なマイクロプロセッサのバス制御信号に依存して変更を
要する部分が一部にとどまらず,データの転送機能部等
も関連して大幅な改造を必要とし,また複数のマイクロ
プロセッサのバス制御信号に対応するためにはマイクロ
プロセッサ・バス・インタフェース回路内にマイクロプ
ロセッサに対応するバス制御信号の種類だけこれらのバ
ス制御信号対応部とデータ転送機能部等を用意しなけれ
ばならなかったり,複数のデータ転送方式へ対応するた
めにデータ転送の種類だけインタフェース回路を必要と
していた。
Due to such a configuration, it is impossible to support a microprocessor of a type not covered by the microprocessor bus interface circuit, or a circuit for converting the bus interface is added outside the functional block. Then, it was necessary to connect to the microprocessor bus. In addition, when modifying the functional block to change the type of the microprocessor that is the target of the microprocessor bus interface circuit, or when changing the transfer method such as changing the data transfer method to DMA, a new microprocessor Not only the part that needs to be changed depending on the bus control signal, but also the data transfer function part needs to be remodeled significantly, and in order to deal with the bus control signals of multiple microprocessors, In the microprocessor bus interface circuit, these bus control signal corresponding parts and data transfer function parts must be prepared only for the types of bus control signals corresponding to the microprocessor, and it is possible to support multiple data transfer methods. Therefore, the interface circuit was required only for the type of data transfer.

(3)発明の目的 本発明の目的はマイクロプロセッサ・バス・インタフェ
ース回路が複数のマイクロプロセッサのバス制御信号に
対応するためにマイクロプロセッサ・バス・インタフェ
ース回路内に複数の制御信号対応部やデータ転送機能部
等が必要であったり,マイクロプロセッサ・バス・イン
タフェース回路が対応するバス制御信号及びデータ転送
方式を変更あるいは追加する場合に大幅な改造・追加が
必要となる点を解決したマイクロプロセッサ・バス・イ
ンタフェース回路を提供することにある。
(3) Object of the Invention An object of the present invention is to enable a microprocessor bus interface circuit to correspond to bus control signals of a plurality of microprocessors so that a plurality of control signal corresponding parts and data transfer are provided in the microprocessor bus interface circuit. A microprocessor bus that solves the problems that a functional part or the like is required, and that significant modification or addition is required when changing or adding bus control signals and data transfer methods supported by the microprocessor bus interface circuit -To provide an interface circuit.

(4)発明の構成 (4−1)発明の特徴と従来の技術との差 本発明はマイクロプロセッサ・バス・インタフェース回
路を構成する各機能部を分割し,それらの機能部の間を
そのマイクロプロセッサ・バス・インタフェース回路が
対応しようとするマイクロプロセッサの制御信号と異な
り,各々のプロセッサ種別の差を吸収した汎用制御信号
で連絡することを最も主要な特徴とする。従来の技術と
は(1)マイクロプロセッサ・バス・インタフェース回
路内の個々のデータ転送等の機能部を他のマイクロプロ
セッサ制御信号対応の機能部と分離させている,(2)
各機能部はマイクロプロセッサ・バス・インタフェース
回路内においてインタフェース回路が対応するマイクロ
プロセッサのバス制御信号と異なり,各々のプロセッサ
種別の差を吸収した汎用制御信号に従って動作を行って
いる,(3)マイクロプロセッサ・バス・インタフェー
ス回路内の各機能部の内,インタフェース回路が対応す
る汎用マイクロプロセッサの種類によって影響を受ける
機能部は,マイクロプロセッサが出力したバス制御信
号をマイクロプロセッサ・バス・インタフェース回路内
で用いる汎用制御信号に変換する機能部とバス・イン
タフェース回路内の汎用制御信号からマイクロプロセッ
サに対応したバス制御信号を生成する機能部等に限定す
るように構成する,等の点が異なる。
(4) Configuration of the Invention (4-1) Difference between Features of the Invention and Prior Art The present invention divides each functional unit constituting a microprocessor bus interface circuit, and separates those functional units from each other. Unlike the control signal of the microprocessor to which the processor bus interface circuit corresponds, the most main feature is that communication is performed by a general-purpose control signal that absorbs the difference between the processor types. The conventional technology is (1) the functional unit such as individual data transfer in the microprocessor bus interface circuit is separated from the functional units corresponding to other microprocessor control signals, (2)
Different from the bus control signal of the microprocessor to which the interface circuit corresponds in the microprocessor bus interface circuit, each functional unit operates according to the general-purpose control signal that absorbs the difference between the processor types. (3) Microprocessor Of the functional units in the processor bus interface circuit, the functional unit that is affected by the type of general-purpose microprocessor to which the interface circuit corresponds is the bus control signal output by the microprocessor in the microprocessor bus interface circuit. The difference is that it is configured so as to be limited to a functional unit that converts a general-purpose control signal to be used and a functional unit that generates a bus control signal corresponding to a microprocessor from the general-purpose control signal in the bus interface circuit.

(4−2)実施例 第1図は本発明の第一の実施例を説明する図であって,2
00は本実施例によるマイクロプロセッサ・インタフェー
ス回路,201はデータ転送回路,202はバス制御信号作成回
路,203は機能ブロックが接続された汎用マイクロプロセ
ッサのコントロールバス,204は汎用マイクロプロセッ
サ,205はバス制御信号変換回路,206はデータバス,207は
アドレスバス,208はアドレス作成回路,209は外部アドレ
スバッファ,210はメモリ,211は制御レジスタである。
(4-2) Embodiment FIG. 1 is a diagram for explaining the first embodiment of the present invention.
00 is a microprocessor interface circuit according to the present embodiment, 201 is a data transfer circuit, 202 is a bus control signal generation circuit, 203 is a general-purpose microprocessor control bus to which functional blocks are connected, 204 is a general-purpose microprocessor, and 205 is a bus. A control signal conversion circuit, 206 is a data bus, 207 is an address bus, 208 is an address creating circuit, 209 is an external address buffer, 210 is a memory, and 211 is a control register.

(1) I/O転送の場合 機能ブロック外部から汎用マイクロプロセッサの入出力
命令によるアクセス(I/O転送)を行う場合,これを動
作するにはデータ転送回路201が機能ブロックから出力
するデータがあることを汎用制御信号の一種である出力
転送制御信号RQOによりバス制御信号作成回路202に知ら
せる。信号RQOを受け取ったバス制御信号作成回路202は
I/O点の場合コントロールバス203に出力要求の割込みを
あげ,汎用マイクロプロセッサ204の入力動作を待つ。
汎用マイクロプロセッサ204はバス制御信号作成回路202
から出力要求の割込みを受け取ると,コントロールバス
203に読み取りの制御信号をのせる。バス制御信号変換
回路205はコントロールバス203から入力した制御信号を
汎用マイクロプロセッサの種別に対応して機能モジュー
ル内部の汎用制御信号DOに変換した後データ転送回路20
1に出力し,データ転送回路201は汎用制御信号DOに従っ
てデータバス206にデータを出力する。データバス206に
出力されたデータは,汎用マイクロプロセッサ204に引
き取られる。逆に汎用マイクロプロセッサ204がデータ
を出力すると,バス制御信号変換回路205がコントロー
ルバス203から入力した出力制御信号を汎用マイクロプ
ロセッサの種別に対応して汎用制御信号DIに変換した後
データ転送回路201に出力し,データ転送回路201はデー
タバス206からデータを引き取る。データ転送回路201は
引き取ったデータを処理した後汎用制御信号の一種であ
る出力転送制御信号RQIによりバス制御信号作成回路202
に処理完了を知らせ,信号RQIを受け取たバス制御信号
作成回路202はデータ書き込みレディの割込みを汎用マ
イクロプロセッサ204にあげる。
(1) In the case of I / O transfer When accessing (I / O transfer) by an input / output instruction of a general-purpose microprocessor from outside the function block, the data output from the function block by the data transfer circuit 201 is required to operate. There is an output transfer control signal RQO, which is a kind of general-purpose control signal, to inform the bus control signal generation circuit 202 of the existence. The bus control signal generation circuit 202 that has received the signal RQO
In the case of the I / O point, an output request interrupt is given to the control bus 203, and the input operation of the general-purpose microprocessor 204 is waited for.
The general-purpose microprocessor 204 is a bus control signal generation circuit 202.
When an output request interrupt is received from the control bus
Put a read control signal on 203. The bus control signal conversion circuit 205 converts the control signal input from the control bus 203 into a general-purpose control signal DO inside the functional module according to the type of general-purpose microprocessor, and then the data transfer circuit 20.
The data transfer circuit 201 outputs the data to the data bus 206 according to the general-purpose control signal DO. The data output to the data bus 206 is taken by the general-purpose microprocessor 204. Conversely, when the general-purpose microprocessor 204 outputs data, the bus control signal conversion circuit 205 converts the output control signal input from the control bus 203 into a general-purpose control signal DI corresponding to the type of general-purpose microprocessor, and then the data transfer circuit 201. Then, the data transfer circuit 201 receives the data from the data bus 206. The data transfer circuit 201 processes the received data and then uses the output transfer control signal RQI which is a kind of general-purpose control signal to generate the bus control signal generation circuit 202.
The bus control signal generation circuit 202 which has received the signal RQI notifies the general-purpose microprocessor 204 of a data write ready interrupt.

(2) DMA転送の場合 機能ブロック外部に対して機能ブロックがバスマスタと
なってDMA転送を行う場合,これの動作を説明すると,
データ転送回路201は機能ブロックから出力するデータ
があることを汎用制御信号の一種である出力転送制御信
号RQOによりバス制御信号作成回路202に知らせ,信号RQ
Oを受け取ったバス制御信号作成回路202はDMA転送の場
合コントロールバス203に汎用マイクロプロセッサに応
じたバスマスタ権獲得の制御信号をあげ,コントロール
バス203,データバス206,アドレスバス207のバス権を汎
用マイクロプロセッサ204から獲得する。バス制御信号
作成回路202はまたアドレス作成回路208に機能ブロック
外部への出力先アドレスの発生を汎用制御信号の一種で
ある出力アドレス作成指令信号OAを用いて要求し,アド
レス作成回路208は外部アドレスバッファ209にアドレス
をセットする。バス制御信号作成回路202はバス権を獲
得した後,メモリ210へデータをDMA転送方式で出力する
ためコントロールバス203に汎用マイクロプロセッサの
種別に対応したメモリ書込みの制御信号を出力するとと
もに,データ転送回路201と外部アドレスバッファ209と
に汎用マイクロプロセッサの種別に対応したタイミング
で汎用制御信号DO及びAOを出力して,データバス206と
アドレスバス207とにデータ及びアドレスを出力する。
メモリ210からDMA転送方式で入力する場合は,データ転
送回路201の入力バッファが空きであることをRQIにより
知ったバス制御信号作成回路202は,DMA転送の場合コン
トロールバス203に汎用マイクロプロセッサに応じたバ
スマスタ権獲得の制御信号をあげ,コントロールバス20
3,データバス206,アドレスバス207のバス権を汎用マイ
クロプロセッサ204から獲得する。バス制御信号作成回
路202はまたアドレス作成回路208に機能ブロック外部へ
の入力アドレスの発生を汎用制御信号の一種である入力
アドレス作成指令信号IAを用いて要求し,アドレス作成
回路208は外部アドレスバッファ209にアドレスをセット
する。バス制御信号作成回路202はバス権を獲得した
後,メモリ210からデータをDMA転送方式で入力するた
め,コントロールバス203に汎用マイクロプロセッサの
種別に対応したメモリ読み込みの制御信号を出力すると
ともに,データ転送回路201と外部アドレスバッファ209
とに汎用マイクロプロセッサの種別に対応したタイミン
グで汎用制御信号DI,AOを出力してアドレスバス207にア
ドレスを出力し,データバス206からデータを入力させ
る。
(2) In the case of DMA transfer When the functional block acts as a bus master to perform DMA transfer to the outside of the functional block, the operation of this will be explained as follows.
The data transfer circuit 201 informs the bus control signal generation circuit 202 that there is data to be output from the functional block by the output transfer control signal RQO, which is a kind of general-purpose control signal.
Upon receiving O, the bus control signal generation circuit 202 gives a control signal for acquiring the bus master right according to the general-purpose microprocessor to the control bus 203 in the case of DMA transfer, and generalizes the bus right of the control bus 203, the data bus 206, and the address bus 207. Obtained from the microprocessor 204. The bus control signal creation circuit 202 also requests the address creation circuit 208 to generate an output destination address to the outside of the functional block by using an output address creation command signal OA which is a kind of general-purpose control signal. The address is set in the buffer 209. The bus control signal generation circuit 202 outputs the memory write control signal corresponding to the type of the general-purpose microprocessor to the control bus 203 in order to output the data to the memory 210 by the DMA transfer method after acquiring the bus right, and also transfers the data. The general-purpose control signals DO and AO are output to the circuit 201 and the external address buffer 209 at the timing corresponding to the type of general-purpose microprocessor, and the data and address are output to the data bus 206 and the address bus 207.
When inputting from the memory 210 by the DMA transfer method, the bus control signal generation circuit 202, which has learned from the RQI that the input buffer of the data transfer circuit 201 is empty, responds to the general purpose microprocessor to the control bus 203 in the case of DMA transfer. Control bus 20
3, The bus right of the data bus 206 and the address bus 207 is acquired from the general-purpose microprocessor 204. The bus control signal generation circuit 202 also requests the address generation circuit 208 to generate an input address to the outside of the functional block using an input address generation command signal IA, which is a kind of general-purpose control signal, and the address generation circuit 208 uses the external address buffer. Set the address in 209. The bus control signal generation circuit 202, after acquiring the bus right, inputs the data from the memory 210 by the DMA transfer method. Therefore, it outputs the memory read control signal corresponding to the type of the general-purpose microprocessor to the control bus 203 and outputs the data. Transfer circuit 201 and external address buffer 209
Further, the general-purpose control signals DI and AO are output at a timing corresponding to the type of the general-purpose microprocessor, the address is output to the address bus 207, and the data is input from the data bus 206.

また機能ブロックを宅内機器が制御するため制御レジス
タ211にコントロール情報を書き込む場合は,汎用マイ
クロプロセッサ204がコントロール情報をデータバス206
に出力すると,バス制御信号変換回路205がコントロー
ルバス203から入力した汎用マイクロプロセッサ204の出
力制御信号を汎用マイクロプロセッサの種別に対応して
汎用制御信号DIに変換した後制御レジスタ211に出力
し,制御レジスタ211はデータバス206からコントロール
情報を引き取る。
Further, when the control information is written in the control register 211 because the home device controls the functional block, the general-purpose microprocessor 204 transmits the control information to the data bus 206.
Then, the bus control signal conversion circuit 205 converts the output control signal of the general-purpose microprocessor 204 input from the control bus 203 into a general-purpose control signal DI corresponding to the type of the general-purpose microprocessor, and then outputs it to the control register 211. The control register 211 takes control information from the data bus 206.

この様な構成になっているから,同一のデータ処理機能
部を複数の汎用マイクロプロセッサ種別及びデータ転送
方式に対して共用でき,新たな種別の汎用マイクロプロ
セッサに対してもバス・インタフェース回路の内,バス
制御信号変換回路205及びバス制御信号作成回路202を追
加・変更するだけで対処できる。
With such a configuration, the same data processing function unit can be shared by a plurality of general-purpose microprocessor types and data transfer methods, and a new type of general-purpose microprocessor can be used in the bus interface circuit. The bus control signal conversion circuit 205 and the bus control signal creation circuit 202 can be dealt with simply by adding or changing them.

また汎用マイクロプロセッサからデータの転送以外に制
御情報等を設定する場合においても,バス制御信号変換
回路205をデータ処理機能部と制御レジスタとで共用で
きるためハード規模の増加を抑えることが可能である。
Further, even when the control information or the like is set in addition to the data transfer from the general-purpose microprocessor, the bus control signal conversion circuit 205 can be shared by the data processing function unit and the control register, so that an increase in hardware scale can be suppressed. .

第2図は本発明の第二の実施例を説明する図であって,3
00は本実施例によるマイクロプロセッサ・インタフェー
ス回路,301は機能ブロック内部のマイクロプロセッサ,3
02はデータバス,303はコントロールバス,304はデータ転
送回路である。
FIG. 2 is a diagram for explaining the second embodiment of the present invention.
00 is the microprocessor interface circuit according to the present embodiment, 301 is the microprocessor inside the functional block, 3
Reference numeral 02 is a data bus, 303 is a control bus, and 304 is a data transfer circuit.

(1) I/O転送の場合 機能ブロック外部から汎用マイクロプロセッサの入出力
命令によるアクセス(I/O転送)を行う場合,これの動
作を説明すると,マイクロプロセッサ301が機能ブロッ
クの外部に出力するデータをデータバス302に出力し,
コントロールバス303に書き込みの制御信号をのせデー
タ転送回路304に書き込みを行う。データ転送回路304は
機能ブロックから出力するデータがあることを汎用制御
信号の一種である出力転送制御信号RQOによりバス制御
信号作成回路202に知らせる。RQOを受け取ったバス制御
信号作成回路202は,I/O転送の場合コントロールバス203
に出力要求の割込みをあげ,汎用マイクロプロセッサ20
4の入力動作を待つ。汎用マイクロプロセッサ204はバス
制御信号作成回路202から出力要求の割込みを受け取る
と,コントロールバス203に読み取りの制御信号をのせ
る。バス制御信号変換回路205はコントロールバス203か
ら入力した制御信号を汎用マイクロプロセッサの種別に
対応して機能モジュール内部の汎用制御信号DOに変換し
た後データ転送回路304に出力し,データ転送回路304は
汎用制御信号DOに従ってデータバス206にデータを出力
する。データバス206に出力されたデータは,汎用マイ
クロプロセッサ204に引き取られる。逆に汎用マイクロ
プロセッサ204がデータを出力すると,バス制御信号変
換回路205がコントロールバス203から入力した出力制御
信号を汎用マイクロプロセッサの種別に対応して汎用制
御信号DIに変換した後データ転送回路304に出力し,デ
ータ転送回路304はデータバス206からデータを引き取
る。データ転送回路304は機能ブロック外部から取り込
んだデータがあることをコントロールバス303を通じて
マイクロプロセッサ301に知らせ,マイクロプロセッサ3
01はデータ転送回路304からデータバス302を通じてデー
タを引き取る。データ転送回路304は引き取ったデータ
をマイクロプロセッサ301に出力した後,汎用制御信号
の一種である入力転送制御信号RQIによりバス制御信号
作成回路202に処理完了を知らせ,RQIを受け取ったバス
制御信号作成回路202はデータ書込みレディの割込みを
コントロールバス203を通じて汎用マイクロプロセッサ2
04にあげる。
(1) In the case of I / O transfer When accessing (I / O transfer) by an input / output instruction of a general-purpose microprocessor from outside the functional block, the operation of this will be explained. The microprocessor 301 outputs to the outside of the functional block. Output the data to the data bus 302,
A control signal for writing is placed on the control bus 303 and writing is performed in the data transfer circuit 304. The data transfer circuit 304 informs the bus control signal generation circuit 202 that there is data to be output from the functional block by an output transfer control signal RQO which is a kind of general-purpose control signal. The bus control signal creation circuit 202 that receives the RQO, the I / O transfer control bus 203
The output request interrupt is raised to the general-purpose microprocessor 20
Wait for 4 input operation. When the general-purpose microprocessor 204 receives an output request interrupt from the bus control signal generation circuit 202, it places a read control signal on the control bus 203. The bus control signal conversion circuit 205 converts the control signal input from the control bus 203 into a general-purpose control signal DO inside the functional module corresponding to the type of general-purpose microprocessor, and then outputs it to the data transfer circuit 304. Data is output to the data bus 206 according to the general-purpose control signal DO. The data output to the data bus 206 is taken by the general-purpose microprocessor 204. Conversely, when the general-purpose microprocessor 204 outputs data, the bus control signal conversion circuit 205 converts the output control signal input from the control bus 203 into a general-purpose control signal DI corresponding to the type of general-purpose microprocessor, and then the data transfer circuit 304. And the data transfer circuit 304 receives the data from the data bus 206. The data transfer circuit 304 notifies the microprocessor 301 through the control bus 303 that there is data taken in from outside the functional block, and the microprocessor 3
01 receives data from the data transfer circuit 304 through the data bus 302. After the data transfer circuit 304 outputs the received data to the microprocessor 301, the data transfer circuit 304 notifies the bus control signal generation circuit 202 of the completion of processing by the input transfer control signal RQI which is a kind of general-purpose control signal, and receives the RQI and generates the bus control signal. The circuit 202 sends a data write ready interrupt through the control bus 203 to the general-purpose microprocessor 2
I'll give it to 04.

(2) DMA転送の場合 機能ブロック外部に対して機能ブロックがバスマスタと
なってDMA転送を行う場合,これの動作を説明すると,
マイクロプロセッサ301は機能ブロック外部に出力する
データをデータバス302に出力し,コントロールバス303
に書き込みの制御信号をのせてデータ転送回路304に書
き込む。データ転送回路304は出力するデータがあるこ
とを汎用制御信号の一種である出力転送制御信号RQOに
よりバス制御信号作成回路202に知らせ,RQOを受け取っ
たバス制御信号作成回路202は,DMA転送の場合コントロ
ールバス203に汎用マイクロプロセッサに応じたバスマ
スタ権獲得の制御信号をあげ,コントロールバス203,デ
ータバス206,アドレスバス207のバス権を汎用マイクロ
プロセッサ204から獲得する。バス制御信号作成回路202
はまたアドレス作成回路208に機能ブロック外部への出
力先アドレスの発生を汎用制御信号の一種である出力ア
ドレス作成指令信号OAを用いて要求し,アドレス作成回
路208は外部アドレスバッファ209にアドレスをセットす
る。バス制御信号作成回路202はバス権を獲得した後,
メモリ210へデータをDMA転送方式で出力するためコント
ロールバス203に汎用マイクロプロセッサの種別に対応
したメモリ書込みの制御信号を出力するとともに,デー
タ転送回路304と外部アドレスバッファ209とに汎用マイ
クロプロセッサの種別に対応したタイミングで汎用制御
信号DO及びAOを出力して,データバス206とアドレスバ
ス207とにデータ及びアドレスを出力する。メモリ210か
らDMA転送方式で入力する場合は,データ転送回路304の
入力バッファ空きであることをRQIにより知ったバス制
御信号作成回路202は,DMA転送の場合コントロールバス2
03に汎用マイクロプロセッサに応じたバスマスタ権獲得
の制御信号をあげ,コントロールバス203,データバス20
6,アドレスバス207のバス権を汎用マイクロプロセッサ2
04から獲得する。バス制御信号作成回路202はまたアド
レス作成回路208に機能ブロック外部への入力アドレス
の発生を汎用制御信号の一種である入力アドレス作成指
令信号IAを用いて要求し,アドレス作成回路208は外部
アドレスバッファ209にアドレスをセットする。バス制
御信号作成回路202はバス権を獲得した後,メモリ210か
らデータをDMA転送方式で入力するため,コントロール
バス203に汎用マイクロプロセッサの種別に対応したメ
モリ読み込みの制御信号を出力するとともに,データ転
送回路304と外部アドレスバッファ209とに汎用マイクロ
プロセッサの種別に対応したタイミングで汎用制御信号
AO,DIを出力して,アドレスバス207にアドレスを出力
し,データバス206からデータ転送回路304にデータを入
力させる。
(2) In the case of DMA transfer When the functional block acts as a bus master to perform DMA transfer to the outside of the functional block, the operation of this will be explained as follows.
The microprocessor 301 outputs the data output to the outside of the functional block to the data bus 302, and the control bus 303
A write control signal is placed on and written in the data transfer circuit 304. The data transfer circuit 304 informs the bus control signal generation circuit 202 that there is data to be output by the output transfer control signal RQO which is a kind of general-purpose control signal, and the bus control signal generation circuit 202 which receives the RQO A control signal for acquiring the bus master right according to the general-purpose microprocessor is given to the control bus 203, and the bus right of the control bus 203, the data bus 206, and the address bus 207 is acquired from the general-purpose microprocessor 204. Bus control signal generation circuit 202
Also requests the address generation circuit 208 to generate an output destination address to the outside of the functional block using an output address generation command signal OA which is a kind of general-purpose control signal, and the address generation circuit 208 sets the address in the external address buffer 209. To do. After the bus control signal generation circuit 202 acquires the bus right,
In order to output data to the memory 210 by the DMA transfer method, a memory write control signal corresponding to the type of the general-purpose microprocessor is output to the control bus 203, and the type of the general-purpose microprocessor is output to the data transfer circuit 304 and the external address buffer 209. The general-purpose control signals DO and AO are output at a timing corresponding to, and the data and address are output to the data bus 206 and the address bus 207. When inputting from the memory 210 by the DMA transfer method, the bus control signal generating circuit 202, which has learned from the RQI that the input buffer of the data transfer circuit 304 is empty, uses the control bus 2 for the DMA transfer.
The control signals for bus mastership acquisition according to the general-purpose microprocessor are given to 03, and the control bus 203, data bus 20
6, the bus right of the address bus 207 is assigned to the general-purpose microprocessor 2
Acquire from 04. The bus control signal generation circuit 202 also requests the address generation circuit 208 to generate an input address to the outside of the functional block using an input address generation command signal IA, which is a kind of general-purpose control signal, and the address generation circuit 208 uses the external address buffer. Set the address in 209. The bus control signal generation circuit 202, after acquiring the bus right, inputs the data from the memory 210 by the DMA transfer method. Therefore, it outputs the memory read control signal corresponding to the type of the general-purpose microprocessor to the control bus 203 and outputs the data. A general-purpose control signal is sent to the transfer circuit 304 and the external address buffer 209 at a timing corresponding to the type of the general-purpose microprocessor.
AO and DI are output, an address is output to the address bus 207, and data is input from the data bus 206 to the data transfer circuit 304.

また機能ブロックを宅内機器が制御するため制御レジス
タ211にコントロール情報を書き込む場合は,汎用マイ
クロプロセッサ204がコントロール情報をデータバス206
に出力すると,バス制御信号変換回路205がコントロー
ルバス203から入力した汎用マイクロプロセッサ204の出
力制御信号を汎用マイクロプロセッサの種別に対応して
汎用制御信号DIに変換した後制御レジスタ211に出力
し,制御レジスタ211はデータバス206からコントロール
情報を引き取る。
Further, when the control information is written in the control register 211 because the home device controls the functional block, the general-purpose microprocessor 204 transmits the control information to the data bus 206.
Then, the bus control signal conversion circuit 205 converts the output control signal of the general-purpose microprocessor 204 input from the control bus 203 into a general-purpose control signal DI corresponding to the type of the general-purpose microprocessor, and then outputs it to the control register 211. The control register 211 takes control information from the data bus 206.

この様な構成になっているから,同一のデータ転送機能
部を複数の汎用マイクロプロセッサ種別及びデータ転送
方式に対して共用でき,新たな種別の汎用マイクロプロ
セッサに対してもバス・インタフェース回路の内,バス
制御信号変換回路及びバス制御信号作成回路を追加・変
更するだけで対処できる。
With such a configuration, the same data transfer function unit can be shared by a plurality of general-purpose microprocessor types and data transfer methods, and a new type of general-purpose microprocessor can be used in the bus interface circuit. The bus control signal conversion circuit and bus control signal creation circuit can be added and changed.

また汎用マイクロプロセッサからデータの転送以外に制
御情報等を設定する場合においても,バス制御信号変換
回路をデータ転送機能部と制御レジスタとで共用できる
ため,ハード規模の増加を抑えることが可能である。
Further, even when the control information or the like is set in addition to the data transfer from the general-purpose microprocessor, the bus control signal conversion circuit can be shared by the data transfer function unit and the control register, so that an increase in hardware scale can be suppressed. .

第3図は本発明の第三の実施例を説明する図であって,4
00は本実施例によるマイクロプロセッサ・インタフェー
ス回路,401は機能ブロック内のメモリ,402はバス制御信
号作成回路,403はアドレス作成回路,404は内部アドレス
・バッファ,405は機能ブロック内部のアドレスバス,406
はデータ転送回路である。
FIG. 3 is a diagram for explaining the third embodiment of the present invention.
00 is a microprocessor interface circuit according to the present embodiment, 401 is a memory in a functional block, 402 is a bus control signal generation circuit, 403 is an address generation circuit, 404 is an internal address buffer, 405 is an address bus inside the functional block, 406
Is a data transfer circuit.

(1) I/O転送の場合 機能ブロック外部から汎用マイクロプロセッサの入出力
命令によるアクセス(I/O転送)を行う場合,これの動
作を説明すると,機能ブロックからデータを出力するに
は,マイクロプロセッサ301が,機能ブロックの外部に
出力するデータをメモリ401にセットした後,コントロ
ールバス303を通じてバス制御信号作成回路402にデータ
の転送を要求する。データ転送要求を受けたバス制御信
号作成回路402は,信号A1によりアドレス作成回路403に
対してメモリ401からデータ転送を行うためのアドレス
の発生を要求し,アドレス作成回路403は内部アドレス
・バッファ404にアドレスをセットする。バス制御信号
作成回路402はまたコントロールバス303を通じてマイク
ロプロセッサ301にバスマスタ権獲得の制御信号を力
し,データバス302,コントロールバス303,アドレスバス
405のバス権を獲得した後,コントロールバス303にメモ
リへの出力の制御信号を出力するとともに,信号A3によ
ってアドレスバス405に転送データのアドレスを出力し
て,メモリ401よりデータをコントロールバス303に出力
させる。バス制御信号作成回路402は,データ転送回路4
06も同時に制御し,コントロールバス303に出力された
データをデータ転送回路406に入力させる。データ転送
回路406は機能ブロックから出力するデータがあること
を汎用制御信号の一種である出力転送制御信号RQOを通
じてバス制御信号作成回路402に知らせる。RQOを受け取
ったバス制御信号作成回路402は,I/O転送の場合,コン
トロールバス203に出力要求の割込みをあげ,汎用マイ
クロプロセッサ204の入力動作を待つ。汎用マイクロプ
ロセッサ204はバス制御信号作成回路402から出力要求の
割込みを受け取ると,コントロールバス203に読み取り
の制御信号をのせる。バス制御信号変換回路205はコン
トロールバス203から入力した制御信号を汎用マイクロ
プロセッサの種別に対応して機能モジュール内部の汎用
制御信号DOに変換した後データ転送回路406に出力し,
データ転送回路406は汎用制御信号DOに従ってデータバ
ス206にデータを出力する。データバス206に出力された
データは,汎用マイクロプロセッサ204に引き取られ
る。逆に汎用マイクロプロセッサ204がデータを出力す
ると,バス制御信号変換回路205がコントロールス203か
ら入力した出力制御信号を汎用マイクロプロセッサの種
別に対応して汎用制御信号DIに変換した後データ転送回
路406に出力し,データ転送回路406はデータバス206か
らデータを引き取る。データ転送回路406は機能ブロッ
ク外部から取り込んだデータがあることを信号RQ2によ
りバス制御信号作成回路402に知らせ,バス制御信号作
成回路402は信号A2によりアドレス作成回路403に対して
メモリ401へデータ転送を行うためのアドレスの発生を
要求し,アドレス作成回路403は内部アドレス・バッフ
ァ404にアドレスをセットする。バス制御信号作成回路4
02は,またコントロールバス303を通じてマイクロプロ
セッサ301にバスマスタ権獲得の制御信号を出力し,デ
ータバス302,コントロールバス303,アドレスバス405の
バス権を獲得した後,コントロールバス303にメモリへ
の入力の制御信号を出力するとともに,信号A3によって
内部アドレス・バッファ404に転送データのアドレスを
出力する。またバス制御信号作成回路402はデータ転送
回路406を制御し,データバス302にデータを出力させ,
データバス302を通じてメモリ401にデータを入力させ
る。データ転送回路406は,機能ブロック外部から入力
したデータをメモリ401に出力した後汎用制御信号の一
種である入力転送制御信号RQIによりバス制御信号作成
回路402に処理完了を知らせ,信号RQIを受け取ったバス
制御信号作成回路402はデータ書込みレディの割込みを
コントロールバス203を通じて汎用マイクロプロセッサ2
04にあげる。
(1) In the case of I / O transfer When accessing (I / O transfer) by an input / output instruction of a general-purpose microprocessor from the outside of a functional block, the operation of this is explained. The processor 301 sets the data to be output to the outside of the functional block in the memory 401, and then requests the bus control signal generation circuit 402 to transfer the data via the control bus 303. Upon receiving the data transfer request, the bus control signal creation circuit 402 requests the address creation circuit 403 to generate an address for data transfer from the memory 401 by the signal A1, and the address creation circuit 403 sends the internal address buffer 404. Set the address to. The bus control signal generation circuit 402 also outputs a control signal for acquiring the bus master right to the microprocessor 301 through the control bus 303, and the data bus 302, the control bus 303, and the address bus.
After acquiring the bus right of 405, the control signal for output to the memory is output to the control bus 303, the address of the transfer data is output to the address bus 405 by the signal A3, and the data is transferred from the memory 401 to the control bus 303. Output. The bus control signal generation circuit 402 is the data transfer circuit 4
06 is also controlled at the same time, and the data output to the control bus 303 is input to the data transfer circuit 406. The data transfer circuit 406 notifies the bus control signal generation circuit 402 that there is data to be output from the functional block through an output transfer control signal RQO which is a kind of general-purpose control signal. In the case of I / O transfer, the bus control signal generation circuit 402 that has received RQO raises an output request interrupt to the control bus 203 and waits for an input operation of the general-purpose microprocessor 204. When the general-purpose microprocessor 204 receives an output request interrupt from the bus control signal generation circuit 402, it places a read control signal on the control bus 203. The bus control signal conversion circuit 205 converts the control signal input from the control bus 203 into a general-purpose control signal DO inside the functional module corresponding to the type of general-purpose microprocessor, and then outputs it to the data transfer circuit 406.
The data transfer circuit 406 outputs data to the data bus 206 according to the general-purpose control signal DO. The data output to the data bus 206 is taken by the general-purpose microprocessor 204. Conversely, when the general-purpose microprocessor 204 outputs data, the bus control signal conversion circuit 205 converts the output control signal input from the control unit 203 into a general-purpose control signal DI corresponding to the type of general-purpose microprocessor, and then the data transfer circuit 406. Then, the data transfer circuit 406 takes in the data from the data bus 206. The data transfer circuit 406 informs the bus control signal generation circuit 402 by the signal RQ2 that there is data taken in from outside the functional block, and the bus control signal generation circuit 402 transfers the data to the memory 401 to the address generation circuit 403 by the signal A2. The address generation circuit 403 sets the address in the internal address buffer 404. Bus control signal generation circuit 4
The 02 also outputs a control signal for acquiring the bus master right to the microprocessor 301 through the control bus 303, acquires the bus right of the data bus 302, the control bus 303, and the address bus 405, and then inputs the memory to the control bus 303. In addition to outputting the control signal, the address of the transfer data is output to the internal address buffer 404 by the signal A3. Further, the bus control signal generation circuit 402 controls the data transfer circuit 406 to output data to the data bus 302,
Data is input to the memory 401 through the data bus 302. The data transfer circuit 406 outputs the data input from the outside of the functional block to the memory 401, then notifies the bus control signal generation circuit 402 of the completion of processing by the input transfer control signal RQI which is a kind of general-purpose control signal, and receives the signal RQI. The bus control signal generation circuit 402 sends a data write ready interrupt to the general-purpose microprocessor 2 through the control bus 203.
I'll give it to 04.

(2) DMA転送の場合 機能ブロック外部に対して機能ブロックがバスマスタと
なってDMA転送を行う場合,これの動作を説明すると,
マイクロプロセッサ301が機能ブロック外部に出力する
データをメモリ401にセットした後,コントロールバス3
03を通じてバス制御信号作成回路402にデータの転送を
要求する。データ転送要求を受けたバス制御信号作成回
路402は信号A1によりアドレス作成回路403に対してメモ
リ401からデータ転送を行うためのアドレスの発生を要
求し,アドレス作成回路403は内部アドレス・バッファ4
04にアドレスをセットする。バス制御信号作成回路402
は,またコントロールバス303を通じてマイクロプロセ
ッサ301にバスマスタ権獲得の制御信号を出力し,デー
タバス302,コントロールバス303,アドレスバス405のバ
ス権を獲得した後,コントロールバス303にメモリへの
出力の制御信号を出力するとともに,信号A3によってア
ドレスバス405に転送データのアドレスを出力して,メ
モリ401よりデータをコントロールバス303に出力させ
る。バス制御信号作成回路402は,データ転送回路406も
同時に制御し,データバス302に出力されたデータをデ
ータ転送回路406に入力させる。データ転送回路406は出
力するデータがあることを汎用制御信号の一種である出
力転送制御信号RQOによりバス制御信号作成回路402に知
らせ,RQOを受け取ったバス制御信号作成回路402は,DMA
転送の場合コントロールバス203に汎用マイクロプロセ
ッサに応じたバスマスタ権獲得の制御信号をあげ,コン
トロールバス203,データバス206,アドレスバス207のバ
ス権を汎用マイクロプロセッサ204から獲得する。バス
制御信号作成回路402はまたアドレス作成回路403に機能
ブロック外部への出力先アドレスの発生を汎用制御信号
の一種である出力アドレス作成指令信号OAを用いて要求
し,アドレス作成回路403は外部アドレスバッファ209に
アドレスをセットする。バス制御信号作成回路402は,
バス権を獲得した後,メモリ210へデータをDMA転送方式
で出力するためコントロールバス203に汎用マイクロプ
ロセッサの種別に対応したメモリ書込みの制御信号を出
力するとともに,データ転送回路406と外部アドレスバ
ッファ209とに汎用マイクロプロセッサの種別に対応し
たタイミングで汎用制御信号DO及びAOを出力して,デー
タバス206とアドレスバス207とにデータ及びアドレスを
出力する。メモリ210からDMA転送方式で入力する場合
は,データ転送回路406の入力バッファが空きであるこ
とをRQIにより知ったバス制御信号作成回路402は,DMA転
送の場合コントロールバス203に汎用マイクロプロセッ
サに応じたバスマスタ権獲得の制御信号をあげ,コント
ロールバス203,データバス206,アドレスバス207のバス
権を汎用マイクロプロセッサ204から獲得する。バス制
御信号作成回路402はまたアドレス作成回路403に機能ブ
ロック外部への入力アドレスの発生を汎用制御信号の一
種である入力アドレス作成指令信号IAを用いて要求し,
アドレス作成回路403は外部アドレスバッファ209にアド
レスをセットする。バス制御信号作成回路402は,バス
権を獲得した後,メモリ210からデータをDMA転送方式で
入力するためコントロールバス203に汎用マイクロプロ
セッサの種別に対応したメモリ読み込みの制御信号を出
力するとともに,データ転送回路406と外部アドレスバ
ッファ209とに汎用マイクロプロセッサ種別に対応した
タイミングで汎用制御信号AO,DIを出力してアドレスバ
ス207にアドレスを出力し,データバス206からデータ転
送回路406にデータを入力させる。
(2) In the case of DMA transfer When the functional block acts as a bus master to perform DMA transfer to the outside of the functional block, the operation of this will be explained as follows.
After the data output from the microprocessor 301 to the outside of the functional block is set in the memory 401, the control bus 3
Request the data transfer to the bus control signal generation circuit 402 through 03. In response to the data transfer request, the bus control signal generation circuit 402 requests the address generation circuit 403 to generate an address for data transfer from the memory 401 by the signal A1, and the address generation circuit 403 causes the internal address buffer 4 to operate.
Set the address to 04. Bus control signal generation circuit 402
Also outputs a control signal for acquiring the bus master right to the microprocessor 301 through the control bus 303, acquires the bus right of the data bus 302, the control bus 303, and the address bus 405, and then controls the output to the memory on the control bus 303. In addition to outputting the signal, the address of the transfer data is output to the address bus 405 by the signal A3, and the data is output from the memory 401 to the control bus 303. The bus control signal generation circuit 402 also controls the data transfer circuit 406 at the same time to input the data output to the data bus 302 to the data transfer circuit 406. The data transfer circuit 406 informs the bus control signal generation circuit 402 that there is data to be output by the output transfer control signal RQO which is a kind of general-purpose control signal, and the bus control signal generation circuit 402 which received the RQO
In the case of transfer, a control signal for acquiring the bus master right according to the general-purpose microprocessor is given to the control bus 203, and the bus right of the control bus 203, the data bus 206, and the address bus 207 is acquired from the general-purpose microprocessor 204. The bus control signal creation circuit 402 also requests the address creation circuit 403 to generate an output destination address to the outside of the functional block by using an output address creation command signal OA, which is a kind of general-purpose control signal. The address is set in the buffer 209. The bus control signal generation circuit 402 is
After acquiring the bus right, a memory write control signal corresponding to the type of the general-purpose microprocessor is output to the control bus 203 in order to output the data to the memory 210 by the DMA transfer method, and at the same time, the data transfer circuit 406 and the external address buffer 209. The general-purpose control signals DO and AO are output at the timings corresponding to the general-purpose microprocessor type, and the data and address are output to the data bus 206 and the address bus 207. When inputting from the memory 210 by the DMA transfer method, the bus control signal generating circuit 402, which has learned from the RQI that the input buffer of the data transfer circuit 406 is empty, responds to the control bus 203 by a general-purpose microprocessor in the case of DMA transfer. A control signal for acquiring the bus master right is given to acquire the bus right of the control bus 203, the data bus 206, and the address bus 207 from the general-purpose microprocessor 204. The bus control signal generation circuit 402 also requests the address generation circuit 403 to generate an input address to the outside of the functional block using an input address generation command signal IA, which is a kind of general-purpose control signal,
The address creating circuit 403 sets an address in the external address buffer 209. The bus control signal generation circuit 402 outputs the memory read control signal corresponding to the type of the general-purpose microprocessor to the control bus 203 to input the data from the memory 210 by the DMA transfer method after acquiring the bus right, and at the same time, outputs the data. The general-purpose control signals AO and DI are output to the transfer circuit 406 and the external address buffer 209 at the timing corresponding to the general-purpose microprocessor type, the address is output to the address bus 207, and the data is input from the data bus 206 to the data transfer circuit 406. Let

また機能ブロックを宅内機器が制御するため制御レジス
タ211にコントロール情報を書き込む場合は,汎用マイ
クロプロセッサ204がコントロール情報をデータバス206
に出力する,バス制御信号変換回路205がコントロール
バス203から入力した汎用マイクロプロセッサ204の出力
制御信号を汎用マイクロプロセッサの種別に対応して汎
用制御信号DIに変換した後制御レジスタ211に出力し,
制御レジスタ211はデータバス206からコントロール情報
を引き取る。
Further, when the control information is written in the control register 211 because the home device controls the functional block, the general-purpose microprocessor 204 transmits the control information to the data bus 206.
The bus control signal conversion circuit 205 outputs to the control register 211 after converting the output control signal of the general-purpose microprocessor 204 input from the control bus 203 into a general-purpose control signal DI corresponding to the type of the general-purpose microprocessor.
The control register 211 takes control information from the data bus 206.

この様な構成になっているから同一のデータ転送機能部
を複数の汎用マイクロプロセッサ種別及びデータ転送方
式に対して共用でき,新たな種別の汎用マイクロプロセ
ッサに対してもバス・インタフェース回路の内,バス制
御信号変換回路及びバス制御信号作成回路を追加・変更
するだけで対処できる。
With such a configuration, the same data transfer function unit can be shared by a plurality of general-purpose microprocessor types and data transfer methods, and even for a new type of general-purpose microprocessor, the bus interface circuit This can be dealt with simply by adding or changing the bus control signal conversion circuit and the bus control signal generation circuit.

また汎用マイクロプロセッサからデータの転送以外に制
御情報等を設定する場合においても,バス制御信号変換
回路をデータ転送機能部と制御レジスタとで共用できる
ため,ハード規模の増加を抑えることが可能である。
Further, even when the control information or the like is set in addition to the data transfer from the general-purpose microprocessor, the bus control signal conversion circuit can be shared by the data transfer function unit and the control register, so that an increase in hardware scale can be suppressed. .

さらにDMA転送を行うために必要となるアドレス発生部
を機能ブロック内部のDMA転送と機能ブロック外部へのD
MA転送との間で共用できるため,DMA転送に関わるハード
ウェア規模の増加を抑えることが可能である。
In addition, the address generator required for DMA transfer is used for DMA transfer inside the function block and D
Since it can be shared with MA transfer, it is possible to suppress an increase in hardware scale related to DMA transfer.

これらの説明から明らかなように,従来の技術に比べ
て,本発明においては複数の種別の汎用マイクロプロセ
ッサ及び複数のデータ転送方式に対応する場合,機能ブ
ロック内のひとつのデータ転送機能部に対してマイクロ
プロセッサ対応部を選択・制御して用いるので,機能ブ
ロックの重複がなくなり,ハードウェア規模を縮小で
き,また新たな汎用マイクロプロセッサ種別に対応する
場合もデータ転送機能部はそのままでマイクロプロセッ
サ対応部のみの変更で対処でき,追加・変更が容易であ
る等の改善効果がある。データ転送機能部以外でもこの
構成に準ずることで,バス・インタフェース回路内のマ
イクロプロセッサ対応部やアドレス発生部を共用でき,
機能ブロックのハードウェア規模を縮小でき,さらにデ
ータ転送機能部自体の機能追加や変更を行う場合はマイ
クロプロセッサ対応部と独立に行えるので追加変更が容
易である。
As is clear from these explanations, in the present invention, in the case of supporting a plurality of types of general-purpose microprocessors and a plurality of data transfer methods, one data transfer function unit in a function block is compared to the conventional technology. Since the microprocessor compatible part is selected and controlled to be used, the function blocks do not overlap, the hardware scale can be reduced, and the data transfer function part is compatible with the microprocessor even when compatible with a new general-purpose microprocessor type. It can be dealt with by changing only the parts, and it has the improvement effect that additions and changes are easy. By conforming to this configuration other than the data transfer function block, the microprocessor interface and address generator in the bus interface circuit can be shared.
The hardware scale of the functional blocks can be reduced, and when adding or changing the functions of the data transfer function unit itself, it can be done independently of the microprocessor-compatible unit, making additions and changes easy.

(5)発明の効果 以上説明したように,本発明によれば,マイクロプロセ
ッサ・インタフェース回路の構成を対応する汎用マイク
ロプロセッサの種別やデータの転送方式に依存して選択
・制御されるマイクロプロセッサ対応部と,入出力した
データの回路内の転送や出力アドレスの生成等,対応す
る汎用マイクロプロセッサの種別やデータの転送方式に
独立なデータ転送機能部とに分離・独立した構成とした
ため,複数の汎用マイクロプロセッサに対応する場合に
マイクロプロセッサ・バス・インタフェース回路のハー
ドウェア規模を縮小でき,また各々の機能を変更・追加
する場合においても,容易に実現できるとともにハード
ウェアを共用できハードウェア規模の増加を抑えること
ができる等の利点がある。
(5) Effects of the Invention As described above, according to the present invention, the microprocessor interface circuit can be selected and controlled depending on the type of the corresponding general-purpose microprocessor and the data transfer method. Section and a data transfer function section that is independent of the type of general-purpose microprocessor and the data transfer method, such as the transfer of input and output data in the circuit and the generation of output addresses. When supporting a general-purpose microprocessor, the hardware size of the microprocessor bus interface circuit can be reduced, and even when each function is changed / added, it can be easily realized and the hardware can be shared, thus reducing the hardware size. There is an advantage that the increase can be suppressed.

さらにバス制御信号作成回路が入力アドレス作成信号と
出力アドレス作成信号とを独立に出力できるため、特に
DMA転送方式を用いる際には上記の効果に加えて、バス
利用効率を損なわずにデータ転送が可能となる、という
効果を有する。
In addition, the bus control signal creation circuit can output the input address creation signal and the output address creation signal independently.
When the DMA transfer method is used, in addition to the above effects, there is an effect that data transfer can be performed without impairing bus utilization efficiency.

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

第1図は本発明の第一の実施例を説明する図,第2図は
本発明の第二の実施例を説明する図,第3図は本発明の
第三の実施例を説明する図,第4図は従来の技術による
I/O転送の例を説明する図を示す。 図中の符号200は本実施例によるマイクロプロセッサ・
インタフェース回路,201はデータ転送回路,202はバス制
御信号作成回路,203は機能ブロックが接続された汎用マ
イクロプロセッサのコントロールバス,204は汎用マイク
ロプロセッサ,205はバス制御信号変換回路,206はデータ
バス,207はアドレスバス,208はアドレス作成回路,209は
外部アドレスバッファ,210はメモリ,211は制御レジス
タ,300は本実施例によるマイクロプロセッサ・インタフ
ェース回路,301は機能ブロック内部のマイクロプロセッ
サ,302はデータバス,303はコントロールバス,304はデー
タ転送回路,400は本実施例によるマイクロプロセッサ・
インタフェース回路,401は機能ブロック内のメモリ,402
はバス制御信号作成回路,403はアドレス作成回路,404内
部アドレス・バッファ,405は機能ブロック内部のアドレ
スバス,406はデータ転送回路である。
FIG. 1 is a diagram illustrating a first embodiment of the present invention, FIG. 2 is a diagram illustrating a second embodiment of the present invention, and FIG. 3 is a diagram illustrating a third embodiment of the present invention. , Fig. 4 is based on conventional technology
The figure explaining the example of I / O transfer is shown. Reference numeral 200 in the figure denotes a microprocessor according to the present embodiment.
Interface circuit, 201 is a data transfer circuit, 202 is a bus control signal generation circuit, 203 is a general-purpose microprocessor control bus to which functional blocks are connected, 204 is a general-purpose microprocessor, 205 is a bus control signal conversion circuit, and 206 is a data bus , 207 is an address bus, 208 is an address generation circuit, 209 is an external address buffer, 210 is a memory, 211 is a control register, 300 is a microprocessor interface circuit according to the present embodiment, 301 is a microprocessor inside a functional block, and 302 is Data bus, 303 is a control bus, 304 is a data transfer circuit, and 400 is the microprocessor
Interface circuit, 401 is the memory in the functional block, 402
Is a bus control signal generation circuit, 403 is an address generation circuit, 404 internal address buffer, 405 is an address bus inside a functional block, and 406 is a data transfer circuit.

フロントページの続き (72)発明者 永井 直文 神奈川県横須賀市武1丁目2356番地 日本 電信電話株式会社複合通信研究所内 (56)参考文献 実開 昭59−147236(JP,U)Front Page Continuation (72) Inventor Naofumi Nagai Address: 2356 Take, Yokosuka City, Kanagawa Pref., NTT Communication Systems Laboratories (56) References

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】機能ブロックに内蔵され、汎用マイクロプ
ロセッサとメモリとが接続された汎用マイクロプロセッ
サバスに接続し、該汎用マイクロプロセッサバスを通し
て前記汎用マイクロプロセッサ及び前記メモリとデータ
を送受信するマイクロプロセッサ・バス・インタフェー
ス回路において、 前記汎用マイクロプロセッサバスとの送受信の許可を通
知する転送制御信号を送出し、前記データを前記機能ブ
ロック又は前記汎用マイクロプロセッサバスと送受信す
るデータ転送回路と、 前記汎用マイクロプロセッサが発した制御信号を前記汎
用マイクロプロセッサバスを通して受信し、前記データ
転送回路が前記データを前記汎用マイクロプロセッサバ
スに送受信するタイミングを前記データ転送回路に通知
する信号変換回路と、 前記データ転送回路から受信した前記転送制御信号に基
づいて、前記汎用マイクロプロセッサに対応した制御信
号を前記汎用マイクロプロセッサが要求するタイミング
で前記汎用マイクロプロセッサバスに出力し、入力アド
レス作成指令信号又は出力アドレス作成指令信号をそれ
ぞれ独立に出力し、前記データ転送回路が前記データを
前記汎用マイクロプロセッサバスと送受信するタイミン
グを前記データ転送回路に通知し、アドレスを前記汎用
マイクロプロセッサバスに出力するタイミングを後記ア
ドレスバッファに通知するバス制御信号作成回路と、 前記バス制御信号作成回路から前記入力アドレス作成信
号と前記出力アドレス作成信号とを受信し、前記入力ア
ドレス作成信号により前記メモリへデータを入力する入
力アドレスを、前記出力アドレス作成信号により前記メ
モリからデータを出力する出力アドレスを、それぞれ独
立に作成するアドレス作成回路と、 前記アドレス作成回路で作成された前記アドレスを記憶
し、前記バス制御信号作成回路から前記アドレスを前記
汎用マイクロプロセッサバスに出力するタイミングを受
信し、前記タイミングに基づいて前記汎用マイクロプロ
セッサバスに出力するアドレスバッファとを 備えたことを特徴とするマイクロプロセッサ・バス・イ
ンタフェース回路。
1. A microprocessor, which is built in a functional block, is connected to a general-purpose microprocessor bus to which a general-purpose microprocessor and a memory are connected, and which transmits and receives data to and from the general-purpose microprocessor and the memory through the general-purpose microprocessor bus. In the bus interface circuit, a data transfer circuit that sends out a transfer control signal notifying permission of transmission / reception to / from the general-purpose microprocessor bus and transmits / receives the data to / from the functional block or the general-purpose microprocessor bus; and the general-purpose microprocessor. A signal conversion circuit that receives a control signal issued by the general-purpose microprocessor bus and notifies the data transfer circuit of the timing at which the data transfer circuit transmits and receives the data to and from the general-purpose microprocessor bus; Based on the transfer control signal received from the transfer circuit, a control signal corresponding to the general-purpose microprocessor is output to the general-purpose microprocessor bus at a timing required by the general-purpose microprocessor to generate an input address creation command signal or an output address creation. The address buffer outputs the command signals independently, notifies the data transfer circuit of the timing when the data transfer circuit transmits and receives the data to and from the general-purpose microprocessor bus, and outputs the address to the general-purpose microprocessor bus. A bus control signal creation circuit for notifying the input address creation signal and the output address creation signal from the bus control signal creation circuit, and an input address for inputting data to the memory by the input address creation signal, The output address Address creation circuit for independently creating output addresses for outputting data from the memory according to the address creation signal, and the address created by the address creation circuit, and storing the address from the bus control signal creation circuit. A microprocessor bus interface circuit, comprising: an address buffer that receives a timing to be output to a general-purpose microprocessor bus and outputs the timing to the general-purpose microprocessor bus based on the timing.
JP61027245A 1986-02-10 1986-02-10 Microprocessor bus interface circuit Expired - Fee Related JPH0754503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61027245A JPH0754503B2 (en) 1986-02-10 1986-02-10 Microprocessor bus interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61027245A JPH0754503B2 (en) 1986-02-10 1986-02-10 Microprocessor bus interface circuit

Publications (2)

Publication Number Publication Date
JPS62184557A JPS62184557A (en) 1987-08-12
JPH0754503B2 true JPH0754503B2 (en) 1995-06-07

Family

ID=12215692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61027245A Expired - Fee Related JPH0754503B2 (en) 1986-02-10 1986-02-10 Microprocessor bus interface circuit

Country Status (1)

Country Link
JP (1) JPH0754503B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2662120B2 (en) * 1991-10-01 1997-10-08 インターナショナル・ビジネス・マシーンズ・コーポレイション Speech recognition device and processing unit for speech recognition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59147236U (en) * 1984-02-16 1984-10-02 富士電機株式会社 Interface control device

Also Published As

Publication number Publication date
JPS62184557A (en) 1987-08-12

Similar Documents

Publication Publication Date Title
US6282598B1 (en) PCI bus system wherein target latency information are transmitted along with a retry request
JPH076124A (en) System and method for transfer of information
JPH09160866A (en) Bus interface logic system and synchronization method
US5754802A (en) Increasing data transfer efficiency for a read operation in a non-split transaction bus environment by substituting a write operation for the read operation
JPH0754503B2 (en) Microprocessor bus interface circuit
JP3207329B2 (en) Bus controller and bus transfer method
EP0439594B1 (en) Device for interfacing a main processor bus connected to a main processor to a peripheral bus having a number of peripheral devices connected thereto
JP2705955B2 (en) Parallel information processing device
JP2821176B2 (en) Information processing device
JPS6217879Y2 (en)
CN114691013A (en) Processing device, method and equipment for register configuration parameters in DDR
JPS5844426Y2 (en) Inter-processor information transfer device
JPH04225458A (en) Computer
JPH06161947A (en) Computer system
JP3866873B2 (en) Information processing device
JPH01133444A (en) System bus controller
JP3098550B2 (en) Bus control method
JPH02211571A (en) Information processor
JPH0628052B2 (en) Shared memory control method
JPS5999522A (en) Input and output control system
JPS6362068A (en) Inter-processor interface circuit
JPS63146148A (en) Bus system
JP2001022710A (en) System with plural bus controllers
JP2001306486A (en) Shared memory access system
JPH06149725A (en) Processor applied device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees