JPS5851354A - Program control circuit - Google Patents

Program control circuit

Info

Publication number
JPS5851354A
JPS5851354A JP56149347A JP14934781A JPS5851354A JP S5851354 A JPS5851354 A JP S5851354A JP 56149347 A JP56149347 A JP 56149347A JP 14934781 A JP14934781 A JP 14934781A JP S5851354 A JPS5851354 A JP S5851354A
Authority
JP
Japan
Prior art keywords
instruction
address
circuit
jump
integrated logic
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
JP56149347A
Other languages
Japanese (ja)
Inventor
Takahiko Yamada
山田 喬彦
Yoshiaki Wakimura
脇村 慶明
Shuji Miki
三木 修次
Etsuo Masuda
増田 悦夫
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP56149347A priority Critical patent/JPS5851354A/en
Publication of JPS5851354A publication Critical patent/JPS5851354A/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/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • G06F9/30054Unconditional branch instructions

Abstract

PURPOSE:To eliminate a waste of instruction execution and to realize high-speed control by adding a rereading circuit which operates on the basis of jump addresses in addition to a integrated logical circuit. CONSTITUTION:By an instruction, a specific bit in a holding circuit 4 is selected by a selector 5, whose selection result is regarded as a test result to obtain a control signal to an address switching indication terminal P3 and a selector 3. When the output of the terminal P3 arrives, a selector 10 switches the output of a holding circuit 11 and the output of a program memory II to send it from an instruction input terminal P2 to an instruction register 6. The value of a jump address field of the output of the selector is written in a holding circuit 12. A selector 3 selects a jump address and the result of addition by a +1 adding circuit 2 is stored in an address register 1, thereby sending an instruction address P1 out of the integrated logical circuit

Description

【発明の詳細な説明】 本発明は、プログラム制御で動作する集積論理回路のう
ち、命令をその外部から供給する形式のものについて高
速化を図ったプログラム制御回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a program control circuit that is capable of increasing the speed of an integrated logic circuit that operates under program control and in which instructions are supplied externally.

従来、この種の装置では第1図に示すように集積論理回
路の内部で論理動作を行い、論理の状態を保持回路4で
保持し、それをセレクタ5で選択したテスト結果から次
に実行すべき命令アドレスを前命令−に対して+1する
か、あるいはジャ、プアドレスにするかを決定して外部
に付加しであるプログラムメモリ■にアドレスを送出し
て、命令の読み出しを行っていた〇一般に集積論理回路
においては内部の論理動作はきわめて速いが、集積論理
回路の外に信号をホり出すときは、大きなエネルギーを
取り出す必要があることなどから、信号伝播の遅延が大
きくなる。このため+1番地か、ジャンプ先アドレスか
を第2図(イ)のタイミングTaで決定してから命令を
読み出していては、第2図(イ)のTl)で”命令が読
み出され、次の命令実行時間に間に合わない。そこで、
一般には第2図(ロ)に示すようK、+1番地か、ジャ
ンプ先アドレスかの判定前に予め+1番地を次の命令と
推定して読み出しておいて(Caの期間に)、もし判定
結果がジャンプ先アドレスであれば、ジャンプ先命令を
読出す(C84の期間に)とともに、次の命令を無効果
して、Mbのサイクルの1命令実行時間を休止し、その
後、ジャンプアドレスの命令実行をMeのサイクルで行
なう形を取る。この場合、通信制御装置やファイル記憶
装置のように自律のクロックで自走する外部装置を制御
するような場合にはオーバーランなどの異常を起す確率
が高くなるなどの問題があった。
Conventionally, in this type of device, a logic operation is performed inside an integrated logic circuit as shown in FIG. The instruction was read by determining whether to add 1 to the previous instruction address or to make it a negative address, and sending the address to an externally attached program memory. In general, the internal logic operations of integrated logic circuits are extremely fast, but when a signal is sent out of the integrated logic circuit, a large amount of energy must be extracted, resulting in a large delay in signal propagation. Therefore, if the instruction is read after determining whether it is the +1 address or the jump destination address at timing Ta in Figure 2 (A), the instruction will be read out at T1 in Figure 2 (A), and the next cannot meet the instruction execution time of
Generally, as shown in Figure 2 (b), before determining whether it is address K, +1, or the jump destination address, address +1 is presumed to be the next instruction and read out (during period Ca). If is the jump destination address, read the jump destination instruction (in the period of C84), make the next instruction ineffective, pause the execution time of one instruction in Mb cycle, and then stop the execution of the instruction at the jump address. It takes the form of a cycle of In this case, when controlling an external device that runs on its own using an autonomous clock, such as a communication control device or a file storage device, there is a problem that the probability of abnormalities such as overruns increases.

