JPS61272856A - Processor control system - Google Patents

Processor control system

Info

Publication number
JPS61272856A
JPS61272856A JP11582285A JP11582285A JPS61272856A JP S61272856 A JPS61272856 A JP S61272856A JP 11582285 A JP11582285 A JP 11582285A JP 11582285 A JP11582285 A JP 11582285A JP S61272856 A JPS61272856 A JP S61272856A
Authority
JP
Japan
Prior art keywords
control
instruction
controlling
word
memory
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
JP11582285A
Other languages
Japanese (ja)
Inventor
Shinichi Kubo
慎一 久保
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 JP11582285A priority Critical patent/JPS61272856A/en
Publication of JPS61272856A publication Critical patent/JPS61272856A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speed up a controlling by setting control word that controls an external device in the controlling register of an interface control section. CONSTITUTION:One of memory addresses of a controlling memory is allotted to a flip-flop (FF) 10, and set to an by a write instruction. Following operation is made when the FF 10 is off. An instruction following above-mentioned write instruction is fetched from the controlling memory 3 as an action according to an ordinary instruction execution sequence, the read data are checked by a selector circuit and a non-operation instruction is transferred to an MPU 1. The read data are transferred to the controlling registers 7-9 of an interface controlling section 6. When the contents of the read data is madeto control word and the memory address is made equal to an address allotted to the controlling registers 7-9, one of them is loaded. By repeating above-mentioned operation, the loading is completed at every fetch of instruction.

Description

【発明の詳細な説明】 〔概 要〕 インタフェース制御部の制御レジスタに制御語をロード
して、該制御部に接続する外部装置を制御する構成のマ
イクロプロセッサ等の制御方式。
[Detailed Description of the Invention] [Summary] A control method for a microprocessor, etc., configured to load a control word into a control register of an interface control unit and control an external device connected to the control unit.

所定の制御モードを設定し、制御語を命令としてフェッ
チすると、それを指定の制御レジスタにロードす゛る。
Once a predetermined control mode is set and a control word is fetched as an instruction, it is loaded into a designated control register.

命令実行上は強制的に無動作命令とみなす。この構成に
より、制御レジスタのロードが高速化される。この制御
モードのリセットは、制御語内の制御ビットによる。
When executing the command, it is forcibly regarded as a no-action command. This configuration speeds up loading of control registers. This control mode reset is via control bits within the control word.

〔産業上の利用分野〕[Industrial application field]

本発明は、インタフェース制御部の制御レジスタに、制
御語を設定することにより、該制御部に接続する外部装
置を制御する構成のマイクロプロセッサ等のプロセッサ
制御方式に関する。
The present invention relates to a processor control system for a microprocessor or the like configured to control an external device connected to an interface control section by setting a control word in a control register of the interface control section.

比較的小型の各種制御用マイクロプロセッサ等において
は、しばしば外部装置を制御するために、外部装置を接
続するインタフェース制御部を設け、その制御レジスタ
に適当な制御用データを制御語として設定すると、該デ
ータが所定の外部装置に転送されることにより、制御が
行われるようにしている。
Relatively small microprocessors for various types of control often have an interface control unit for connecting the external device in order to control the external device, and when appropriate control data is set as a control word in the control register, the corresponding Control is performed by transferring data to a predetermined external device.

通常その場合にプロセッサは、1語ごとにデータを制御
メモリ等から読み出して、制御レジスタにロードするよ
うに構成した、プログラムを実行することによって、上
記レジスタの設定を行うことになるので、比較的長い処
理時間を要する。
Normally, in that case, the processor would set the above registers by executing a program configured to read data from the control memory etc. word by word and load it into the control register. Requires long processing time.

〔従来の技術と発明が解決しようとする問題点〕第3図
は、マイクロプロセッサシステムの一構成例ブロック図
である。
[Prior art and problems to be solved by the invention] FIG. 3 is a block diagram of an example of the configuration of a microprocessor system.

