JPH07281889A - Instruction execution device - Google Patents

Instruction execution device

Info

Publication number
JPH07281889A
JPH07281889A JP6099349A JP9934994A JPH07281889A JP H07281889 A JPH07281889 A JP H07281889A JP 6099349 A JP6099349 A JP 6099349A JP 9934994 A JP9934994 A JP 9934994A JP H07281889 A JPH07281889 A JP H07281889A
Authority
JP
Japan
Prior art keywords
instruction
signal
module
load cycle
processing unit
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
JP6099349A
Other languages
Japanese (ja)
Inventor
Masami Suzuki
昌巳 鈴木
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.)
Motorola Solutions Japan Ltd
Original Assignee
Nippon Motorola Ltd
Motorola Japan 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 Nippon Motorola Ltd, Motorola Japan Ltd filed Critical Nippon Motorola Ltd
Priority to JP6099349A priority Critical patent/JPH07281889A/en
Publication of JPH07281889A publication Critical patent/JPH07281889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To make, for example, a microcontroller unit, which executes instructions to plural modules decentralizing by a central processing part, adapt to the addition of a module. CONSTITUTION:When a CPU 2 outputs the address of an instruction to a ROM, an instruction load cycle signal is outputted to an instruction load cycle signal line 5 at the same time. Each module (e.g. M1-M4) is provided with a stand-by process part 7 to monitor, for example, the high-order 8 bits of 16 bits where an operator code is read out and the low-order 8 bits where an operand is read out and also monitor whether the instruction load cycle signal is present or not. When the instruction load cycle signal is outputted and the high-order 8 bits are a code corresponding to a stand-by instruction, the instruction at this time is the stand-by instruction, so an internal clock signal is stopped if a module which should stand by, corresponds to the instruction itself among the low-order 8 bits.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばMCU(micro
controller unit )などの命令実行装置に係り、特に命
令の実行を行わないモジュールについてそのモジュール
内のクロック信号を停止させる(あるいは供給停止を解
除させる)部分に特徴のある命令実行装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to, for example, an MCU (micro
The present invention relates to an instruction execution device such as a controller unit) and, more particularly, to an instruction execution device characterized by a portion for stopping (or canceling supply stop) of a clock signal in a module that does not execute an instruction.

【0002】[0002]

【従来の技術】一般に中央処理部がメモリから読み出し
た命令を、バスに接続した複数のモジュールに分散して
実行させる場合がある。例えば通信機のMCUにおいて
は、A/D変換器、D/A変換器、パルス幅変調器、タ
イマ、シリアル高速通信部、パルスカウンタなどのモジ
ュールを備え、送信、受信の命令群をCPUが解読して
各モジュールにその命令を分散して実行させている。こ
の場合各モジュールの処理はCPUからのクロック信号
により同期して行われるが、そのときの命令に関係のな
いモジュールについてはクロック信号を停止させておく
ことが消費電力を節減する上で得策である。
2. Description of the Related Art Generally, an instruction read from a memory by a central processing unit may be distributed to and executed by a plurality of modules connected to a bus. For example, the MCU of a communication device includes modules such as an A / D converter, a D / A converter, a pulse width modulator, a timer, a serial high-speed communication unit, and a pulse counter, and the CPU decodes a group of instructions for transmission and reception. Then, the instructions are distributed to each module and executed. In this case, the processing of each module is performed in synchronization with the clock signal from the CPU, but it is a good idea to stop the clock signal for the module not related to the instruction at that time in order to save power consumption. .

【0003】ここでクロック信号を停止させる従来の方
式について図5を参照しながら述べると、1はCPU、
10Aはアドレスバス、10Bはデータバス、M1〜M
4はモジュールである。先ずCPU1からアドレスを例
えばモジュールM1に相当するROMに出力してROM
から命令を読み出すと共に、CPU1内のオペコードデ
コーダ11により命令のオペコードを監視し、オペコー
ドが待機命令に相当するコードであれば、オペランドデ
コーダ12により当該命令のオペランドを解読する。待
機命令のオペランドには、内部クロック信号を停止すべ
きモジュールのナンバーが書かれており、CPU1は、
オペランドデコーダ12の解読結果に基づいて、対応す
るモジュールに対して専用の待機指令用信号路13を介
して待機指令を出力する。一方CPU1は各モジュール
に対してクロック信号線14を通じてクロック信号を送
っており、待機指令を受けたモジュールは、そのクロッ
ク信号の入力ゲートを閉じて内部クロック信号を停止す
る。
A conventional method for stopping the clock signal will be described below with reference to FIG.
10A is an address bus, 10B is a data bus, M1 to M
4 is a module. First, the CPU 1 outputs the address to, for example, the ROM corresponding to the module M1, and the ROM
The instruction is read out from the CPU, the operation code of the instruction is monitored by the operation code decoder 11 in the CPU 1, and if the operation code is a code corresponding to the standby instruction, the operand decoder 12 decodes the operand of the instruction. In the operand of the wait instruction, the number of the module that should stop the internal clock signal is written, and the CPU 1
Based on the decoding result of the operand decoder 12, a standby command is output to the corresponding module through the dedicated standby command signal path 13. On the other hand, the CPU 1 sends a clock signal to each module through the clock signal line 14, and the module receiving the standby command closes the input gate of the clock signal and stops the internal clock signal.