本発明は、この欠点を除去するため、集積論理回路の外
にインクリメントされたアドレスによって命令を読みだ
し保存する回路と該命令のジャンプアドレスフィールド
で指定されたアドレスで命令を読み出し、l命令実行時
間内に2命令の読み出しを行っておいて、集積論理回路
からのテスト結果を指示する信号に従って命令を集積論
理回路に送り込むようにしたことを特徴とする。
In order to eliminate this drawback, the present invention provides a circuit that reads and stores an instruction at an incremented address outside the integrated logic circuit, and a circuit that reads an instruction at an address specified in the jump address field of the instruction. The present invention is characterized in that two instructions are read out within the integrated logic circuit, and the instructions are sent to the integrated logic circuit in accordance with a signal indicating the test result from the integrated logic circuit.

第3図は本発明の実施例を示すもので、第4図は本発明
の実施例における動作タイムチャートである。今、命令
レジスタ6に読み込まれている命令によって被制御回路
7を制御し、被制御回路7の状態を保持回路4に保存す
るものとする。さらに該命令は保持回路4のうちの特定
のビットをセレクタ5で選択し、選択結果をテスト結果
としてアドレス切替指示端子P3及びセレクタ30制御
信号として利用する。
FIG. 3 shows an embodiment of the present invention, and FIG. 4 is an operation time chart in the embodiment of the present invention. It is now assumed that the controlled circuit 7 is controlled by the command read into the instruction register 6, and the state of the controlled circuit 7 is stored in the holding circuit 4. Furthermore, this instruction selects a specific bit in the holding circuit 4 with the selector 5, and uses the selection result as a test result and as an address switching instruction terminal P3 and a selector 30 control signal.

第4図において、命令はMa+ Mbm Meのように
順次実行されるが、命令実行サイクルMaにおいて、M
aの最初の時刻から外部の保持回路12の内容(実行中
のマイクロ命令のアドレスフィールドに相当)によって
セレクタ8を経由して、Tlの時刻までにプログラムメ
モ’Jlから保持回路1】に命令が読み出される。その
後、現在実行中の命令の次の番地が保持回路1からプロ
グラムアドレス出力端子P、を経由した値によってプロ
グラムメモリlに送出される。両者の切替はセレクタ8
によって成される。このセレクタ8は、タイミング発生
回路9によって第4図のt1雪t2のようにタイミング
によってアドレス入力の切替を行うものとする。さらに
前記アドレス切替指示端子P3の出力が到達した段階で
セレクタ10が保持回路11の出力かプログラムメモリ
■の出力かを切替えて命令入力端子P2を経由して命令
レジスタ6゜に送り込む。同時にセレクタの出力のうち
ジャンプアドレスフィールドの値を保持回路12に書き
込む。一方ジャンプが成立した段階でセレクタ3はジャ
ンプアドレスを選択して、+1加算回路2により+1の
加算を行い、結果をアドレスレジスタ1に格納し、命令
アドレスP1を集積論理回路外に送出する。以上の動作
をMa、 Ml)、 Meのように繰シ返して実行する
In FIG. 4, the instructions are executed sequentially as Ma+Mbm Me, but in the instruction execution cycle Ma, M
From the first time of a, the instruction is stored in the holding circuit 1 from the program memo 'Jl' via the selector 8 according to the contents of the external holding circuit 12 (corresponding to the address field of the microinstruction being executed) by the time of Tl. Read out. Thereafter, the address next to the currently executed instruction is sent from the holding circuit 1 to the program memory 1 via the program address output terminal P. To switch between the two, selector 8
done by. It is assumed that the selector 8 switches the address input according to the timing, as shown in t1 and t2 in FIG. 4, by the timing generation circuit 9. Further, when the output of the address switching instruction terminal P3 arrives, the selector 10 switches between the output of the holding circuit 11 and the output of the program memory 2 and sends it to the instruction register 6° via the instruction input terminal P2. At the same time, the value of the jump address field among the outputs of the selector is written into the holding circuit 12. On the other hand, when the jump is established, the selector 3 selects the jump address, performs +1 addition by the +1 addition circuit 2, stores the result in the address register 1, and sends the instruction address P1 to the outside of the integrated logic circuit. The above operations are repeated as Ma, Ml) and Me.

