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
JPH0432422B2 - - Google Patents
[go: Go Back, main page]

JPH0432422B2 - - Google Patents

Info

Publication number
JPH0432422B2
JPH0432422B2 JP59063957A JP6395784A JPH0432422B2 JP H0432422 B2 JPH0432422 B2 JP H0432422B2 JP 59063957 A JP59063957 A JP 59063957A JP 6395784 A JP6395784 A JP 6395784A JP H0432422 B2 JPH0432422 B2 JP H0432422B2
Authority
JP
Japan
Prior art keywords
subprocessor
clock
processor
address
cycle
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
Application number
JP59063957A
Other languages
Japanese (ja)
Other versions
JPS60205785A (en
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 filed Critical
Priority to JP59063957A priority Critical patent/JPS60205785A/en
Publication of JPS60205785A publication Critical patent/JPS60205785A/en
Publication of JPH0432422B2 publication Critical patent/JPH0432422B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 発明の属する技術分野 本発明は、プログラムロード方式に関し、特に
メインプロセツサとは別にI/Oデバイス、通信
回線制御のために専用のサブプロセツサを持つマ
ルチプロセツサシステムを構築するコンピユータ
システムにおいて、サブプロセツサブロツクへの
制御プログラムのロード方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a program loading method, and in particular to constructing a multiprocessor system having a dedicated subprocessor for controlling I/O devices and communication lines in addition to a main processor. The present invention relates to a method for loading a control program into a subprocessor block in a computer system that uses a subprocessor block.

従来技術の説明 一般に、サブプロセツサブロツク側の制御プロ
グラムは、ROMに格納されてH/Wとして固定
内蔵化するか、またはメインブロツク側より初期
起動時にロードする方法がある。前者の場合には
ROMの容量に依存され、H/W量が増えかつシ
ステム制御上、拡張性に乏しいことから、後者の
方法をとるのが一般的である。
Description of the Prior Art In general, the control program on the subprocessor block side is stored in a ROM and fixedly incorporated as H/W, or it is loaded from the main block side at initial startup. In the former case
The latter method is generally used because it depends on the capacity of the ROM, increases the amount of H/W, and has poor expandability in terms of system control.

しかしながら、後者の場合には、制御プログラ
ムがロードされるサブプロセツサのメモリブロツ
クをシステムバス上につなぎ込むことから、プロ
グラムロードを行なうためだけの制御回路が必要
となり、それだけH/W量の増大は避けられず、
ロード制御も複雑となる欠点があつた。
However, in the latter case, since the memory block of the subprocessor into which the control program is loaded is connected to the system bus, a control circuit just for loading the program is required, and an increase in the amount of H/W can be avoided. Unable to do so.
The disadvantage was that load control was also complicated.

発明の目的 本発明は従来の上記欠点を解消する為になされ
たものであり、従つて本発明の目的は、メインプ
ロセツサがサブプロセツサのシステムクロツクを
直接制御し、サブプロセツサの制御プログラムが
ロードされるメモリブロツクのアドレスをメイン
プセツサから与えず、サブプロセツサのインスト
ラクシヨンフエツチサイクルにて送出されるアド
レスをそのままロードアドレスとして用いること
により、サブプロセツサとメインプセツサとのイ
ンターフエイス制御回路の構成量を軽減し、ロー
ド制御のための簡便な方式を提供することにあ
る。
OBJECTS OF THE INVENTION The present invention has been made in order to eliminate the above-mentioned drawbacks of the conventional technology.Therefore, an object of the present invention is to enable the main processor to directly control the system clock of the sub-processor and to load the control program of the sub-processor. By using the address sent out in the instruction fetch cycle of the sub-processor as the load address without giving it from the main processor, the amount of configuration of the interface control circuit between the sub-processor and the main processor can be reduced. The purpose of this invention is to provide a simple method for load control.

発明の構成 上記目的を達成する為に、本発明に係るプログ
ラムロード方式は、サブプロセツサを持つマルチ
プロセツサシステムにおいて、サブプロセツサの
制御を行なうためのプログラムを格納するメモリ
ブロツクへのメインプセツサ側からのロード制御
について、メインプセツサが直接サブプロセツサ
のシステムクロツクを制御し、サブプロセツサの
インストラクシヨンフエツチサイクルで送出され
るアドレスをロードアドレスとして与え、実行サ
イクルとの間隙にロードデータを書込むことを特
徴とする。
Composition of the Invention In order to achieve the above object, the program loading method according to the present invention provides load control from the main processor side to a memory block storing a program for controlling the sub-processors in a multi-processor system having sub-processors. The main processor directly controls the system clock of the subprocessor, gives the address sent out in the instruction fetch cycle of the subprocessor as a load address, and writes the load data in the gap between the execution cycle and the execution cycle.

発明の原理と作用 通常、プロセツサの状態は、インストラクシヨ
ンフエツチサイクルと実行サイクルに分かれる。
各サイクルはプロセツサに入力しているシステム
クロツクに同期して動いており、この時、クロツ
クを一旦止めれば(固定入力)その直前での状態
を保つことになる。したがつて、インストラクシ
ヨンフエツチサイクルでクロツクを止めると、そ
の時のアドレスはフエツチアドレスを指示したま
まとなり、一方実行サイクルでNOP(No
operation)動作を実行すれば次のフエツチアド
レスはインクリメントされたアドレスを指示する
ことになる。
Principle and Operation of the Invention Normally, the state of a processor is divided into an instruction fetch cycle and an execution cycle.
Each cycle operates in synchronization with the system clock input to the processor, and at this time, once the clock is stopped (fixed input), the state immediately before that point is maintained. Therefore, if the clock is stopped during an instruction fetch cycle, the address at that time remains pointing to the fetch address, while in the execution cycle a NOP (No
operation), the next fetch address will point to the incremented address.

発明の実施例の説明 次に本発明をその好ましい一実施例について図
面を参照して具体的に説明する。
DESCRIPTION OF EMBODIMENTS OF THE INVENTION Next, a preferred embodiment of the present invention will be specifically described with reference to the drawings.

第1図は本発明の一実施例を示し、本発明の主
眼となるサブプロセツサとそのプログラムが格納
されるメモリ部及びシステムバスとのブロツク構
成図である。図において、参照番号1はシステム
バスを示し、該システムバス1にはデータ信号入
力とその切換制御を行なうバス制御部2及びサブ
プロセツサ7へReset入力を与え且つクロツク制
御部3に接続されるI/Oデコーダ8が接続され
ている。サブプロセツサ7のクロツクは、通常動
作中においてはクロツクジエネレータ5から供給
され、プログラムロード時にはメイン側からの
I/O命令によるON/OFFの遷移信号がクロツ
クとして供給される。
FIG. 1 shows one embodiment of the present invention, and is a block diagram of a sub-processor, which is the main focus of the present invention, a memory section in which its program is stored, and a system bus. In the figure, reference number 1 indicates a system bus, and the system bus 1 includes a bus control section 2 that inputs data signals and controls their switching, and an I/O bus that provides a reset input to the subprocessor 7 and is connected to the clock control section 3. An O decoder 8 is connected. The clock for the sub-processor 7 is supplied from the clock generator 5 during normal operation, and when a program is loaded, an ON/OFF transition signal generated by an I/O command from the main side is supplied as the clock.

第2図a〜eは本発明に係るロード方式の特徴
を説明するためのタイングチヤートである。ただ
し、サブプロセツサ7の種類に応じてインストラ
クシヨンフエツチサイクルと実行サイクルとのク
ロツク数は数サイクル必要とするが、わかりやす
くするために、それぞれ1サイクルにてプロセツ
サの状態が遷移するものとし、クロツクON(ま
たはOFF)の状態を保持すればプロセツサの状
態が遷移することなく保持した状態を保つものと
する。メインプロセツサ10は、サブプロセツサ
7の動作を駆動するクロツク(入力)信号9の繰
り返し入力をON(またはOFF)レベルに保持さ
せることにより、サブプロセツサ7の内部の動作
を停止させる操作を行う。その動作停止をインス
トラクシヨンフエツチサイクルに入つた直後に行
うことによつて、プロセツサ状態、出力状態をそ
のインストラクシヨンフエツチサイクルの状態に
保持させるものとする。
FIGS. 2a to 2e are tying charts for explaining the features of the loading method according to the present invention. However, depending on the type of subprocessor 7, several clock cycles are required between the instruction fetch cycle and the execution cycle, but for the sake of clarity, it is assumed that the state of the processor changes in one cycle each. If the clock ON (or OFF) state is maintained, the state of the processor will not change and will remain in the maintained state. The main processor 10 performs an operation to stop the internal operation of the sub-processor 7 by repeatedly inputting a clock (input) signal 9 that drives the operation of the sub-processor 7 and keeping it at an ON (or OFF) level. By stopping the operation immediately after entering the instruction fetch cycle, the processor state and output state are maintained at the state of the instruction fetch cycle.

本発明を更に詳細に説明するに、まずサブプロ
セツサ7を初期化するために、メインプロセツサ
10側からのI/O命令によりリセツト信号4を
“ON”としてサブプロセツサ7のシステムクロ
ツク9をメインプロセツサ10からのI/O命令
による遷移信号に切り換え“ON”入力とする。
To explain the present invention in more detail, first, in order to initialize the sub-processor 7, the reset signal 4 is turned "ON" by an I/O command from the main processor 10 side, and the system clock 9 of the sub-processor 7 is turned on by the main processor. It is switched to a transition signal based on an I/O command from the setter 10 and is set as an "ON" input.

この状態でサブプロセツサ7は最初のフエツチ
サイクルに入り、メモリ6へのフエツチアドレス
は0番地を指示する。ここで、メインプロセツサ
10から書込信号とサブプロセツサ7のNOPコ
ードを送出してメモリ6の0番地にNOPコード
を書込む。次にサブプロセツサシステムクロツク
を“OFF”とすればサブプロセツサ7はフエツ
チアドレスで示すメモリ内容を取り込み、次の実
行サイクルに入るまでアドレスは0番地のままで
保つ。この時更にメインプロセツサ10から最初
のロードすべきデータを書込み信号と共に送出す
れば、0番地にはそのデータが新ためて書込まれ
ることになる。
In this state, the subprocessor 7 enters the first fetch cycle, and the fetch address to the memory 6 indicates address 0. Here, the main processor 10 sends a write signal and the NOP code to the sub-processor 7 to write the NOP code to address 0 of the memory 6. Next, when the subprocessor system clock is turned OFF, the subprocessor 7 takes in the memory contents indicated by the fetch address and keeps the address at 0 until the next execution cycle begins. At this time, if the main processor 10 also sends the first data to be loaded together with a write signal, that data will be newly written to address 0.

ここで、システムクロツク9を“ON”として
実行サイクルに入ると、サブプロセツサ7はイン
ストラクシヨンコードとしてNOPを取込んでい
るために、外部に対しては何らの動作も与えずク
ロツクの遷移により次のインストラクシヨンフエ
ツチに入ることになる。この場合、フエツチアド
レスは直前のフエツチアドレスに対して+1イン
クリメントされ、1番地を指示する。そしてこの
状態で更に上記処理をくり返すことによつてロー
ドが完了する。
Here, when the system clock 9 is turned ON and the execution cycle begins, the subprocessor 7 takes in NOP as an instruction code, so it does not give any operation to the outside and is executed by the clock transition. The next instruction is fetish. In this case, the fetch address is incremented by +1 from the previous fetch address to point to address 1. Then, by repeating the above processing in this state, the loading is completed.

ロードしたプログラムへ制御を移すにはサブプ
ロセツサ7に再度リセツトをかけ、0番地スター
トとする。ただし、サブプロセツサ7へのクロツ
ク9はシステムクロツクジエネレータ5から基本
クロツクの入力モードとしておく。
To transfer control to the loaded program, the subprocessor 7 is reset again to start at address 0. However, the clock 9 to the subprocessor 7 is set to the basic clock input mode from the system clock generator 5.

発明の効果 以上説明したように、本発明によれば、サブプ
ロセツサのクロツク制御により、ロードアドレス
をサブプロセツサからのアドレスを利用すること
によつて、メインプロセツサからの直接のアドレ
ス制御を行なう必要がなくなり、簡易なインター
フエイスを構成できる。
Effects of the Invention As explained above, according to the present invention, by using the address from the sub-processor as the load address through clock control of the sub-processor, there is no need for direct address control from the main processor. , a simple interface can be configured.

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

第1図は本発明の一実施例を部分的に示したブ
ロツク構成図である。 1…システムバス(S−BUS)、2…データバ
ス制御部(DBC)、3…クロツク制御部
(CLKC)、4…リセツト信号(Reset)、5…シス
テムクロツクジエネレータ(OSC)、6…メモリ
(MEMO)、7…サブプロセツサ(SCPU)、8…
I/Oデコーダ(D)、9…システムクロツク
(S−CLK)、10…メインプロセツサ。 第2図は本発明を説明するためのタイミングチ
ヤートである。 a…リセツト信号4、b…サブプロセツサのス
テートサイクル(F:インストラクシヨンフエツ
チサイクル、E:実行サイクル)、c…サブプロ
セツサシステムクロツク9、d…サブプロセツサ
送出アドレス、e…メモリ書込みデータ
(NOP:No operationコード、D1,D2:ロ
ードデータ)。
FIG. 1 is a block diagram partially showing an embodiment of the present invention. 1...System bus (S-BUS), 2...Data bus control unit (DBC), 3...Clock control unit (CLKC), 4...Reset signal (Reset), 5...System clock generator (OSC), 6... Memory (MEMO), 7...Subprocessor (SCPU), 8...
I/O decoder (D), 9...system clock (S-CLK), 10...main processor. FIG. 2 is a timing chart for explaining the present invention. a...Reset signal 4, b...Subprocessor state cycle (F: instruction fetch cycle, E: execution cycle), c...Subprocessor system clock 9, d...Subprocessor output address, e...Memory write data (NOP) : No operation code, D1, D2: Load data).