【0004】[0004]

【発明が解決しようとする課題】ところでMCUを製作
してシステムに組み込んだ後にシステムの拡張などによ
りモジュールを追加することがある。ここでMCUの製
作時に将来追加されるモジュールの数を想定することが
実際上困難であり、従来のMCUでは、上述のようにモ
ジュールの内部クロック信号を停止する場合CPU1が
内部のデコーダにより命令を解読して、待機すべきモジ
ュールのナンバーを把握し、各モジュール毎に専用の待
機指令用信号路13を通じて待機指令を出力するように
しているため、モジュールを追加する場合にはCPU1
の内部を変更しなければならない。しかしながらCPU
1の内部を変更すると、そのCPUを用いたMCUのソ
フトウェアを開発するために必要なデバッグツール(開
発用ソフト、及びハード)に変更が必要になる。
By the way, there are cases where a module is added by expanding the system after manufacturing the MCU and incorporating it into the system. Here, it is practically difficult to assume the number of modules to be added in the future when the MCU is manufactured. In the conventional MCU, when the internal clock signal of the module is stopped as described above, the CPU 1 issues an instruction by the internal decoder. The number of the module to be read is grasped by decoding, and the standby command is output through the dedicated standby command signal path 13 for each module. Therefore, when adding a module, the CPU 1
The inside of must be changed. However CPU
When the inside of 1 is changed, the debug tool (development software and hardware) necessary for developing the software of the MCU using the CPU needs to be changed.

【0005】また、変更前のCPUを用いたMCUのた
めに以前に作製されたソフトウェアが、変更後のCPU
を用いたMCUでは使えなくなるおそれがある。ソフト
ウェア・プログラムの開発には多くの手間と時間がかか
るため、ソフトウェアの互換性が損なわれることは非常
に不利である。
Further, the software previously created for the MCU using the CPU before the change is the CPU after the change.
There is a risk that it cannot be used with an MCU that uses. Since the development of software programs takes a lot of time and effort, it is very disadvantageous to break the compatibility of software.

【0006】本発明は、このような事情のもとになされ
たものであり、その目的は、中央処理部により命令を複
数のモジュールに対して分散して実行させる装置におい
てモジュールの追加に容易に対応できる命令実行装置を
提供することにある。
The present invention has been made under such circumstances, and an object thereof is to easily add a module in a device in which a central processing unit distributes and executes instructions to a plurality of modules. It is to provide an instruction execution device capable of handling.

【0007】[0007]

【課題を解決するための手段】請求項1は、中央処理部
及び複数のモジュールをバスに接続して、メモリから読
み出された命令を中央処理部により複数のモジュールに
分散して実行させる一方、待機命令のオペランドに指定
されたモジュールに対して、中央処理部からのクロック
信号を停止させる命令実行装置において、前記中央処理
部に設けられ、命令のオペコードの読み出し時に命令ロ
ードサイクル信号を出力する出力部と、この出力部から
の命令ロードサイクル信号を各モジュールに伝送する信
号路と、各モジュール毎に設けられた待機処理部と、を
備え、前記待機処理部は、前記命令ロードサイクル信号
の信号路と、前記バスのうち命令のオペコードが読み出
される信号路及び命令のオペランドが読み出される信号
路とを監視し、それら信号路の信号が夫々命令ロードサ
イクル信号及び待機命令に相当する信号並びに自己のモ
ジュールに相当する信号であるときに、クロック停止信
号を出力する監視部と、この監視部より出力されたクロ
ック停止信号により中央処理部からの自己のモジュール
に取り込まれるクロック信号を停止させるクロック停止
回路とを含むことを特徴とする。
According to a first aspect of the present invention, a central processing unit and a plurality of modules are connected to a bus, and instructions read from a memory are distributed to the plurality of modules and executed by the central processing unit. In an instruction execution device for stopping a clock signal from a central processing unit for a module designated as an operand of a standby instruction, the instruction processing unit is provided in the central processing unit and outputs an instruction load cycle signal when reading an operation code of an instruction. An output unit, a signal path for transmitting an instruction load cycle signal from the output unit to each module, and a standby processing unit provided for each module, and the standby processing unit is provided with the instruction load cycle signal The signal path, the signal path from which the opcode of the instruction is read out and the signal path from which the operand of the instruction is read out of the bus are monitored, and From the signal path to the instruction load cycle signal, the signal corresponding to the standby instruction, and the signal corresponding to its own module, respectively, a monitoring unit that outputs a clock stop signal, and a clock stop output from this monitoring unit. And a clock stop circuit for stopping the clock signal from the central processing unit to be taken into its own module by a signal.

