Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0820945B2 - Microprocessor - Google Patents
[go: Go Back, main page]

JPH0820945B2 - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH0820945B2
JPH0820945B2 JP30033789A JP30033789A JPH0820945B2 JP H0820945 B2 JPH0820945 B2 JP H0820945B2 JP 30033789 A JP30033789 A JP 30033789A JP 30033789 A JP30033789 A JP 30033789A JP H0820945 B2 JPH0820945 B2 JP H0820945B2
Authority
JP
Japan
Prior art keywords
memory access
control unit
bus
microprogram
micro program
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 - Lifetime
Application number
JP30033789A
Other languages
Japanese (ja)
Other versions
JPH03160525A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP30033789A priority Critical patent/JPH0820945B2/en
Publication of JPH03160525A publication Critical patent/JPH03160525A/en
Publication of JPH0820945B2 publication Critical patent/JPH0820945B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention 【概要】【Overview】

マイクロプログラム制御方式のマイクロプロセッサに
関し、 マイクロプロセッサの処理速度を向上させることを目
的とし、 各機械語命令を実行するためのマイクロプログラムが
格納されたマイクロプログラムROMと、メモリアクセス
指令に応答してバスを介し外部メモリをアクセスし、バ
ス使用中を示すウエイト信号を出力するメモリアクセス
部と、機械語命令を実行するために該マイクロプログラ
ムROMからマイクロ命令を順次読出して、該メモリアク
セス指令を含む各種制御指令を発し、該ウエイト信号に
応答して動作を停止するマイクロプログラム制御部と、
を備えたマイクロプロセッサにおいて、該マイクロプロ
グラム制御部は、バス衝突を避けるため自己の動作を停
止させる必要があるときにバスチェック信号を出力し、
該マイクロプログラム制御部からバスチェック信号が供
給された場合のみ、該メモリアクセス部からの該ウエイ
ト信号を該マイクロプログラム制御部へ転送するウエイ
ト制御回路を付設して構成する。
Regarding a microprocessor of a micro program control system, a micro program ROM storing a micro program for executing each machine language instruction and a bus in response to a memory access command are provided for the purpose of improving the processing speed of the microprocessor. A memory access unit for accessing an external memory via the CPU and outputting a wait signal indicating that the bus is in use; and various instructions including the memory access command for sequentially reading microinstructions from the microprogram ROM to execute a machine language instruction. A microprogram controller that issues a control command and stops the operation in response to the wait signal;
In the microprocessor provided with, the microprogram control unit outputs a bus check signal when it is necessary to stop its own operation to avoid a bus collision,
Only when a bus check signal is supplied from the micro program control unit, a wait control circuit for transferring the wait signal from the memory access unit to the micro program control unit is additionally provided.

【産業上の利用分野】[Industrial applications]

本発明は、マイクロプログラム制御方式のマイクロプ
ロセッサに関する。
The present invention relates to a microprocessor of a micro program control system.

【従来の技術】[Prior art]

この方式のマイクロプロセッサでは、各機械語命令を
実行するためのマイクロプログラムがマイクロプログラ
ムROMに格納され、マイクロプログラム制御部は、機械
語命令を実行するためにこのマイクロプログラムROMか
らマイクロ命令を順次読出して、メモリアクセス部や演
算部等に対し各種制御指令を発する。 従来のマイクロプロセッサでは、マイクロプログラム
制御部がメモリアクセス部へメモリアクセス指令を供給
すると、メモリアクセス部はその動作中内部バスを作用
するので、バス衝突を避けるためにマイクロプログラム
制御部へウエイト信号を供給して、マイクロプログラム
制御部の動作を停止させていた。
In this type of microprocessor, a microprogram for executing each machine language instruction is stored in the microprogram ROM, and the microprogram control unit sequentially reads the microinstruction from the microprogram ROM to execute the machine language instruction. Then, various control commands are issued to the memory access unit, the arithmetic unit, and the like. In a conventional microprocessor, when the microprogram control unit supplies a memory access command to the memory access unit, the memory access unit acts on the internal bus during its operation. Therefore, a wait signal is sent to the microprogram control unit to avoid bus collision. It was supplied, and the operation of the microprogram controller was stopped.

【発明が解決しようとする課題】[Problems to be Solved by the Invention]

