JPS6086626A - Program instruction address designating method of instruction processing device - Google Patents

Program instruction address designating method of instruction processing device

Info

Publication number
JPS6086626A
JPS6086626A JP19557783A JP19557783A JPS6086626A JP S6086626 A JPS6086626 A JP S6086626A JP 19557783 A JP19557783 A JP 19557783A JP 19557783 A JP19557783 A JP 19557783A JP S6086626 A JPS6086626 A JP S6086626A
Authority
JP
Japan
Prior art keywords
jump destination
address
instruction
program
destination address
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
JP19557783A
Other languages
Japanese (ja)
Inventor
Tatsuo Sato
健生 佐藤
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 JP19557783A priority Critical patent/JPS6086626A/en
Publication of JPS6086626A publication Critical patent/JPS6086626A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • G06F9/322Address formation of the next instruction, e.g. by incrementing the instruction counter for non-sequential address

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To indicate immediately a jump destination address satisfying conditions by providing a jump destination table and changing and designating the lower bit of the jump destination address having plural branch destinations. CONSTITUTION:If external interrupt conditions are required on the way of execution of a normal program processing and these conditions are an external interrupt signal (a), a table selecting circuit 5 selects a jump destination table 6 corresponding to the signal (a). The table y sets the signal (a) to ''0'' and sends it to a selecting circuit 7. The circuit 7 converts a jump destination address AAAA consisting of 4 bits to an address AAA0 and designates this address AAA0. When this address is indicated by a program counter circuit PC3, an instruction memory circuit IM1 discriminates the jump destination address, namely, a data transmission processing instruction to execute a processing program. Thus, the jump destination address satisfying conditions is indicated immediately.

Description

【発明の詳細な説明】 (a)発明の技術分野 本発明は、内蔵プログラムを格納する記憶部と前記記憶
部のアドレスを指示するプログラムカウンタを有する命
令処理装置に関し、特に複数の分岐先のあるジャンプ命
令のアドレスを選択指定する命令処理装置におけるプロ
グラム命令アドレス指定方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to an instruction processing device that has a storage section that stores a built-in program and a program counter that indicates the address of the storage section, and particularly relates to an instruction processing device that has multiple branch destinations. The present invention relates to a program instruction addressing method in an instruction processing device for selectively specifying the address of a jump instruction.

(b)技術の背景 1つの処理を行うにあたって、内蔵プログラムの命令に
より処理する場合2通常内蔵プログラムの実行順序に従
って処理を行う。しかし、命令処理過程において成る条
件が付加されると通常の実行順序から脱出して5条件に
より指定されたプログラム番地にジャンプして命令を実
行することがある。
(b) Background of the Technology When one process is performed using instructions from a built-in program, the process is normally performed in accordance with the order of execution of the built-in program. However, if a condition is added during the instruction processing process, the program may escape from the normal execution order, jump to the program address specified by the five conditions, and execute the instruction.

処理条件が複雑になって来るとジャンプ命令処理回数が
多くなり、効率的なジャンプ命令処理が全体の処理能率
を左右することになる。
As the processing conditions become more complex, the number of times jump instructions are processed increases, and efficient jump instruction processing influences the overall processing efficiency.

効率的なジャンプ命令処理の1つの方法として。As a method for efficient jump instruction processing.

ジャンプ先アドレスを効率良く選択指定する方法が各種
検討されている。
Various methods for efficiently selecting and specifying jump destination addresses have been studied.

<c>従来技術と問題点 従来のプログラム処理におけるジャンプ先アドレスの指
定方法について1通信制御装置におけるジャンプ先アド
レスの指定方法を例に取り図面を参照して説明する。
<c> Prior Art and Problems A method of specifying a jump destination address in conventional program processing will be described with reference to the drawings, taking as an example a method of specifying a jump destination address in a communication control device.

第1図は従来の通信制御装置におけるジャンプ先アドレ
スの指定方法で、 (A)は回路図、(B)は動作図を
それぞれ示す。
FIG. 1 shows a method of specifying a jump destination address in a conventional communication control device, with (A) showing a circuit diagram and (B) showing an operation diagram.