マイクロプロセッサ(以下において、MPUという)l
は、アドレスla2によって、制御メモリ3の記憶アド
レスを指定して、制御メモリ3から命令語又はデータ語
を、読出しデータ線4に読み出して、MPUI内のレジ
スタにロードし、又はレジスタにあるデータを、書込み
データ線5に送出して制御メモリ3へ書き込むことがで
きる。
Microprocessor (hereinafter referred to as MPU)
specifies the storage address of the control memory 3 using the address la2, reads an instruction word or a data word from the control memory 3 onto the read data line 4, loads it into a register in the MPUI, or loads the data in the register. , can be sent to the write data line 5 and written into the control memory 3.

インタフェース制御部6は、例えば3組の制御レジスタ
7.8.9を持ち、それらの制御レジスタに設定された
内容によって、図示されない外部装置を制御するように
構成されている。
The interface control unit 6 has, for example, three sets of control registers 7, 8, and 9, and is configured to control an external device (not shown) according to the contents set in these control registers.

MPUIが、インタフェース制御部6の制御レジスタ7
〜9に制御語をロードするために、制御レジスタ7〜9
に、制御メモリ3の記憶アドレスの一部を割り当ててお
く。
The MPUI controls the control register 7 of the interface control unit 6.
Control registers 7-9 to load control words into ~9.
A part of the storage address of the control memory 3 is allocated to the control memory 3.

書込み動作において、該記憶アドレスが指定された場合
には、MPUIから書込みデータ線5に送出されるデー
タを、制御レジスタ7〜9の該当するレジスタヘロード
するように構成する。
In a write operation, when the storage address is specified, data sent from the MPUI to the write data line 5 is configured to be loaded into the corresponding register of the control registers 7 to 9.

従って、制御メモリ3にあるデータ語を、制御レジスタ
7〜9に書き込む場合には、1制御レジスタへの書込み
ごとに、命令の読出し、制御語及び制御レジスタを指定
するオペランドアドレスの読出し、そのアドレスによる
制御語の読出し、読み出した制御語の書込み(制御レジ
スタへのロード、)からなる、4〜5制御サイクルを必
要とするので、比較的長い処理時間を要するという問題
がある。
Therefore, when writing the data word in the control memory 3 to the control registers 7 to 9, for each write to one control register, the instruction is read, the control word and the operand address specifying the control register are read, and the address Since it requires four to five control cycles consisting of reading out a control word by , and writing the read control word (loading it into a control register), there is a problem in that it requires a relatively long processing time.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of the present invention.

図において、10は制御モードを表示するフリップフロ
ップ、11はフリップフロップ10に割り当てたアドレ
スのデコーダ、12は読出しデータと無動作命令とを切
り換えるための選択回路、14は無動作命令を表すビッ
ト列を保持するレジスタである。
In the figure, 10 is a flip-flop that displays the control mode, 11 is a decoder for the address assigned to the flip-flop 10, 12 is a selection circuit for switching between read data and a no-operation instruction, and 14 is a bit string representing a no-operation instruction. This is a register to hold.

〔作 用〕[For production]

フリップフロップ10には、制御メモリの記憶アドレス
の1つが割り当てられていて、適当な書込み命令によっ
て、例えばオンにセットされる。
Flip-flop 10 is assigned one of the storage addresses of the control memory and is set, for example, on by a suitable write command.

フリップフロップ10がオフのとき、システムは通常の
動作モードであるが、オンになると以下のように動作す
る。
When flip-flop 10 is off, the system is in normal operating mode, but when it is on, it operates as follows.

即ち、通常の命令実行シーケンスによる動作として、上
記の書込み命令に続く命令を制御メモリ3からフェッチ
するように制御すると、読み出したデータは選択回路1
2で阻止されて、代わりに無動作命令(以下において、
NOP命令という)を、MPUIへ転送する。
That is, when the instruction following the above write instruction is controlled to be fetched from the control memory 3 as an operation according to the normal instruction execution sequence, the read data is transferred to the selection circuit 1.
2, and instead a no-action command (in the following,
NOP command) is transferred to the MPUI.

又、読出しデータはインタフェース制御部6の制御レジ
スタ7〜9へ転送される。
Further, the read data is transferred to the control registers 7 to 9 of the interface control section 6.