【0008】請求項2は、中央処理部及び複数のモジュ
ールをバスに接続して、メモリから読み出された命令を
中央処理部により複数のモジュールに分散して実行させ
る一方、待機解除命令のオペランドに指定されたモジュ
ールに対して、中央処理部からのクロック信号の供給停
止を解除させる命令実行装置において、前記中央処理部
に設けられ、命令のオペコードの読み出し時に命令ロー
ドサイクル信号を出力する出力部と、この出力部からの
命令ロードサイクル信号を各モジュールに伝送する信号
路と、各モジュール毎に設けられた待機解除処理部と、
を備え、前記待機解除処理部は、前記命令ロードサイク
ル信号の信号路と、前記バスのうち命令のオペコードが
読み出される信号路及び命令のオペランドが読み出され
る信号路とを監視し、それら信号路の信号が夫々命令ロ
ードサイクル信号及び待機解除命令に相当する信号並び
に自己のモジュールに相当する信号であるときに、クロ
ック停止解除信号を出力する監視部と、この監視部より
出力されたクロック停止解除信号により中央処理部から
の自己のモジュールに取り込まれるクロック信号の供給
停止を解除させるクロック停止解除回路とを含むことを
特徴とする。
According to a second aspect of the present invention, the central processing unit and a plurality of modules are connected to a bus so that the instructions read from the memory are distributed to the plurality of modules and executed by the central processing unit, while the operand of the wait release instruction is executed. In the instruction execution device for canceling the supply stop of the clock signal from the central processing unit to the module specified in, the output unit which is provided in the central processing unit and outputs the instruction load cycle signal when the operation code of the instruction is read. A signal path for transmitting an instruction load cycle signal from the output section to each module, a standby release processing section provided for each module,
The standby release processing unit monitors a signal path of the instruction load cycle signal, a signal path of the bus from which an operation code of an instruction is read and a signal path of an operand of an instruction to be read, and When the signals are the instruction load cycle signal, the signal corresponding to the wait release instruction, and the signal corresponding to its own module, respectively, a monitoring unit that outputs a clock stop release signal, and a clock stop release signal output from this monitoring unit And a clock stop canceling circuit for canceling the supply stop of the clock signal taken in by the central processing unit into its own module.

【0009】[0009]

【作用】中央処理部から出力される命令ロードサイクル
信号をモジュールが取り込むことにより、オペコードの
読み出し時をモジュール側で把握でき、その上でモジュ
ール側でオペコード及びオペランドを監視しているので
待機命令及び待機すべきモジュールが自己のモジュール
であるか否かを把握できる。従ってモジュールを追加す
る場合には、オペコード、命令ロードサイクル信号及び
オペランドを取り込む回路をモジュールに設けてそれを
付設するだけでCPUについては変更を加えることなく
対応できるので、パフォーマンスの向上が容易である。
When the module fetches the instruction load cycle signal output from the central processing unit, the module side can grasp the read time of the operation code, and the module side monitors the operation code and operand. It is possible to know whether or not the module to wait is its own module. Therefore, when a module is added, it is possible to deal with the CPU without changing it by simply providing a circuit for fetching the operation code, the instruction load cycle signal and the operand in the module and attaching the circuit, so that it is easy to improve the performance. .

【0010】[0010]

【実施例】図1は本発明の実施例を示すブロック図であ
る。図中2は中央処理部であるCPUであり、例えば1
6ビットのデータバス3及び16ビットのアドレスバス
4に接続されている。このCPU2は、命令のオペコー
ドを解読して当該命令の種別や行数を把握するためのオ
ペコードデコーダ21、及び命令を読み込むためにRO
Mに対してアドレスを出力するときに命令ロードサイク
ル信号(LIC〔Load Instruction Cycle〕)を出力す
る出力部22を備えている。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 2 is a CPU which is a central processing unit, for example, 1
It is connected to a 6-bit data bus 3 and a 16-bit address bus 4. The CPU 2 decodes the operation code of the instruction and grasps the type and the number of lines of the instruction, and the RO for reading the instruction.
An output unit 22 for outputting an instruction load cycle signal (LIC [Load Instruction Cycle]) when outputting an address to M is provided.