図において、1はインストラクションメモリ回路(以下
団と略称する)、2はインストラクションレジスタ回路
(以下IRと略称する)、3はプログラムカウンタ路(
以下PCと略称する)、4はプラス1回路をそれぞれ示
す。
In the figure, 1 is an instruction memory circuit (hereinafter abbreviated as group), 2 is an instruction register circuit (hereinafter abbreviated as IR), and 3 is a program counter path (hereinafter abbreviated as IR).
(hereinafter abbreviated as PC), 4 indicates a plus 1 circuit, respectively.

尚第1図(B)のST −1〜ST −nはジャンプ先
アドレスを判定するステップ番号を示し1本ステップ順
序は内蔵プログラムで指定されているものである。
Note that ST-1 to ST-n in FIG. 1(B) indicate step numbers for determining the jump destination address, and the order of each step is specified by the built-in program.

第1図は通信制御装置(図示してない)を制御するプロ
グラム命令を記憶しているIMI、IMIから次に読み
出すべきプログラム命令を取り出し保持するIR2,I
MIに記憶しているプログラム命令アドレスを指示する
PC3,通常の処理過程に応じてプログラム命令アドレ
スを1つずつ進めるプラス1回路から構成されている。
FIG. 1 shows an IMI that stores program instructions for controlling a communication control device (not shown), an IR2, and an IMI that retrieve and hold program instructions to be read next from the IMI.
It is composed of a PC 3 that instructs the program instruction address stored in the MI, and a plus 1 circuit that advances the program instruction address one by one in accordance with the normal processing process.

本例の通信制御装置(図示してない)では、ジャンプ要
求の無い通常の処理過程ではIMIの実行順序に従って
1つずつプログラム命令を実行して行く。この処理過程
で1通信制御装置(図示してない)と接続されている外
部条件により1通常の処理過程に対して割り込み要求が
あった場合第1図(B)に示す割り込み処理ルーチンに
従い順次処理する。
In the communication control device (not shown) of this example, during normal processing without a jump request, program instructions are executed one by one according to the IMI execution order. During this processing process, if an interrupt request is made to the normal processing process due to an external condition connected to the communication control device (not shown), it will be processed sequentially according to the interrupt processing routine shown in Figure 1 (B). do.

第1図(B)に示す割り込み処理ルーチンも一定のステ
ップ(ST−1〜5T−n)を踏んだ処理順序に従って
処理を行うため、第1図(B)の例で示す例えば5T−
nの順番になる「内部割り込みワード処理」の割り込み
要求があった場合、一定のステップ(ST −1〜ST
 −n )を踏んで5T−nに到達するため、必要なジ
ャンプ先アドレス指定に致るまでの要求スキャンに時間
が掛かると言う欠点があった。
The interrupt handling routine shown in FIG. 1(B) also performs processing according to the processing order of certain steps (ST-1 to ST-5T-n), so for example 5T-n is shown in the example of FIG. 1(B).
When there is an interrupt request for "internal interrupt word processing" in order n, a certain number of steps (ST -1 to ST
-n) to reach 5T-n, there is a drawback that it takes time to scan the request until the necessary jump destination address is specified.

(d)発明の目的 本発明は、上記欠点を解消した新規な命令処理装置にお
りるプログラム命令アドレス指定方法を提供することを
目的とし、特に複数の分岐先のあるジャンプ命令アドレ
スを割り込み処理ルーチンのような処理過程を経ること
なく、複数の分岐先のあるジャンプ先アドレスの下位ビ
ットを変更指定するのみで条件に合ったジャンプ先アド
レスに即時に指示到達することが可能な命令処理装置に
おけるプログラム命令アドレス指定方法を実現すること
にある。
(d) Object of the Invention The object of the present invention is to provide a method of addressing program instructions in a new instruction processing device that eliminates the above-mentioned drawbacks. A program for an instruction processing device that can immediately reach a jump destination address that meets the conditions by simply changing the lower bits of a jump destination address that has multiple branch destinations, without going through the processing process described above. The objective is to realize an instruction addressing method.