Claims (1)

【特許請求の範囲】 1 I/Oデバイス、通信制御等のための専用の
サブプロセツサを持つマルチプロセツサシステム
を構成するコンピユータにおいて、前記サブプロ
セツサはそれを制御するためのプログラムを格納
するべきメモリを有し、メインプロセツサは、
I/Oデコーダ及びクロツク制御部を介して直接
前記サブプロセツサのシステムクロツクを制御
し、前記サブプロセツサのインストラクシヨンフ
エツチサイクルで送出されるアドレスを前記メモ
リのロードアドレスとして与え、以下の(1)〜(6)に
示す手順より、インストラクシヨンフエツチサイ
クルと実行サイクルとの間でプログラムロードを
行うことを特徴とするサブプロセツサシステムへ
のプログラムロード方法。 (1) サブプロセツサをメインプロセツサからリセ
ツトする (2) サブプロセツサのクロツクを制御することに
よつて、サブプロセツサをインストラクシヨン
フエツチサイクルにする (3) (2)のインストラクシヨンフエツチサイクルの
間に、メインプロセツサからNOPコードをサ
ブプロセツサの指定するアドレスに書込む (4) クロツクを制御し、サブプロセツサにNOP
をフエツチしてサブプロセツサのインストラク
シヨンフエツチサイクルを終了させ、その後メ
インプロセツサからサブプロセツサの指定する
上記アドレスにロードデータを書込む (5) クロツクを制御し、サブプロセツサを実行サ
イクルとし、NOPを実行しアドレスをインク
リメントする (6) 以上の(2)〜(5)を繰り返す。
[Scope of Claims] 1. In a computer constituting a multiprocessor system having a dedicated subprocessor for I/O devices, communication control, etc., the subprocessor has a memory to store a program for controlling it. And the main processor is
The system clock of the sub-processor is directly controlled through an I/O decoder and a clock control section, and the address sent out in the instruction fetch cycle of the sub-processor is given as the load address of the memory, and the following (1) is carried out. A method for loading a program into a subprocessor system, characterized in that the program is loaded between an instruction fetch cycle and an execution cycle according to the steps shown in (6). (1) Resetting the subprocessor from the main processor (2) Putting the subprocessor into an instruction fetch cycle by controlling the subprocessor's clock (3) During the instruction fetch cycle in (2) Then, write the NOP code from the main processor to the address specified by the subprocessor (4) Control the clock and write the NOP code to the subprocessor.
Fetch the instruction fetch cycle of the subprocessor, and then write the load data from the main processor to the above address specified by the subprocessor (5) Control the clock, set the subprocessor as an execution cycle, and execute NOP. and increment the address (6) Repeat steps (2) to (5) above.
JP59063957A 1984-03-30 1984-03-30 How to load a program to a subprocessor system Granted JPS60205785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59063957A JPS60205785A (en) 1984-03-30 1984-03-30 How to load a program to a subprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59063957A JPS60205785A (en) 1984-03-30 1984-03-30 How to load a program to a subprocessor system