【0011】前記データバス3及びアドレスバス4に
は、複数のモジュールM1〜M4(図示の例では4個)
が例えば着脱可能に接続されており、これらモジュール
は、ROM、RAM、同期式高速シリアル通信ポート、
非同期式高速シリアル通信ポート、タイマ、デジタル/
アナログ変換器、アナログ/デジタル変換器、パルスカ
ウンタなどが相当する。前記CPU2には、命令ロード
サイクル信号出力部22からの命令ロードサイクル信号
をCPU2の外へ出力するための命令ロードサイクル信
号線5及び各モジュールM1〜M4へクロック信号(C
LK)を送るためのクロック信号線6が接続されてい
る。
The data bus 3 and the address bus 4 have a plurality of modules M1 to M4 (four modules in the illustrated example).
For example, these modules are detachably connected, and these modules include a ROM, a RAM, a synchronous high-speed serial communication port,
Asynchronous high-speed serial communication port, timer, digital /
An analog converter, an analog / digital converter, a pulse counter, etc. correspond. In the CPU 2, an instruction load cycle signal line 5 for outputting the instruction load cycle signal from the instruction load cycle signal output unit 22 to the outside of the CPU 2 and a clock signal (C) to each of the modules M1 to M4.
A clock signal line 6 for sending LK) is connected.

【0012】一方ROM(モジュールM1)内に格納さ
れている命令群のうちモジュールの待機命令(Wai
t)は、図3に示すようにデータバス3の上位8ビット
(D15〜D08)にオペコードが、下位8ビット(D
07〜D00)にオペランドが出力され、この例では下
位8ビットの各ビットとモジュールのナンバーとを対応
させ、例えばモジュールM1を待機させる場合には、図
2に示すように下位1ビット目D07に「1」を立て、
モジュールM2を待機させる場合には2ビット目D06
に「1」を立てるといった具合にオペコードを構成して
いる。
On the other hand, of the instruction group stored in the ROM (module M1), the module wait instruction (Wai)
In t), as shown in FIG. 3, the operation code is stored in the upper 8 bits (D15 to D08) of the data bus 3 and the lower 8 bits (D15).
07 to D00), and in this example, each bit of the lower 8 bits is associated with the module number. For example, when the module M1 is made to wait, the lower first bit D07 is set as shown in FIG. Set "1",
The second bit D06 when waiting for the module M2
The opcode is configured such that "1" is set to "".

【0013】そして前記各モジュールM1〜M4には、
待機処理部7が設けられており、この待機処理部7は、
図3に示すように例えばデータバス3の上位8ビットの
ビット線の信号と、命令ロードサイクル信号線5の信号
とを監視し、命令ロードサイクル信号線5から命令ロー
ドサイクル信号例えば論理「1」の信号を入力しかつ上
位8ビットが、モジュールがオペランドを監視しなけれ
ばならない種別のオペコードに相当するコードであると
きには、待機命令であることを認識する例えば論理
「1」の認識信号を出力するオペコード監視部71を備
えている。
The modules M1 to M4 include
A standby processing unit 7 is provided, and this standby processing unit 7 is
As shown in FIG. 3, for example, the signal of the upper 8-bit bit line of the data bus 3 and the signal of the instruction load cycle signal line 5 are monitored, and the instruction load cycle signal line 5 outputs the instruction load cycle signal, for example, logic "1". Signal is input and the upper 8 bits are a code corresponding to an operation code of the type in which the module must monitor the operand, a recognition signal of, for example, a logical "1" for recognizing the wait instruction is output. The operation code monitoring unit 71 is provided.

【0014】更に前記待機処理部7は、前記オペコード
監視部71の後段側にオペランド監視部72、及びクロ
ック信号を停止させるクロック停止回路73を備えてい
る。オペランド監視部72は、命令のオペランドを監視
して待機命令のオペコードの内容が自己のモジュールを
待機させるものであるか否かを判断するものであって例
えばアンド回路よりなり、この例では、データバス3の
下位8ビットのうち自己のモジュールに割り当てられた
ビット、つまり自己のモジュールに対して待機させる場
合に「1」が立てられるビットの信号をオペランド監視
部72の一方の入力端に入力すると共に、前記オペコー
ド監視部71の出力端をオペランド監視部72の他方の
入力端に入力している。
Further, the standby processing section 7 is provided with an operand monitoring section 72 and a clock stop circuit 73 for stopping a clock signal at a stage subsequent to the operation code monitoring section 71. The operand monitoring unit 72 monitors the operand of the instruction and determines whether or not the content of the operation code of the standby instruction makes the module of its own stand by. The operand monitoring unit 72 is, for example, an AND circuit. A signal of a bit assigned to its own module among the lower 8 bits of the bus 3, that is, a bit for which "1" is set when the module of its own is made to stand by is input to one input end of the operand monitoring unit 72. At the same time, the output end of the operation code monitor 71 is input to the other input end of the operand monitor 72.