従って、この読出しデータの内容を制御語とし、その記
憶アドレスを制御レジスタ7〜7に割り当てたアドレス
と同一にしてあれば、制御語が制御レジスタ7〜9の1
つにロードされる。
Therefore, if the content of this read data is a control word and its storage address is the same as the address assigned to control registers 7-7, then the control word is 1 of control registers 7-9.
loaded into.

制御レジスタ7〜7に連続アドレスを割り当ててあれば
、上記の動作の反復により、命令フェッチの1制御サイ
クルごとに、1制御語のロードが完了し、制御の高速化
が得られる。
If consecutive addresses are assigned to the control registers 7 to 7, by repeating the above operations, loading of one control word will be completed in every control cycle of instruction fetch, resulting in faster control.

制御語内に設ける制御ビットを制御ビット線13によっ
てフリップフロップ10のリセット入力とすることによ
り、上記制御モードを通常モードへリセットする。
By using the control bit provided in the control word as a reset input of the flip-flop 10 via the control bit line 13, the control mode is reset to the normal mode.

〔実施例〕〔Example〕

第1図のインタフェース制御部6の制御レジスタ7〜9
には、例えば制御メモリ3の記憶アドレス゛n+3”〜
“n+5゛が割り当てられているものとする。
Control registers 7 to 9 of the interface control unit 6 in FIG.
For example, the storage address 'n+3' of the control memory 3 is
Assume that "n+5" is assigned.

制御レジスタ7〜9に制御語をロードする場合には、第
2図に示すように、制御メモリ3の記憶アドレス゛n+
3’ 〜’n+5’ に各制御レジスタにロードすべき
制御語を予め記憶しておく。
When loading a control word into the control registers 7 to 9, as shown in FIG.
Control words to be loaded into each control register are stored in advance in 3' to 'n+5'.

又、記憶アドレス゛n°〜゛n÷2°には、フリップフ
ロップ10をオンにセットするための3語からなる書込
み命令を置く。例えば、その第1語は書込み命令、第2
語は書込みデータのアドレス(この場合、この語の次の
アドレスを指す)、第3語は書込みデータ(この場合、
フリップフロップ10をオンにする信号を発生するため
、末尾ビットのみ1′ のデータ)である。
Furthermore, a write command consisting of three words for setting the flip-flop 10 on is placed at storage addresses 'n° to 'n÷2°. For example, the first word is a write command, the second
The word is the address of the write data (in this case, it points to the next address after this word), and the third word is the write data (in this case, it points to the next address after this word).
In order to generate a signal to turn on the flip-flop 10, only the last bit is 1' (data).

記憶アドレス゛n+6゛ には、サブルーチンから呼出
元プログラムへ復帰するための、いわゆるリターン命令
を置くことにより、記憶アドレス゛n”から°nn+6
゛までで、1つのサブルーチンを構成するようにしてお
く。
By placing a so-called return instruction to return from the subroutine to the calling program at memory address ゛n+6゛, it is possible to move from memory address 〛n'' to °nn+6.
The steps up to ゛ constitute one subroutine.

こ\で、各制御語の、例えば末尾の1ビツトを制御ビッ
ト15とし、その値は最後の制御語の制御ビット15の
みを、例えば°1°とし、その他の制御語では、すべて
“0° とするものとする。
Here, for example, one bit at the end of each control word is set to control bit 15, and its value is set to only the control bit 15 of the last control word, for example, °1°, and for all other control words, it is set to "0°". shall be.

以上の準備をしておいて、MPLllがインタフェース
制御部6に制御語をロードする場合には、公知の方法に
より、アドレス°n゛のサブルーチンへの分岐を実行す
る。
After making the above preparations, when MPLll loads a control word into the interface control unit 6, it executes a branch to the subroutine at address n' by a known method.

そこで、記憶アドレス°n゛〜’n+2’ の書込み命
令が、選択回路12を経てMPUIへ順次フェッチされ
て、例えば4制御サイクルで実行されることにより、フ
リップフロップ10がオンにセットされる。
Therefore, the write commands for storage addresses 'n' to 'n+2' are sequentially fetched to the MPUI via the selection circuit 12 and executed in, for example, four control cycles, thereby turning on the flip-flop 10.