ところが、メモリアクセス部が内部バスを使用してい
ても、マイクロプログラム制御部は、演算部等に対し、
バス衝突を起こさせることなく処理を実行させることが
可能な場合がある。例えば2バイト演算において、メモ
リアクセス部で上位バイトをアクセスしている間に、内
部バスを使用せずに演算部に下位バイトの演算を実行さ
せることができる場合がある。従来ではこのような場合
にもマイクロプログラム制御部の動作を停止させていた
ので、処理効率が低下し、マイクロプロセッサの処理の
高速化を妨げる原因となっていた。 本発明の目的は、このような問題点に鑑み、マイクロ
プロセッサの処理速度を向上させることにある。
However, even if the memory access unit uses the internal bus, the microprogram control unit may
It may be possible to execute processing without causing a bus collision. For example, in a 2-byte operation, there are cases where the operation unit can execute the operation of the lower byte without using the internal bus while the upper byte is being accessed by the memory access unit. Conventionally, even in such a case, the operation of the micro program control unit is stopped, so that the processing efficiency is lowered, which is a cause of impeding the speeding up of the processing of the microprocessor. An object of the present invention is to improve the processing speed of a microprocessor in view of such problems.

【課題を解決するための手段】[Means for Solving the Problems]

実施例図面第1図を参照して本発明の原理構成を説明
する。 図中、26はマイクロプログラムROMであり、各機械語
命令を実行するためのマイクロプログラムが格納されて
いる。 18はメモリアクセス部であり、メモリアクセス指令に
応答してバス12を介し外部メモリをアクセスし、バス使
用中を示すウエイト信号を出力する。 16はマイクロプログラム制御部であり、機械語命令を
実行するために、マイクロプログラムROM26からマイク
ロ命令を順次読出して、該メモリアクセス指令を含む各
種制御指令を発し、バス衝突を避けるため自己の動作を
停止させる必要があるときにバスチェック信号を出力
し、ウエイト信号に応答して動作を停止する。 28はウエイト制御回路であり、マイクロプログラム制
御部16からバスチェック信号が供給された場合のみ、メ
モリアクセス部18からのウエイト信号をマイクロプログ
ラム制御部16へ転送する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The principle configuration of the present invention will be described with reference to FIG. In the figure, 26 is a microprogram ROM, which stores microprograms for executing each machine language instruction. Reference numeral 18 denotes a memory access unit, which accesses an external memory via the bus 12 in response to a memory access command and outputs a wait signal indicating that the bus is in use. Reference numeral 16 denotes a micro program control unit, which sequentially reads micro instructions from the micro program ROM 26 to execute machine language instructions, issues various control instructions including the memory access instruction, and executes its own operation to avoid a bus collision. A bus check signal is output when it needs to be stopped, and the operation is stopped in response to the wait signal. Reference numeral 28 denotes a wait control circuit, which transfers the wait signal from the memory access unit 18 to the micro program control unit 16 only when the bus check signal is supplied from the micro program control unit 16.

【作用】[Action]

メモリアクセス部18がバス12を使用している場合にお
いて、バス12を使用せずに演算等の処理を実行させるこ
とができるときは、マイクロプログラム制御部16はこの
処理を実行させた後にバスチェック信号を出力する。メ
モリアクセス部18は、メモリアクセス指令を受けると、
バス衝突を避けるためウエイト信号を出力するが、バス
チェック信号がマイクロプログラム制御部16から出力さ
れるまではマイクロプログラム制御部16へこのウエイト
信号が供給されず、マイクロプログラム制御部16は動作
可能状態となる。 したがって、マイクロプログラム制御部16とメモリア
クセス部18の並行処理が可能となり、マイクロプロセッ
サの処理速度が向上する。
When the memory access unit 18 uses the bus 12, if the processing such as the operation can be executed without using the bus 12, the microprogram control unit 16 performs the bus check after executing this processing. Output a signal. When the memory access unit 18 receives the memory access command,
A wait signal is output to avoid a bus collision, but this wait signal is not supplied to the micro program control unit 16 until the bus check signal is output from the micro program control unit 16, and the micro program control unit 16 is in an operable state. Becomes Therefore, the parallel processing of the micro program control unit 16 and the memory access unit 18 is possible, and the processing speed of the microprocessor is improved.

【実施例】【Example】