なお、プロ・、声りAの回路を集積論理回路の外におけ
ば、アドレスレジスタ1の出力がアドレス出力端子P1
を経由して外部に到達するまでの時間はなくなり、時間
の短縮が可能であり、この余裕時間t−利用してアクセ
スタイムが゛より遅いメモリ素子を使用出来るなどのメ
リットがある。この場合、セレクタ3に入力するジャン
プアドレスは、保持回路12の出力を利用する違いはあ
るが動作は上に説明した通りであ□る。なお、この場合
、ジャンプアドレスフィールドに対応した信号はご集積
論理回路内に送り込む必要がないため、集積論理回路の
端子節約が可能となる。
In addition, if the circuit of the voice A is placed outside the integrated logic circuit, the output of the address register 1 becomes the address output terminal P1.
This eliminates the time it takes for the data to reach the outside via t, which can shorten the time, and this margin time t- can be utilized to use a memory element whose access time is slower than t. In this case, the jump address input to the selector 3 uses the output of the holding circuit 12, but the operation is the same as described above. In this case, it is not necessary to send the signal corresponding to the jump address field into the integrated logic circuit, so that the terminals of the integrated logic circuit can be saved.

以上、説明したように本発明は集積論理回路の外にンヤ
/プアドレスによる再読み出し回路を付加したので、命
令を集積論理回路の中に読み込んで、アドレスを再度出
力する従来方式に対し、命令実行の無駄がなくなり、高
速化を実現し得る利点がある。
As explained above, the present invention adds a rereading circuit based on the N/P address outside the integrated logic circuit, so that the present invention is different from the conventional method in which an instruction is read into the integrated logic circuit and the address is output again. This has the advantage of eliminating wasteful execution and increasing speed.

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