(e)発明の構成 本発明は、内蔵プログラムを格納する記憶部と前記記憶
部のアドレスを指示するプログラムカウンタを有する命
令処理装置において、前記内蔵プログラムの実行にあた
って、複数の分岐先のあるジャンプ命令と、前記複数の
分岐先のあるジャンプ命令アドレスの一部を所定条件に
て選択指定するアドレステーブルとを有し、前記アドレ
ステーブルにて選択された前記ジャンプ命令アドレスの
一部を、前記プログラムカウンタにて指定されたジャン
プ命令アドレスの下位ビットと置換することにより、所
定のジャンプ先アドレスに即時に指示到達することが可
能なることを特徴とする命令処理装置におけるプログラ
ム命令アドレス指定方法により達成することが出来る。
(e) Structure of the Invention The present invention provides an instruction processing device having a storage unit that stores a built-in program and a program counter that indicates an address of the storage unit, when executing a jump instruction that has a plurality of branch destinations when executing the built-in program. and an address table for selectively specifying a part of the jump instruction addresses with the plurality of branch destinations under predetermined conditions, and the part of the jump instruction addresses selected in the address table is sent to the program counter. This is achieved by a program instruction addressing method in an instruction processing device, which is characterized in that it is possible to immediately reach a predetermined jump destination address by replacing the lower bits of a jump instruction address specified by . I can do it.

(f)発明の実施例 以下本発明を図面を参照して説明する。(f) Examples of the invention The present invention will be explained below with reference to the drawings.

第2図は本発明に係る命令処理装置の一実施例で、 (
A)は回路図、 (B)は処理フローをそれぞれ示す。
FIG. 2 shows an embodiment of the instruction processing device according to the present invention.
A) shows a circuit diagram, and (B) shows a processing flow.

図において、5はテーブル選択回路、6はジャンプ先テ
ーブル、7は選択回路をそれぞれ示す。
In the figure, 5 represents a table selection circuit, 6 represents a jump destination table, and 7 represents a selection circuit.

尚第1図と同一番号は同一内容を示し、又■。The same numbers as in Fig. 1 indicate the same contents, and ■.

■、■はPC3で指定されるアドレスの内容(命令語)
を示し、■は命令種別の指定部分、■は命令条件の指定
部分、■はジャンプ先アドレスの指定部分、a−nは外
部割り込み信号をそれぞれ示す。
■,■ are the contents of the address specified by PC3 (command word)
In the figure, ■ indicates an instruction type specification section, ■ indicates an instruction condition specification section, ■ indicates a jump destination address specification section, and a-n indicate an external interrupt signal, respectively.

第2図(A)の本実施例は第1図の構成として説明した
IMI、 1+72.PC3,プラス1回路4と、命令
処理装置と接続されている外部条件による外部割り込み
信号(a −n )と命令処理装置の内部条件による内
部割り込め信号とからジャンプ先アドレスの下位ビット
を決定するテーブルを選択するテーブル選択回路5.テ
ーブル選択回路5にて選択されたテーブルによりジャン
プ先アドレスの下位ビットを決定出力するジャンプ先テ
ーブル6、ジャンプ先テーブル6からの出力か、予め内
蔵プログラムにて指定されているジャンプ先アドレスを
指定するかをプログラム命令の命令種別■により選択す
る選択回路7から構成されている。
The present embodiment shown in FIG. 2(A) has the IMI 1+72. A table that determines the lower bits of the jump destination address from the PC 3, plus 1 circuit 4, an external interrupt signal (a-n) caused by external conditions connected to the instruction processing device, and an internal interrupt signal caused by the internal conditions of the instruction processing device. Table selection circuit for selecting 5. A jump destination table 6 determines and outputs the lower bits of the jump destination address according to the table selected by the table selection circuit 5, and specifies an output from the jump destination table 6 or a jump destination address specified in advance in a built-in program. It is composed of a selection circuit 7 which selects the program instruction according to the instruction type (2) of the program instruction.