【0015】前記クロック停止回路73はクロック信号
線6よりクロック信号を取り込むと共に前記オペランド
監視部72の出力信号を入力し、オペランド監視部72
の出力信号が論理「0」のときには前記クロック信号を
当該モジュールの内部回路へ出力し、オペランド監視部
72の出力信号が「0」から「1」に変わったときに
は、そのクロック信号の立ち下がりのタイミングでクロ
ック信号の出力を停止する、つまりクロック信号に同期
して当該クロック信号を停止する機能を有している。
The clock stop circuit 73 takes in a clock signal from the clock signal line 6 and inputs the output signal of the operand monitoring section 72, and the operand monitoring section 72.
When the output signal of is a logic "0", the clock signal is output to the internal circuit of the module, and when the output signal of the operand monitoring unit 72 changes from "0" to "1", the falling of the clock signal It has a function of stopping the output of the clock signal at a timing, that is, stopping the clock signal in synchronization with the clock signal.

【0016】次に上述実施例の作用について述べる。今
CPU2からアドレスが出力されてROM(M1)から
そのアドレスに対応する命令が読み出されたとすると、
CPU2は前記アドレスの出力時に前記出力部22より
命令ロードサイクル信号線5に命令ロードサイクル信号
を出力する。そしてこの命令が例えばモジュールM2を
待機させるための待機命令であれば、データバス3の上
位8ビットは待機命令であることを示すオペコードであ
り、下位8ビットは待機させるモジュールがM2である
ことを示すオペランドである。即ちこの例では下位8ビ
ット(D07〜D00)の2ビット目(D06)のみに「1」
が立っている。
Next, the operation of the above embodiment will be described. Now, assuming that the address is output from the CPU 2 and the instruction corresponding to the address is read from the ROM (M1),
The CPU 2 outputs an instruction load cycle signal from the output unit 22 to the instruction load cycle signal line 5 when outputting the address. If this instruction is, for example, a wait instruction for causing the module M2 to wait, the upper 8 bits of the data bus 3 are an operation code indicating that it is a wait instruction, and the lower 8 bits indicate that the module to wait is M2. This is the indicated operand. That is, in this example, only the second bit (D06) of the lower 8 bits (D07 to D00) is "1".
Is standing.

【0017】そして各モジュールM1〜M4のオペコー
ド監視部71は、命令ロードサイクル信号が入力される
のでそのときのデータバス3の上位8ビットはオペコー
ドであることを認識し、当該オペコードが待機命令に対
応するコードであるからオペコード監視部71より論理
「1」の認識信号がオペランド監視部72に出力され
る。モジュールM1、M3、M4は、オペランド監視部
72に入力されるデータバス3のビットが夫々下位の1
ビット目D07、3ビット目D05、4ビット目D04である
から「0」であり、オペランド監視部72の出力は論理
「0」である。
The operation code monitoring section 71 of each of the modules M1 to M4 recognizes that the upper 8 bits of the data bus 3 at that time is an operation code because the instruction load cycle signal is input, and the operation code becomes a standby instruction. Since it is the corresponding code, the operation code monitoring unit 71 outputs a recognition signal of logic “1” to the operand monitoring unit 72. In the modules M1, M3, and M4, the bits of the data bus 3 input to the operand monitoring unit 72 are lower 1 respectively.
Since it is the bit D07, the third bit D05, and the fourth bit D04, it is "0", and the output of the operand monitoring unit 72 is a logical "0".

【0018】従ってこれらモジュールM1、M3、M4
のクロック停止回路73においてクロック信号線6より
のクロック信号が停止することなく内部回路に出力され
る。一方モジュールM2においては、オペランド監視部
72に入力されるデータバス3のビットが下位の2ビッ
ト目D06であるから「1」であり、オペランド監視部7
2の出力が論理「1」となって、クロック信号線6より
のクロック信号がクロック停止回路73にて停止する。
Therefore, these modules M1, M3, M4
In the clock stop circuit 73, the clock signal from the clock signal line 6 is output to the internal circuit without stopping. On the other hand, in the module M2, since the bit of the data bus 3 input to the operand monitoring unit 72 is the lower second bit D06, it is "1", and the operand monitoring unit 7
The output of 2 becomes logic "1" and the clock signal from the clock signal line 6 is stopped by the clock stop circuit 73.