第1図は従来技術による回路、第2図はその動作を説明
するための命令実行タイムチャート、第3図は本発明の
一実施例、第4図はそのタイムチャートをそれぞれ示す
図である。 ■ ・・・・・・・・・集積論理回路、 ■・・・・・
・・・・プログラムメモリ、 l ・・・・・・・・ア
ドレスレジスタ、 2・・・・・・・・・+1加算回路
、 3・・・・・・・・ セレクタ、 4・・・・・パ
内部状態保持回路、 5・・・・・・・・セレクタ、6
・・・・・・・・・命令レジスタ、 7・・・・・・・
・被制御回路、8・・・・・・・・・セレクタ、 9 
・・・・・・・・・タイミング発生回路、 10・・・
・・・・・・セレクタ、  11・・・・・・・・・命
令保持回路、 Ma+ Ml)、 Mg、−、、、、、
、、、命令実行サイクル、Can ca’・・・・・曲
命令読み出しサイクル、 ’ra・・・・・・・・・命
令実行サイクル中のテスト結果判定タイミング、 P 
1.P 2+ P 3・・・・・・・・・信号端子。 第1図 第2図 第4図
FIG. 1 shows a circuit according to the prior art, FIG. 2 shows an instruction execution time chart for explaining its operation, FIG. 3 shows an embodiment of the present invention, and FIG. 4 shows its time chart. ■・・・・・・Integrated logic circuit, ■・・・・・・
・・・・・・Program memory, l ・・・・・・・・・Address register, 2・・・・・・・・・+1 addition circuit, 3・・・・・・・Selector, 4・・・・・・Pa internal state holding circuit, 5...Selector, 6
・・・・・・・・・Instruction register, 7・・・・・・・・・
・Controlled circuit, 8...Selector, 9
......timing generation circuit, 10...
...Selector, 11...Instruction holding circuit, Ma+ Ml), Mg, -, ,,,
,,,Instruction execution cycle, Can ca'... Song instruction read cycle, 'ra......Test result judgment timing during instruction execution cycle, P
1. P2+P3...Signal terminal. Figure 1 Figure 2 Figure 4

Claims (2)

【特許請求の範囲】[Claims] (1)  命令を端子より入力し、該命令を実行するプ
ログラム制御の集積論理回路において、その集積論理回
路は、次に実行する命令が現在実行中の命令の次アドレ
スの命令か、現在実行中の命令のジャンプアドレスフィ
ールドで指定されるアドレスの命令かを指定する信号を
送出するアドレス切替指示端子、現在実行中の命令のア
ドレスに+1したアドレスを出力するプログラムアドレ
ス出力端子および命令入力端子を具備し、前記集積論理
回路とは独立に、その集積論理回路へ入力された命令ノ
ジャンプアドレスフィールドを保持するジャンプアドレ
ス保持回路と、第1の期間に、前記ジャンプアドレス保
持回路に保持されたアドレスまたは前記アドレス出力端
子からのアドレスの一方を選択して、その選択されたア
ドレスによって第1の命令の読出しを行ない、第2の期
間に、他方のアナ゛レスを選択して、そのアドレスによ
って第2の命令の読出しを行なう1段と、前記読出され
たオlの命令を保持する命令保持回路と、前記アドレス
切替指示端子の信号によって前記第1および第2の命令
のひとつを選択し、前記命令入力端子に送り込む手2段
を具備することを特徴とするプログラム制御回路。
(1) In a program-controlled integrated logic circuit that inputs an instruction from a terminal and executes the instruction, the integrated logic circuit determines whether the next instruction to be executed is the instruction at the next address of the instruction currently being executed, or whether the instruction is currently being executed. Equipped with an address switching instruction terminal that sends a signal specifying whether the instruction is at the address specified in the jump address field of the instruction, a program address output terminal that outputs an address that is +1 to the address of the currently executing instruction, and an instruction input terminal. and a jump address holding circuit that holds a jump address field of an instruction input to the integrated logic circuit independently of the integrated logic circuit; One of the addresses from the address output terminal is selected and the first instruction is read using the selected address, and during the second period, the other address is selected and the second instruction is read using the selected address. an instruction holding circuit that holds the read instruction; and an instruction holding circuit that selects one of the first and second instructions according to a signal from the address switching instruction terminal, and A program control circuit characterized by comprising two means for sending data to an input terminal.
(2)  命令を端子より入力し、該命令を実行するプ
ログラム制御の集積論理回路において、その集積論理回
路は、次に実行する命令が現在実行中の命令の次アドレ
スの命令か、現在実行中の命令のジャンプアドレスフィ
ールドで指定されるアドレスの命令かを指定する信号を
送出するアドレス切替指示端子を具備し、かつその集積
論理回路とは独立に、前記指定信月が現在実行中の命令
の次アドレスの命令を相定する場合、現在実行中の命令
の次アドレスを保持し、該指示信号が現在実行中の命令
のジャンプアドレンフィールドで指定されるアドレスの
命令を指定する場合、現在実行中の命令のジャンプアド
レスフィールドで指定されるアドレスの次のアドレスを
保持する次アドレス保持回路と、前記集積論理回路へ入
力された命令のジャンプアドレスフィールドを保持する
ジャンプアドレス保持回路と、第1の期間に、前記ジャ
ンプアドレス保持回路に保持されたアドレスまたは前記
次アドレス保持回路からのアドレスの一方を選択して、
その選択されたアドレスによってオlの命令の読出しを
行ない、第2の期間に、他方のアドレスを選択して、そ
のアドレスによっテ第2の命令の読出しを・行なう手段
と、前記読出された第1の命令を保持する命令保持回路
と、前記アドレス切替指示端子の信号によって前記第1
および第2の命令のひとつを選択し、前記命令六方−子
に送り込む手段を具備することを特徴とするプログラム
制御回路。
(2) In a program-controlled integrated logic circuit that inputs an instruction from a terminal and executes the instruction, the integrated logic circuit determines whether the next instruction to be executed is the one at the next address of the instruction currently being executed, or whether the instruction is currently being executed. It is equipped with an address switching instruction terminal that sends a signal specifying whether the instruction is at the address specified in the jump address field of the instruction, and independently of the integrated logic circuit, When specifying the instruction at the next address, the next address of the currently executing instruction is held, and if the instruction signal specifies the instruction at the address specified in the jump address field of the currently executing instruction, the currently executing instruction is a next address holding circuit that holds an address next to the address specified in the jump address field of the instruction in the integrated logic circuit; a jump address holding circuit that holds the jump address field of the instruction input to the integrated logic circuit; selecting either the address held in the jump address holding circuit or the address from the next address holding circuit during the period;
means for reading the second instruction according to the selected address, selecting the other address in a second period, and reading the second instruction according to the selected address; an instruction holding circuit that holds a first instruction; and a command holding circuit that holds a first instruction;
and means for selecting one of the second instructions and sending it to the instruction hexagonal child.
JP56149347A 1981-09-24 1981-09-24 Program control circuit Pending JPS5851354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56149347A JPS5851354A (en) 1981-09-24 1981-09-24 Program control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56149347A JPS5851354A (en) 1981-09-24 1981-09-24 Program control circuit