尚ジャンプ先アドレスは本実施例の場合4ビ・ノドで構
成されており9割り込み分類により置換するビット数は
下位1ビツトとし、更に内蔵プログラムにて指定されて
いる通常ジャンプ処理のジャンプ先アドレスコードはA
AAA’ とする。又本実施例の場合の外部割り込み信
号(a−n)によるジャンプ処理のジャンプ先アドレス
コードは’AAAO°−’AAAn’ となる。第2図
(B)に示すAAAO’ 〜’AAAn’ は上記ジャ
ンプ先アドレスコードと、アドレスコードと対応する処
理プログラムを示す。
In this embodiment, the jump destination address consists of 4 bits and nodes, and the number of bits to be replaced according to the 9 interrupt classification is the lower 1 bit, and the jump destination address code for normal jump processing specified in the built-in program. is A
AAA'. Further, in the case of this embodiment, the jump destination address code of jump processing by the external interrupt signal (a-n) is 'AAAO°-'AAAn'. AAAO' to 'AAAn' shown in FIG. 2(B) indicate the jump destination address code and the processing program corresponding to the address code.

次に第2図にもとづき本実施例の動作を説明する。Next, the operation of this embodiment will be explained based on FIG.

今2通常のプログラム処理を実行しいる中で外部割り込
み条件が必要な状態になり、その外部割り込み条件が外
部割り込み信号aであった時、テーブル選択回路5は外
部割り込み信号aに対応するジャンプ先テーブル6を選
択する。選択されたジャンプ先テーブル6は外部割り込
み信号aを“0”として選択回路6に出力する。選択回
路6はプログラム命令内容の命令種別により、いま外部
割り込みによるジャンプ先アドレス決定中であることを
知り、4ビツトからなるジャンプ先アドレス“AAAA
’ をAAAO’ に変換指定する。
2. When an external interrupt condition becomes necessary while executing normal program processing, and the external interrupt condition is external interrupt signal a, the table selection circuit 5 selects the jump destination corresponding to external interrupt signal a. Select table 6. The selected jump destination table 6 outputs the external interrupt signal a as "0" to the selection circuit 6. The selection circuit 6 learns from the instruction type of the program instruction that the jump destination address is currently being determined by an external interrupt, and selects the jump destination address "AAAA" consisting of 4 bits.
Convert ' to AAAO'.

尚内蔵プログラムで決められたジャンプ先アドレスであ
れば“AAAA” がそのままPC3により指示される
If the jump destination address is determined by the built-in program, "AAAA" is directly indicated by the PC 3.

“AAAO”に変換指定されたジャンプ先アドレスをP
C3により指示するとIMIではジャンプ先アドレス゛
AAAO’即ち、「データ送信処理命令」であることが
判明し、その処理プログラムを捕捉し実行する。
Convert the specified jump destination address to “AAAO”
When instructed by C3, the IMI determines that it is a jump destination address ``AAAO'', that is, a ``data transmission processing instruction'', and captures and executes the processing program.

以上の例は外部割り込みによるジャンプ先アドレス決定
例を説明したが、内部割り込みによる場合も同様な決定
経過で処理される。即ち、第2図(B)に示すように、
ジャンプ先アドレスの最下位ビットを変更するのみで即
時に所定のジャンプ先命令アドレスを指定出来る。
The above example describes an example of determining a jump destination address by an external interrupt, but the process of determining a jump destination address by an internal interrupt is carried out in a similar manner. That is, as shown in FIG. 2(B),
A predetermined jump destination instruction address can be immediately specified by simply changing the least significant bit of the jump destination address.

(g)発明の効果 以上の本発明によれば、命令処理装置の割り込みの分類
に応じたジャンプ先アドレスを即時に指定到達すること
が可能なアドレス指定方法を提供出来ると言う効果があ
る。
(g) Effects of the Invention According to the present invention as described above, it is possible to provide an address specification method that can immediately specify and reach a jump destination address according to the classification of an interrupt of an instruction processing device.

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