以下、図面に基づいて本発明の一実施例を説明する。 第2図はマイクロプログラム制御方式のマイクロプロ
セッサ10の要部構成を示す。 このマイクロプロセッサ10は、内部バス12により命令
レジスタ14とマイクロプログラム制御部16とメモリアク
セス部18と演算部20と汎用レジスタ22との間が接続され
ている。外部メモリ(不図示)から機械語命令が読み出
され、内部バス12を介して命令レジスタ14にこれが保持
されると、命令デコーダ24はこの機械語命令を解読し、
その結果をマイクロプログラム制御部16へ供給する。マ
イクロプログラム制御部16は、この機械語命令を実行す
るための一連のマイクロ命令をマイクロプログラムROM2
6から順次読み出し、各マイクロ命令に基づいてメモリ
アクセス部18、演算部20又は汎用レジスタ22へ制御指令
を供給する。 例えば、汎用レジスタ22の内容と外部メモリの内容と
の間の演算を行う場合には、外部メモリからデータを読
み出すために、マイクロプログラム制御部16はメモリア
クセス部18へメモリアクセス指令を供給する。この場
合、メモリアクセス部18は内部バス12を使用するので、
バス衝突が発生しないように、ウエイト信号を出力す
る。このウエイト信号は、従来ではマイクロプログラム
制御部16へ直接供給されていたが、本実施例ではウエイ
ト制御回路28へ供給する。 ウエイト制御回路28は、第1図にも示す如く、RSフリ
ップフロップ30、ナンドゲート32及びインバータ34を備
えて構成されており、RSフリップフロップ30のセット入
力端子Sへマイクロプログラム制御部16からバスチェッ
ク信号が供給され、RSフリップフロップ30のQ出力はナ
ンドゲート32の一方の入力端子に供給され、ナンドゲー
ト32の他方の入力端子にはメモリアクセス部18からのウ
エイト信号が供給され、ナンドゲート32の出力は、RSフ
リップフロップ30のリセット入力端子Rへ供給されると
ともに、インバータ34を介してマイクロプログラム制御
部16へ供給される。 なお、第2図中、36はシステム制御部であり、マイク
ロプロセッサ10の全体の制御を行なう。 上記構成において、マイクロプログラム制御部16から
メモリアクセス部18へメモリアクセス指令を供給する場
合に、メモリアクセス部18が内部バス12を使用するため
マイクロプログラム制御部16が次の処理を実行できない
ときは、マイクロプログラム制御部16はメモリアクセス
部18へバスチェック信号(高レベル)をメモリアクセス
指令と同時に出力する。これにより、RSフリップフロッ
プ30のQ出力は高レベルとなり、メモリアクセス部18か
ら出力されるウエイト信号はナンドゲート32、インバー
タ34を介してマイクロプログラム制御部16へ供給され、
マイクロプログラム制御部16の動作が停止する。RSフリ
ップフロップ30は、メモリアクセス処理が終了してウエ
イト信号が低レベルになると、リセットされる。この場
合のマイクロプログラム制御部16とメモリアクセス部18
の動作状態遷移は第4図に示す従来の場合と同様にな
る。 しかし、メモリアクセス部18が内部バス12を使用して
いる場合において、内部バス12を使用せずに演算等の処
理を実行させることができるときは、例えば、2バイト
演算においてメモリアクセス部18で上位バイトをアクセ
スしている間に、内部バス12を使用せずに演算部20に下
位バイトの演算を実行させることができるときには、次
の様な並行処理を行う。すなわち、マイクロプログラム
制御部16はこの演算処理を実行させた後にバスチェック
信号を出力する。メモリアクセス部18は、メモリアクセ
ス指令を受けると直ちにウエイト信号を出力するが、バ
スチェック信号がマイクロプログラム制御部16から出力
されるまではRSフリップフロップ30のQ出力は低レベル
であり、ナンドゲート32が閉じているので、この間はマ
イクロプログラム制御部16へウエイト信号が供給され
ず、マイクロプログラム制御部16は動作可能状態とな
り、前記演算処理が行われる。そして、バスチェック信
号がマイクロプログラム制御部16から出力されたとき
に、ナンドゲート32が開かれてこのウエイト信号がマイ
クロプログラム制御部16へ供給され、マイクロプログラ
ム制御部16が停止状態となる。したがって、第3図に示
す如くマイクロプログラム制御部16とメモリアクセス部
18の並行処理が可能となり、マイクロプロセッサ10の処
理速度が向上する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 shows the main configuration of the microprocessor 10 of the micro program control system. In the microprocessor 10, an instruction register 14, a micro program control unit 16, a memory access unit 18, an arithmetic unit 20, and a general-purpose register 22 are connected by an internal bus 12. When a machine language instruction is read from an external memory (not shown) and held in the instruction register 14 via the internal bus 12, the instruction decoder 24 decodes the machine language instruction,
The result is supplied to the microprogram controller 16. The microprogram control unit 16 outputs a series of microinstructions for executing this machine language instruction to the microprogram ROM 2
The data is sequentially read from 6 and a control command is supplied to the memory access unit 18, the arithmetic unit 20, or the general-purpose register 22 based on each microinstruction. For example, when performing an operation between the contents of the general-purpose register 22 and the contents of the external memory, the microprogram controller 16 supplies a memory access command to the memory access unit 18 in order to read the data from the external memory. In this case, since the memory access unit 18 uses the internal bus 12,
A wait signal is output so that bus collision does not occur. This weight signal was supplied directly to the microprogram control unit 16 in the past, but is supplied to the weight control circuit 28 in this embodiment. As shown in FIG. 1, the weight control circuit 28 is composed of an RS flip-flop 30, a NAND gate 32 and an inverter 34. The micro program controller 16 sends a bus check to the set input terminal S of the RS flip-flop 30. A signal is supplied, the Q output of the RS flip-flop 30 is supplied to one input terminal of the NAND gate 32, the wait signal from the memory access unit 18 is supplied to the other input terminal of the NAND gate 32, and the output of the NAND gate 32 is , Is supplied to the reset input terminal R of the RS flip-flop 30 and is also supplied to the micro program control unit 16 via the inverter 34. In FIG. 2, reference numeral 36 is a system control unit, which controls the entire microprocessor 10. In the above configuration, when the memory access unit 18 supplies the memory access command to the memory access unit 18 and the memory access unit 18 uses the internal bus 12, if the micro program control unit 16 cannot execute the next process, The micro program control unit 16 outputs a bus check signal (high level) to the memory access unit 18 at the same time as the memory access command. As a result, the Q output of the RS flip-flop 30 becomes high level, and the wait signal output from the memory access unit 18 is supplied to the micro program control unit 16 via the NAND gate 32 and the inverter 34.
The operation of the micro program control unit 16 stops. The RS flip-flop 30 is reset when the memory access process is completed and the wait signal becomes low level. In this case, the micro program control unit 16 and the memory access unit 18
The operation state transition of is similar to that in the conventional case shown in FIG. However, when the memory access unit 18 uses the internal bus 12, if it is possible to execute processing such as operation without using the internal bus 12, for example, in the memory access unit 18 in 2-byte operation. While the upper byte is being accessed, if the arithmetic unit 20 can execute the arithmetic operation of the lower byte without using the internal bus 12, the following parallel processing is performed. That is, the micro program control unit 16 outputs the bus check signal after executing this arithmetic processing. The memory access unit 18 outputs a wait signal immediately upon receiving a memory access command, but the Q output of the RS flip-flop 30 is at a low level until the bus check signal is output from the microprogram control unit 16, and the NAND gate 32 is provided. Since this is closed, the wait signal is not supplied to the micro program control unit 16 during this period, the micro program control unit 16 is in the operable state, and the arithmetic processing is performed. Then, when the bus check signal is output from the micro program control unit 16, the NAND gate 32 is opened and this wait signal is supplied to the micro program control unit 16, and the micro program control unit 16 is stopped. Therefore, as shown in FIG. 3, the microprogram controller 16 and the memory access unit
18 parallel processings are possible, and the processing speed of the microprocessor 10 is improved.