【0019】以上の作用説明は待機命令が読み出された
ときのサイクルであるが次のサイクルにてCPUがモジ
ュールM3、モジュールM4に指令を出すための命令が
ROM(M1)より読み出される。このサイクルではオ
ペコードが待機命令に対応するコードでないから各モジ
ュールのオペコード監視部71からは認識信号が出力さ
れないし、またCPUがオペランドを読み込むときにデ
ータバス3のコードが偶然待機命令のオペコード及びオ
ペランドの組み合わせと同じものになっても、その時点
では命令ロードサイクル信号線5には命令ロードサイク
ル信号が出力されていないので各モジュールのオペコー
ド監視部71からは認識信号が出力されず、クロック停
止回路73には影響を及ぼさない。
The above description of the operation is the cycle when the standby instruction is read. In the next cycle, the instruction for the CPU to issue the instruction to the modules M3 and M4 is read from the ROM (M1). In this cycle, since the operation code is not the code corresponding to the wait instruction, no recognition signal is output from the operation code monitoring unit 71 of each module, and when the CPU reads the operand, the code of the data bus 3 happens to be the operation code and the operand of the wait instruction. Even if the combination is the same, the instruction load cycle signal line 5 does not output the instruction load cycle signal at that time, so that the operation code monitoring unit 71 of each module does not output the recognition signal and the clock stop circuit. It does not affect 73.

【0020】図4はこのような動作を概念的にフローチ
ャート図として示したものである。なおクロック停止回
路73はクロック信号を一端停止させると、その後再び
発生させる機能はないため、全モジュールM1〜M4の
内部クロック信号を発生させるためには例えば外部から
のウエイクアップ信号を図示しない信号路を通してクロ
ック停止回路73に導き、更にモジュールM1〜M4の
うちのいくつかについて内部クロックを停止させるため
には待機命令がROMから読み出されることになる。
FIG. 4 conceptually shows such an operation as a flow chart. The clock stop circuit 73 does not have a function of once again stopping the clock signal and then generating it again. Therefore, in order to generate the internal clock signals of all the modules M1 to M4, for example, a wakeup signal from the outside is not shown. To the clock stop circuit 73, and to stop the internal clocks for some of the modules M1-M4, a wait instruction will be read from the ROM.

【0021】上述実施例によれば、モジュールを追加す
る場合に、オペコード、命令ロードサイクル信号及びオ
ペランドを取り込む回路をモジュールに設けてそれを付
設するだけで、CPUについては変更を加えることなく
対応できるため、ソフトウェアを開発するために必要な
デバッグツールを変更しなくて済むし、またソフトウェ
アの互換性を損なうおそれもないことからMCUのパフ
ォーマンスの向上を容易に行うことができる。更にオペ
ランドデコーダに関しては、従来のCPU内の8ビット
分のオペランドデコーダが不要になり、各モジュールに
1ビット分のオペランドデコーダを設ければ足りるの
で、CPUのシリコンスペースを小さくできる。またC
PUから待機命令の実行に係わる専用の信号線を配線す
るにあたっても、モジュールの数だけ待機指令用信号線
を用いるのではなく命令ロードサイクル信号線を1本設
ければよいので配線が簡単である。
According to the above-described embodiment, when a module is added, a circuit for fetching an opcode, an instruction load cycle signal and an operand is simply provided in the module and attached thereto, and the CPU can be dealt with without any change. Therefore, it is not necessary to change the debug tool necessary for developing the software, and there is no fear of compromising the compatibility of the software, so that the performance of the MCU can be easily improved. Further, as for the operand decoder, the 8-bit operand decoder in the conventional CPU becomes unnecessary, and it suffices to provide the 1-bit operand decoder in each module, so that the CPU silicon space can be reduced. Also C
Even when wiring a dedicated signal line related to the execution of a standby instruction from the PU, it is sufficient to provide one instruction load cycle signal line instead of using as many standby instruction signal lines as there are modules. .

【0022】以上においてデータバス3としては16ビ
ットに限られるものではなく、例えば8ビットのもので
あってもよく、この場合には1サイクル目でオペコード
が読み出され、2サイクル目でオペランドが読み出され
るため、待機処理部7については、オペコード監視部7
1の出力をラッチするラッチ回路を設けることにより対
応することができる。
In the above, the data bus 3 is not limited to 16 bits but may be, for example, 8 bits. In this case, the operation code is read in the first cycle and the operand is read in the second cycle. Since the read processing is performed, the standby processing unit 7 has the operation code monitoring unit 7
This can be dealt with by providing a latch circuit for latching the output of 1.