第1図は従来の通信制御装置におけるジャンプ先アドレ
スの指定方法、第2図は本発明に係る命令処理装置の一
実施例をそれぞれ示す。 図において、1はTM、2はII?、 ’3はI’C,
4はプラス1回路、5はテーブル選択回路、6はジャン
プ先テーブル、7は選択回路をそれぞれ示す。
FIG. 1 shows a method of specifying a jump destination address in a conventional communication control device, and FIG. 2 shows an embodiment of an instruction processing device according to the present invention. In the figure, 1 is TM, 2 is II? , '3 is I'C,
4 is a plus 1 circuit, 5 is a table selection circuit, 6 is a jump destination table, and 7 is a selection circuit.

Claims (1)

【特許請求の範囲】[Claims] 内蔵プログラムを格納する記憶部と前記記憶部のアドレ
スを指示するプログラムカウンタを有する命令処理装置
において、前記内蔵プログラムの実行にあたって、複数
の分岐先のあるジャンプ命令と、前記複数の分岐先のあ
るジャンプ命令アドレスの一部を所定条件にて選択指定
するアドレステーブルとを有し、前記アドレステーブル
にて選択された前記ジャンプ命令アドレスの一部を、前
記プログラムカウンタにて指定されたジャンプ命令アド
レスの下位ビットと置換することを特徴とする命令処理
装置におけるプログラム命令アドレス指定方法。
In an instruction processing device having a storage unit that stores a built-in program and a program counter that indicates an address of the storage unit, when executing the built-in program, a jump instruction with a plurality of branch destinations and a jump instruction with the plurality of branch destinations are executed. and an address table for selectively specifying a part of the instruction address under predetermined conditions, and the part of the jump instruction address selected in the address table is transferred to the lower part of the jump instruction address specified by the program counter. A method for specifying address of a program instruction in an instruction processing device, characterized by replacing the address with a bit.
JP19557783A 1983-10-19 1983-10-19 Program instruction address designating method of instruction processing device Pending JPS6086626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19557783A JPS6086626A (en) 1983-10-19 1983-10-19 Program instruction address designating method of instruction processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19557783A JPS6086626A (en) 1983-10-19 1983-10-19 Program instruction address designating method of instruction processing device

Publications (1)

Publication Number Publication Date
JPS6086626A true JPS6086626A (en) 1985-05-16

Family

ID=16343443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19557783A Pending JPS6086626A (en) 1983-10-19 1983-10-19 Program instruction address designating method of instruction processing device

Country Status (1)

Country Link
JP (1) JPS6086626A (en)

Similar Documents

Publication Publication Date Title
US6526474B1 (en) Content addressable memory (CAM) with accesses to multiple CAM arrays used to generate result for various matching sizes
JP2002077269A (en) Programmable packet processor with flow resolution logic
JPH06162228A (en) Data flow processor device
JPS6086626A (en) Program instruction address designating method of instruction processing device
US20010007559A1 (en) Interleaved processing system for processing frames within a network router
JPH03288228A (en) Information processor
JP2010087887A (en) Selection circuit and packet processing apparatus
JPS59128644A (en) Sequence control circuit
JP2596639B2 (en) Prior control method
US5167027A (en) Apparatus and method for forming a sequencer link for a sequencer controlled by a micro-program
JPS61249139A (en) Microprogram controller
JPS63141131A (en) Pipeline control system
JPS6116334A (en) Data processor
JPH0226252B2 (en)
JP2704134B2 (en) Micro program controller
JPS60103452A (en) Microprogram control system
JPS58200347A (en) Microprogram controller
JPS58186846A (en) Microprogram controller
JPS593797A (en) Storage device
JP2001084139A (en) Arithmetic processor and arithmetic processing method
JPS59177656A (en) Program switching controller
JPH06242944A (en) Command execution circuit
JPH05127893A (en) Microprogram control system
JPH02162458A (en) Parallel processor
JPH01130228A (en) Microprogram controller