【発明の効果】【The invention's effect】

以上説明した如く、本発明に係るマイクロプロセッサ
では、メモリアクセス部がバスを使用していても、バス
チェック信号がマイクロプログラム制御部から出力され
るまではマイクロプログラム制御部へウエイト信号が供
給されず、マイクロプログラム制御部は動作可能状態と
なり、したがって、マイクロプログラム制御部とメモリ
アクセス部の並行処理が可能となるので、マイクロプロ
セッサの処理速度が従来よりも向上するという優れた効
果を奏する。
As described above, in the microprocessor according to the present invention, even if the memory access unit uses the bus, the wait signal is not supplied to the micro program control unit until the bus check signal is output from the micro program control unit. Since the micro program control unit is in the operable state and therefore the parallel processing of the micro program control unit and the memory access unit is possible, there is an excellent effect that the processing speed of the microprocessor is improved as compared with the conventional case.

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

第1図乃至第3図は本発明の一実施例に係り、 第1図は第2図の要部詳細構成図、 第2図はマイクロプログラム制御方式のマイクロプロセ
ッサ要部構成を示すブロック図、 第3図はマイクロプログラム制御部とメモリアクセス部
の動作状態遷移図である。 第4図は従来のマイクロプロセッサのマイクロプログラ
ム制御部とメモリアクセス部の動作状態遷移図である。 図中、 10はマイクロプロセッサ 12は内部バス 16はマイクロプログラム制御部 18はメモリアクセス部 20は演算部 26はマイクロプログラムROM 28はウエイト制御回路 30はRSフリップフロップ
1 to 3 relate to an embodiment of the present invention, FIG. 1 is a detailed configuration diagram of a main portion of FIG. 2, and FIG. 2 is a block diagram showing a main configuration of a microprocessor of a micro program control system, FIG. 3 is an operation state transition diagram of the microprogram control unit and the memory access unit. FIG. 4 is an operation state transition diagram of a microprogram control unit and a memory access unit of a conventional microprocessor. In the figure, 10 is a microprocessor 12, is an internal bus 16, is a microprogram control unit 18, is a memory access unit 20, is an arithmetic unit, 26 is a microprogram ROM, 28 is a wait control circuit, 30 is an RS flip-flop.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】各機械語命令を実行するためのマイクロプ
ログラムが格納されたマイクロプログラムROM(26)
と、 メモリアクセス指令に応答してバス(12)を介し外部メ
モリをアクセスし、バス使用中を示すウエイト信号を出
力するメモリアクセス部(18)と、 機械語命令を実行するために該マイクロプログラムROM
からマイクロ命令を順次読出して、該メモリアクセス指
令を含む各種制御指令を発し、該ウエイト信号に応答し
て動作を停止するマイクロプログラム制御部(16)と、 を備えたマイクロプロセッサにおいて、 該マイクロプログラム制御部(16)は、バス衝突を避け
るため自己の動作を停止させる必要があるときにバスチ
ェック信号を出力し、 該マイクロプログラム制御部からバスチェック信号が供
給された場合のみ、該メモリアクセス部からの該ウエイ
ト信号を該マイクロプログラム制御部へ転送するウエイ
ト制御回路(28) を付設したことを特徴とするマイクロプロセッサ。
1. A microprogram ROM (26) storing a microprogram for executing each machine language instruction.
A memory access unit (18) for accessing an external memory via the bus (12) in response to a memory access command and outputting a wait signal indicating that the bus is in use; and the microprogram for executing a machine language instruction. ROM
A microprogram control unit (16) for sequentially reading microinstructions from the memory, issuing various control commands including the memory access command, and stopping the operation in response to the wait signal; The control unit (16) outputs a bus check signal when it is necessary to stop its own operation to avoid a bus collision, and only when the bus check signal is supplied from the microprogram control unit, the memory access unit. 10. A microprocessor characterized in that a wait control circuit (28) for transferring the wait signal from the microcomputer to the micro program controller is attached.
JP30033789A 1989-11-17 1989-11-17 Microprocessor Expired - Lifetime JPH0820945B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30033789A JPH0820945B2 (en) 1989-11-17 1989-11-17 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30033789A JPH0820945B2 (en) 1989-11-17 1989-11-17 Microprocessor