フリップフロップ10のオン出力は、選択回路12を、
以後レジスタ14に記憶しであるNOP命令を通過させ
るように切り換え、又インタフェース制御部6を制御レ
ジスタ7〜9をロードする状態にする。
The ON output of the flip-flop 10 causes the selection circuit 12 to
Thereafter, the NOP instruction stored in the register 14 is switched to pass, and the interface control section 6 is placed in a state where the control registers 7 to 9 are loaded.

この状態において、MPUIは、次の命令として、上記
書込み命令に続くアドレス“n+3”を読み出す。
In this state, the MPUI reads address "n+3" following the write command as the next command.

読出しデータ線4の情報は、インタフェース制御部6に
転送されて、アドレス“n+3゛ で指定される制御レ
ジスタ、例えば制御レジスタ7、にロードされる。
The information on the read data line 4 is transferred to the interface control section 6 and loaded into a control register designated by address "n+3", for example, control register 7.

MPUIへは、読出しデータは転送されずに、選択回路
12からレジスタ14のNOP命令が入力されるので、
MPUIは通常の制御として、次のアドレス°n+4”
を命令としてフェッチする動作を開始する。
Since the read data is not transferred to the MPUI and the NOP command for the register 14 is input from the selection circuit 12,
The MPUI performs normal control at the next address °n+4"
Begins fetching as an instruction.

その結果、前記と同様の制御によって、記憶アドレス゛
n+4’ のデータが制御レジスタ8にロードされ、次
に記憶アドレス“n+5°のデータが制御レジスタ9に
ロードされる。
As a result, the data at the storage address "n+4' is loaded into the control register 8, and then the data at the storage address "n+5°" is loaded into the control register 9 under the same control as described above.

これまでの制御において、記憶アドレス“n+3゛から
“n+5°までの制御語の末尾の制御ビット15は、制
御ビット線13として、フリップフロップ10のリセッ
ト側入力に接続されているが、初めの2語では制御ビッ
ト値が°0”であるので、リセットは起こらず、第3の
制御語を読み出したことにより、フリップフロップ10
はオフにリセットされ、通常の制御モードに復旧する。
In the conventional control, the control bit 15 at the end of the control word from storage address "n+3" to "n+5°" is connected as the control bit line 13 to the reset side input of the flip-flop 10, but the first two Since the control bit value is °0'' in the word, no reset occurs and reading the third control word causes the flip-flop 10 to
is reset off and restored to normal control mode.

従って、次のリターン命令をアドレス“n+6”からフ
ェッチすると、この命令はそのま\選択回路12を通過
して、MPUIへ入力し、リターン命令として実行され
る。
Therefore, when the next return instruction is fetched from address "n+6", this instruction directly passes through the selection circuit 12, is input to the MPUI, and is executed as a return instruction.

以上の構成により、制御レジスタ7〜9のロードが高速
に実行される。
With the above configuration, loading of the control registers 7 to 9 is executed at high speed.

なお、以上の説明においては、制御レジスタ7〜9を指
定するために、制御メモリの記憶アドレスを割り当てる
ものとしたが、例えば各制御語内に制御レジスタ指定部
分を設けて、その値により制御レジスタを選択するよう
にしてもよく、前記説明の構成をこのように変更するこ
とは容易である。
Note that in the above explanation, storage addresses in the control memory are assigned to specify control registers 7 to 9, but for example, a control register specification part may be provided in each control word, and the value of the control register specification part may be provided in each control word. may be selected, and it is easy to change the configuration described above in this way.

このようにすれば、制御語の実質の制御データ部分が減
少する点では不利があるが、前記説明のサブルーチンの
記憶アドレスが、制御レジスタのアドレスによって固定
されることが無くなるという利点がある。
This has the disadvantage that the actual control data portion of the control word is reduced, but has the advantage that the storage address of the subroutine described above is no longer fixed by the address of the control register.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、マイ
クロプロセッサ等が、外部装置を制御するためのインタ
フェース制御部に、制御語をロードする場合に、その処
理が高速化されるので、該システムの性能を向上すると
いう著しい工業的効果がある。
As is clear from the above description, according to the present invention, when a microprocessor or the like loads a control word into an interface control unit for controlling an external device, the processing speed is increased. There is a significant industrial effect of improving the performance of the system.

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