Publications (1)

Publication Number Publication Date
JPS5851354A true JPS5851354A (en) 1983-03-26

Family

ID=15473129

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56149347A Pending JPS5851354A (en) 1981-09-24 1981-09-24 Program control circuit

Country Status (1)

Country Link
JP (1) JPS5851354A (en)

Similar Documents

Publication Publication Date Title
JPS63146298A (en) Variable work length shift register
JPH0679290B2 (en) Computer device
JPH0421053A (en) Asynchronous data transmission device
JPH03204737A (en) Debug circuit of signal processing processor
US4408276A (en) Read-out control system for a control storage device
JPS5851354A (en) Program control circuit
JPH0520010A (en) Register file
JP2734312B2 (en) Memory circuit
JP2581080B2 (en) Microprocessor for debugging
JP2531206B2 (en) Channel device
JP2001319477A (en) Semiconductor memory and memory control method
JP3255429B2 (en) Memory interface circuit
JPH01283635A (en) Buffer control circuit
JP2912090B2 (en) Time slot interchange circuit
JPH01236345A (en) Single-chip microcomputer
JPH03214275A (en) Semiconductor integrated circuit
JPH02128286A (en) Standard pattern reading out circuit
JPS6410853B2 (en)
JPH0566991A (en) Interface device
JPH03152796A (en) Ic memory
JPH05182453A (en) Semiconductor memory circuit
JP2001142735A (en) Microprocessor for evaluation and evaluation mode setting method thereof
JPH05303513A (en) Trace memory for program
JPH0535651A (en) Digital signal processing lsi
JPH03282915A (en) Information processor