Publications (2)

Publication Number Publication Date
JPH03160525A JPH03160525A (en) 1991-07-10
JPH0820945B2 true JPH0820945B2 (en) 1996-03-04

Family

ID=17883558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30033789A Expired - Lifetime JPH0820945B2 (en) 1989-11-17 1989-11-17 Microprocessor

Country Status (1)

Country Link
JP (1) JPH0820945B2 (en)

Also Published As

Publication number Publication date
JPH03160525A (en) 1991-07-10

Similar Documents

Publication Publication Date Title
JPS61204758A (en) Co-processor control method
JPS6218936B2 (en)
JPH0820945B2 (en) Microprocessor
JPS6041779B2 (en) I/O program control unit
JPH082727Y2 (en) Programmable sequencer
JPS63153637A (en) Data processor
JP2731618B2 (en) emulator
JPS63305449A (en) Microprocessor system
JPS63245547A (en) data processing equipment
JPS6148741B2 (en)
JPS6230452B2 (en)
JPS6244835A (en) Microprocessor
JPS61289427A (en) Access processing system based upon microprogram
JPS6015970B2 (en) Interrupt processing device in microprocessor
JPH0259829A (en) Microcomputer
JPS60193046A (en) Instruction exception detection method
JPH02263256A (en) Microcomputer and controller
JPH0340075A (en) Microcomputer
JPS6156820B2 (en)
JPS63129427A (en) Conversion circuit for interruption response logic
JPS62208127A (en) Microprogram control information processor
JPS63214862A (en) micro processor
JPS63219026A (en) Microcomputer
JPH01116753A (en) How to access peripheral devices of a 1-chip microcontroller
JPS625439A (en) Instruction code expansion system