第1図は本発明の実施例構成ブロック図、第2図はサブ
ルーチン構成の説明図、 第3図は従来の構成例ブロック図である。 図において、 1はMPU、       2はアドレス線、3は制御
メモリ、    4は読出しデータ線、5は書込みデー
タ線、 6はインタフェース制御部、 7〜9は制御レジスタ、10はフリップフロップ、11
はデコーダ、    12は選択回路、13は制御ビッ
ト線、  14はレジスタ、15は制御ピット サプパjシーケンムしF!@図 草 2 凹
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram of a subroutine configuration, and FIG. 3 is a block diagram of a conventional configuration example. In the figure, 1 is an MPU, 2 is an address line, 3 is a control memory, 4 is a read data line, 5 is a write data line, 6 is an interface control section, 7 to 9 are control registers, 10 is a flip-flop, 11
is a decoder, 12 is a selection circuit, 13 is a control bit line, 14 is a register, and 15 is a control pit supple sequence and F! @Zusa 2 concave

Claims (1)

【特許請求の範囲】 インタフェース制御部(6)の制御レジスタ(7、8、
9)に、所要の制御語を設定して、外部装置を制御する
ように構成されたプロセッサ(1)において、 制御モードを表示するフリップフロップ(10)を設け
、 該フリップフロップ(10)が一方の状態の場合には、
記憶装置(3)に記憶された上記制御語を、無動作命令
として読み出して、上記制御レジスタ(7、8、9)に
設定し、 該読み出した制御語の特定ビットが所定の値の場合には
、該フリップフロップ(10)を他方の状態にリセット
することを特徴とするプロセッサ制御方式。
[Claims] Control registers (7, 8,
9), a processor (1) configured to control an external device by setting a required control word is provided with a flip-flop (10) for displaying a control mode; In the case of the state of
The control word stored in the storage device (3) is read as a no-operation command and set in the control register (7, 8, 9), and when the specific bit of the read control word is a predetermined value, A processor control method characterized in that the flip-flop (10) is reset to the other state.
JP11582285A 1985-05-29 1985-05-29 Processor control system Pending JPS61272856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11582285A JPS61272856A (en) 1985-05-29 1985-05-29 Processor control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11582285A JPS61272856A (en) 1985-05-29 1985-05-29 Processor control system

Publications (1)

Publication Number Publication Date
JPS61272856A true JPS61272856A (en) 1986-12-03

Family

ID=14671963

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11582285A Pending JPS61272856A (en) 1985-05-29 1985-05-29 Processor control system

Country Status (1)

Country Link
JP (1) JPS61272856A (en)

Similar Documents

Publication Publication Date Title
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
JPS5917458B2 (en) Method and apparatus for recording and executing microprograms in an information processing system
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPS6319058A (en) Memory device
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
JPS61272856A (en) Processor control system
US5893928A (en) Data movement apparatus and method
JPS6282402A (en) Sequence controller
JPH01261758A (en) Computer system
JPS6240736B2 (en)
US5151980A (en) Buffer control circuit for data processor
JPH0447350A (en) Main storage read/response control
JPS60176144A (en) Register file device
JPS6215645A (en) Central processing unit
JP2883489B2 (en) Instruction processing unit
JPS60193046A (en) Detecting system for instruction exception
JP2583614B2 (en) Vector arithmetic unit
JPH01107295A (en) Memory controller
JPH03257572A (en) Multiprocessor system
JPS61161509A (en) System and device for operating high speed sequence
JPH04242453A (en) Switch controller for storage device
JPH03260839A (en) Microcomputer
JPS61240332A (en) Processor control system
JPS6260034A (en) Stored program system controller
JPH05108340A (en) Microprogram loading system