Publications (2)

Publication Number Publication Date
JPS60205785A JPS60205785A (en) 1985-10-17
JPH0432422B2 true JPH0432422B2 (en) 1992-05-29

Family

ID=13244300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59063957A Granted JPS60205785A (en) 1984-03-30 1984-03-30 How to load a program to a subprocessor system

Country Status (1)

Country Link
JP (1) JPS60205785A (en)

Also Published As

Publication number Publication date
JPS60205785A (en) 1985-10-17

Similar Documents

Publication Publication Date Title
JPS5914840B2 (en) Pattern generator for semiconductor memory testing
JPH06103507B2 (en) Pulse input / output processor and microcomputer using the same
JP3987277B2 (en) Pulse signal generator
JPH0394303A (en) timing generator
KR100321745B1 (en) A micro controller unit for external memory access
JPS5812613B2 (en) Parallel data processing device
JPH0432422B2 (en)
US6370651B1 (en) Synchronizing user commands to a microcontroller in a memory device
JPS6232812B2 (en)
JP3043341B2 (en) Microcomputer system
JPS6146552A (en) Information processor
JP2595992B2 (en) Electronic musical instrument
JPS6041779B2 (en) I/O program control unit
JPS59189435A (en) Data transfer control device
JPH0542525Y2 (en)
JPS5938827A (en) Microprocessor ipl system
JPH04255028A (en) Microprocessor
JPS6143741B2 (en)
JPH0333934A (en) Register saving/recovering system
JPS6229813B2 (en)
JPS608938A (en) Debugging system of microprogram
JPH0221331A (en) Program control system for microcomputer
JPS6231382B2 (en)
JP2002544619A (en) Object-oriented processing using dedicated pointer memory
JPS5852261B2 (en) Program processing method