【0023】そしてまた本発明では、上述のように全モ
ジュールの内部クロック信号を有効としておいて待機命
令により所定のモジュールの内部クロック信号を無効と
する代りに、逆に内部クロック信号を有効とすべきモジ
ュールのナンバーをオペランドに書き込んだ待機解除命
令をROMに格納しておくと共に、各モジュールに前記
待機処理部と同様な待機解除処理部(ただしクロック停
止回路73はクロック信号の停止解除回路となる)を設
けておき、全モジュールの内部クロック信号を停止させ
ておいてから待機解除命令で指定されたモジュールの内
部クロック信号を発生(有効)させるようにしても良
い。
Further, in the present invention, instead of validating the internal clock signals of all the modules and invalidating the internal clock signals of a predetermined module by the standby instruction as described above, the internal clock signals are validated in reverse. A standby release instruction in which the number of the module to be written is written in the operand is stored in the ROM, and a standby release processing unit similar to the standby processing unit is provided in each module (however, the clock stop circuit 73 becomes a clock signal stop release circuit). ) May be provided to stop the internal clock signals of all the modules and then generate (validate) the internal clock signals of the module designated by the standby release instruction.

【0024】[0024]

【発明の効果】以上のように本発明によれば、モジュー
ルのうちのいくつかについてクロック信号を停止(ある
いは停止解除)させる場合にモジュール側で命令を監視
して処理するようにしているため、モジュールを追加す
る場合に中央処理部の内部を変更しなくて済むのでMC
Uなどのパフォーマンスの向上を容易に行うことができ
る。
As described above, according to the present invention, when the clock signal is stopped (or released from the stop) for some of the modules, the module monitors and processes the instruction. MC does not have to change the inside of the central processing unit when adding modules
It is possible to easily improve the performance of U and the like.

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

【図1】本発明の実施例を示すブロック回路図である。FIG. 1 is a block circuit diagram showing an embodiment of the present invention.

【図2】待機命令を示す説明図である。FIG. 2 is an explanatory diagram showing a standby instruction.

【図3】本発明の実施例のモジュール内の待機処理部の
一例を示す回路図である。
FIG. 3 is a circuit diagram showing an example of a standby processing unit in the module according to the embodiment of the present invention.

【図4】本発明の実施例の作用を模式的に示すフロー図
である。
FIG. 4 is a flow chart schematically showing the operation of the embodiment of the present invention.

【図5】従来のMCUの構成を示すブロック回路図であ
る。
FIG. 5 is a block circuit diagram showing a configuration of a conventional MCU.

【符号の説明】[Explanation of symbols]

2 CPU M1〜M4 モジュール 3 データバス 4 アドレスバス 5 命令ロードサイクル信号線 6 クロック信号線 7 待機処理部 71 監視部 72 オペランド監視部 73 クロック停止回路 2 CPU M1 to M4 modules 3 data bus 4 address bus 5 instruction load cycle signal line 6 clock signal line 7 standby processing unit 71 monitoring unit 72 operand monitoring unit 73 clock stop circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 中央処理部及び複数のモジュールをバス
に接続して、メモリから読み出された命令を中央処理部
により複数のモジュールに分散して実行させる一方、待
機命令のオペランドに指定されたモジュールに対して、
中央処理部からのクロック信号を停止させる命令実行装
置において、 前記中央処理部に設けられ、命令のオペコードの読み出
し時に命令ロードサイクル信号を出力する出力部と、 この出力部からの命令ロードサイクル信号を各モジュー
ルに伝送する信号路と、 各モジュール毎に設けられた待機処理部と、を備え、 前記待機処理部は、前記命令ロードサイクル信号の信号
路と、前記バスのうち命令のオペコードが読み出される
信号路及び命令のオペランドが読み出される信号路とを
監視し、それら信号路の信号が夫々命令ロードサイクル
信号及び待機命令に相当する信号並びに自己のモジュー
ルに相当する信号であるときに、クロック停止信号を出
力する監視部と、この監視部より出力されたクロック停
止信号により中央処理部からの自己のモジュールに取り
込まれるクロック信号を停止させるクロック停止回路と
を含むことを特徴とする命令実行装置。
1. A central processing unit and a plurality of modules are connected to a bus so that an instruction read from a memory is distributed to a plurality of modules and executed by the central processing unit, while being designated as an operand of a standby instruction. For modules,
In an instruction execution device that stops a clock signal from a central processing unit, an output unit that is provided in the central processing unit and outputs an instruction load cycle signal when reading an operation code of an instruction, and an instruction load cycle signal from the output unit A signal path for transmission to each module and a standby processing section provided for each module are provided, and the standby processing section reads out the signal path of the instruction load cycle signal and the operation code of the instruction from the bus. A signal for monitoring the signal path and the signal path from which the operand of the instruction is read, and when the signal on the signal path is a signal corresponding to an instruction load cycle signal, a signal corresponding to a wait instruction, or a signal corresponding to its own module, a clock stop signal And the clock stop signal output from this monitoring unit And a clock stop circuit for stopping a clock signal taken into a module.
【請求項2】 中央処理部及び複数のモジュールをバス
に接続して、メモリから読み出された命令を中央処理部
により複数のモジュールに分散して実行させる一方、待
機解除命令のオペランドに指定されたモジュールに対し
て、中央処理部からのクロック信号の供給停止を解除さ
せる命令実行装置において、 前記中央処理部に設けられ、命令のオペコードの読み出
し時に命令ロードサイクル信号を出力する出力部と、 この出力部からの命令ロードサイクル信号を各モジュー
ルに伝送する信号路と、 各モジュール毎に設けられた待機解除処理部と、を備
え、 前記待機解除処理部は、前記命令ロードサイクル信号の
信号路と、前記バスのうち命令のオペコードが読み出さ
れる信号路及び命令のオペランドが読み出される信号路
とを監視し、それら信号路の信号が夫々命令ロードサイ
クル信号及び待機解除命令に相当する信号並びに自己の
モジュールに相当する信号であるときに、クロック停止
解除信号を出力する監視部と、この監視部より出力され
たクロック停止解除信号により中央処理部からの自己の
モジュールに取り込まれるクロック信号の供給停止を解
除させるクロック停止解除回路とを含むことを特徴とす
る命令実行装置。
2. A central processing unit and a plurality of modules are connected to a bus so that an instruction read from a memory is distributed to a plurality of modules and executed by the central processing unit while being designated as an operand of a wait release instruction. In the instruction execution device for canceling the supply stop of the clock signal from the central processing unit to the module, an output unit which is provided in the central processing unit, and which outputs an instruction load cycle signal when the operation code of the instruction is read, A signal path for transmitting an instruction load cycle signal from the output section to each module, and a standby release processing section provided for each module, wherein the standby release processing section is a signal path for the instruction load cycle signal. Monitoring the signal path from which the opcode of the instruction is read and the signal path from which the operand of the instruction is read, When the signal on the signal path is the signal corresponding to the instruction load cycle signal, the signal corresponding to the wait release instruction, and the signal corresponding to its own module, the monitoring unit that outputs the clock stop release signal, and the clock output from this monitoring unit An instruction execution device, comprising: a clock stop canceling circuit for canceling the supply stop of the clock signal taken into the own module from the central processing unit by the stop canceling signal.
JP6099349A 1994-04-12 1994-04-12 Instruction execution device Pending JPH07281889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6099349A JPH07281889A (en) 1994-04-12 1994-04-12 Instruction execution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6099349A JPH07281889A (en) 1994-04-12 1994-04-12 Instruction execution device

Publications (1)

Publication Number Publication Date
JPH07281889A true JPH07281889A (en) 1995-10-27

Family

ID=14245144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6099349A Pending JPH07281889A (en) 1994-04-12 1994-04-12 Instruction execution device

Country Status (1)

Country Link
JP (1) JPH07281889A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123410A (en) * 2006-11-15 2008-05-29 Yamaha Corp Digital signal processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123410A (en) * 2006-11-15 2008-05-29 Yamaha Corp Digital signal processing device

Similar Documents

Publication Publication Date Title
JP2002149442A (en) Data processor
JPH056906B2 (en)
US5838896A (en) Central processing unit for preventing program malfunction
JPH07281889A (en) Instruction execution device
KR900005284B1 (en) Micro computer
EP1177499B1 (en) Processor and method of executing instructions from several instruction sources
KR940011040B1 (en) Microcomputer
EP0372190A2 (en) System for accelerating execution of program instructions by a microprocessor
JPH06124103A (en) Programmable controller
JP2972190B1 (en) CPU high-speed processing circuit
JP3414579B2 (en) Programmable controller
JP2000194647A (en) Data transfer device
KR0167307B1 (en) Program branch control circuit
JP2504263B2 (en) Data processing device
KR100261175B1 (en) Interrupt circuit
KR100200487B1 (en) A processor with a pipeline architecture
JP2864861B2 (en) Response signal control circuit
JPH023217B2 (en)
JP2926941B2 (en) Instruction decoding device
JPH08106383A (en) Arithmetic processor
JPH07306798A (en) Microcomputer device
JPS61161509A (en) System and device for operating high speed sequence
JPH04138555A (en) Parallel type digital signal processor
JP2000003285A (en) Method for processing interruption and circuit therefor
JPS621058A (en) Information processor